Sascha Schumann
652b615438
Fix PUTS/PUTS_H to only evaluate their argument once.
2003-04-19 18:35:31 +00:00
Sara Golemon
0c366c24e5
Macro: php_stream_get_from_zval(php_stream *stream, zval **zstream, char *mode, int options, char **opened_path, php_stream_context *context) Z_TYPE_PP(zstream) can be either IS_RESOURCE (An already opened stream) or IS_STRING (a path to a stream to be opened)
2003-04-17 00:00:34 +00:00
Marcus Boerger
b09aa87120
Don't access what is already freed (noticed by Sascha)
2003-04-16 17:30:03 +00:00
Moriyoshi Koizumi
49b43ad115
Changed stream filter factory to be capable of accepting a zval as a parameter
...
instead of a string
2003-04-16 14:30:25 +00:00
Sascha Schumann
bb50c3846f
Fix uninitialized reads
...
==32323== Conditional jump or move depends on uninitialised value(s)
==32323== at 0x80F5A5C: zend_ini_color_displayer_cb (/home/sas/src/php4/Zend/zend_ini.c:374)
==32323== by 0x80C5B7F: php_ini_displayer_cb (/home/sas/src/php4/main/php_ini.c:60)
==32323== by 0x80C5D15: php_ini_displayer (/home/sas/src/php4/main/php_ini.c:115)
==32323== by 0x80F0168: zend_hash_apply_with_argument (/home/sas/src/php4/Zend/zend_hash.c:707)
2003-04-16 12:44:08 +00:00
Marcus Boerger
75c8f37c03
Make it static
2003-04-13 20:30:57 +00:00
Marcus Boerger
887d5ec9c1
Speling
2003-04-13 20:12:54 +00:00
Marcus Boerger
bff63db577
Fix persistent stream closing (that one took me at least 3 days)
2003-04-13 19:47:55 +00:00
Wez Furlong
2090d23f02
Fix for #23069 (Windows sets readonly mode for temporary files in tempnam)
2003-04-11 11:08:44 +00:00
Andrei Zmievski
2154cddd0e
Move memnstr into Zend and make an alias for BC in PHP.
2003-04-08 15:04:26 +00:00
Sara Golemon
d6c24de842
Add IPv6 support to stream_socket_client/server()
2003-04-05 02:42:12 +00:00
Andrei Zmievski
81482833b5
Introduce ZEND_ME() and ZEND_METHOD() macros. Use these for declaring
...
class methods to avoid name collisions.
2003-04-04 15:38:20 +00:00
Sascha Schumann
7f5a42da17
Backout Jani's commit to resync branches
2003-04-04 08:40:48 +00:00
Sara Golemon
c985b780a5
Prevent php_stream_get_record from grabbing more than maxlen characters
2003-04-04 01:34:00 +00:00
foobar
ff22d581d9
WS & CS fix
2003-04-03 18:44:00 +00:00
Sascha Schumann
7e2fcf986e
Add some checks and avoid passing invalid data to call_user_function_ex.
...
Fixes some heap corruption and allocation of negative amounts of memory.
2003-04-03 18:19:15 +00:00
Moriyoshi Koizumi
f7a8499806
Fixed memleak in output buffering facility
2003-04-03 00:50:17 +00:00
Colin Viebrock
a77cb3c35d
oops ... committed the wrong one
2003-04-02 16:28:38 +00:00
Colin Viebrock
6aa1481f83
fix logo (outline around letters)
2003-04-02 15:36:34 +00:00
Sascha Schumann
e2333fd1df
Fix an uninitialized read, default to FAILURE
2003-04-01 19:14:47 +00:00
Moriyoshi Koizumi
8d2dd87d89
Fixed bug #22538 (stream filter problem)
2003-03-31 23:22:10 +00:00
Ilia Alshanetsky
62909237c4
WS
2003-03-31 22:13:01 +00:00
Marcus Boerger
0235d331b7
use the correct macro - noticed by Andrei
2003-03-31 19:14:18 +00:00
Marcus Boerger
7a76d5f438
cleanup
2003-03-30 13:59:05 +00:00
Shane Caraveo
0f3a0dfa52
_SERVER also should not be quoted by magic_quotes_GPC
...
also remove an empty if statement
2003-03-30 01:06:54 +00:00
Marcus Boerger
b5c97d8dab
fix phpinfo() & php -i
2003-03-29 21:25:03 +00:00
Moriyoshi Koizumi
e1eb238cf2
On 64bit platforms, pointers are 64bit long..
2003-03-28 17:09:04 +00:00
Moriyoshi Koizumi
961ad8e24a
Improved php_import_environment_variables: avoid emalloc()ing in most cases
2003-03-27 21:13:47 +00:00
Sterling Hughes
84f0dd0e44
really fix
2003-03-26 23:03:48 +00:00
Sterling Hughes
c0f04cc087
fix segfault
2003-03-26 23:01:39 +00:00
Sebastian Bergmann
3fc852824f
Eliminate TSRMLS_FETCH() calls in destroy_op_array() and zend_get_class_entry().
2003-03-26 07:44:11 +00:00
Sebastian Bergmann
5ca078779a
Eliminate some TSRMLS_FETCH() calls. Tested with Win32 build of SAPI/CGI and SAPI/CLI on Win32.
2003-03-25 08:07:13 +00:00
Shane Caraveo
456b6cbeab
The environment should *never* be magic quoted.
2003-03-23 19:30:31 +00:00
Shane Caraveo
26296130ad
Fix PHPRC overriding other ini files. This is how PHPRC worked prior to
...
4.3.x, and is usefull for applications that execute PHP and want to
emulate CGI and define alternate INI files (ie. cannot use -c).
2003-03-22 18:54:35 +00:00
Wez Furlong
e451d88399
Fix for persistent stream shutdown under debug builds
2003-03-20 01:23:04 +00:00
foobar
88fe9c2d3c
Fixed bug #22775 (Fatal errors exit with status 0 with CGI/CLI)
2003-03-19 08:22:12 +00:00
Wez Furlong
7379f47518
Sanity check for when a stream is requested to be persistent but the wrapper
...
does not respect the flag.
2003-03-19 00:17:15 +00:00
Wez Furlong
86fb577d59
Implement persistent plain file streams.
...
Usage:
php_stream *stream = php_stream_fopen("/path/to/file", "r+b", NULL,
STREAM_OPEN_PERSISTENT | ENFORCE_SAFE_MODE | REPORT_ERRORS);
the filename and mode are combined to form the hash key for the persistent
list; they must be identical for this same stream to be returned again in the
next request.
Calling php_stream_close() on a persistent stream *will* close it, as is
usual with all persistent resources in PHP/ZE.
This is deliberately *not* exposed to user-space PHP at this time.
2003-03-18 23:37:54 +00:00
Wez Furlong
6a87651006
Q}
2003-03-18 22:26:02 +00:00
Marcus Boerger
4529fb344c
-turn html_errors on by default again
...
-disbale clickable error messages by docref_root default to ''
2003-03-18 22:21:54 +00:00
Marcus Boerger
3e621fac94
make phpinfo() depend on executed sapi
2003-03-18 20:52:52 +00:00
Wez Furlong
ce01fd9526
Avoid using FILE* where possible.
...
Tidy up handling of potential error situations for the php:// wrapper.
2003-03-18 16:40:29 +00:00
Marcus Boerger
63739c7db8
give sapi modules the possibility to overwrite default ini settings
2003-03-18 15:53:33 +00:00
Wez Furlong
267db80b21
avoid unsigned issues.
2003-03-18 15:15:10 +00:00
Wez Furlong
7c2ccb5f65
Fix for #22721 (poor file() performance on systems without mmap)
2003-03-18 14:35:01 +00:00
Stig Bakken
0e6fca4f22
* email address change
2003-03-18 12:06:09 +00:00
Ilia Alshanetsky
e15cc99415
Win32 build fix.
2003-03-17 22:25:55 +00:00
Ilia Alshanetsky
27a7eaf4e7
Fixed bug #22538 (failed stat on stdio/stdin/stderr streams).
2003-03-17 18:32:15 +00:00
Wez Furlong
cfd0466389
Fix for Bug #21310 , based on a patch by jflemer@php.net.
2003-03-17 13:40:45 +00:00
Marcus Boerger
aba27fc6ca
- disable html_errors per default as suggested by php.ini-<xxx>
...
- new error format that does not point to any documentation (if either
not html_errors or no docref_root given e.g.: production boxes and default)
- documentation update in php.ini-<xxx>
# hope everyone is happy now
# and why on earth was enabling html_errors default?
2003-03-16 20:47:56 +00:00