2002-05-06 Jason Greene * ext/pcntl/pcntl.c: MFH * ext/pcntl/pcntl.c: Fix invalid warning caused by bogus convert_to_* calls Fix possible invalid data in status for pcntl_waitpid() 2002-05-06 Markus Fischer * ext/standard/datetime.c: - WS fix as pointed out by fabwash@hotmail.com 2002-05-06 Jason Greene * ext/pcntl/pcntl.c: MFH Fix for ZTS and crash bugs * ext/pcntl/pcntl.c: Fix type-o that broke ZTS build Fix 3 nasty crash bugs that could occur if pcntl_exec's call to execve errored 2002-05-06 Derick Rethans * configure.in main/php_version.h: - Swap back version number * NEWS: - Fix release date 2002-05-06 jim winstead * ext/standard/file.c: MFH: fix problem with mkdir() on freebsd * ext/standard/file.c: fix problem with mkdir() on freebsd 2002-05-06 Edin Kadribasic * sapi/cli/README: Update README with register_argc_argv settings override. 2002-05-06 Aaron Bannert * sapi/apache2filter/sapi_apache2.c: Merge two SEGV fixes from the trunk: - startup SEGV caused by delaying the initialization too long. - graceful restart SEGV caused by not re-initializing. 2002-05-06 Derick Rethans * NEWS: - Fix release day * main/php_version.h configure.in: - GO with rc2 2002-05-05 Wez Furlong * ext/standard/html.c: Add support for remaining entities in HTML 4 for the UTF-8 encoding in htmlentities/htmlspecial chars. This is a fix for for #17008. 2002-05-05 Yasuo Ohgaki * NEWS: Clenup before I forgot. 2002-05-05 Aaron Bannert * sapi/apache2filter/sapi_apache2.c: Fix a graceful restart SEGV. We no longer only perform initialization on the second pass through the post_config. Now we only avoid the initialization only on the first DSO load, and on all subsequent loads we rerun the init code. * sapi/apache2filter/sapi_apache2.c: Fix an elusive and intermittent startup SEGV. The problem was the static string we were using to set an initialization flag would get remapped to a different location when Apache reloaded the DSO, causing us to not run our initialization routines. Submitted by: Justin Erenkrantz Reviewed by: Aaron Bannert (I added the big comment too) 2002-05-05 Stanislav Malyshev * ext/standard/exec.c: Return right exit status 2002-05-05 Jani Taskinen * sapi/cli/php_cli.c: MFH * sapi/cli/php_cli.c: Force register_argc_argv=On for CLI 2002-05-05 Thies C. Arntzen * ext/standard/url_scanner_ex.c: touch * ext/session/php_session.h ext/session/session.c ext/standard/url_scanner_ex.c ext/standard/url_scanner_ex.h ext/standard/url_scanner_ex.re: re-add accidentily nuked session_adapt_url() 2002-05-05 Rui Hirokawa * ext/mbstring/mbfilter.c ext/mbstring/unicode_table.h: bug fixed in unicode -> cp1252 table. 2002-05-05 Marko Karppinen * sapi/apache2filter/config.m4: Well that didn't last long! (Reverting previous.) * sapi/apache2filter/config.m4: Prelim. patch to enable apache2filter to link on Darwin. Submitted by: Justin Erenkrantz Reviewed by: markonen 2002-05-05 Rui Hirokawa * ext/standard/reg.c: fixed problem that ereg_replace() couldn't match with line stand/end marker. * ext/mbstring/mbfilter.c ext/mbstring/mbfilter_cn.c ext/mbstring/unicode_table_cn.h: added missing areas on Unicode->CP936 conversion table. added an alias CP932 on sjis-win. 2002-05-05 Sascha Schumann * ext/standard/url_scanner_ex.c: sync * ext/standard/url_scanner_ex.re: the output buffer is flushed during request shutdown before it reaches our rshutdown, so it is safe to delete the contents of the url rewriter variables here. 2002-05-04 Zeev Suraski * main/output.c: We shouldn't force Content-length:, but much worse, it's wrong in many cases (basically, unless you use output buffering to buffer all of your content, it won't work; output buffering is used for lots of different things as a functional interface, and such buffers have no relation to Content-type at all). 2002-05-04 Sascha Schumann * main/output.c: Free string before overwriting it * ext/standard/url_scanner_ex.c: update * ext/standard/basic_functions.c ext/standard/url_scanner_ex.h ext/standard/url_scanner_ex.re main/output.c main/php_output.h ext/session/session.c: simplify handling of variables by maintaining two strings which are simply appended instead of traversing the hash table on each URL/form. also fix an unconditional segfault in rshutdown due to efree'ing a static char *. remove remove_var, add reset_vars. move the function declarations into the right header file. * ext/standard/basic_functions.c: ret set but unused * main/user_streams.c: these are case sensitive * ext/standard/iptc.c: c set but unused * ext/standard/iptc.c: inheader set but unused 2002-05-04 James Cox * main/user_streams.c: touch. * main/user_streams.c: add $id:$ line 2002-05-04 Sascha Schumann * ext/standard/string.c: block_ended/opposite_target were set but never used * ext/standard/strnatcmp.c: don't emit code for version * main/php_variables.c: free_index is set but never used * main/user_streams.c: call_result is set but never used * sapi/cli/getopt.c: ap_php_optopt is set but never used * ext/standard/php_fopen_wrappers.h: Fix linkage of symbols * ext/standard/image.c: entry_length was set but never used * ext/standard/var_unserializer.c: update * ext/standard/var_unserializer.re: rval_temp was declared but never used * ext/standard/http_fopen_wrapper.c: redirected is set but never used * ext/standard/url_scanner_ex.c: include url.h * ext/standard/url_scanner_ex.re: include url.h to pull in declaration of php_url_encode * ext/standard/file.c: Make this code work on compilers which don't consider the address of a variable on the stack available at compile time. * ext/standard/basic_functions.c: unused var * ext/posix/posix.c: p is set, but never used. * ext/mbstring/config.m4: Turn misplaced PHP_ARG_WITH into _ENABLE and fix --enable-mbstring=shared * ext/session/config.m4: Fix --enable-session=shared * ext/xml/config.m4: Fix --enable-xml=shared 2002-05-04 Stig Venaas * ext/ldap/ldap.c: Reworked result resource handling so that result is not freed until all its result entry resources are freed 2002-05-04 Rui Hirokawa * ext/standard/reg.c: fixed a problem that ereg_replace() couldn't match with line stand/end marker. 2002-05-04 Yasuo Ohgaki * main/output.c: Forgot to dup strings. * main/output.c: Fixed reference to freed zval string value. * main/output.c: Fixed crash when buffer is over written in ob callback. (Bug $ 12227) Added check current output function check for Centent-Length header. 2002-05-03 Jani Taskinen * NEWS: MFH * NEWS: Domxml changes go into the 4.2.x branch. 2002-05-03 Christian Stocker * ext/domxml/php_domxml.h ext/domxml/php_domxml.c: full MFH as discussed with derick * ext/domxml/php_domxml.h ext/domxml/php_domxml.c: removed the function for domxml_node_add_child and made an alias to domxml_node_append_child for BC 2002-05-03 Stig Bakken * pear/OS/Guess.php: * switched from static to instance model * added matching method with glob support, some examples: $os->matchSignature('linux'); $os->matchSignature('linux-2.4*); $os->matchSignature('linux-*-i?86'); 2002-05-03 Christian Stocker * ext/domxml/php_domxml.c: WS fixes * ext/domxml/php_domxml.c: one parameter too much * ext/domxml/php_domxml.c: added encoding support for domxml_dump_mem() 2002-05-03 Thies C. Arntzen * ext/standard/url_scanner_ex.c: forgot 2002-05-03 Sebastian Bergmann * ext/session/session.c: Fix ZTS build. 2002-05-03 Thies C. Arntzen * main/output.c ext/standard/url_scanner_ex.h ext/standard/url_scanner_ex.re ext/standard/basic_functions.c ext/session/session.c ext/session/php_session.h: i have also modified the session module to use this - so it doesn't need to fiddle with the output-system any more 2002-05-03 Stig Bakken * pear/OS/Guess.php pear/package-pear.xml: * fixed autoconf vs. pear installer replacement issue in scripts/pear.in (pear installer now substitutes "@prefix@/bin" to bin_dir ;-) * added skeleton for OS_Guess class * NEWS: * unintentional news entry :-) * pear/PEAR/Installer.php: * apply umask when installing files 2002-05-02 Stig Bakken * pear/PEAR/Config.php: * add umask config value 2002-05-02 Frank M. Kromann * ext/mbstring/mbfilter_tw.c: Changed & to &&. * ext/mbstring/mbstring.dsp: Adding missing files to the project * ext/standard/info.c: Fixing wrong pointer 2002-05-02 Sander Roobol * sapi/cgi/cgi_main.c: MFH * sapi/cgi/cgi_main.c: Fixed some minor typos 2002-05-02 Jason Greene * ext/sockets/sockets.c: socket_write() should just use the standard socket error macro so that errors will be consistent if the macro ever changes 2002-05-02 James Cox * sapi/cgi/cgi_main.c: fix. * sapi/cgi/cgi_main.c: MFH. 2002-05-02 Sebastian Bergmann * sapi/cgi/cgi_main.c: Fix build. 2002-05-02 James Cox * sapi/cgi/cgi_main.c: updated cgi warning notice. 2002-05-02 Derick Rethans * configure.in: - MFH 2002-05-02 Zeev Suraski * configure.in: Update comment 2002-05-02 Yasuo Ohgaki * main/output.c: Change nest level to send Content-Length again. It seems this is the best setting for now. PHP will not send Content-Length always. It only sends when it is possible to send. output_buffer=0 is supposed to disable chunked output, but it seems it does not disable. It also behaves a litte strange way. This should be addressed someday. It is possible Content-Length header is not set. If it happens, try to increase chunk size for now. (i.e. output_buffer=40960) I included a little debug code for me and other develpers to play with, when (NestLevel==1 && ObStatus==5), PHP sends Content-Length. 2002-05-02 Harald Radi * ext/com/COM.c: MFH * ext/com/COM.c: remove temporary resources immediately return value fix 2002-05-02 Sascha Schumann * configure.in: Readd warning * configure.in: Readd warning If Mr. Taskinen feels like removing it again, he can commence a discussion. Otherwise, I'll personally disable his CVS account immediately. * configure.in: in6addr_any is defined as extern in IRIX header files, but is not actually contained in any library (sigh). Make this check fail, if the link stage does not succeed. Also avoid GCC optimization which drops the reference to ip6addr_any. Tested on IRIX 6.5.15. 2002-05-02 Derick Rethans * ext/standard/info.c: - Add Zend API No. to phpinofo() output 2002-05-02 Jani Taskinen * ext/xslt/config.m4: MFH: Do not use the old expat libs. * ext/xslt/config.m4: Stop the search when the libs are found. * ext/xslt/config.m4: Added the usual search paths where to look for expat. 2002-05-02 Tomas V.V.Cox * pear/package-pear.xml: Install pear.bat 2002-05-02 Sebastian Bergmann * win32/php4dll.dsp win32/php4dllts.dsp: I could swear it worked the other way before I committed. 2002-05-02 Tomas V.V.Cox * pear/package-pear.xml: untabify 2002-05-02 James Cox * NEWS: englishify. 2002-05-02 Sebastian Bergmann * main/.cvsignore: Add config.w32.h. * win32/php4dllts.dsp: Oops. * NEWS: Fugbix typos. * main/config.w32.h main/config.w32.h.in win32/php4dll.dsp win32/php4dllts.dsp NEWS: The Windows build can now be configures more comfortably, for instance in regard to built-in extensions. 2002-05-02 Jani Taskinen * configure.in: MFH * configure.in: Remove bogus warning. * NEWS: Sync with PHP_4_2_0 branch. 2002-05-02 Yasuo Ohgaki * main/output.c: Fixed header output. Only need to output header when it is actually sent to client. 2002-05-02 Jon Parise * pear/scripts/pear.in: Revert the previous commit (revision 1.40). (FreeBSD 4.5), thus producing a broken shebang line. substitution problem noted above needs to be resolved before the change is reapplied. 2002-05-02 Yasuo Ohgaki * main/output.c: Check buffer status * main/main.c main/output.c: Make Content-Type output always correct. * NEWS: Modify NEWS entry for Content-Length header change * main/output.c ext/zlib/zlib.c: Move Content-Length: header handling from zlib.c to output.c When output buffer is enabled and header can be sent, Content-Length: header is added always from now on. 2002-05-01 Derick Rethans * ext/standard/base64.c: - MFH * ext/standard/base64.c: - Fix String is not zero-terminated error in base64_decode 2002-05-01 Markus Fischer * ext/sockets/sockets.c: - Update protos for socket_read() and socket_write(). - Set last_error in socket_write(). * ext/sockets/sockets.c: - Update protos for getpeer/getsock-name. 2002-05-01 Jason Greene * ext/sockets/sockets.c: Fix BYREF_FORCE that was not being read Fix error message 2002-05-01 Sascha Schumann * configure.in: MFH * configure.in: Add a big disclaimer regarding register_globals. It just bit me again but now on a live customer site :-/ 2002-05-01 Derick Rethans * main/php_version.h configure.in: - Update version number * main/php_version.h NEWS configure.in: - Go with 4.2.1rc1 2002-05-01 Markus Fischer * ext/sockets/php_sockets.h ext/sockets/sockets.c: - Rename setopt and getopt to set_option and get_option, provide alias. * ext/sockets/sockets.c: - Fix couple of problems with socket_create_pair(): - Force fourth argument to be passed by reference - Since the argument is modified there is no need to force it to be an array since it's destroyed anyway - Only modify the argument if socketpair() was successfully - Fix string modified for error message message - Set global last_error when socketpair() fails * ext/sockets/sockets.c: - Add SOMAXCONN constant. 2002-05-01 Wez Furlong * ext/openssl/openssl.c: Fix for #16885 * ext/openssl/openssl.c: No asserts in branch * ext/openssl/openssl.c: MFH fix for #16940, compiler warnings and TSRMLS build fixes. * ext/openssl/openssl.c: Probable fix for #16940. 2002-05-01 Markus Fischer * ext/sockets/sockets.c: - WS fixes * NEWS: - Mention the socket_select() API change * ext/sockets/sockets.c: - MFH fix for socket_select() and some minor memory leak; NEWS entry follows. 2002-05-01 Jason Greene * ext/sockets/sockets.c: Changed socket_select to force reference copy, the older code would modify all references Also fix small memory leak. 2002-04-30 Harald Radi * ext/overload/overload.c: ZE2 compatibility fixes 2002-04-30 Markus Fischer * ext/sockets/sockets.c: - Forgot to update proto * ext/sockets/sockets.c: - Allow resetting the module global last_error too. 2002-04-30 Sebastian Bergmann * ext/mbstring/mbfilter_cn.c ext/mbstring/mbfilter_tw.c: More unused variables. 2002-04-30 Stanislav Malyshev * ext/standard/aggregation.c: Fix ZE1 build 2002-04-30 Harald Radi * NEWS: MFH 2002-04-30 Sebastian Bergmann * ext/mbstring/mbfilter_kr.c: Fix ZTS build. Remove unused variables. * main/config.w32.h: Add missing #define's. 2002-04-30 Harald Radi * NEWS: 2002-04-30 Sebastian Bergmann * win32/php4dll.dsp win32/php4dllts.dsp: Add new ext/mbstring/mbfilter_*.c files. 2002-04-30 Sascha Schumann * ext/standard/var_unserializer.c: Touch file 2002-04-30 Dan Kalowsky * ext/odbc/php_odbc.c: reverting the cursor change as it seems to break many ODBC drivers. * ext/odbc/php_odbc.c: re-setting the CURSOR back to DYNAMIC rather than FORWARD_ONLY. This change broke many other ODBC drivers (obviously testing wasn't extensive). 2002-04-30 Rui Hirokawa * ext/mbstring/mbfilter.c ext/mbstring/mbregex.c: fixed compile warning with Visual C++. * ext/mbstring/mbfilter_cn.c ext/mbstring/mbfilter_cn.h ext/mbstring/mbfilter_ja.c ext/mbstring/mbfilter_kr.c ext/mbstring/mbfilter_kr.h ext/mbstring/mbfilter_tw.c ext/mbstring/mbfilter_tw.h ext/mbstring/mbstring.c ext/mbstring/unicode_table_cn.h ext/mbstring/unicode_table_kr.h ext/mbstring/unicode_table_tw.h ext/mbstring/config.m4 ext/mbstring/mbfilter.c ext/mbstring/mbfilter.h: added simplified chinese, traditional chinese, korean support to mbstring. Note that this feature is experimental. 2002-04-30 Stanislav Malyshev * ext/standard/browscap.c: ZE2 compatibility fix * ext/standard/aggregation.c: ZE2 compatibility fixes 2002-04-30 Jani Taskinen * ext/standard/tests/file/003.phpt: revert last bogus change. There is bug in is_file() 2002-04-30 Uwe Steinmann * ext/domxml/php_domxml.c ext/domxml/php_domxml.h: - added function domxml_parser_set_keep_blanks() 2002-04-30 Frank M. Kromann * ext/mbstring/mbstring.dsp: Adding missing files to project 2002-04-30 Sebastian Bergmann * ext/standard/file.c: Fix ZTS build. 2002-04-30 Wez Furlong * ext/standard/http_fopen_wrapper.c: Make use of new flag so that we can buffer http headers when we know that the stream is not intended to be used in require/include. * ext/standard/file.h ext/standard/file.c ext/standard/basic_functions.c: Implement user-space funtions to operate on stream contexts. * ext/standard/tests/file/003.phpt: Fix is_file test. * main/streams.c: Remove debug code that should not have been committed. * main/network.c: Remove this; it should not have been commited * main/main.c: revert... * main/main.c main/network.c main/php_streams.h main/streams.c: Implement context option setting API. Add/amend debugging code for sockets. Add a flag that will help the http wrapper optimize itself when it is not being used for include/require. 2002-04-29 Jani Taskinen * pear/pear.m4: MFH: Add the shared extension check. * ext/ming/config.m4: Never add libraries without checking that they exist and can be linked. 2002-04-29 Harald Radi * ext/com/COM.c: MFH * ext/com/COM.c: RETURN_NULL() is defined with braces while RETURN_TRUE and RETURN_FALSE are defined without. seems not very consistent ? 2002-04-29 Stanislav Malyshev * ext/standard/var.c: MFH * ext/standard/var.c: Add comments for the fix * ext/standard/var.c: Fix here too 2002-04-29 Harald Radi * ext/com/COM.c: MFH * ext/com/COM.c: functions returned FALSE in case of error and the oo api returned NULL. make them both behave equal (return NULL, as FALSE can be a valid value). 2002-04-29 Stanislav Malyshev * ext/standard/var.c: MFH serializer fix * ext/standard/var.c: Yet another serialization fix - for incomplete class 2002-04-29 Jani Taskinen * ext/recode/config.m4 ext/recode/recode.c: Make it possible to use recode 3.5 too. (happy now Wez? :) * NEWS: Sync with PHP_4_2_0 branch. 2002-04-29 Markus Fischer * ext/sockets/sockets.c: - Fix WS and CS a bit * ext/sockets/php_sockets.h ext/sockets/sockets.c: - Store last errno in the module global 'last_error' implicitely - Set the global 'last_error' explicitely for functions which can't return an error withing a single socket context (socket_create and socket_select) - Modified socket_last_error() to return global modules last error if no socket resource is given - Added a couple of more E_WARNING messages in case something goes foobar so the user isn't left alone in the dark. 2002-04-29 Mika Tuupola * pear/File/Find.php: * fixed the maxrecursion in mapTreeMultiple() 2002-04-29 Yasuo Ohgaki * NEWS: Added touch fix * ext/standard/filestat.c: MFH touch bag fix * NEWS: MFB * NEWS: Added NEWS entry for PostgreSQL function rename. Removed duplicate entry. 2002-04-29 Stig Bakken * pear/package-pear.xml: * version will be 0.10 * pear/PEAR/Packager.php: * slight cleanup * pear/PEAR/Packager.php: * call the right parent constructor * pear/PEAR/Command/Install.php: * PEAR_Installer constructor now expects only the UI object * pear/PEAR/Command/Remote.php: * PEAR_Common::downloadHttp no longer wants a config object * pear/PEAR/Common.php: * always set $this->config (use PEAR_Config::singleton) * rename setFrontend to setFrontendObject * add validPackageName method * added downloadHttp callback types setup, connfailed and writefailed * no more passing config objects around * pear/PEAR/Installer.php: * use the downloadHttp method w/callback 2002-04-29 Rui Hirokawa * ext/ming/config.m4: shlib suffix was not defind and rint() was not found without -lm. 2002-04-28 Jani Taskinen * build/rules.mk: Fixed bug: #16858 2002-04-28 Sascha Schumann * ext/standard/url_scanner_ex.c: touch file * ext/standard/url_scanner_ex.c: Touch generated file 2002-04-28 Sebastian Bergmann * main/config.w32.h main/internal_functions_win32.c win32/php4dll.dsp win32/php4dllts.dsp: Enable bundled build of ext/ctype and ext/mbstring on Win32. 2002-04-28 Stanislav Malyshev * ext/standard/var_unserializer.c ext/standard/var_unserializer.re ext/standard/var.c: MFH: serializer/unserializer fix * ext/standard/var.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re: Fix couple of nasty serializer bugs: a) When array unserializer encounters less data than it expects (like: a:1:{}) it crashes. I don't understand exactly why it does, but the fact is it does. So now it should catch "}" and bail out. b) When array/object data are serialized, the count is written by hash count. However, it can be that in-loop check fails and less data than expected will then be written into the array. Which, due to a), would crash on unserialize. So now it will write empty entries in place of entries it cannot serialize (the other choice would be make two passes on the data, which I don't like). 2002-04-28 Thies C. Arntzen * ext/standard/url_scanner_ex.c: timestamp * NEWS ext/session/php_session.h ext/session/session.c ext/standard/url_scanner_ex.c ext/standard/url_scanner_ex.h ext/standard/url_scanner_ex.re: revert session_set_userdata - diffent patch will come shortly 2002-04-28 Stig Bakken * pear/package.dtd: * forgot script element in release contents * pear/PEAR/Common.php pear/package.dtd: * package.dtd: version 1.0b7 - added element - added