Compare commits

..
1136 Commits
Author SHA1 Message Date
SVN Migration a286e992fd This commit was manufactured by cvs2svn to create tag 'php_5_0_4'. 2005-04-01 22:02:17 +00:00
Zeev Suraski 6118b0b738 Roll 5.0.4 2005-03-30 21:43:12 +00:00
Joe Orton 2fe662392a MFH: Mark private functions as static. 2005-03-30 13:52:39 +00:00
Edin Kadribasic 7a48dfb28e Update instruction from the documentation project (Philip Olson) 2005-03-30 13:13:57 +00:00
Ilia Alshanetsky 67bf61b087 patch reverted. 2005-03-29 17:32:37 +00:00
Zeev Suraski e3d3eaddf1 MFH minor SOAP fix (no worries - it was a tiny bug, the reason
a lot of tests are affected is that a lot of them made the same
wrong assumption - it won't break real world code)
2005-03-29 13:14:59 +00:00
Greg Beaver c4bf1f8f65 update to current bundle ideal 2005-03-28 17:05:50 +00:00
Greg Beaver e1d1c8d901 merge in PEAR 1.3.5 2005-03-28 16:46:06 +00:00
Ilia Alshanetsky 805a596542 MFH: revert copy patch. 2005-03-27 15:53:30 +00:00
Derick Rethans 5663cf0e81 - Back to -dev
#- This is important for the snapshot builder!
2005-03-26 19:17:11 +00:00
Zeev Suraski a14f4684a1 Roll RC2 2005-03-24 08:23:37 +00:00
Andi Gutmans 1b12c6b362 - Fix typos 2005-03-24 01:11:35 +00:00
Antony Dovgal cb49e8b1ce MFH: fix leak when register_long_arrays is off 2005-03-24 00:17:53 +00:00
Moriyoshi Koizumi d2928e0af0 - Temporary reversion. 2005-03-23 23:56:38 +00:00
Moriyoshi Koizumi f3396e9ef2 - BFN. 2005-03-23 23:31:02 +00:00
Moriyoshi Koizumi a613be3e96 - MFH: fix bug #32311 (mb_encode_mimeheader() does not properly escape
characters).
2005-03-23 23:22:55 +00:00
Moriyoshi Koizumi 8cdc2fec19 - MFH: Add sanity check in iconv_mime_encode(). Leaving the third parameter
unspecified would yield bus error.
- MFH: Add testcase for the bug.
2005-03-23 23:08:25 +00:00
Dmitry Stogov c9b44080d2 windows compatibility fix 2005-03-23 15:12:27 +00:00
Dmitry Stogov 5c8567e212 Allow define connection timeout throught "connection_timeout" option in SoapClient constructor. 2005-03-23 08:08:34 +00:00
Marcus Boerger d56d1de230 - MFH Notices shouldn't be treatedas errors and thus not being conidered to
be converted to exceptions.
2005-03-23 07:57:17 +00:00
Dmitry Stogov 6a12eef216 Fixed bug #31695 (Cannot redefine endpoint when using WSDL) 2005-03-23 07:11:39 +00:00
foobar 0a4ced10ed MFH 2005-03-23 00:44:43 +00:00
Antony Dovgal 7d48c9c32d MFH: fix #28803 (enabled debug causes bailout errors with CLI on AIX
because of fflush() called on already closed filedescriptor)
2005-03-22 15:09:20 +00:00
Dmitry Stogov b2a62cf620 Fixed bug #30106 (SOAP cannot not parse 'ref' element. Causes Uncaught SoapFault exception) 2005-03-22 10:18:49 +00:00
Derick Rethans 91f51b34d4 - MFH: Changed to reflect "current practise" 2005-03-22 09:01:43 +00:00
Marcus Boerger 2748841db5 - Fixed bug #32394 offsetUnset() segfaults in a foreach 2005-03-21 20:13:54 +00:00
Andi Gutmans 921d5d6a30 - Fix memset() bug (Joe Orton) 2005-03-21 16:22:10 +00:00
Dmitry Stogov 77687e57bf Support for <soap:body> "parts" attribute. 2005-03-21 15:57:16 +00:00
Dmitry Stogov a8ec99c299 Fixed wrong WSDL in test files 2005-03-21 15:53:32 +00:00
Anantha Kesari H Y e2fccffa2d NetWare LibC headers have sys/param.h 2005-03-21 08:55:43 +00:00
Anantha Kesari H Y 1a429389b7 NetWare LibC headers have sys/param.h 2005-03-21 08:46:50 +00:00
Anantha Kesari H Y 0f8e764685 NetWare can make use of configure generated php_config.h 2005-03-21 08:43:57 +00:00
Anantha Kesari H Y d6416633d2 NetWare LibC headers have sys/param.h 2005-03-21 08:34:37 +00:00
Ilia Alshanetsky 296b11c9fb MFH: Detect shtool properly when build-dir != php source dir. 2005-03-20 19:47:24 +00:00
Dmitry Stogov c091e91140 Fixed SoapFault::details passing 2005-03-20 09:55:33 +00:00
Zeev Suraski fe15677f4e Fix the lock (the other patch would probably also work, but it's more error
prone and it's better to be on the safe side)
2005-03-20 09:03:07 +00:00
Marcus Boerger fe86da56e8 - MFH 2005-03-19 15:38:19 +00:00
Marcus Boerger 1442b416a8 - MFH 2005-03-19 15:15:51 +00:00
Marcus Boerger 6b4bd35d11 - MFH Add new test 2005-03-19 15:10:56 +00:00
foobar a7f8fb3461 reorder 2005-03-19 14:30:03 +00:00
Marcus Boerger 582697ae5c - MFH 2005-03-19 14:29:18 +00:00
Antony Dovgal 811b268fb1 MFH: fix segfault in bzopen() 2005-03-19 13:56:31 +00:00
foobar 43c40d602b MFH 2005-03-18 23:25:32 +00:00
Dmitry Stogov 3e4ea8305d doc should not be freed here, as it is used later in the code path. 2005-03-18 18:31:25 +00:00
Greg Beaver 37485d4d38 update to newest packages 2005-03-18 01:59:00 +00:00
Harrie Hazewinkel 756018250f Added SNMPv2 support. 2005-03-17 20:51:01 +00:00
Harrie Hazewinkel af5c1b862d Adding SNMPV2 functions for data retrieval. 2005-03-17 19:47:48 +00:00
Antony Dovgal 0660599ae2 MFH: typofix 2005-03-17 18:12:30 +00:00
Ilia Alshanetsky e13089d1da Fixed build of exif extension on win32. 2005-03-17 17:20:35 +00:00
Ilia Alshanetsky 20251c4f37 MFH: Fixed compiler warning on win32. 2005-03-17 17:16:49 +00:00
Zeev Suraski 8108a04110 RC1 -> RC2-dev 2005-03-17 13:11:38 +00:00
foobar 09cdac3d98 MFB: remove unused subst 2005-03-17 08:13:47 +00:00
foobar 27586a947a fix build 2005-03-17 08:12:14 +00:00
Ilia Alshanetsky 6368b9fc66 MFH: Fixed bug #32326 (Check values of Connection/Transfer-Encoding
case-incentively)
2005-03-16 20:31:01 +00:00
foobar bedb66ba33 MFH: - Remove these relics from era when TSRM was optional. 2005-03-16 06:36:54 +00:00
Wez Furlong 7394b3734b MFH: don't call rshutdown twice for dl()'d modules. 2005-03-16 04:19:20 +00:00
Wez Furlong 8c9a6e1436 MFH: dl()'d module shutdown fix 2005-03-15 23:47:12 +00:00
Ilia Alshanetsky 65a055397f MFH: Fixed possible usage of str without being initialized. 2005-03-15 00:29:39 +00:00
foobar d415b23ff6 MFH 2005-03-14 21:12:26 +00:00
foobar 416122f885 BFN 2005-03-14 21:00:29 +00:00
foobar 256d015dd5 MFH: - Fixed bug #18613 (Multiple OUs in x509 certificate not handled properly) 2005-03-14 21:00:22 +00:00
Zeev Suraski 7e9d0f7898 MFH 2005-03-14 12:42:55 +00:00
Anantha Kesari H Y b5937e49d8 NetWare specific stat structure changes 2005-03-14 11:01:00 +00:00
Anantha Kesari H Y b5e227d4c5 PHP_OS and PHP_UNAME for NetWare are getting populated from the ph_config.h(configure.in) 2005-03-14 09:41:39 +00:00
Anantha Kesari H Y a105687232 For cross compiler uname's output while running on build machine can not be stored in PHP_OS and PHP_UNAME 2005-03-14 09:33:15 +00:00
Stanislav Malyshev b9a9d572d8 ws 2005-03-14 09:13:14 +00:00
foobar 5b9ce68207 - Fixed bug #30609 (cURL functions bypass open_basedir) 2005-03-14 09:02:42 +00:00
Zeev Suraski 98f0b33836 RC1 2005-03-14 08:57:43 +00:00
Moriyoshi Koizumi 74a947383f - Turn off incorrect case folding to let test over. 2005-03-14 01:14:52 +00:00
Zeev Suraski 084e58fa8b Prepare to roll 5.0.4RC1 2005-03-13 19:57:05 +00:00
Stanislav Malyshev 07bcc295c4 Do not convert ZEND_HANDLE_FP to ZEND_HANDLE_STREAM but allow using reader/closer
on it
2005-03-13 17:48:12 +00:00
Stanislav Malyshev 5b80f925cf Fix get_extension_funcs() - extension names are now lowercased, so should
be function arguments.
2005-03-13 15:29:10 +00:00
Marcus Boerger 008173f899 - BFN 2005-03-13 13:26:10 +00:00
Marcus Boerger 37d8de4ba6 - MFH 2005-03-13 13:24:26 +00:00
Marcus Boerger 7256d2ca6a - Partly MFH: return value check fix 2005-03-12 23:12:36 +00:00
Andrey Hristov c8df0dcb0a BFN 2005-03-12 10:14:10 +00:00
Andrey Hristov e8c97542bf Fixed #30871 2005-03-12 10:12:49 +00:00
Anantha Kesari H Y 33a4feed28 removing redundant CLIB_STAT_PATCH 2005-03-11 11:42:10 +00:00
Anantha Kesari H Y 776ebe8f1f removing redundant NEW_LIBC checks
In NetWare statfs f_bavail member is known as f_bfree
NetWare LibC has pwd.h
2005-03-11 11:20:24 +00:00
Anantha Kesari H Y 3fc55e77e6 NetWare LibC has pwd.h and removing redundant CLIB_STAT_PATCH 2005-03-11 11:16:19 +00:00
Anantha Kesari H Y a012d5a5dc NetWare has a proper pthreads support 2005-03-11 11:13:03 +00:00
Anantha Kesari H Y da3d88851d NetWare can make use autoconf generated tsrm_config.h 2005-03-11 11:12:07 +00:00
Anantha Kesari H Y 3e52976f30 NetWare LibC has lstat 2005-03-11 11:09:42 +00:00
Anantha Kesari H Y 4d93757dca Netware can make use of autoconf generated tsrm_config.h 2005-03-11 11:08:24 +00:00
Anantha Kesari H Y b56adc718b As NetWare LibC has optind and optarg macros defined in unistd.h our local variables were getting mistakenly preprocessed so undeffing optind and optarg 2005-03-11 11:04:03 +00:00
Anantha Kesari H Y 36adf916d9 NetWare don't have sendmail binary so need this sendmail.c smarthost implementation 2005-03-11 10:57:08 +00:00
Anantha Kesari H Y 3f5f747d90 changing the windows style directory seperator in netinet\in.h to netinet/in.h 2005-03-11 10:49:24 +00:00
Anantha Kesari H Y ae82f51fc0 time.h is available in NetWare LibC.
path sperator has been changed from \ to / while including netware\sendmail_nw.h
2005-03-11 10:48:06 +00:00
Anantha Kesari H Y bfb55aa96d removed redundant NEW_LIBC checks for NetWare 2005-03-11 09:07:34 +00:00
Anantha Kesari H Y fbd2655dff In NetWare LibC WTERMSIG is avaliable as WIFTERMSIG 2005-03-11 09:01:52 +00:00
Anantha Kesari H Y bbef4e8da2 NetWare LibC has pwd.h 2005-03-11 08:51:08 +00:00
Anantha Kesari H Y 250543afc9 Netware LibC has mkstemp 2005-03-11 08:18:14 +00:00
Anantha Kesari H Y 553245e48d removed NetWare specific NEW_LIBC checks 2005-03-11 08:11:28 +00:00
Anantha Kesari H Y 94d9d3f920 NetWare LibC does not have search.h 2005-03-11 07:02:32 +00:00
Anantha Kesari H Y 1ace2e5ac7 NetWare LibC has pwd.h 2005-03-11 06:55:22 +00:00
Anantha Kesari H Y 047f1a26a0 NetWare LibC's sys/types.h does not include sys/select.h implicitly as it is the case with Linux LibC 2005-03-11 06:51:01 +00:00
Marcus Boerger a8aaf58df3 - Irrelevant 2005-03-11 01:31:42 +00:00
Marcus Boerger 3d7b5b792e - Bugfix #30266 2005-03-11 01:14:29 +00:00
Ilia Alshanetsky ad6e24cfb1 MFH: Final set of fixes for bug #27633. 2005-03-10 23:38:02 +00:00
Marcus Boerger f10ce39b79 - MFH Rename test script 2005-03-10 14:06:28 +00:00
Anantha Kesari H Y f487c128cc NetWare can use of ./configure generated php_config.h 2005-03-10 13:42:35 +00:00
Anantha Kesari H Y 62ee4aa49f NetWare Specific stat member changes 2005-03-10 13:37:54 +00:00
Anantha Kesari H Y a62134d159 NetWare LibC has pwd.h 2005-03-10 13:33:35 +00:00
Marcus Boerger c883ae3d1f - BFN 2005-03-10 13:27:14 +00:00
Marcus Boerger 84bd08261f - MFH Bugfix #28442 2005-03-10 13:24:33 +00:00
Anantha Kesari H Y c216440f1c NetWare LibC has pwd.h and removing the redundant NEW_LIBC checks 2005-03-10 12:26:14 +00:00
Anantha Kesari H Y f3bc8a341b NetWare LibC has pwd.h 2005-03-10 12:23:12 +00:00
Anantha Kesari H Y 8d1c55499d NetWare LibC has netdb.h 2005-03-10 12:10:57 +00:00
Anantha Kesari H Y 49afbfac4a NetWare stat structure difference has been handled 2005-03-10 11:41:00 +00:00
Joe Orton bd07142b91 MFH: fix /*-within-comment warning. 2005-03-10 11:40:03 +00:00
Anantha Kesari H Y 6cd2919f3d Autoconf based build can be used for NetWare 2005-03-10 11:34:15 +00:00
Anantha Kesari H Y a90af34542 NetWare LibC has param.h and pwd.h 2005-03-10 11:32:36 +00:00
Anantha Kesari H Y b8e9edcce3 NetWare can make use of ./configure generated zend_config.h 2005-03-10 11:30:44 +00:00
Joe Orton bcc8aad178 MFH: - Fixed bug #31717: Reject PATH_INFO if "AcceptPathInfo off" is used. 2005-03-10 11:23:57 +00:00
Anantha Kesari H Y 8993ccd75c This fix is needed for cross compilation to go through 2005-03-10 10:05:28 +00:00
Anantha Kesari H Y 5ee2605386 This patch is needed for cross compilation to go through 2005-03-10 09:50:37 +00:00
Marcus Boerger 1a45dcf5ea - BFN 2005-03-10 02:35:39 +00:00
Marcus Boerger 8c142dd228 - MFH 2005-03-10 02:34:11 +00:00
Marcus Boerger 3ba37514df - BFN 2005-03-10 02:05:06 +00:00
Marcus Boerger d7cc37874c - MFH 2005-03-10 01:58:13 +00:00
Antony Dovgal c07ee38ff3 MFH: fix compile warnings 2005-03-09 21:58:47 +00:00
Ilia Alshanetsky 5f2280e9f8 MFH: Fixes to ascii downloads on win32. 2005-03-09 20:52:54 +00:00
Derick Rethans 56adfe1f3c - MF43: Fixed bug #28067 (partially incorrect utf8 to htmlentities mapping). 2005-03-09 10:12:41 +00:00
foobar a39d2b5747 MFH 2005-03-08 21:45:38 +00:00
Johannes Schlüter a2b38741a1 - BFN 2005-03-08 21:38:27 +00:00
Johannes Schlüter 5cc18c9967 - MFH 2005-03-08 21:37:51 +00:00
foobar 9b4400830f MFH 2005-03-08 21:23:21 +00:00
Marcus Boerger 916806055c - MFH 2005-03-07 19:34:03 +00:00
foobar 25203ef3bc RBFN 2005-03-07 18:14:18 +00:00
Zeev Suraski ba31cb7b88 Revert // </script> patch 2005-03-07 16:48:12 +00:00
Ilia Alshanetsky f3ffd7b3f9 Fixed bug #32210 (proc_get_status() sets "running" always to true). 2005-03-07 16:19:31 +00:00
Marcus Boerger 274e37db02 - MFH avoid exception problems 2005-03-07 01:15:03 +00:00
Marcus Boerger 1ecb6ccd16 - MFH Allow length 0 as default (e.g. skip param) 2005-03-07 00:17:51 +00:00
foobar 5be2acc65d MFB: Fix VPATH build 2005-03-06 23:16:53 +00:00
Marcus Boerger ffbe3b0816 - MFH Bugfix #28840 2005-03-06 21:41:38 +00:00
Ilia Alshanetsky d74acc15cc MFH: Make html_entity_decode() 15-20% faster by avoiding pointless string
duplication.
2005-03-06 19:37:17 +00:00
Ilia Alshanetsky 437786b115 MFH: Fixed bug #29424 (width and height inverted for JPEG2000 files). 2005-03-06 17:04:22 +00:00
foobar f262d06686 Fixed compile warning (bug #32046) 2005-03-06 16:22:22 +00:00
foobar 0d7b5257a8 MFH: Fix compile warning (bug #32047) 2005-03-06 15:55:53 +00:00
Derick Rethans 1d9846b54a - Make sure to note that this involves SOAP. 2005-03-05 17:52:45 +00:00
Dmitry Stogov 5d694d0474 Fixed bug #32115 (dateTime encoding of timezone incorrect) 2005-03-05 13:26:56 +00:00
Marcus Boerger 0d144466a8 - MFH 2005-03-05 11:38:29 +00:00
foobar e6dad2a5c3 MFH 2005-03-04 15:15:50 +00:00
Ilia Alshanetsky e862541306 Removed unused variables. 2005-03-04 00:35:23 +00:00
Marcus Boerger d0b22dc5c8 - BFN 2005-03-03 10:46:33 +00:00
Marcus Boerger 5fa9eaca9a - MFH fix #32134
- Fix tests
2005-03-03 10:45:42 +00:00
Zeev Suraski 10b6108ac1 MFH 2005-03-03 09:56:44 +00:00
Ilia Alshanetsky b350e15f3c MFH: Fixed bug #32160 (file truncation in copy() when source & destination are
the same).
2005-03-03 03:30:23 +00:00
Moriyoshi Koizumi 8392ed2358 - MFH 2005-03-02 19:28:25 +00:00
Stefan Esser e1d798465b MFH 2005-03-02 18:22:40 +00:00
Rob Richards 63244c0e3d BFN 2005-03-02 18:14:34 +00:00
Rob Richards 54f777ef1c MFH: Fixed bug #32001 (xml_parse_into_struct() exceeds maximum execution time) 2005-03-02 18:14:01 +00:00
Marcus Boerger af6894dc7b - MFH 2005-03-01 23:42:29 +00:00
foobar 885d8e8733 update 2005-03-01 23:26:08 +00:00
Ilia Alshanetsky a326342b93 MFH: Fixed bug #31792 (getrusage() does not provide ru_nswap value). 2005-03-01 21:33:03 +00:00
Andrei Zmievski 4b550d43ef Allow = sign in long option argument.
Fixes PEAR bug #1831.
2005-03-01 18:20:26 +00:00
Anantha Kesari H Y e522104f1d NetWare allows directory seperator as \ and / 2005-03-01 15:01:08 +00:00
Stefan Esser 71121a02b1 MFH 2005-03-01 13:53:19 +00:00
Antony Dovgal 13ea8afdc5 MFH: checks for negative values to gmp_sqrt(), gmp_powm(), gmp_sqrtrem()
and gmp_fact() to prevent SIGFPE
2005-03-01 13:13:07 +00:00
Marcus Boerger d2f43d60f9 - Fix warning 2005-03-01 10:13:15 +00:00
Marcus Boerger a922fbb89c - BFN 2005-03-01 10:11:07 +00:00
Marcus Boerger 8ae159da78 - MFH 2005-03-01 10:09:05 +00:00
foobar ab90623f49 MFH: - Fixed bug #31672 (</script> not considered closing tag if
MFH:   preceded by one-line comment)
2005-03-01 02:21:58 +00:00
Johannes Schlüter 7e81e9619e - MFH 2005-03-01 00:25:09 +00:00
foobar be5e7382ef typo 2005-02-28 16:45:11 +00:00
Stefan Esser cebd47134a MFH 2005-02-28 16:33:09 +00:00
Wez Furlong b20bb1137b MFH: install mbstring headers 2005-02-28 05:28:25 +00:00
Ilia Alshanetsky 2cdf30c490 MFH: Fixed compiler warnings. 2005-02-27 17:08:26 +00:00
Edin Kadribasic e6e21db0a8 MFH: Allow arbitrary files to be added to distro with ADD_DIST_FILE(filename) 2005-02-26 01:10:50 +00:00
Edin Kadribasic aeaba53b0b MFH: Added .reg files to the disto (were added manually) 2005-02-26 00:38:27 +00:00
Frank M. Kromann b103d7ba75 MFH: FreeTDS does not have support for DBTEXTLIMIT 2005-02-25 23:25:33 +00:00
Edin Kadribasic 233bb83463 MFH: (--enable-debug-pack) 2005-02-25 23:00:17 +00:00
Ard Biesheuvel 938859d87c MFH: bug #31597 2005-02-25 13:44:26 +00:00
Antony Dovgal 9045591353 MFH: allow building oci8 as shared 2005-02-25 11:32:01 +00:00
Georg Richter f2d8033436 fix for bug #31939 2005-02-25 08:42:31 +00:00
Ilia Alshanetsky de74e9b003 MFH: Fixed bug #32081 (default socket value is not being used). 2005-02-24 23:59:50 +00:00
Edin Kadribasic 96abb7e0a5 MFH: Offical zip files have -Win32 suffix 2005-02-24 23:31:37 +00:00
Marcus Boerger 6e529c486a - MFH 2005-02-24 20:54:12 +00:00
Andi Gutmans 459631d679 - MFH 2005-02-24 18:19:09 +00:00
foobar f468d909a1 MFH: Fix comment 2005-02-24 11:35:10 +00:00
Dmitry Stogov cfe99e0e98 Fixed bug in ZEND_POST_INC/ZEND_POST_DEC handlers.
These opcodes assume IS_TMP_VAR as result.
2005-02-24 08:52:42 +00:00
Ilia Alshanetsky 11fb10b74d MFH: Increase maximum mmapable file size to 2mb from 1mb. 2005-02-23 22:41:24 +00:00
Ilia Alshanetsky 77d0be75a8 MFH: fixed compiler warning. 2005-02-23 18:53:19 +00:00
Ilia Alshanetsky 905505d0f0 MFB_4_3: Fixed bug #29521 (compress.bzip2 returns error when used with http
wrapper)
2005-02-23 18:48:57 +00:00
Moriyoshi Koizumi 59146cb2b8 - MFH: Synch with the latest checkouts. (include fix by Joe Orton. Thanks.) 2005-02-23 13:35:57 +00:00
Derick Rethans 24e352a0fd - MFH: fixed bug #32076 (ReflectionMethod :: isDestructor() always return
true).
2005-02-23 12:33:47 +00:00
Marcus Boerger b935312966 - MFH 2005-02-23 01:17:20 +00:00
Ilia Alshanetsky 4b0d2f3b71 MFH: Fixed bug #31288 (Possible crash in mysql_fetch_field(), if
mysql_list_fields() was not called previously).
2005-02-22 14:59:30 +00:00
Marcus Boerger 05e84a25aa - MFH 2005-02-22 14:54:33 +00:00
foobar 04e8936f21 MFH: nuke unused variables when PCRE is not compiled statically into PHP 2005-02-22 14:46:15 +00:00
Marcus Boerger f4f090ccbe - MFH 2005-02-22 11:46:36 +00:00
Moriyoshi Koizumi ceca9448a9 - One more entry to go. 2005-02-22 10:08:50 +00:00
Moriyoshi Koizumi 3308133d4a - Reorder. 2005-02-22 10:03:23 +00:00
Moriyoshi Koizumi e9d101a685 - MFH: fix bug #32063 (mb_convert_encoding() ignores named entity 'alpha') 2005-02-22 10:02:14 +00:00
Ilia Alshanetsky 908e2c4650 MFH: Fixed bug #31515 (Improve performance of scandir() by factor of 10 or so). 2005-02-22 00:24:51 +00:00
foobar 547796ae72 Added missing skipif.inc (bug #31940) 2005-02-21 21:41:58 +00:00
Moriyoshi Koizumi 54a9f3cb5b - WS fix. 2005-02-21 15:15:08 +00:00
Moriyoshi Koizumi 07d3b15863 - MFH: add missing entry. 2005-02-21 15:11:07 +00:00
Moriyoshi Koizumi a9f320390e - MFH: fix bug #30868 (evaluated pointer comparison in mbregex causes compile
failure).
2005-02-21 10:20:23 +00:00
Moriyoshi Koizumi 435e835bbf - BFN 2005-02-21 10:14:29 +00:00
Moriyoshi Koizumi d47d7e20ef - MFH: fix bug #30573 (compiler warning due to invalid type cast). 2005-02-21 10:13:22 +00:00
Moriyoshi Koizumi 8231031995 - MFH: fix bug #29989 (type re_registers redefined in oniguruma.h) 2005-02-21 09:45:19 +00:00
Moriyoshi Koizumi b4360b0aba - MFH: fix compiler warnings. 2005-02-21 08:01:03 +00:00
Moriyoshi Koizumi fbe6a29b11 - MFH: add testcases for bug #28220 and #30549. 2005-02-21 07:46:10 +00:00
SVN Migration a7c628ef33 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-02-21 07:45:39 +00:00
Greg Beaver 051997039a upgrade to PEAR 1.3.5 2005-02-21 00:55:08 +00:00
Moriyoshi Koizumi 3e3f10efbb - BFN & some 2005-02-20 23:14:24 +00:00
Moriyoshi Koizumi c298ea82ca - MFH: Update libmbfl
- MFH: Update oniguruma to 3.7.0.
2005-02-20 23:02:53 +00:00
SVN Migration 8190860776 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-02-20 22:20:25 +00:00
Rui Hirokawa 40aa1c6e73 MFH: fixed #31987 zend-multibyte in ZTS. 2005-02-19 14:36:07 +00:00
Derick Rethans f06bb200e5 - MFH: Fixed bug #32021: Crash caused by range('', 'z') 2005-02-18 13:39:44 +00:00
SVN Migration d9fb0a4da5 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-02-18 13:37:25 +00:00
Rob Richards 44186c14a4 BFN 2005-02-18 11:48:10 +00:00
Rob Richards c17a1a7645 MFH: Fixed bug #32011 (Fragments which replaced Nodes are not globaly useable) 2005-02-18 11:47:50 +00:00
Andi Gutmans 34af036d8e - Commit fix:
- Fixed bug #31960 (msql_fetch_row() and msql_fetch_array() dropping columns
  with NULL values). (Daniel Convissor)
2005-02-17 22:08:54 +00:00
Marcus Boerger 10af23e641 - MFH 2005-02-17 21:10:34 +00:00
Andi Gutmans 2211aac68f - MFH 2005-02-17 20:13:17 +00:00
Ilia Alshanetsky b75c100dc6 MFH: Fixed bug #27633 (Double \r problem on ftp_get in ASCII mode on Win32). 2005-02-17 15:38:07 +00:00
Ilia Alshanetsky 349c0cc61c MFH: Fixed bug #31440 ($GLOBALS can be overwritten via GPC when
register_globals is enabled).
2005-02-17 04:46:10 +00:00
foobar e7df907a10 MFH: - Compile fix for systems without int32_t typedef 2005-02-17 04:45:14 +00:00
foobar a7d70ccebf MFH: Quote macro names in AC_DEFUN() 2005-02-17 04:42:15 +00:00
foobar 419a87ddd8 MFH:- Fixed bug #29554 (compile failure when using --with-pspell=/usr/local) 2005-02-17 03:51:35 +00:00
Edin Kadribasic 4e502a7fc2 BFN 2005-02-16 09:59:28 +00:00
Edin Kadribasic b31a857c83 MFH: bugfix #31980 2005-02-16 09:56:30 +00:00
Ilia Alshanetsky 5e759d980e MFH: Fixed bug #31986 (Max nesting limit set too low). 2005-02-15 21:56:27 +00:00
Edin Kadribasic 09d4b25070 MFH 2005-02-15 14:29:01 +00:00
foobar 8054e6d951 MFH 2005-02-15 08:51:50 +00:00
Ilia Alshanetsky 54b442330c MFH: file upload path prunning. 2005-02-15 00:26:35 +00:00
foobar 324ea3636d MFH 2005-02-14 23:44:31 +00:00
Edin Kadribasic 61967a0318 MFH 2005-02-14 23:41:04 +00:00
Edin Kadribasic 4bb461b3d5 MFH 2005-02-14 23:04:18 +00:00
Marcus Boerger 1c840f70e2 - MFH 2005-02-14 21:03:52 +00:00
foobar fd1125627a MFH: nuke unused code + non-existing ini option 2005-02-14 08:25:30 +00:00
Wez Furlong 3b6bf6ab58 fix snaps 2005-02-13 21:40:28 +00:00
foobar 15531b60fc MFH: missing $Id$ tags 2005-02-13 17:54:31 +00:00
Marcus Boerger c8dfe73903 - MFH 2005-02-13 13:59:07 +00:00
SVN Migration 9acc7d2fd8 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-02-13 13:57:52 +00:00
Marcus Boerger d217efa8b6 - MFH Fix doc comment handling 2005-02-13 13:53:56 +00:00
Rui Hirokawa 64a60d5d70 MFH: added --enable-zend-multibute for win32 2005-02-13 13:03:28 +00:00
Marcus Boerger 2b321fb6ed - MFH Add new test 2005-02-12 18:40:50 +00:00
SVN Migration 2e680913da This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-02-12 18:40:20 +00:00
foobar beb6c638d9 MFH 2005-02-12 18:30:26 +00:00
foobar 0955c58d8e MFH: Not good idea. 2005-02-12 18:27:56 +00:00
foobar 0b5a97681a MFH: Removed unused set_h_errno macro 2005-02-12 18:15:03 +00:00
Marcus Boerger 0c607c2ecd - BFN and add test 2005-02-12 16:39:48 +00:00
Marcus Boerger cda9aeba03 - MFH 2005-02-12 16:39:31 +00:00
foobar d01de96f9a Revert this patch 2005-02-11 02:06:48 +00:00
Rob Richards 0542a6f2c2 MFH: fix segfault in array_walk when retval_ptr is empty
- such as when exception thrown
2005-02-10 23:00:53 +00:00
foobar 7c5e901f4d - Fixed bug #31920 (zend_strtod.c error: conflicting types for 'int8_t') 2005-02-10 22:19:55 +00:00
Antony Dovgal 6f475c1ce6 MFH: bug #28324 2005-02-10 19:40:53 +00:00
Pierre Joye 5bdea6fa79 - MFH: fix #30745 and #31853 2005-02-10 14:35:13 +00:00
Frank M. Kromann 04a262ffe2 MFH: change return value from false to true, when a statement was executed with warnings 2005-02-09 19:32:45 +00:00
Frank M. Kromann 2ab994fe0c MFH: Check for warnings and return the warning texts 2005-02-09 18:50:22 +00:00
Rasmus Lerdorf 85cab5a838 MFH fix for bug #31901 2005-02-09 16:23:31 +00:00
Rob Richards 9d44f00a6d BFN 2005-02-09 11:47:46 +00:00
Rob Richards e05a7a90c9 MFH: Fixed bug #31878 (Segmentation fault using clone keyword on nodes) 2005-02-09 11:47:12 +00:00
Rasmus Lerdorf ae9dcb1799 MFH eliminating a few more useless R* calls 2005-02-08 05:38:13 +00:00
Rasmus Lerdorf 82a60c6538 MFH and eliminate whitespace differences between HEAD and the branch to
make maintenance easier
2005-02-08 05:29:48 +00:00
Ilia Alshanetsky 870c5434fe MFH: Fixed bug #31527 (crash in msg_send() when non-string is stored without
being serialized).
2005-02-07 22:31:57 +00:00
Antony Dovgal 94be5fd002 MFH: fix leaks in ext/filepro 2005-02-07 13:31:42 +00:00
foobar d231b908a1 MFH: - Fixed bug #31858 (--disable-cli does not force --without-pear) 2005-02-07 12:51:25 +00:00
Zeev Suraski b25e990ffd Correct fix for #28803 2005-02-06 23:52:29 +00:00
Georg Richter 6b46618a76 MFH: fix for bug 29329 2005-02-05 11:02:10 +00:00
foobar b3726eb497 fix test 2005-02-04 23:24:06 +00:00
Dmitry Stogov eae934a6b7 Fixed bug #31832 (SOAP encoding problem with complex types in WSDL mode with multiple parts) 2005-02-04 15:42:27 +00:00
Derick Rethans 5bf33a2e83 - MFH: Fixed bug #31754 (dbase_open() fails for mode = 1). (Mehdi, Derick) 2005-02-04 14:29:05 +00:00
SVN Migration 2cb6431c2f This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-02-04 14:28:52 +00:00
foobar 17d094d5bb BFN 2005-02-04 13:10:19 +00:00
foobar 79f25b32a1 MFH: Fixed bug #31842 (*date('r') does not return RFC2822 conforming date string). 2005-02-04 13:09:09 +00:00
foobar e8cbe865f3 MFH: - Fixed bug #28227 (PHP CGI depends upon non-standard SCRIPT_FILENAME)
# Patch by: lukem at NetBSD dot org
2005-02-04 10:41:02 +00:00
Ilia Alshanetsky f01a236c09 MFH: Proper fix for bug #31796 . 2005-02-04 00:21:58 +00:00
Ilia Alshanetsky 3bee739456 MFH: Fixed bug #31796 (readline completion handler does not handle empty
return values).
2005-02-03 22:46:24 +00:00
foobar 126cd77070 MFH: Fix buildconf with BSD make 2005-02-03 17:42:59 +00:00
foobar c3bd38ba9b MFH: Fixed bug #28804 (ini-file section parsing pattern is buggy). 2005-02-03 03:02:16 +00:00
foobar f42d1090bb ws fix 2005-02-03 02:58:49 +00:00
Ilia Alshanetsky 33372e4d5d MFH: Fixed bug #31514 (open_basedir uses path_translated rather then cwd for .
translation).
2005-02-02 23:43:47 +00:00
Zeev Suraski b7fe870f06 MFH 2005-02-02 17:24:02 +00:00
Dmitry Stogov 22251bfa5b Fixed bug #31747 (SOAP Digest Authentication doesn't work with "HTTP/1.1 100 Continue" response) 2005-02-02 10:34:21 +00:00
Stanislav Malyshev 54ec8b914f test for Bug #31720 2005-02-02 10:31:15 +00:00
Stanislav Malyshev aa9bfc06e7 Fix #31720 Invalid object callbacks not caught in array_walk() (patch from Antony Dovgal) 2005-02-02 10:25:50 +00:00
Stanislav Malyshev 4e1e2eadec fix leak if function call fails 2005-02-02 10:24:50 +00:00
Dmitry Stogov 4f45d300fb Fixed bug #31755 (Cannot create SOAP header in no namespace) 2005-02-02 09:11:03 +00:00
Dmitry Stogov 8a7c2ff618 Fixed bugs #29767 and #31683 (__get and __set methods must not modify property name). 2005-02-02 07:19:02 +00:00
Ilia Alshanetsky 322d1e5439 MFH: Fixed bug #31797 (exif_read_data() uses too low nesting limit). 2005-02-01 23:28:31 +00:00
Stanislav Malyshev 10f83680b0 test for eval debug_backtrace bug 2005-02-01 19:02:17 +00:00
Stanislav Malyshev 8abcdde864 Fix debug_trace with eval (patch from Antony Dovgal) 2005-02-01 19:01:50 +00:00
Anantha Kesari H Y 83a37cefc1 NetWare is now having compliant pthreads implementation 2005-02-01 12:48:22 +00:00
Ilia Alshanetsky d49832983a MFH: Final version of filename upload handling. 2005-02-01 02:33:17 +00:00
Dmitry Stogov 4835d49c86 Fixed SIGSEGV when restoring WSDL without functions from cache 2005-01-31 15:08:36 +00:00
Dmitry Stogov 4337c68030 Empty "detail" was removed from SoapFault object. 2005-01-31 14:26:24 +00:00
Dmitry Stogov e06e987eb4 Fixed memory allocation bug. 2005-01-31 14:03:51 +00:00
Ilia Alshanetsky 9819666a00 MFH: Fix handling of INF/NAN in unserialize(). 2005-01-30 16:39:09 +00:00
Marcus Boerger 384625408b - MFH Fix severity 2005-01-28 20:25:26 +00:00
Georg Richter 4baa8ee0bc MFH: Fix for mysql_affected_rows and mysql_stmt_affected_rows 2005-01-28 17:37:42 +00:00
Antony Dovgal 6aa5793baf improve CS & error messages 2005-01-28 16:47:16 +00:00
Antony Dovgal 5dff4e8e40 add warning explaining why ftok() failed 2005-01-28 16:33:09 +00:00
Dmitry Stogov 26d147a798 Memory leak was fixed 2005-01-28 10:33:33 +00:00
Antony Dovgal d24c272e50 BFN (#31732) 2005-01-28 02:00:54 +00:00
Antony Dovgal e48794e58b fix #31732 (mb_get_info causes segfault) 2005-01-28 01:58:26 +00:00
Antony Dovgal 418c15ef14 MFH: change return type from NULL to FALSE when parameter parsing failed 2005-01-28 01:39:35 +00:00
Antony Dovgal 37ebffee0c fix posix_getsid() & posix_getpgid()
/* looks like copy&paste error first introduced in PHP 3.0.10 (!) */
2005-01-28 00:26:07 +00:00
Frank M. Kromann 4acc981ac4 MFH: Hack to fix crash caused by FBCAccess not returning errors when creating an index that exists in the database. 2005-01-27 20:21:32 +00:00
Ilia Alshanetsky bdd787626d MFH: Fixed bug #31705 (parse_url() does not recognize http://foo.com#bar). 2005-01-27 16:38:05 +00:00
Antony Dovgal 3250e630a3 fix leak in mysqli_fetch_array() when using invalid resulttype 2005-01-27 14:39:21 +00:00
Georg Richter 2b3b798d7d MFH: fix for bug #31710 2005-01-27 10:20:21 +00:00
Antony Dovgal e8812b2845 BFN 2005-01-27 01:18:13 +00:00
Antony Dovgal 516c2aa7da fix segfault when invalid field offset is passed to mysqli_fetch_field_direct() 2005-01-27 01:11:15 +00:00
Marcus Boerger 8126952c99 - MFH 2005-01-27 00:26:27 +00:00
SVN Migration b290efa0d3 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-01-27 00:26:14 +00:00
Derick Rethans e53ed77075 - MFH: There is no --with-apache2, only apxs2 2005-01-26 18:03:17 +00:00
Ilia Alshanetsky 906b0b4235 MFH: Fixed bug #31699 (unserialize() float problem on non-English locales). 2005-01-26 16:55:49 +00:00
Ilia Alshanetsky d7852a4930 Fixed bug #29733 (printf() handles repeated placeholders wrong).
(bugs dot php dot net at bluetwanger dot de, Ilia)
2005-01-26 00:02:46 +00:00
foobar 2d701541b4 massage 2005-01-25 23:43:10 +00:00
Ilia Alshanetsky f5f0390dbf MFH: Fixed bug #31465 (False warning in unpack() when working with *). 2005-01-25 22:51:35 +00:00
Andrei Zmievski 86b2558a5e MFB (Fix several egregious leaks in ext/browscap and sapi/embed). 2005-01-25 22:00:14 +00:00
Antony Dovgal b539bb6a07 MFH: fix segfault in imap_bodystruct() 2005-01-25 14:22:13 +00:00
foobar 5e496cc0e7 MFH: - Fixed bug #31684 (dio_tcsetattr(): misconfigured termios settings) 2005-01-25 13:43:27 +00:00
foobar 35514292fe MFH: RTLD_DEEPBIND patch 2005-01-25 13:08:26 +00:00
foobar a402f5e87e MFH: - Fix macosx shared extension build 2005-01-25 13:02:45 +00:00
foobar da481f3189 MFH: - Return of the automake requirement 2005-01-25 12:54:57 +00:00
foobar 5adf49c135 order + typos 2005-01-25 12:28:05 +00:00
Dmitry Stogov 8d54c95ef7 Fixed identation 2005-01-25 11:02:45 +00:00
Dmitry Stogov 1a88427263 Fixed bug #28041 (SOAP HTTP Digest Access Authentication was implemented) 2005-01-25 10:52:19 +00:00
Marcus Boerger 3259aad229 - BFN 2005-01-25 10:48:13 +00:00
Marcus Boerger 43765f49f7 - MFH #26229 (getIterator() segfaults when it returns arrays or scalars) 2005-01-25 10:44:28 +00:00
Ilia Alshanetsky a5b1ec723d MFH: Use multibyte specific code for handling files and generic basename
based code in all other instances.
2005-01-24 22:41:41 +00:00
Ilia Alshanetsky 4e01e392ff Fixed compiler warning. 2005-01-24 22:23:35 +00:00
Marcus Boerger f744272c52 - BFN 2005-01-24 21:44:03 +00:00
Marcus Boerger ce647ba16a - MFH 2005-01-24 21:38:29 +00:00
SVN Migration a8bdff6998 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-01-24 21:27:37 +00:00
Marcus Boerger 8b987b185f - MFH fix for bug #31348 CachingIterator::rewind() leaks 2005-01-24 20:25:58 +00:00
SVN Migration 607b7b35e5 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-01-24 20:22:57 +00:00
Marcus Boerger 8235ce2f20 - BFN 2005-01-24 20:04:45 +00:00
Marcus Boerger ac7c553f0d - MFH Second part of #30725 2005-01-24 20:03:48 +00:00
Marcus Boerger eb54f96a0b - MFH 2005-01-24 19:24:46 +00:00
SVN Migration e7ecd526c5 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-01-24 19:16:07 +00:00
Moriyoshi Koizumi 3161e32a9f - MFH: revert irrelevant part. 2005-01-24 16:47:39 +00:00
Antony Dovgal ba2f3ac0e6 MFH: fix msg_recieve() and add test 2005-01-24 14:25:16 +00:00
SVN Migration ee1569d310 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-01-24 14:19:55 +00:00
Joe Orton b386cdbdd7 MFH: Fixed regression #31645 - only flush before running the subrequest. 2005-01-24 11:46:59 +00:00
Sergey Kartashoff f61068721b - A bug in mnogosearch module in ispell loading code was fixed 2005-01-23 15:01:45 +00:00
foobar b1aaab7355 MFH: Compile fix for systems without uint32_t typedef 2005-01-22 20:29:39 +00:00
foobar 6cddc39be1 - Remove also autom4te.cache dir with phpize --clean 2005-01-22 20:29:15 +00:00
Marcus Boerger 0bd88170f5 - BFN 2005-01-22 12:31:13 +00:00
Marcus Boerger ef9d20d638 - MFH bugfix #31651 2005-01-22 12:29:13 +00:00
Marcus Boerger d77a14814f - MFH 2005-01-22 12:27:00 +00:00
SVN Migration 5fe94dfb5e This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-01-22 12:22:02 +00:00
Edin Kadribasic 75e9fd0909 MFH: Generate files needed for php5ts.dll build 2005-01-22 03:38:41 +00:00
foobar f7f3d1c31e - Typofix + removed unnecessary unsets caused by it 2005-01-22 01:36:56 +00:00
foobar 1d9e3a760d massage news 2005-01-22 01:21:48 +00:00
Andrei Zmievski f0208d3afa MFB (bugfix for 28451) 2005-01-21 23:59:55 +00:00
Stefan Esser cb9873f4a4 MFH 2005-01-21 16:04:25 +00:00
Antony Dovgal 1778b00928 MFH: destroy return_value 2005-01-21 10:58:08 +00:00
Edin Kadribasic c92a084e39 MFOB: Fixed bug #29492 - missing ldap_parse_reference() 2005-01-20 22:50:29 +00:00
Antony Dovgal b689d32d18 fix error message =/ 2005-01-20 18:44:25 +00:00
Antony Dovgal 367868fa7e MFH: fix bug #31623 (OCILogin does not support password grace period) 2005-01-20 18:42:40 +00:00
Antony Dovgal 94d4fb4249 MFH: fix segfault in imap_sort() 2005-01-20 18:08:54 +00:00
Ilia Alshanetsky aabd63044c MFH: Fixed bug #31398 (When magic_guotes_gpc are enabled filenames with '
get cutoff).
2005-01-20 17:57:06 +00:00
Dmitry Stogov c1b0b3781f Support for HTTP error codes 2005-01-20 17:28:51 +00:00
Dmitry Stogov a2aedfdf00 Fixed bug #30901 (can't send cookies with soap envelop).
void SoapClient::__setCookie(string name [, string value])
2005-01-20 14:28:57 +00:00
Antony Dovgal ed4ddfe263 MFH: fix segfault in imap_headerinfo() when fromlength or subjectlength are less than 0
+ fix protos
2005-01-20 14:11:36 +00:00
Dmitry Stogov 0f3cce53ad Fixed bug #31422 (No Error-Logging on SoapServer-Side). 2005-01-20 12:47:05 +00:00
Dmitry Stogov 6880dcb0d4 Fixed bug #31422 (No Error-Logging on SoapServer-Side). 2005-01-20 12:40:15 +00:00
Rob Richards 1842fc7a42 MFH: Fixed bug #28817 (Var problem when extending domDocument) 2005-01-20 11:47:28 +00:00
Antony Dovgal 7ffde39f44 MFH: fix typos in error messages 2005-01-20 10:03:32 +00:00
Antony Dovgal 99dd5c22d1 MFH: fix typos in error messages & resource name 2005-01-20 10:02:24 +00:00
Dmitry Stogov 0a919c89da Support for HTTPS with digital certificates. 2005-01-20 06:13:53 +00:00
Wez Furlong 1a27ca62a8 merge from head 2005-01-20 03:28:04 +00:00
foobar 235f05dafd MFH: Removed obsolete AC_PROG_RANLIB 2005-01-20 01:46:38 +00:00
foobar ae366c348a MFH: - Changed phpize not to require automake and libtool. (Jani)
MFH: - Fixed build system to always use bundled libtool files. (Jani)
2005-01-20 01:41:52 +00:00
foobar 203981a031 MFH: Added --debug option to buildconf 2005-01-19 23:04:00 +00:00
foobar 8efade7894 Revert the multiple autoconf versions patch 2005-01-19 22:27:47 +00:00
Ilia Alshanetsky e733c33f37 MFH: Stricter cc header check. 2005-01-19 18:54:48 +00:00
SVN Migration 120cba9504 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-01-19 17:52:34 +00:00
foobar 873e694ccd BFN 2005-01-19 17:40:32 +00:00
foobar a04ad392ff MFH: - Fixed bug #28976 (use From: from headers if sendmail_from is empty) 2005-01-19 17:38:32 +00:00
foobar 7f28203b56 MFH: - Fix the pic patch 2005-01-19 17:36:15 +00:00
foobar c5874b6297 MFH: bug #29183 2005-01-19 01:46:47 +00:00
foobar 51179248d5 BFN 2005-01-19 01:31:08 +00:00
foobar 963e442e10 MFH: - Fixed bug #29136 (make test - libtool failure on MacOSX) 2005-01-19 01:30:34 +00:00
foobar 0d91c5eda9 MFH: Force ldapv3 for ldap_start_tls() 2005-01-19 00:27:42 +00:00
Ilia Alshanetsky 4e6ebdbeda MFH: Fixed bug #31142 (crash, memory leak and data loss by imap_mail_compose). 2005-01-18 23:36:37 +00:00
Antony Dovgal 641152c54b MFH: add checks for libs & headers required by IBM DB2 2005-01-18 21:19:57 +00:00
Ilia Alshanetsky c35b9949f7 MFH: Fixed bug #31480 (Possible infinite loop in imap_mail_compose()). 2005-01-18 16:33:28 +00:00
Ilia Alshanetsky 3c8424457d MFH: Fixed bug #31479 (Fixed crash in chunk_split(), when chunklen > strlen). 2005-01-18 15:48:39 +00:00
foobar 706ba12284 MFH: - Use FD_CLOEXEC with fcntl() and make sure it is always defined 2005-01-18 15:45:51 +00:00
Antony Dovgal c82421d48e MFH: fix bug #30430 (odbc_next_result() doesn't bind values and that results in segfault)
fix protos
2005-01-18 15:07:10 +00:00
foobar 83343aacc3 MFH 2005-01-18 11:54:04 +00:00
foobar 4cfd9d0440 MFH: Add test for bug #31402 2005-01-18 11:37:17 +00:00
SVN Migration 132760f0eb This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-01-18 11:36:46 +00:00
Dmitry Stogov e88524aa26 changed title of the bugreport 2005-01-18 11:23:42 +00:00
foobar 4c7a56f564 Touch generated file. 2005-01-18 10:59:20 +00:00
Dmitry Stogov 03096147f6 Fixed bug #31190 (iexceptions in call_user_func_array()) 2005-01-18 10:33:50 +00:00
Magnus M��tt� ac29fcffc0 Add test case for bug #30726. 2005-01-18 09:57:04 +00:00
SVN Migration ae343cc715 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-01-18 09:56:33 +00:00
Dmitry Stogov 5abc423112 Fixed bug #28444 (Cannot access undefined property for object with overloaded property access). (Dmitry) 2005-01-18 09:04:43 +00:00
Ilia Alshanetsky f5dbe5a0cb MFH: Fixed bug #30726 (-.1 like numbers are not being handled correctly). 2005-01-18 00:30:39 +00:00
Antony Dovgal bdd4cf7979 MFH: fix weird DB2 issue 2005-01-17 18:11:36 +00:00
foobar f4f3bb6418 MFH: - Fixed bug #31444 (Memory leak in zend_language_scanner.c) 2005-01-17 17:21:57 +00:00
foobar 01b9a94d41 MFH: Forgotten fix for DL_UNLOAD macro 2005-01-17 17:12:05 +00:00
foobar cd3b8c3de4 MFH: - Added some sanity checks by changing to the parameter parsing API 2005-01-17 17:07:47 +00:00
Christian Stocker bf2bee53f7 revert these 2 files... shouldn't have been comitted .. 2005-01-17 16:06:57 +00:00
Christian Stocker 4984c16261 MFH
proto fixes
2005-01-17 16:01:35 +00:00
Antony Dovgal 19f071ea5a MFH: fix leak 2005-01-17 15:06:56 +00:00
Joe Orton b02e734f15 MFH - Fixed bug #31519: Set r->status_line to SAPI-provided status-line. 2005-01-17 12:35:28 +00:00
Stefan Esser 58b20e71d1 MFH: 64bit fix + compiler warning fix 2005-01-17 12:13:33 +00:00
Stefan Esser d825ced844 if 2 of 3 tests are okay still do the 3rd test ! 2005-01-16 22:02:50 +00:00
Moriyoshi Koizumi 4291c701a8 -MFH: Fix a critical bug that request-local settings leak to another request. 2005-01-16 15:55:41 +00:00
Andi Gutmans 9c1186c39b - Fix WS 2005-01-15 21:13:34 +00:00
Stefan Esser 4c17c6aca6 MFH 2005-01-15 18:49:25 +00:00
foobar a4b09f8259 MFH: cs fix 2005-01-15 04:51:03 +00:00
foobar bea4e52ae9 MFH: ws fix 2005-01-15 04:35:05 +00:00
Andi Gutmans 17362b6600 - Change to using DL_UNLOAD macro. 2005-01-15 00:19:05 +00:00
foobar a819cbc869 MFH: - Fixed bug #31060 (imageftbbox() does not use linespacing parameter) 2005-01-14 23:08:02 +00:00
foobar 310a945151 MFH: - Fixed bug #30120 (imagettftext() and imagettfbbox() accept too many parameters) 2005-01-14 22:46:12 +00:00
foobar b8f8302bbc MFH: - Fix another generated header include 2005-01-14 20:45:11 +00:00
Dmitry Stogov 33406179c3 Path -> pattern 2005-01-14 09:00:10 +00:00
Dmitry Stogov f41e4f8e4d Fixed SIGSEGV with ext/standard/tests/network/tcp4loop.phpt and ext/standard/tests/network/unixloop.phpt 2005-01-14 08:51:43 +00:00
Dmitry Stogov cbe8634bbe Revert to old behavior of $str["str"]. ($str["str"] is equivalent of $str[0]) 2005-01-14 08:50:00 +00:00
Wez Furlong 73ab72bfbb MFH the extension dep macro (which is a NOP)
so that pecl extensions with deps can build against head and 5.0.x
2005-01-13 17:10:59 +00:00
Dmitry Stogov 976ed18082 Additional fix for fix of bug #29883 2005-01-13 08:48:50 +00:00
Dmitry Stogov d273e9a113 Fixed bug #31098 (isset false positive) 2005-01-12 09:17:45 +00:00
Moriyoshi Koizumi e4fdaec6a5 - I tend to write opposite things these days :P 2005-01-11 22:27:26 +00:00
Moriyoshi Koizumi 7e53013c34 - BFN 2005-01-11 22:02:03 +00:00
Moriyoshi Koizumi a80a5cf98d - MFH: fix for bug #31098.
# I just wasn't aware of the bug being assigned to Dmitry.
# Sorry if there has already been an effort for this one.
2005-01-11 21:59:57 +00:00
SVN Migration 6634ee0145 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-01-11 21:57:02 +00:00
Moriyoshi Koizumi b9ff04703f - MFH: Fix the fix 2005-01-11 20:59:10 +00:00
Moriyoshi Koizumi 52adad71e7 - MFH: fix htmlentities() / html_decode_entity() UTF-8 related bugs
initially reported by Kamesh Jayachandran
2005-01-11 20:45:06 +00:00
SVN Migration ebe468c145 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-01-11 20:44:05 +00:00
Joe Orton 5f0a65bd36 MFH: Fixed bug #30446 - virtual() includes files out of sequence,
work around 2.0 subrequest/internal redirect issue.
2005-01-11 14:07:27 +00:00
foobar 1fc5fc9ccd MFH: Fix ZTS build 2005-01-11 13:36:16 +00:00
Rob Richards 99616e50af MFH: revert fix for bug #28817 - fix is bad 2005-01-11 10:36:33 +00:00
foobar 34c6f253c3 MFH: - Added check for IMAP 2004 versions 2005-01-11 04:56:44 +00:00
Antony Dovgal 6675c76d58 MFH: fix Konstantin's last name 2005-01-10 21:37:59 +00:00
foobar ae546e85b8 - Fixed bug #28074 (FastCGI: stderr should be written in a FCGI stderr stream).
(chris at ex-parrot dot com)
2005-01-10 15:38:50 +00:00
Joe Orton f6b1919e3f MFH: Don't scribble over the stack; icc compiler warning fix
from dcb314@hotmail.com via Red Hat bugzilla #143795.
2005-01-10 11:30:01 +00:00
foobar 65b8e527a6 MFH 2005-01-10 01:36:12 +00:00
foobar 201517f12b - The pic/no-pic patch by Joe Orton. 2005-01-10 01:11:26 +00:00
foobar cf68478f8e MFH: - Fix outside-source-tree builds. Always include generated header files
with #include <some_header.h> to make sure the correct file is used.
2005-01-09 21:05:20 +00:00
Antony Dovgal 1f0bf51cbe BFN 2005-01-09 18:25:43 +00:00
Antony Dovgal 3c786b4a52 add skipif section 2005-01-09 18:20:34 +00:00
Antony Dovgal 66a29f649f MFH: add test 2005-01-09 18:17:41 +00:00
SVN Migration 18fd322943 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-01-09 18:15:51 +00:00
Antony Dovgal 7f223f76c6 MFH: fix bug #31454 2005-01-09 17:58:16 +00:00
foobar a4108b7189 MFH: - Fix leaks with registered shutdown functions. 2005-01-09 16:30:15 +00:00
foobar d946ca1d7f MFH: - Rationalize code a bit 2005-01-09 16:19:11 +00:00
foobar 0443ce7bc9 MFH: - Fix possible crash (PR#26223). Leaks remain. 2005-01-08 20:45:11 +00:00
foobar 2ccc66582b MFH: - Fix some memory leaks 2005-01-08 12:02:39 +00:00
Antony Dovgal 274d13f151 MFH: remove duplicated include 2005-01-07 21:16:00 +00:00
Anantha Kesari H Y a40637da0e removed skipif sections that check for the existence of ArrayAccess class which is nomore a class but a interface.As the corresponding files in PHP-5.1-HEAD had removed the SKIPIF blocks themselves, removing the same for PHP5_0 branch also. 2005-01-07 10:40:44 +00:00
foobar b4035f926c BFN 2005-01-07 06:30:10 +00:00
foobar 44f94fee4a MFH: - Fixed bug #31055 (apache2filter: per request leak proportional to the full path of the request URI) 2005-01-07 06:28:24 +00:00
foobar 66add9f4fd MFH: - Make sure $host_alias is never empty 2005-01-07 06:19:54 +00:00
Wez Furlong 4186ba86bc update by steph 2005-01-07 05:39:22 +00:00
Joe Orton a58c381ade MFH: - Fixed bug #31413 (curl POSTFIELDS crashes on 64-bit platforms). 2005-01-06 10:21:09 +00:00
foobar c99464da72 Revert. This is always 1. 2005-01-06 01:59:52 +00:00
Anantha Kesari H Y 1955451412 passing FD_CLOEXEC would be a standard way to pass argument to fcntl's last argument than 1 2005-01-05 11:09:12 +00:00
Anantha Kesari H Y 36bcea7339 Removed redundant NEW_LIBC checks for NETWARE 2005-01-05 10:24:40 +00:00
Anantha Kesari H Y 7389f038ce Removed redundant NEW_LIBC checks for NetWare 2005-01-05 10:20:47 +00:00
Anantha Kesari H Y 2c6e4400a6 Removed redundant NEW_LIBC checks 2005-01-05 09:40:49 +00:00
Wez Furlong dd49025fd8 MFH: Fix #31408 2005-01-04 15:31:34 +00:00
foobar 5d96f268f8 BFN 2005-01-04 07:41:07 +00:00
foobar f025d57413 - Fixed bug #31396 (compile fails with gd 2.0.33 without freetype) 2005-01-04 06:51:58 +00:00
Ilia Alshanetsky ad9eec0fe3 Fixed compiler warning resulting from an unused variable. 2005-01-04 03:45:42 +00:00
Stanislav Malyshev 7685080491 MFH:
Fix the following nasty bug:
- if compile bails out from the middle of compiling, current_buffer is not restored
- if current_buffer is not null, yy_switch_to_buffer will do: *yy_c_buf_p = yy_hold_char; on
the next request
- which would lead to memory corruption on next request
2005-01-03 10:02:36 +00:00
Ilia Alshanetsky 0bdc90293d MFH: Fixed bug #31371 (highlight_file() trims new line after heredoc). 2005-01-02 23:54:59 +00:00
Rob Richards ba9e6cf6da BFN 2005-01-02 12:09:34 +00:00
Rob Richards 3ac69c47a4 MFH: Fixed bug #31361 (simplexml/domxml segfault when adding node twice) 2005-01-02 12:09:09 +00:00
Moriyoshi Koizumi a2cae4e9ea - MFH: add testcases for bug #29493 and #31213. 2005-01-02 06:51:35 +00:00
SVN Migration c5fbd1a544 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2005-01-02 06:51:05 +00:00
Wez Furlong c7c42fa501 Fix build here too
# compile before commit, Jani? :-)
2005-01-01 14:35:30 +00:00
Rasmus Lerdorf 12d6522570 Safer libtoolize version check 2004-12-30 16:07:43 +00:00
foobar c9fabbe45d MFH: - Fixed bug #28930 (PHP sources pick wrong header files generated by bison). 2004-12-30 15:23:07 +00:00
foobar c1aa774082 MFH: Fix buildconf failure with autoconf > 2.13 2004-12-30 14:56:23 +00:00
foobar 41dde12bbd MFH: - Fixed bug #31101 (missing kerberos header file path with --with-openssl) 2004-12-30 14:52:29 +00:00
Antony Dovgal 72b45bdab0 MFH 2004-12-30 11:57:40 +00:00
foobar 8078fc1f6d - MFB4_3: Quote macro names in AC_DEFUN() 2004-12-30 07:04:12 +00:00
foobar 853f2aaf0c MFH: Fixed crash + leak 2004-12-30 05:33:26 +00:00
foobar 45afe262b1 missing .cvsignore file 2004-12-30 04:44:25 +00:00
Ilia Alshanetsky 099304b079 MFB: A leak is better(?) then a crash. 2004-12-30 04:39:05 +00:00
Ilia Alshanetsky 13b70db43e Fixed test case. 2004-12-30 04:11:09 +00:00
foobar 7297a25365 BFN 2004-12-30 00:59:49 +00:00
Ilia Alshanetsky 68d8b91b7f MFH: Fixed compiler warnings. 2004-12-29 21:40:42 +00:00
Ilia Alshanetsky c8d9dc3ac8 MFH: Fixed memory leaks. 2004-12-29 21:33:12 +00:00
Ilia Alshanetsky 3263c9c778 MFH: Fixed bug #31142 (imap_mail_compose() fails to generate correct output). 2004-12-29 21:23:11 +00:00
Ilia Alshanetsky 91918cf963 MFH: Don't forget to unload t1lib. 2004-12-29 21:08:16 +00:00
Frank M. Kromann 4f813bc3f6 MFH: Fix typo 2004-12-29 20:19:52 +00:00
Antony Dovgal d3a5984f48 MFH: more typos 2004-12-29 16:12:55 +00:00
Antony Dovgal 16daecc307 fix typos in protos 2004-12-29 13:52:34 +00:00
Georg Richter edbeacf479 MFH: Added property 'id' to retrieve statement id (required by PEAR DB, to support
mysqli prepared statements)
2004-12-29 11:47:03 +00:00
Derick Rethans 5d6bbfa8e3 - Add dom/xml_common.h header as installed header in order to be able to build pecl/xml_reader 2004-12-28 15:20:28 +00:00
Zeev Suraski b794f9a7f3 Fix desc 2004-12-27 18:53:07 +00:00
Zeev Suraski 148186afaf Fix description 2004-12-27 18:21:55 +00:00
Georg Richter 6c9e73f72b fixed possible leak in mysqli_init
fixed testcase 047.phpt
2004-12-27 15:40:40 +00:00
Marcus Boerger 8ab7643dc6 - MFH: Need to unmangle the class name here 2004-12-27 15:14:58 +00:00
Zeev Suraski 9a17afe331 Add descriptions 2004-12-27 13:55:46 +00:00
Marcus Boerger 6a8ee8174e - MFH: More proto/error message fixes 2004-12-27 13:33:04 +00:00
Dmitry Stogov a1815304b6 "Undefined variable: %s" noticies were fixed to use one space 2004-12-27 13:04:02 +00:00
Georg Richter d05beb69c8 feature request #31015 2004-12-27 11:54:08 +00:00
Georg Richter 6583f0b785 Fix for feature request #31015: Length for field object/array 2004-12-27 11:52:08 +00:00
Marcus Boerger 9ac48f35bd - MFH: Small fixlet (by Tony) 2004-12-27 11:44:08 +00:00
Georg Richter debc74ad74 MFH: Fix for bug #31141 2004-12-25 16:44:02 +00:00
SVN Migration 9ed42dbdbb This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-12-25 16:42:54 +00:00
Wez Furlong 3365a94101 MFH 2004-12-23 19:39:49 +00:00
Ilia Alshanetsky 4cbe8ca0a3 MFH: Fixed several buffer overflows. 2004-12-23 19:29:24 +00:00
Antony Dovgal 39acd18e4b MFH: destroy return_value and fix leak in array_fill() 2004-12-23 16:38:13 +00:00
Antony Dovgal f50490b2bc news entry 2004-12-23 16:26:04 +00:00
Antony Dovgal 4904d5e948 MFH: add Oracle Instant Client support (initial patch by cjbj at hotmail dot com) 2004-12-23 16:21:58 +00:00
Wez Furlong 65f05f9664 MFH: don't crash 2004-12-23 06:02:54 +00:00
Ilia Alshanetsky a2fb77343d MFH: Fixed bug #31142 (imap_mail_compose() fails to generate correct output). 2004-12-22 17:28:28 +00:00
SVN Migration 2d7fae28ee This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-12-22 17:27:41 +00:00
Ilia Alshanetsky 5a5a70fe05 MFH: Fixed possible crash in imap_mail_compose(). 2004-12-21 15:47:27 +00:00
Edin Kadribasic 795598bf30 MFB: Avoid autoheader warning 2004-12-21 15:42:04 +00:00
foobar 8d06f63eef MFH: - Fixed bug #28248 (Can not compile --with-sybase and freetds) 2004-12-21 06:57:22 +00:00
foobar 3bc0c0b7ea MFH: - Fixed bug #28385 (some files in $(prefix)/lib/php/build/* installed with wrong permissions) 2004-12-21 04:59:24 +00:00
Magnus M��tt� 87c1464ce5 MFH: Fix test so it doesn't hang make test on HP-UX. 2004-12-21 04:35:29 +00:00
foobar 8f6a4bee71 MFH: - Fixed bug #31145 (configure is using -lcpdf instead of -lcpdfm) 2004-12-21 04:22:06 +00:00
foobar 725dfe2e0a MFH: Fix bug #28700. 2004-12-21 02:53:34 +00:00
foobar a659f7a8eb MFH: - Use correct header files (in c99 compliant way). uint32_t is preferred. 2004-12-21 01:07:46 +00:00
foobar a064487766 MFH: endian compile problem fix 2004-12-20 20:38:05 +00:00
foobar 3c17e392d1 MFH: Fix buildconf when multiple autoconf versions installed 2004-12-20 20:24:15 +00:00
Georg Richter 001a3117ac MFH: Fixed type conversion for NULL values in mysql_stmt_execute 2004-12-20 16:42:20 +00:00
Ilia Alshanetsky 3ed65da8cb MFH: Fixed bug #31103 (Better error message when c-client cannot be found). 2004-12-19 18:17:45 +00:00
foobar 9c500be57f MFH: missing CVS id tag 2004-12-18 03:14:52 +00:00
Andi Gutmans cfba5aa8ad - MFH 2004-12-17 22:31:49 +00:00
Derick Rethans e2af094de1 - MF43: Fixed bug #31072 (var_export() does not output an array element with an
empty string key). (Derick)
2004-12-17 14:39:35 +00:00
Derick Rethans e8d7575733 - MF43: Fixed strtod for Irix and some other strange platform 2004-12-17 13:17:25 +00:00
Derick Rethans f1d4663bf3 - MF43: Fixed weird types, this also makes it compile on IRIX again. 2004-12-17 13:08:39 +00:00
Rob Richards e3b9e1e7f9 BFN 2004-12-17 12:22:09 +00:00
Rob Richards d8f2875be9 MFH: Fixed bug #31139 (XML Parser Functions seem to drop &amp; when parsing) 2004-12-17 12:21:34 +00:00
foobar 21c9e2ab8d typo 2004-12-17 02:20:28 +00:00
Moriyoshi Koizumi c563365b2f - MFH 2004-12-16 23:18:14 +00:00
Ilia Alshanetsky e97d0777db MFH: Fixed bug #31087 (broken php_url_encode_hash macro). 2004-12-16 22:40:46 +00:00
Derick Rethans 69c761cc9d - MF43: Make it compile on HPUX on Itanium 2 2004-12-16 22:22:35 +00:00
Frank M. Kromann 1839753e7d MFH: Fix #31120 and #31135. mssql_query returns false on successfill inserts and stored procedures 2004-12-16 21:49:36 +00:00
Antony Dovgal f5223ff699 MFH: fix leak (init array only if we got valid start key) 2004-12-16 19:20:54 +00:00
Derick Rethans 8babcb4284 - MF43: Fixed bug #31107 (strtod on solaris9/intel) 2004-12-16 13:06:46 +00:00
foobar 0d38556da8 - MFH: Fix typo (avaliable -> available). (bug #28725) 2004-12-16 12:35:45 +00:00
foobar 1059806c25 MFH: - Fixed compile error with HP-UX using GCC. 2004-12-16 11:49:55 +00:00
Derick Rethans 68010fd314 - Fixed bug #31110 and #31111 (Zend/zend_strtod.c problems) 2004-12-16 10:38:30 +00:00
Ilia Alshanetsky 3bb2ce51c5 MFH: Fixed bug #31056 (php_std_date() returns invalid formatted date if
y2k_compliance is On).
2004-12-16 00:12:56 +00:00
Andi Gutmans 21ebffa42d - 5.0.4-dev 2004-12-15 07:02:05 +00:00
Andi Gutmans 3fdb372eb6 - Redo 5.0.3 2004-12-15 06:44:07 +00:00
Andi Gutmans b73e3e5a60 - Back to -dev 2004-12-15 05:28:12 +00:00
Andi Gutmans 04e0ca2d5e - Roll PHP 5.0.3 2004-12-15 05:07:38 +00:00
foobar a1479ff180 MFH5: missing files 2004-12-15 02:30:44 +00:00
Ilia Alshanetsky ae4aa5e1e3 MFB: test fix. 2004-12-14 17:43:35 +00:00
Dmitry Stogov dec4b68d88 Fixed build with custom libming 2004-12-14 16:15:45 +00:00
Dmitry Stogov 8166520e09 Fixed build on linux-glibc21-i386 2004-12-14 14:00:50 +00:00
Dmitry Stogov 4d497d8f02 Fixed bug #30994 (SOAP server unable to handle request with references). 2004-12-14 13:58:19 +00:00
Derick Rethans d21cb5b345 - MFH: Fixed compile error related to bug #28605.
#- But it does not *fix* bug #28605.
2004-12-14 08:41:35 +00:00
Ilia Alshanetsky cb5aa998b9 MFH: Fixed bug #28228 (NULL decimal separator is not being handled correctly). 2004-12-14 00:38:35 +00:00
Derick Rethans 8a7bfba9de - MFH: Generate all iconv headers by default 2004-12-11 11:17:14 +00:00
Andi Gutmans fffe3c696a MFH 2004-12-10 23:06:06 +00:00
Andi Gutmans 5279b66616 - Back to -dev 2004-12-10 01:06:17 +00:00
Andi Gutmans fcde3b066e - 5.0.3RC2 2004-12-10 01:03:04 +00:00
Antony Dovgal 2cdc86e8b4 CS changes 2004-12-09 17:16:33 +00:00
Antony Dovgal cab8f40c2e MFH: fix segfault in session_module_name() when session.save_handler is empty 2004-12-09 14:17:34 +00:00
Pierre Joye 12374956d0 - fix the entry position, thx D 2004-12-09 10:30:14 +00:00
Pierre Joye 5efb3301b2 - MFH: #28598, attempt to restore MS Symbol ttf support 2004-12-09 10:11:11 +00:00
Pierre Joye cbdd728a8d - MFB: #30229, fixed imagerectangle used with alpha channel
- MFB: imagefill, always restore the alphablending mode
2004-12-09 09:19:59 +00:00
Derick Rethans 5a4d19abe6 - MFH: Fixed bug #31034 (Problem with non-existing iconv header file). (Derick) 2004-12-09 09:05:36 +00:00
Antony Dovgal 6cb74fb894 MFH: buffer overrun & debug printf() 2004-12-09 08:24:33 +00:00
Frank M. Kromann c40cb3fce6 MFB: Fix logic for file checking. Bug #31019 2004-12-08 18:58:25 +00:00
Joe Orton 4ba3d20c88 MFH: Fix VPATH build again. 2004-12-08 12:55:33 +00:00
foobar 7b5258ab93 MFH: Fix build. This was not supposed to halt configure if test fails. 2004-12-08 06:47:10 +00:00
Brad House 1d4d921a59 backport from head. compatability fix with libmonetra 4.2 and higher (still works with older releases too). 2004-12-08 03:08:39 +00:00
Dmitry Stogov 0d6c158620 Fixed crash in phpinfo() after graceful Apache restart. 2004-12-07 18:01:56 +00:00
Dmitry Stogov 74320cba7e Fixed bug #30928 (When Using WSDL, SoapServer doesn't handle private or protected properties) 2004-12-07 17:29:24 +00:00
Antony Dovgal 73346d2f76 MFH: fix leak in bcpowmod() 2004-12-07 17:07:16 +00:00
Derick Rethans 74b56b1258 - Tidy up NEWS a bit 2004-12-07 08:44:07 +00:00
Dmitry Stogov ac5f1552ff Fixed bug #30904 (segfault when recording soapclient into session). 2004-12-07 07:45:46 +00:00
Ilia Alshanetsky 93f65e2510 MFH: Fixed bug #30995 (snmp extension does not build with net-snmp 5.2). 2004-12-07 00:33:58 +00:00
Ilia Alshanetsky 4c4bfd3c9b MFH: Fixed bug #30990 (allow popen() on *NIX to accept 'b' flag). 2004-12-06 23:31:07 +00:00
Derick Rethans ea97c82b97 - MF43: Install the iconv extension headers to <installpath>/ext/iconv so that
external extensions can use them.
2004-12-06 20:38:55 +00:00
Ilia Alshanetsky a6e1c3616b MFB: revert. 2004-12-06 19:45:57 +00:00
Stanislav Malyshev e1dc8e60a4 fix startup - if startup did not succeed, do not continue with execution 2004-12-06 18:55:38 +00:00
Stanislav Malyshev cda0f6145f do not zero out peak - MM shutdown would do that 2004-12-06 18:52:52 +00:00
Stanislav Malyshev b700e7a9db port fix for #30998: Crash when user error handler returns false on amd64 2004-12-06 15:46:04 +00:00
Dmitry Stogov 763006984d Fixed bug #30922 (reflective functions crash PHP when interfaces extend themselves) 2004-12-06 11:53:00 +00:00
Stanislav Malyshev 9bea6b1fb0 if fetch called not from PHP function, ptr can be NULL 2004-12-06 08:57:55 +00:00
Georg Richter 135d118ce7 MFH: fixed windows compile errors 2004-12-06 05:15:36 +00:00
Holger Zimmermann 1b6665b0d9 Replaced static server variables by function call and configurable list at the Pi3Web server side. 2004-12-05 10:32:30 +00:00
Rob Richards 6f7b5eba99 BFN 2004-12-04 11:41:46 +00:00
Rob Richards ccf618e1dd MFH: Fixed bug #28817 (Var problem when extending domDocument). (Georg)
add test
2004-12-04 11:41:12 +00:00
SVN Migration f80035fb65 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-12-04 11:40:11 +00:00
Georg Richter 9c44d66034 fixed bug #30890 2004-12-04 09:03:36 +00:00
Georg Richter 6db67fe4ff MFH:
fix for bug #28817 (properties don't work in extended class)
	fix for bug #30890 (testsuite)
2004-12-04 09:01:34 +00:00
Antony Dovgal 125c9028a7 MFH: fix array_walk_recursive() so it doesn't reuse cached fci between calls
and add test for it
2004-12-03 17:51:17 +00:00
SVN Migration 53e61c7f1f This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-12-03 17:43:24 +00:00
Stefan Esser da02892d8c fix compile 2004-12-03 16:10:29 +00:00
Stefan Esser cd385539a3 MFH 2004-12-03 16:04:10 +00:00
Georg Richter a718d62f74 MFH: Fix for bug #30967 (properties in extended mysqli classes don't work) 2004-12-03 07:57:39 +00:00
SVN Migration 3931103064 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-12-03 07:56:20 +00:00
Ilia Alshanetsky 238393e58a MFH: Fixed bug #30962 (mssql returns space for NULL columns). 2004-12-03 02:26:36 +00:00
Antony Dovgal 3de8ff865a MFH: fix tests 2004-12-02 16:39:02 +00:00
Antony Dovgal 0cb5aa2d53 MFH: revert my last patch 2004-12-02 16:36:00 +00:00
Stefan Esser 89c61babec MFH 2004-12-02 01:04:34 +00:00
Stefan Esser c5d37e6879 MFH 2004-12-02 00:44:22 +00:00
Stefan Esser 9bce9725ce MFH 2004-12-01 22:56:20 +00:00
Stefan Esser fa13af4d59 MFH 2004-12-01 22:42:14 +00:00
Ilia Alshanetsky 916af07bc8 Removed extra space that causes problems for some compilers. 2004-12-01 18:51:41 +00:00
Dmitry Stogov 193bdf06d6 Fixed bug #30329 (Error Fetching http body, No Content-Length, connection closed or chunked data). 2004-12-01 18:22:24 +00:00
Dmitry Stogov a3d2a4da0c Port 443 is default for https, so we shouldn't put it into Host: 2004-12-01 17:33:19 +00:00
Dmitry Stogov a847d3a9dd Fixed bug #30359 (SOAP client requests have no port in "Host" field ). 2004-12-01 16:59:23 +00:00
Derick Rethans 618e5b21c3 - revert unwanted change 2004-12-01 15:11:51 +00:00
Derick Rethans 3bc9cc5d2d - Fixed MacOSX compilation (Patch by Christian) 2004-12-01 15:05:10 +00:00
Derick Rethans da1255b17f - And in Zend/ too. 2004-12-01 14:46:13 +00:00
Derick Rethans a2c4aeb659 - Roll back to -dev 2004-12-01 14:44:54 +00:00
Dmitry Stogov 239e693751 Fixed bug #29883 (isset gives invalid values on strings). 2004-12-01 14:01:58 +00:00
Derick Rethans 039dd23c03 - MF43: Update install instructions 2004-12-01 09:15:38 +00:00
Andi Gutmans 1d23c4d551 - Go with 5.0.3RC1 2004-11-30 01:39:18 +00:00
Derick Rethans 2082e22123 - MFH: Added testcase for bug #30695 2004-11-29 10:15:16 +00:00
SVN Migration 62f1637939 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-11-29 10:15:05 +00:00
Derick Rethans 96cae711b9 - MF43: Revert Joe's work around a bug in GCC patch as it breaks too many things. 2004-11-29 09:39:57 +00:00
Sergey Kartashoff 3886f88503 - MnoGoSearch extension updated to fix compilation issues with
mnogosearch-3.2.25+
2004-11-28 20:04:03 +00:00
Antony Dovgal d030269743 BFN 2004-11-28 17:13:49 +00:00
Antony Dovgal 61e2b771d4 MFH: fix #29954 (array_reduce segfaults when initial value is array) 2004-11-28 17:04:18 +00:00
Stefan Esser 2e9541bef5 MFH 2004-11-28 13:34:01 +00:00
Antony Dovgal 43b6cc62b1 MFH: fix #30314 2004-11-28 13:22:11 +00:00
Stefan Esser ab4bfa115c MFH 2004-11-28 12:44:42 +00:00
Ilia Alshanetsky 3a2fb113bc MFH: Improve offset check inside shmop_write(). 2004-11-27 18:18:09 +00:00
Marcus Boerger bdad6ef8c1 - Nowadays we drop fixes :-) 2004-11-27 10:14:20 +00:00
Zeev Suraski 59b098a525 Reverting get_method() signature change
@ Guys - I did my best to look for all of the changed places,
@ but I may have missed something.  If you remember other places
@ which were changed that I haven't reverted, please fix or let me know.
@ Also - Marcus, please take a look at SPL - as this particular
@ implementation took advantage of the signature change, the way I 'fixed'
@ it may very well be incorrect
2004-11-25 20:28:37 +00:00
Zeev Suraski a7cb6a8808 Reverting get_method() signature change 2004-11-25 20:26:48 +00:00
Ilia Alshanetsky 271e7df5eb MFH: Fixed compilation when PHP is built in separate directory. 2004-11-24 23:12:57 +00:00
Marcus Boerger 0a60e71454 - BFN 2004-11-24 20:00:52 +00:00
Marcus Boerger 4163964612 - MFH Bugfix #30856 2004-11-24 19:59:28 +00:00
SVN Migration 29cd249649 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-11-24 19:56:26 +00:00
Dmitry Stogov f444b875b0 Test was fixed. 2004-11-23 17:22:13 +00:00
Derick Rethans 9327ad7d07 - MFH: We need to install these headers too 2004-11-23 13:06:16 +00:00
Edin Kadribasic 74d23c256b MFH 2004-11-23 12:07:25 +00:00
Derick Rethans 68aff652b9 - MFH: export "php_iconv_string()" 2004-11-23 09:45:33 +00:00
Derick Rethans aa06288173 - MFH: Added testcase for bug #28599 2004-11-23 09:44:20 +00:00
SVN Migration 77c460b59f This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-11-23 09:40:09 +00:00
Andi Gutmans d09c0303b8 - Don't use that ZTS connection pooling code until decided what to do with
- this problem.
2004-11-22 21:46:49 +00:00
Frank M. Kromann 7064084418 MFH: Fix #30860 configure fails when tds is compiled as shared 2004-11-22 19:45:17 +00:00
Dmitry Stogov d605aa7846 Test was fixed. 2004-11-22 17:43:31 +00:00
Dmitry Stogov 36a5a19c48 Skip condition was fixed. 2004-11-22 15:15:31 +00:00
Dmitry Stogov 71f00b6ab2 Tests were fixed. 2004-11-22 15:14:14 +00:00
Rob Richards 3bdc15821f MFH: internal entities expanded if no default handler but cdata handler exists 2004-11-21 14:26:26 +00:00
Antony Dovgal 3222f1defb fix yet another typo 2004-11-21 13:35:50 +00:00
Antony Dovgal b65cff0f53 fix typo (bug #30857) 2004-11-21 13:34:02 +00:00
Stefan Esser 4e5296741d MFH 2004-11-20 20:16:27 +00:00
Rob Richards 7ec21cca55 MFH: fix crash when calling com methods
- due to change in Zend
2004-11-20 11:41:24 +00:00
Antony Dovgal acab9b33be BFN 2004-11-19 17:18:09 +00:00
Antony Dovgal bb7515902c MFH: fix bug #30587 (array_multisort doesn't separate zvals before changing them) 2004-11-19 16:57:06 +00:00
Rob Richards 8d3bd0f4f7 BFN 2004-11-18 20:17:08 +00:00
Rob Richards 40d8309354 MFH: Fixed bug #30061 (xml_set_start_namespace_decl_handler not called)
hopefully resolve a bunch of entity issues
2004-11-18 20:16:45 +00:00
Rob Richards 62f3ccdea9 MFH: prototype fixes (Jakub Vrána) 2004-11-18 19:55:00 +00:00
Rob Richards 77598e0382 BFN and re-order news 2004-11-18 18:28:03 +00:00
Rob Richards d67ee093e8 MFH: Fixed bug #30832 ("!" stripped off comments in xml parser)
reset sax->initialized flag when not using SAX2
2004-11-18 18:26:59 +00:00
Rob Richards 69644e9272 MFH: fix SAX2 handling to work with libxml 2.6.16 2004-11-18 16:36:34 +00:00
Antony Dovgal fbb708e211 MFH: run-test2 should be able to emulate POST & GET in the same time 2004-11-18 16:23:40 +00:00
Ilia Alshanetsky 797a132d51 MFH: Gracefully handle allocation failure. 2004-11-17 23:42:28 +00:00
Stanislav Malyshev 3241d7fc46 fix #30543 2004-11-17 12:39:52 +00:00
Dmitry Stogov a8a3ae8566 namespace was renamed 2004-11-17 06:19:12 +00:00
Edin Kadribasic f65691dc68 Fix build here too 2004-11-17 00:24:42 +00:00
Ilia Alshanetsky 91aaefe043 MFH: Fixed possible usage of un-initialized variable. 2004-11-16 21:04:27 +00:00
Dmitry Stogov e8cd732fb2 indentation fixed. 2004-11-16 13:51:32 +00:00
Dmitry Stogov 6a7ed50811 Fixed bug #30799 (SoapServer doesn't handle private or protected properties) 2004-11-16 13:07:27 +00:00
SVN Migration bacd5371f4 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-11-16 13:04:40 +00:00
Dmitry Stogov 95e9a21e31 Class mapping was implemented (Bug #29385 Soapserver always uses std class). 2004-11-16 12:13:40 +00:00
SVN Migration e1c0bcd35f This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-11-16 12:07:33 +00:00
Derick Rethans 34eb46c6b2 - Make this compile for the Mac again 2004-11-16 07:48:32 +00:00
Ilia Alshanetsky 67dcd65a57 MFH: Fixed bug #29801 (Set limit on the size of mmapable data). 2004-11-15 23:44:14 +00:00
Ilia Alshanetsky 00fa3587ba Fixed build. 2004-11-15 23:35:50 +00:00
Edin Kadribasic 044fba0b64 MFH 2004-11-15 23:29:42 +00:00
Frank M. Kromann 99041df380 Avoid renaming of sprintf to php_sprintf 2004-11-15 23:16:20 +00:00
Frank M. Kromann ee3f17d3ee Fix win32 build. 2004-11-15 23:14:40 +00:00
Frank M. Kromann 509eca4182 MFH: Adding most of the changes suggested in #30280. Mostly fix's for possible leaks. 2004-11-15 22:47:57 +00:00
Derick Rethans 6b97f4e98c - MFH: Fixed bug #30779 (Compile of Zend/zend_strtod.c fails on Sparc) 2004-11-15 19:26:57 +00:00
Sergey Kartashoff fcf9c0892d # Unix EOLs fixed 2004-11-15 19:07:35 +00:00
Sergey Kartashoff 3c1b0101ef # Copyright header & version info changed to PHP 5 standatd notice 2004-11-15 19:02:39 +00:00
Derick Rethans 7d5b5f3054 - Those are also fixed with the same commit. 2004-11-15 16:42:10 +00:00
Derick Rethans 7a379811d4 - Fixed bug #28599 (strtotime fails with zero base time). 2004-11-15 16:30:46 +00:00
Antony Dovgal 6749b09d8b MFH: fix CLI leaks when using malformed option string 2004-11-15 14:08:33 +00:00
Derick Rethans 1a1713a4c7 - MF4.3: Cleaned up some of the locale mess:
* all internal use of sprintf, snprintf and the like will always
    use the . as thousands seperator (if php.h is included only!).
  * echo, printf() and sprintf() always render locale-aware
  * added the %F modifier for non-locale aware rendering for floats
2004-11-15 13:41:41 +00:00
Sergey Kartashoff af05fce6b6 # Unix EOLs fixed 2004-11-14 19:30:16 +00:00
Sergey Kartashoff 985122db3b - More mnogosearch-3.2.23+ compatibility 2004-11-14 18:23:52 +00:00
Marcus Boerger 216a000ce3 BFN 2004-11-14 18:09:44 +00:00
Marcus Boerger 3f35f2252d MFH #30783 Apache crash when using ReflectionFunction::getStaticVariables()
MFH proto fixes
2004-11-14 18:07:15 +00:00
Antony Dovgal 480af61b74 MFH: fix #30780 (tidy segfaults on 'new tidyNode;') 2004-11-14 13:35:48 +00:00
Rob Richards f67d540a1b BFN 2004-11-13 14:33:59 +00:00
Rob Richards 2452c92c2b MFH: Fixed bug #30566 (attribute namespace URIs are inconsistent when parsing). 2004-11-13 14:33:25 +00:00
Rob Richards b6b00a822c support file:/// under windows again 2004-11-11 13:09:03 +00:00
Ard Biesheuvel 586f73b1ee MFH: fix return value of ibase_execute() 2004-11-11 12:29:34 +00:00
Dmitry Stogov 4bc6ac34ae Support for lists in non-WSDL mode was implemented
Support for "xsi:type" was improved
2004-11-11 09:16:36 +00:00
Antony Dovgal c32445a860 MFH: fix #30751 (phpinfo() shows the same ini path after reconfigure with --with-config-file-path) 2004-11-11 06:58:00 +00:00
Ilia Alshanetsky 0f04dff942 MFH: Fixed bug #30750 (Meaningful error message when upload directory is not
accessible).
2004-11-11 00:38:44 +00:00
Wez Furlong 70a7fced75 MFH: CloseHandle 2004-11-10 20:21:48 +00:00
Ilia Alshanetsky 47fff9a15d MFH: Fixed possible overflow. 2004-11-10 01:44:28 +00:00
Dmitry Stogov 50a4e4003a Fixed bug #29211 (SoapClient doesn't request wsdl through proxy). (Rob) 2004-11-09 08:13:04 +00:00
Ilia Alshanetsky e0ffe2f109 MFH: Fixed crash inside cpdf_setdash() if called before page init. 2004-11-09 00:44:29 +00:00
Ilia Alshanetsky fa5fbd0a0d MFH: Fixed possible crash on fstat() failure. 2004-11-08 04:54:58 +00:00
Derick Rethans aac98f3eba - Fix for bug #30367, #30490 and possibly #30011. 2004-11-05 15:08:11 +00:00
Antony Dovgal 6f35c85c19 MFH: fix build (hm. looks like nobody noticed that..) 2004-11-05 12:31:58 +00:00
Marcus Boerger 5fd210de89 MFH Bug #30627 2004-11-04 20:15:38 +00:00
Dmitry Stogov 49c5edcb9f Fixed bug #30685 (Malformed SOAPClient http header reequest). 2004-11-04 15:29:54 +00:00
Edin Kadribasic 07c6cb2a5b MFH 2004-11-04 02:42:14 +00:00
Edin Kadribasic 9891d3e03d MFH: zend_strtod compilation on windows 2004-11-04 02:22:10 +00:00
Moriyoshi Koizumi c3c311943c - MFH: Add entry for zend_strtod.c in belief that this is still active. 2004-11-04 00:15:11 +00:00
Derick Rethans d0fd3bf62e - MFH: Fixed bug #30630: Added a BSD based strtod function that is
locale-independent. (PHP part)
2004-11-03 23:27:28 +00:00
Derick Rethans 90546a871f - MFH: Fixed bug #30630: Added a BSD based strtod function that is
locale-independent.
2004-11-03 23:14:32 +00:00
SVN Migration f2d992c76f This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-11-03 23:13:33 +00:00
Andrey Hristov 36b416f514 MFH 2004-11-02 17:25:14 +00:00
Ilia Alshanetsky 03ba78106d Bug fixing news. 2004-11-02 16:42:46 +00:00
Ilia Alshanetsky c7b537e2c3 Fixed bug #30658 (Ensure that temporary files created by GD are removed). 2004-11-02 16:41:26 +00:00
Sebastian Bergmann 523d3c122f MFH: Patch by Joe Orton <jorton@redhat.com>. 2004-11-02 13:19:48 +00:00
Ilia Alshanetsky e79de46f3c MFH: Fixed open_basedir & safe_mode bypass inside readlink() function. 2004-11-02 00:37:55 +00:00
Georg Richter 66a74b4c68 Added default multi resultset support for mysqli_connect (#30645) 2004-11-01 09:52:04 +00:00
Georg Richter fd0e9cc044 fixed error handling in mysqli_multi_query 2004-11-01 07:59:05 +00:00
Georg Richter f2dc3a258d MFH:
Fixed tests for empty dates (see http://bugs.mysql.com/?id=6058)
Fixed memleak in mysqli_stmt_bind_result
Fixed error handling for mysqli_multi_query
2004-11-01 07:57:46 +00:00
Ilia Alshanetsky 6330a6078d Fixed bug #30613 (Prevent infinite recursion in url redirection). 2004-11-01 04:52:51 +00:00
Marcus Boerger ce726fa710 - Fix arginfo 2004-10-31 15:43:06 +00:00
Sebastian Bergmann 0b640b29d7 MFH: Invokation -> Invocation 2004-10-31 10:20:01 +00:00
Marcus Boerger f0e8e0eae8 - Fix (readd function name which got lost during earlier comit) 2004-10-30 20:22:51 +00:00
Marcus Boerger ef3ed0e4d4 BFN 2004-10-30 19:56:34 +00:00
Marcus Boerger 6317956d02 MFH 2004-10-30 19:53:44 +00:00
Marcus Boerger b1e05a7b4f Bump api after latest changes 2004-10-30 19:26:04 +00:00
Marcus Boerger 65a2433793 MFH 2004-10-30 19:21:59 +00:00
Marcus Boerger a5a29a86df MFH change zend_object_handlers->get_method() 2004-10-30 19:16:39 +00:00
Marcus Boerger 7226e7077d MFH 2004-10-30 14:35:01 +00:00
Marcus Boerger 00c9bd1a33 MFH Fix protos 2004-10-30 10:46:24 +00:00
Andi Gutmans 8a340b1572 - [PATCH] Bug fix for #29770, but for PHP 4.3.9 (Vladimir Zidar) 2004-10-29 00:37:51 +00:00
Greg Beaver 4b03f9f172 sync with pear-core 2004-10-28 19:33:23 +00:00
Greg Beaver 167c1675b9 PEAR => 1.3.3 2004-10-28 19:31:07 +00:00
Antony Dovgal 5ddec61e2d fix Win32 & Netware build 2004-10-28 05:05:39 +00:00
Andi Gutmans 77e96aec61 - MFH 2004-10-27 18:15:53 +00:00
Antony Dovgal 9b6a953c91 BFN 2004-10-27 12:05:14 +00:00
Antony Dovgal 61e90440ce MFH: fix bug #30388 (rename across filesystems loses ownership and permission info) 2004-10-27 11:59:48 +00:00
Wez Furlong 0faac783e9 Fix possible crash; patch by Kamesh Jayachandran 2004-10-27 11:07:53 +00:00
Andrey Hristov 95b0546558 news entry 2004-10-26 23:34:43 +00:00
Andi Gutmans e5f62e61e6 - MFH 2004-10-26 23:25:34 +00:00
Ilia Alshanetsky 0484413b86 MFH: Fixed bug #30572 (crash when comparing SimpleXML attribute to a boolean). 2004-10-26 22:40:51 +00:00
Wez Furlong 59cb64f707 BFN 2004-10-26 09:32:01 +00:00
Wez Furlong af9a8dfaa3 Fix for Bug #29418 (double free when openssl_csr_new fails).
Also hook up MSHUTDOWN function which appears to have never been enabled.

Patch by Kamesh Jayachandran
2004-10-26 09:28:34 +00:00
Greg Beaver 01ba76a2ed sync with PEAR_1_3 branch of pear-core 2004-10-25 17:14:34 +00:00
Greg Beaver cd067e641a update for PEAR 1.3.2 2004-10-25 17:06:12 +00:00
Greg Beaver 1228570437 pass in first parameter to work with go-pear 0.5.0 "local" option 2004-10-25 04:11:40 +00:00
Antony Dovgal c6b00a1223 MFH: commit fixes by <mikael dot suvi at trigger dot ee>
(segfaults under heavy load)
2004-10-23 09:34:17 +00:00
Edin Kadribasic 998a9f4438 Revert Linux LFS patch 2004-10-22 10:47:35 +00:00
Edin Kadribasic 3959fe2470 BFN 2004-10-22 00:03:17 +00:00
Edin Kadribasic db5037537b MFB: Linux LFS support, fixes 27792 2004-10-21 23:57:37 +00:00
Joe Orton 88c5b75698 MFH: Fix case where php_handle_aborted_connection was called
outside a try/end_try block (#25570).
2004-10-21 08:22:58 +00:00
Andi Gutmans c6e0f60774 - Fix bug #30395 (Apache Child Segmentation fault in specific PHP-Code) 2004-10-21 00:47:11 +00:00
Andi Gutmans 1cae37c3da - MFH 2004-10-20 19:33:35 +00:00
Georg Richter 6ab8a6705d Minor fix for mysqli_connect: checking socket_len for NULL Values
(Thx to Paul DuBois)
2004-10-19 05:17:26 +00:00
Ilia Alshanetsky 8c13a77e97 MFH: Fixed bug #30475 (curl_getinfo() may crash in some situations). 2004-10-18 22:42:16 +00:00
Antony Dovgal f1df31a3fb BFN 2004-10-18 15:17:04 +00:00
Antony Dovgal 750646d822 MFH: fix bug #30442 ( segmentation fault when parsing ?getvariable[][ ) 2004-10-18 15:07:06 +00:00
Anantha Kesari H Y 3f4cf40c45 removing a call to php_output_activate in php_module_startup(Fix for bug#30397) 2004-10-18 10:36:35 +00:00
Derick Rethans f941d0aeb0 - Revert patch until it is discussed 2004-10-18 06:04:10 +00:00
Anantha Kesari H Y 331c9a83a3 Fix for Bug #30397 2004-10-16 10:34:59 +00:00
Anantha Kesari H Y cf476b6a51 Fix for 30457 2004-10-16 09:48:23 +00:00
Marcus Boerger eacce9faca BFN 2004-10-12 22:35:38 +00:00
Marcus Boerger 9b68fae9c9 BFN 2004-10-12 22:23:48 +00:00
Marcus Boerger c981347ffb MFH Bug #30381 2004-10-12 22:22:06 +00:00
Marcus Boerger 8360ce27aa MFH Fix visibility of get_class_vars() and get_class_methods() 2004-10-12 11:03:35 +00:00
Marcus Boerger 0bcb369eac MFH (add missing check) 2004-10-12 09:16:17 +00:00
Marcus Boerger 0c7f673a91 -MFH Fix set_exception_handler() 2004-10-12 09:14:55 +00:00
Ilia Alshanetsky 02a2e47986 MFH: Fixed bug #30362 (stream_get_line() not handling end string correctly) 2004-10-11 18:33:00 +00:00
Ilia Alshanetsky 3657fef77c MFH: Fixed bug #30375 (cal_info() does not work without a parameter). 2004-10-11 06:40:20 +00:00
Wez Furlong d75ba00e90 BFN 2004-10-11 01:43:40 +00:00
Wez Furlong 1d31caf032 MFH: return value fix (#30387 again) 2004-10-11 01:41:23 +00:00
Wez Furlong a50b0e717f MFH: Fix #30387: wrong flag used for async connection 2004-10-11 01:34:26 +00:00
Sebastian Bergmann b2ccce05e3 MFH: Add *.gcda and *.gcno (from gcc -fprofile-{use|generate}) to .cvsignore. 2004-10-10 16:15:52 +00:00
Antony Dovgal 45a4e123e7 fix possible segfault 2004-10-10 15:05:52 +00:00
Antony Dovgal 8f16f600d5 MFH: prevent deadlocks when re-using previously established persistent connection 2004-10-10 10:55:48 +00:00
Wez Furlong 055d1c2134 MFH: dotnet init fixes 2004-10-09 13:10:37 +00:00
Wez Furlong e188ea9d39 MFH: fix for crash bug 2004-10-09 13:08:49 +00:00
Marcus Boerger 11031593f3 MFH speling 2004-10-08 19:03:53 +00:00
Christian Stocker eca839ae19 MFH
Fixed bug #27183 (Userland stream wrapper segfaults on stream_write).
2004-10-08 14:53:39 +00:00
Moriyoshi Koizumi ac70367d73 - BFN 2004-10-08 14:46:47 +00:00
Moriyoshi Koizumi d5830722a5 - MFH: Sync with the latest codebase (fixes bug #28220). 2004-10-08 14:45:47 +00:00
SVN Migration 82dae9d9be This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-10-08 14:40:47 +00:00
Moriyoshi Koizumi e817baae1e - MFH(r-1.53): Avoid doubly symbol definition. Codes in the removed file has
never been used anywhere.
2004-10-08 14:24:29 +00:00
Ilia Alshanetsky 7c3962f79d MFH: Fixed bug #30356 (str_ireplace() does not work on all strings). 2004-10-07 23:11:20 +00:00
Marcus Boerger 2016ad5441 BFN 2004-10-06 21:32:12 +00:00
Marcus Boerger 67c833661e - MFH (synch after func name change) 2004-10-06 21:27:25 +00:00
Marcus Boerger 8b765c3c44 - MFH Fix Bug #30344 2004-10-06 21:25:37 +00:00
Ilia Alshanetsky 2daa88cd48 Possible fix for bug #29764 2004-10-06 00:12:04 +00:00
Ilia Alshanetsky 32617aea68 MFH: Fixed bug #30027 (Possible crash inside ftp_get()). 2004-10-05 23:53:14 +00:00
Marcus Boerger 69d71f67d2 BFN 2004-10-05 18:45:01 +00:00
Dmitry Stogov f779b01bca Fixed bug #30175 (SOAP results aren't parsed correctly) 2004-10-05 15:58:28 +00:00
Ilia Alshanetsky 0036a3e4da MFH: Fixed bug #30281 (Prevent non-wbmp images from being detected as such) 2004-10-04 20:43:21 +00:00
Marcus Boerger b2f560dc94 MFH 2004-10-04 17:54:13 +00:00
SVN Migration 501a4edf49 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-10-04 17:53:56 +00:00
Marcus Boerger c896d7d6d0 - MFH Add new test 2004-10-04 17:31:37 +00:00
SVN Migration 0285963ec3 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-10-04 17:30:54 +00:00
Marcus Boerger 84a00322eb BFN 2004-10-04 09:04:00 +00:00
Marcus Boerger 5dbe92d8a7 MFH 2004-10-04 09:03:10 +00:00
SVN Migration c2e2a30169 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-10-04 08:58:48 +00:00
Ilia Alshanetsky dee4566360 Test case for bug #30085 2004-10-04 02:46:03 +00:00
Marcus Boerger 900df55818 - Add new tests 2004-10-02 14:33:37 +00:00
SVN Migration d0ff60e95f This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-10-02 14:22:53 +00:00
Rasmus Lerdorf 98aa5b6eb2 Not sure when this BC breaking change snuck in, but the output method
didn't take an argument before and this compression argument is documented
to be optional but in the code it wasn't.  This patch fixes the BC break
by making the compression argument optional.
2004-10-01 19:23:40 +00:00
Sebastian Bergmann 4f92686415 MFH: Fugbix typo. 2004-10-01 10:36:50 +00:00
Ilia Alshanetsky a2f06a9a3c Added skip condition for PHP 5.0 2004-09-30 21:54:28 +00:00
Andi Gutmans 942c837e9f - MFH 2004-09-30 18:36:21 +00:00
Antony Dovgal 890b377094 BFN 2004-09-30 15:00:57 +00:00
Antony Dovgal fb5c9e76fc fix error message 2004-09-30 14:20:22 +00:00
Antony Dovgal d5f88b12c0 MFH: fix segfaults and bug #30282 and suppress compile warnings 2004-09-30 12:37:35 +00:00
Ilia Alshanetsky 7dd408c7e5 MFH: Fixed bug #30276 (Possible crash in ctype_digit on large numbers). 2004-09-30 01:23:34 +00:00
Marcus Boerger b00c9f4501 MFH 2004-09-29 20:16:03 +00:00
Antony Dovgal e81f5ce137 MFH: fix bug #29652 2004-09-29 06:43:29 +00:00
Frank M. Kromann 6081651c65 MFH: Fix compilation 2004-09-28 18:39:22 +00:00
Ilia Alshanetsky cbfa37cfad MFH: Fixed bug #30224 (Sybase date strings are sometimes not null
terminated).
2004-09-28 14:07:59 +00:00
Wez Furlong 797cda2555 MFH: select usage fix 2004-09-28 09:30:20 +00:00
Wez Furlong a540196a41 MFH: Fix for Bug #24189: possibly unsafe select(2) usage. 2004-09-28 09:13:38 +00:00
Marcus Boerger c33bcdda04 MFH fix several property handling issues 2004-09-27 22:28:58 +00:00
Marcus Boerger d85e4ebcc2 MFH parameter description 2004-09-27 22:28:19 +00:00
Marcus Boerger 3b1d4b09da MFH Add new tests 2004-09-27 22:27:54 +00:00
SVN Migration 36280edc99 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-09-27 22:23:32 +00:00
Edin Kadribasic 67bee6eb6e Fixed bug #30133 2004-09-27 22:21:52 +00:00
Marcus Boerger 7942ff14c4 Add new tests 2004-09-27 19:02:23 +00:00
Marcus Boerger 2728e52d58 MFH (discussed with Andi) 2004-09-27 19:01:50 +00:00
Ilia Alshanetsky 96184fe715 MFH: Fixed bug #30249 (Incorrect timeout check). 2004-09-27 17:30:47 +00:00
Marcus Boerger 5d5e004b34 MFH (1 fix, 1 warning) 2004-09-27 08:34:49 +00:00
Marcus Boerger 2e67579965 MFH 2004-09-26 21:52:51 +00:00
Ilia Alshanetsky f858b30f4e MFH:
Return FALSE when file cannot be found.
Specify full paths to the files used for the test.
2004-09-26 19:24:20 +00:00
Marcus Boerger 094aa8699d MFH add new tests 2004-09-26 18:29:46 +00:00
SVN Migration 3d2c4f5670 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-09-26 18:28:08 +00:00
Marcus Boerger ef3ea48ce0 MFH add new tests 2004-09-26 18:20:01 +00:00
SVN Migration a810fefdde This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-09-26 18:16:34 +00:00
Wez Furlong 2be9172661 MFH: Fix bug #30147 OO sqlite_fetch_object did not reset error handler 2004-09-26 01:41:40 +00:00
Wez Furlong 5c085a9224 BFN 2004-09-26 01:14:59 +00:00
Wez Furlong 1665957a8f MFH: configure check for getaddrinfo (Bug #30057) 2004-09-26 01:13:43 +00:00
Marcus Boerger 257f58c862 MFH lib substituation 2004-09-25 15:30:17 +00:00
Marcus Boerger c6744a5370 MFH unserialize fixes 2004-09-24 22:05:36 +00:00
Marcus Boerger 643c61277f - MFH unserialize fixes
# .re first
2004-09-24 22:05:14 +00:00
Marcus Boerger b790562222 BFN (MFHed) 2004-09-24 22:01:25 +00:00
Andi Gutmans 39f83fc506 - PHP 5.0.3-dev 2004-09-23 21:56:15 +00:00
Andi Gutmans 412fb096fa - Roll 5.0.2 2004-09-23 21:21:59 +00:00
Marcus Boerger c4c952f023 BFN 2004-09-23 18:45:27 +00:00
Marcus Boerger 10b2bb1cab MFH 2004-09-23 18:42:49 +00:00
Marcus Boerger 406847a6cd MFH Bugfix # 30209 2004-09-23 18:41:15 +00:00
SVN Migration 57c5bff123 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-09-23 18:38:35 +00:00
Dmitry Stogov 9062b2f967 Fixed bug #29566 (foreach/string handling strangeness (crash)). 2004-09-22 07:12:15 +00:00
Dmitry Stogov 29348ff48b Fixed bug #30182 (SOAP module processing WSDL file dumps core). 2004-09-22 05:57:36 +00:00
Uwe Schindler 2067727a80 changed order of processing of ini entries 2004-09-20 13:29:44 +00:00
Ilia Alshanetsky 6fcc1515cb MFH: Fixed bug #29913 (parse_url() is now binary safe). 2004-09-20 05:14:35 +00:00
Stanislav Malyshev 08e7f480e1 MFH destructor failure fix 2004-09-17 10:19:47 +00:00
Ilia Alshanetsky f521b61ce2 MFH: Fixed bug #30050 (Possible crash inside php_shutdown_config()). 2004-09-17 02:48:47 +00:00
Andi Gutmans 16bc64121f - Go with PHP 5.0.2RC1 2004-09-16 21:44:47 +00:00
Dmitry Stogov d8cd133a33 Fixed crash with SoapFault and register_shutdown_function(). 2004-09-16 08:11:07 +00:00
Sebastian Bergmann f1ec84159d MFH: ZTS fix. 2004-09-16 05:44:39 +00:00
Andi Gutmans b9a6022f15 - NEWS 2004-09-16 00:46:46 +00:00
Andi Gutmans b832343962 - MFH 2004-09-16 00:44:12 +00:00
Uwe Schindler 8e3e81256f Fixed bug #29805 (HTTP Authentication Issues) 2004-09-15 21:27:10 +00:00
Dmitry Stogov 24ec8acb2d Fixed invalid test name 2004-09-15 14:35:59 +00:00
Ilia Alshanetsky 820516e756 Fixed a bug causing ".123" * "90" and alike to return a 0. 2004-09-15 13:41:38 +00:00
Derick Rethans 09d555e3d0 - MFH: Windows has strcoll too. 2004-09-15 12:29:24 +00:00
Derick Rethans 9782bbd297 - MFH: Added new boolean (fourth) parameter to array_slice() that turns on the
preservation of keys in the returned array.
2004-09-15 11:51:56 +00:00
Dmitry Stogov 833331a53d Fixed possible crash 2004-09-15 10:35:09 +00:00
Dmitry Stogov a9b87039e4 Fixed bug #30045 (Cannot pass big integers (> 2147483647) in SOAP requests) 2004-09-14 12:13:39 +00:00
Magnus M��tt� 327125e313 Add missing stream unregister for sslv2 and 3. 2004-09-13 18:31:54 +00:00
Stefan Esser ce886edc0b MFH 2004-09-13 16:00:37 +00:00
Dmitry Stogov bb3e125185 Change soap's ctors to __construct(),
rename SoapClient->__call() to SoapClinet->__soapCall().
2004-09-13 11:54:06 +00:00
Stefan Esser f5722d61b4 MFH 2004-09-12 10:46:27 +00:00
Derick Rethans 7d77171b9b - Added the sorting flag SORT_LOCALE_STRING to the sort() functions which makes
them sort based on the current locale. (Derick)
2004-09-11 14:20:55 +00:00
Andi Gutmans 76d520e9a7 - MFH 2004-09-11 00:23:33 +00:00
Wez Furlong aa5feff190 BFN 2004-09-10 12:06:27 +00:00
Wez Furlong 16dd07c5e0 MFH: fix for Bug #29296 2004-09-10 11:44:10 +00:00
Dmitry Stogov 14c1dc4ab4 SoapClient->__call() is renamed to SoapClient->__soap_call(). 2004-09-10 09:03:25 +00:00
Dmitry Stogov 18079dd248 Using php_libxml_xmlCheckUTF8() from ext/libxml. 2004-09-10 09:00:32 +00:00
Wez Furlong ae5598fa85 MFH: avoid potential AT&T libc problems with tempnam() 2004-09-09 19:41:40 +00:00
Marcus Boerger 6183a1ed3e MFH Fix test script 2004-09-09 17:09:25 +00:00
Rasmus Lerdorf 177647c99b Stop at the index on an unmatched [ 2004-09-09 16:21:49 +00:00
Marcus Boerger 278aee14a5 MFH Drop namespace relict 2004-09-09 13:29:37 +00:00
Marcus Boerger 29048d8d7e Fix test 2004-09-09 11:33:31 +00:00
Marcus Boerger e3b65c75be MFH Fix __call's method signature 2004-09-09 09:54:06 +00:00
Marcus Boerger a3858e17e9 MFH signature check/method registration
# the new function is no ZEND_API in 5.0.* to prevent bumping API
2004-09-09 09:53:20 +00:00
Marcus Boerger 0d27154a49 MFH add new test 2004-09-09 07:46:43 +00:00
SVN Migration 9ab9402ed9 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-09-09 07:46:20 +00:00
Andi Gutmans db638b91b3 - MFH 2004-09-09 02:44:17 +00:00
Sara Golemon c1c1b21686 MFH (r.163) Handle maxlen when stream can't be mmaped 2004-09-08 18:45:05 +00:00
Rob Richards e62db3b3c8 MHF: fix issue with multiple xsl objects using registerPHPfunctions
- also fixes threading issue
2004-09-08 16:54:53 +00:00
Rob Richards f01310928c MFH: implement php_libxml_xmlCheckUTF8
- workaround for <= libxml2-2.6.13 function
2004-09-08 10:16:57 +00:00
Dmitry Stogov b003591f19 Make ext/soap work around libxml2 bug in xmlCheckUTF8 (2.6.7-2.6.13) 2004-09-07 14:41:29 +00:00
Marcus Boerger 9ae0e91ef4 MFH Fix handling of exceptions in dtors 2004-09-06 19:16:35 +00:00
Rob Richards c2c1590d52 BFN 2004-09-06 10:19:36 +00:00
Rob Richards 39916670cc MFH: Fixed bug #29945 (simplexml_load_file URL limitation 255 char) 2004-09-06 10:18:29 +00:00
Marcus Boerger 14b2c4a1f4 BFN 2004-09-05 17:43:37 +00:00
Marcus Boerger 2074b6ceee MFH bugfix 299885 2004-09-05 17:40:54 +00:00
Andi Gutmans 120ea84394 - MFH 2004-09-04 17:04:23 +00:00
Georg Richter 4ca31d911f MFH: LOAD DATA INFILE now uses PHP's fopen wrapper 2004-09-04 14:19:20 +00:00
Marcus Boerger 03a1a3675a MFH 2004-09-03 18:54:41 +00:00
Marcus Boerger 7052ece4e8 MFH: Fix protoe's 2004-09-03 18:41:10 +00:00
Ilia Alshanetsky f34dafccdb MFH: Adjusted input check. 2004-09-03 03:35:27 +00:00
Stanislav Malyshev 65052194b4 MFH: filestat fix 2004-09-02 09:44:59 +00:00
Derick Rethans 88d0d5427e - MFH: Added test for bug #29944. 2004-09-02 06:35:04 +00:00
Georg Richter 2c99f0230c fixed compiler warnings
fixed bug #29283
2004-09-02 04:52:07 +00:00
Ilia Alshanetsky ea138b85ab MFH: Fixed bug #29925 (Added a check to prevent illegal characters in
session key).
2004-09-02 02:44:12 +00:00
Marcus Boerger df93e470cc MFH: Fix seeking 2004-08-31 20:56:08 +00:00
SVN Migration e54698481c This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-08-31 20:54:32 +00:00
Sara Golemon 43004bcaaa MFH: Use user_agent ini setting if it's available. 2004-08-31 20:11:32 +00:00
Joe Orton 98c0dd4147 MFH: Do not rely on handling of integers which might be outside the
range of a 32-bit signed long.
2004-08-31 12:11:06 +00:00
Joe Orton 85f8b2a830 MFH: fix gettimeofday() tests to not fail if the same time is
returned by successive calls.
2004-08-31 11:49:19 +00:00
Antony Dovgal b8c51d4614 MFH: fix bug #29723 (file_get_contents() fails with the file:// wrapper under Win32) 2004-08-31 11:38:59 +00:00
Antony Dovgal 805fe58a28 MFH: this file shouldn't be in the repository at all 2004-08-31 08:31:45 +00:00
Ilia Alshanetsky f5c36b8d9e MFH: Added missing input validation to dio_write(). 2004-08-30 22:21:13 +00:00
Marcus Boerger 25ab185761 MFH: Add some information about array overloading 2004-08-30 18:49:49 +00:00
Rob Richards e7fcde565b MFH: remove cloning under ze1_compatibility_mode
- minor BC break but doesnt work right under compat mode anyways
2004-08-30 17:29:58 +00:00
Rob Richards 6164ea4840 MFH: remove cloning under ze1_compatibility_mode
- minor BC break but doesnt work right under compat mode anyways
2004-08-30 15:09:07 +00:00
Rob Richards 470ca9ef6f MFH: remove clone functionality 2004-08-30 15:00:07 +00:00
Stanislav Malyshev beffd8738e MFH fix #29893 2004-08-30 09:13:40 +00:00
Antony Dovgal bce14e2c6f MFH: add testcase for bug #29893 2004-08-30 09:11:06 +00:00
SVN Migration af2ee723dc This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-08-30 09:07:19 +00:00
Marcus Boerger 975771b431 MFH: String offset starts with 0 2004-08-29 19:15:57 +00:00
Ilia Alshanetsky 3f5e121f2b MFH: Fixed leak when serializing protected & private properties. 2004-08-29 17:16:21 +00:00
Marcus Boerger a000fe6c06 MFH: Bugfix #29882 isset crashes on arrays 2004-08-29 13:29:47 +00:00
Sergey Kartashoff ff8c3d2d67 - A fix for building of shared mnogosearch module 2004-08-29 10:59:15 +00:00
Derick Rethans e6df40e831 - MFH: Fixed bug #29873 (No defines around pcntl_*priority definitions). 2004-08-28 12:20:41 +00:00
Christian Stocker b559075a02 Marking DOM and XSL as "Working". This should have happened with the
release of PHP 5.0.0 already.
2004-08-27 22:41:38 +00:00
Marcus Boerger 1d87b34375 MFH: Fix by (mathieu dot bruneau at argontechnologies dot ca) 2004-08-27 20:39:17 +00:00
Andi Gutmans 942a83b246 - MFH 2004-08-27 16:49:54 +00:00
Dmitry Stogov 92689ec8e0 Fixed bug #29842 (soapclient return null value) 2004-08-27 07:06:07 +00:00
Ilia Alshanetsky dfb664c946 MFH: Fixed a nasty resource/memory/disk-space leak when opening zlib files
via wrapper stacking ala compress.zlib://http://...
2004-08-26 23:36:08 +00:00
Marcus Boerger 8c4eede77d MFH: Enforce semantics: Classes cannot extend Interfaces 2004-08-26 23:02:55 +00:00
Marcus Boerger 4ad82c5ef2 MFH: Add test 2004-08-26 23:01:45 +00:00
Marcus Boerger ca612d3fc0 MFH: Fix test 2004-08-26 23:01:21 +00:00
SVN Migration 87fca31a3f This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-08-26 22:53:52 +00:00
Marcus Boerger 54b2a4d6a0 BFN 2004-08-26 22:44:20 +00:00
Marcus Boerger 82a5d700e3 MFH: Bugfix 29828 2004-08-26 22:43:32 +00:00
Marcus Boerger 982ac8b7a2 MFH 2004-08-26 22:30:16 +00:00
SVN Migration 6aed779dc8 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-08-26 22:24:49 +00:00
Rob Richards 69fe08beb2 not experimental 2004-08-26 20:13:57 +00:00
Dmitry Stogov 412bae8482 Memory leaks were fixed. 2004-08-26 18:55:54 +00:00
Dmitry Stogov 27868d1799 Fixed bug #29839 (incorrect convert (xml:lang to lang)) 2004-08-26 18:36:47 +00:00
Dmitry Stogov bb19590b7e Fixed bug #29795 (SegFault with Soap and Amazon's Web Services)
Fixed bug #27994 (segfault with Soapserver when WSDL-Cache is enabled)
2004-08-26 15:23:57 +00:00
Dmitry Stogov 48dba110e2 Fixed bug #29844 (SOAP doesn't return the result of a valid SOAP request).
Fixed bug #29830 (SoapServer::setClass() should not export non-public methods).
2004-08-26 12:20:13 +00:00
Ilia Alshanetsky 255f9fc072 MFH: Fixed bug #29808 (array_count_values() breaks with numeric strings). 2004-08-26 00:26:22 +00:00
Andrei Zmievski 8f9fa59341 MFB. 2004-08-25 20:48:25 +00:00
Marcus Boerger 872f6e7af8 MFH: No short tags 2004-08-25 07:26:36 +00:00
Andrey Hristov ecca999733 . 2004-08-25 07:20:30 +00:00
Andi Gutmans 38d64188ff - Improve wording 2004-08-25 01:06:29 +00:00
Andi Gutmans 048aa76cc9 - NEWS 2004-08-25 01:04:27 +00:00
Andi Gutmans 5c3249d954 - MFH 2004-08-25 01:02:38 +00:00
Andrey Hristov b15b80c1b7 MFH 2004-08-24 22:03:12 +00:00
Marcus Boerger 5facf4becc TSRM fix 2004-08-24 21:41:02 +00:00
Marcus Boerger f5ebf71f49 Add new test 2004-08-24 21:40:12 +00:00
SVN Migration 7a69f34c69 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-08-24 21:35:47 +00:00
Andrei Zmievski f1b7a88393 MFB 2004-08-24 21:02:52 +00:00
Ilia Alshanetsky 853d714008 MFH: Fixed bug #29821 (Fixed possible crashes in convert_uudecode() on
invalid data).
2004-08-24 15:25:59 +00:00
Rob Richards 077b8f2d25 MFH: fix segfault when object cloned 2004-08-24 13:33:48 +00:00
Christian Stocker b6bb43ef94 MFH ;)
(This extension is no more experimental)
2004-08-24 11:50:53 +00:00
Ilia Alshanetsky 6f20f9d285 MFH: Fixed possible crash inside dio_read(). 2004-08-23 17:27:46 +00:00
Zeev Suraski 2fb5c4394b Fix names 2004-08-23 13:14:27 +00:00
Derick Rethans 9ca8a571e9 - There was a bug # attached to this fix. 2004-08-23 09:56:05 +00:00
Derick Rethans 8ee05c9da8 - Fixed Apache 2.0 SAPI build against Apache 2 HEAD. (Patch by Joe Orton) 2004-08-23 09:00:09 +00:00
Ilia Alshanetsky a4430a9cfe MFH: Using int when long should be used. 2004-08-22 18:05:27 +00:00
Andrey Hristov 2be03f0d73 MFH (bug 26737) 2004-08-21 14:11:56 +00:00
Sara Golemon 85fe5f8c34 MFH Bufix#29777 Bad commenting 2004-08-21 00:01:44 +00:00
Ilia Alshanetsky c7f52698c1 MFB: removed unneeded bits. 2004-08-20 13:52:47 +00:00
Derick Rethans d775bca68f - 78 chars please. 2004-08-20 06:13:41 +00:00
Ilia Alshanetsky 6c763f3721 MFH: Added more missing cURL options. 2004-08-20 00:56:05 +00:00
Brian France 949e461e8f [MFH] If you send a post with a content-type header and then the next post without the content-type header, raw_post_data will not be set. This is because SG(request_info).post_entry is set to the first requests function pointer which makes it follow the wrong code path. 2004-08-19 20:34:04 +00:00
Antony Dovgal 59ed068c78 BFN 2004-08-19 15:23:54 +00:00
Antony Dovgal d8cd7dac07 MFH: ip2long() issues 2004-08-19 15:15:32 +00:00
Antony Dovgal 4945317c28 MFH: fix #29737 (ip2long should return -1 if IP is 255.255.255.255 and FALSE on error) 2004-08-19 14:03:44 +00:00
Derick Rethans 34f4400502 - Reorder 2004-08-19 12:44:35 +00:00
Christian Stocker 259f662488 MFH
- Fixed bug #29657 (xml_* functions throw non descriptive error).
  (Christian, Rob)
- Fixed bug #29711 (Changed ext/xml to default to UTF-8 output). (Rob)
2004-08-19 12:29:43 +00:00
Ilia Alshanetsky d349734059 MFH: Fixed bug #29727 (Added missing CURL authentication directives). 2004-08-18 21:27:27 +00:00
Antony Dovgal fa5f20cfce MFB: typo in config.m4 (potential configuration problem with Stronghold) 2004-08-18 07:19:45 +00:00
Andi Gutmans 435fff2cb1 - Fix typos 2004-08-17 23:09:37 +00:00
Antony Dovgal 9173e270b0 MFH: fix typo 2004-08-17 10:58:07 +00:00
Ilia Alshanetsky 40645cc0a6 MFH: Fixed bug #29594 (Use PHP's own tmpfile() implementation). 2004-08-16 23:08:56 +00:00
Zeev Suraski 33e114b37e *** empty log message *** 2004-08-16 12:34:20 +00:00
Zeev Suraski be85bd83e8 MFH 2004-08-16 12:25:40 +00:00
Marcus Boerger 29099a7470 BFN 2004-08-16 08:51:12 +00:00
Marcus Boerger 8823289f9f MFH: Fix bug #29447: Reflection API issues 2004-08-16 08:49:48 +00:00
Ilia Alshanetsky 78363147b8 MFH: Fixed bug #29678 (opendir() with ftp:// wrapper segfaults if path
does not have trailing slash).
2004-08-16 01:41:17 +00:00
Marcus Boerger ac7665fdc2 MFH: Remove unnecessary check 2004-08-15 15:50:37 +00:00
Georg Richter 1410d8c0b2 fixed default for mysqli_fetch_array 2004-08-15 05:50:29 +00:00
Marcus Boerger 5a4158421c MFH: Add missing check 2004-08-14 19:04:01 +00:00
Georg Richter 945115968c fixed bug #29656 (segfault on result and statement properties) 2004-08-13 16:27:35 +00:00
Antony Dovgal 970f1f9c7f MFH: fix yet another annoying compile warning 2004-08-13 15:02:05 +00:00
Antony Dovgal 65ef16ef31 MFH: fix compile warning 2004-08-13 14:54:50 +00:00
Derick Rethans 0186acacdb - MFH: Added PHP_EOL constant that contains the OS way of representing
newlines. (Patch by Paul Hudson)
2004-08-13 07:08:46 +00:00
Georg Richter bc4a269d3c minor fix in mysqli_prepare: copying stmt errormessag to mysql structure 2004-08-12 22:11:46 +00:00
Andi Gutmans 291441a34c - Back to 5.0.2-dev 2004-08-12 20:53:19 +00:00
Andi Gutmans d8c1e99f02 - Roll 5.0.1 2004-08-12 20:39:36 +00:00
Chuck Hagenbuch 8d0cc271bf More spaces -> tabs. 2004-08-12 19:32:18 +00:00
Ilia Alshanetsky bbde60d6d2 MFH: Properly fix the msgno check inside imap_fetchbody(). 2004-08-12 19:20:17 +00:00
Chuck Hagenbuch e2b820f0ea MFH: fix. 2004-08-12 18:02:03 +00:00
Derick Rethans c970dbb647 - Reorder a bit and add . 2004-08-12 07:25:32 +00:00
Andi Gutmans 29c32f04e3 - Back to -dev 2004-08-12 06:39:26 +00:00
Andi Gutmans 00c6777aa1 - 5.0.1RC2 2004-08-12 06:35:22 +00:00
Magnus M��tt� 143ae77156 Add missing NEWS entry (bug 29147). 2004-08-12 05:42:13 +00:00
Marcus Boerger 87ba25b722 MFH: Change to use md5_file() 2004-08-12 00:38:12 +00:00
Ilia Alshanetsky dc77b5700c MFH: Fixed memory leak. 2004-08-11 23:25:52 +00:00
Ilia Alshanetsky 0e5c01290d Fixed bug #29607 (highlighting code with HEREDOC produces invalid output). 2004-08-11 22:38:31 +00:00
Derick Rethans ba16543ef5 - Tix Fypo 2004-08-11 15:23:00 +00:00
Derick Rethans f65e4feda4 - MFH: Added a notice to getimagesize in case zlib is not available and a
compressed SWF movie has been passed to the function.
2004-08-11 12:31:37 +00:00
Derick Rethans 20181fde3d - Reworded this a bit 2004-08-11 12:24:41 +00:00
Christian Stocker 491ed1813e MFH (fix test) 2004-08-11 08:24:41 +00:00
Derick Rethans caa5dbe679 - MFH: Patch to allow the Zend memory allocators to be disabled. 2004-08-11 06:13:12 +00:00
Sara Golemon 7e6d72f030 MFH: Fix format specifiers 2004-08-11 04:29:26 +00:00
Sara Golemon 6ea962c767 MFH: $errmsg should have been forced reference 2004-08-11 04:10:44 +00:00
Marcus Boerger c87b2d0cee BFN (small but important change) 2004-08-10 22:40:14 +00:00
Ilia Alshanetsky c2c31547c2 Bug fixing news. 2004-08-10 22:17:31 +00:00
Ilia Alshanetsky 21851b0001 MFH: Fixed bug #29606 (php_strip_whitespace() prints to stdout rather then
returning the value).
2004-08-10 22:16:50 +00:00
Dmitry Stogov bd96cca64f Fixed bug #28969 (Wrong data encoding of special characters) 2004-08-10 16:30:31 +00:00
SVN Migration 02893ad216 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-08-10 16:18:09 +00:00
Wez Furlong 4f88703159 BFN 2004-08-10 13:47:30 +00:00
Wez Furlong abc62474bf MFH: Fix for #29256 2004-08-10 13:45:58 +00:00
Christian Stocker 3a9754715a MFH (Fix segfault on error in xslt) 2004-08-10 08:02:00 +00:00
Andi Gutmans 2f212ab8d5 - Back to -dev 2004-08-10 07:28:09 +00:00
Andi Gutmans 71be1ed5f1 - 5.0.1RC1 2004-08-10 07:17:05 +00:00
Moriyoshi Koizumi 1c6896076f - Bugfix #29493 (extract(array, EXTR_REFS) misbehaves with elements referred
twice or more times)
2004-08-10 06:01:20 +00:00
Andi Gutmans 6a2d265af6 - The documentation team has re-wroten the installation part of the manual. 2004-08-10 05:36:12 +00:00
Ilia Alshanetsky 6fe9c3735a MFH: Fixed bug #29581 (Typo inside php.ini comments for mysql.trace_mode). 2004-08-10 00:44:23 +00:00
Andi Gutmans 5d43cf4ec4 - Update NEWS 2004-08-09 22:24:10 +00:00
Andi Gutmans 8b3b1eb121 Update credits for php docs 2004-08-09 21:53:19 +00:00
Dmitry Stogov 836a7b1a88 Included ext/soap fixes from CVS HEAD. 2004-08-09 05:50:06 +00:00
Georg Richter c26edafb17 fixed bug #29577 (MYSQLI_CLIENT_FOUND_ROWS undefined) 2004-08-09 04:33:40 +00:00
Ilia Alshanetsky a9bf810ba2 Remove \r characters from file. 2004-08-08 21:25:55 +00:00
Christian Stocker a737e92b08 Fixed bug #29573. 2004-08-08 18:09:46 +00:00
Christian Stocker 54ae55a949 MFH (fix for Bug #29573 : Segmentation fault when php function(called from XSLT templat) throw exception
and Zero Byte Memory Leaks)
2004-08-08 18:05:47 +00:00
Wez Furlong 5ab53094fa BFN 2004-08-07 21:04:51 +00:00
Wez Furlong aff24aed0d MFH: Fix for Bug #29490 from Michael Sisolak 2004-08-07 21:01:43 +00:00
Sara Golemon b915644ec4 MFH ZTS Fix 2004-08-06 17:35:59 +00:00
Wez Furlong 28c71a667a MFH: avoid possible segfault with stream_socket_client and bogus flags. 2004-08-06 14:18:49 +00:00
Ilia Alshanetsky d45c4f86d3 MFH: php_error() -> php_error_docref() 2004-08-05 23:57:53 +00:00
Edin Kadribasic 8060534f63 MFH: Export php_libxml_error_handler for windows build (#29541) 2004-08-05 21:03:15 +00:00
Antony Dovgal 80bdf7eae5 MFH: remove all references to @ thing, as it's not recommended 2004-08-05 14:19:59 +00:00
Ilia Alshanetsky 2dad2b3882 MFH: Eliminate unneeded variable. 2004-08-05 00:44:32 +00:00
Frank M. Kromann aa0a80bea8 Revert. ADD_EXTENSION_DEP is available in this branch! 2004-08-04 19:22:12 +00:00
Frank M. Kromann dec171c4bf No extension dependency in this branch 2004-08-04 17:22:14 +00:00
Frank M. Kromann 6d5779844f MFH: Move iconv exports to the iconv extension and make libxml depend on iconv 2004-08-04 17:13:11 +00:00
SVN Migration 94ed0368b9 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-08-04 16:46:49 +00:00
Zeev Suraski 6c8d9c8c8e Fix prototypes 2004-08-04 16:39:56 +00:00
Zeev Suraski 9de0be49d6 Fix prototypes 2004-08-04 14:40:53 +00:00
Georg Richter 5a76218edd fixed bug #29522 2004-08-04 13:02:40 +00:00
Marcus Boerger d84c321376 MFH missing part 2004-08-04 10:32:43 +00:00
Ilia Alshanetsky b3262ff512 MFH: Fixed argument handling in sun* functions. 2004-08-04 00:28:05 +00:00
Edin Kadribasic a825563c0b Typofix 2004-08-03 22:56:15 +00:00
Edin Kadribasic da476e0da9 MFH 2004-08-03 22:50:18 +00:00
Marcus Boerger 46107c39a4 MFH 2004-08-03 17:10:58 +00:00
Marcus Boerger a263d88c81 BFN 2004-08-03 17:07:56 +00:00
Marcus Boerger 9158cd2494 - MFH Bug #29505 get_class_vars() severely broken when used with arrays 2004-08-03 17:02:35 +00:00
SVN Migration 2e98f2dd1a This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-08-03 16:59:54 +00:00
Antony Dovgal 902b4bda6a MFH: typo in ini parameter name 2004-08-03 06:26:59 +00:00
Antony Dovgal 87b52bb5cd MFH: fix typo in php.ini-dist & php.ini-recommended 2004-08-03 06:21:17 +00:00
Greg Beaver e6199b5279 commit for win32 - binary so line endings are always preserved - ..and in PHP_5_0, where it also belongs 2004-08-03 04:36:56 +00:00
SVN Migration e7f995106c This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-08-03 04:36:01 +00:00
Ilia Alshanetsky 3bcb1f3af1 MFH: Allow sqlite_fetch_column_types() to properly handle table names with
spaces in them.
2004-08-02 22:43:42 +00:00
Marcus Boerger 13a652c81c MFH Change to use memcmp instead of strcmp 2004-08-02 22:43:16 +00:00
Ilia Alshanetsky 5ddd062e36 MFH: A gentler (performance wise) allocation of buffer for temp variables. 2004-08-02 02:35:03 +00:00
Marcus Boerger 4bedc6bb31 - Add new tests 2004-08-01 21:55:58 +00:00
Marcus Boerger 70f94e52ea - Enforce protocol on magic methods/functions 2004-08-01 21:55:39 +00:00
Wez Furlong 87c3363fa9 MFH usleep fix, and BFN. 2004-08-01 00:35:11 +00:00
Wez Furlong ca1dc06e04 MFH: zts fix 2004-07-31 16:37:18 +00:00
Wez Furlong b5ed0a1d3d MFH: streams fixes 2004-07-31 11:00:11 +00:00
Wez Furlong 19c8eeb4e8 MFH: zts fix for ini entries and dl() 2004-07-30 15:05:02 +00:00
Wez Furlong 293e62c99d MFH: win32 zts fix 2004-07-30 14:39:18 +00:00
Wez Furlong 2da7dd5982 MFH: various ZTS fixes 2004-07-30 14:24:59 +00:00
Edin Kadribasic 6325b1b630 MFH 2004-07-30 12:40:54 +00:00
Edin Kadribasic 9244e0eee1 MFH 2004-07-30 09:59:06 +00:00
Edin Kadribasic 712d951ffc MFH 2004-07-30 09:30:30 +00:00
Ilia Alshanetsky 40773632e0 MFH: Fixed bug #29443 (Sanity check for wbmp detection). 2004-07-30 01:10:42 +00:00
Edin Kadribasic 88628a2319 MFH 2004-07-29 22:26:52 +00:00
Edin Kadribasic 31120ba5f7 MFH: Fix informix compilation on Windows (bug #29340) 2004-07-29 21:12:47 +00:00
Timm Friebe 75276870db - MFH:
. Fixed bug #29064 (Exact numeric/decimal/money datatypes lose precision)
  . Fixed bug #27843 (sybase_query() triggers (spurious?) notices when
    query is a stored procedure)
  . Fixed multiple memory leaks with sybase_unbuffered_query()
  . Changed sybase_query() to ignore store_results = false in  buffering
    mode, it would yield unpredictable results
  . Fixed sybase_unbuffered_query() when used with store_results = false
  . Changed sybase_fetch_object() to ignore second argument when passed
    as NULL
  . Made sybase_data_seek() error message more verbose
  . Fixed memory leak in shutdown when not all rows where selected in an
    unbuffered query
# sort of, empty_string -> STR_EMPTY_ALLOC patch ommitted
2004-07-29 20:05:46 +00:00
SVN Migration fc0b122460 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-07-29 03:58:02 +00:00
Ilia Alshanetsky d976c362ac MFH: Fixed but #29437 (Possible crash inside array_walk_recursive()). 2004-07-29 00:35:12 +00:00
Wez Furlong 6c82c26884 BFN 2004-07-29 00:17:01 +00:00
Wez Furlong a0ef3e1865 MFH: #29431 2004-07-28 23:53:04 +00:00
Wez Furlong 4f91645642 MFH:
#29258: variant_date_from_timestamp() does not honour timezone
#29392: com_dotnet crashes when echo'ing an object
2004-07-28 23:48:26 +00:00
Wez Furlong 46b2bef868 Moved to PECL 2004-07-28 23:39:36 +00:00
Ilia Alshanetsky 26319ee1a1 MFH: Better address availability check. 2004-07-28 23:34:30 +00:00
Ilia Alshanetsky 42a8242676 MFH: Fixed possible crash in stream_socket_recvfrom() when length
parameter has a negative value.
2004-07-28 23:21:56 +00:00
Marcus Boerger 57ab773c70 MFH 2004-07-28 22:55:26 +00:00
Andi Gutmans 219364ee55 - Fix MAC OSX to always use native DSO loading 2004-07-28 19:07:26 +00:00
Christian Stocker 8b5fc29c7a MFH
Fixed bug #29409 (Segfault in PHP functions called from XSLT). (Rob)
2004-07-28 12:42:16 +00:00
Ilia Alshanetsky 21f4b69b2b MFH: Fixed bug #29342 (strtotime() does not handle empty date string
properly).
2004-07-28 01:44:41 +00:00
Ilia Alshanetsky f76ce400eb MFH: Fixed bug 29395 (sqlite_escape_string() returns bogus data on empty
strings).
2004-07-27 16:40:46 +00:00
Ilia Alshanetsky 16204148bb MFH: Added missing comma. 2004-07-27 12:44:35 +00:00
Ilia Alshanetsky 1f2d017ae1 MFH: Fixed bug #29349 (imagecreatefromstring() crashes with external GD
library).
2004-07-27 00:27:07 +00:00
Georg Richter 1b10ad424a MFH: fixed bug 29335 2004-07-26 07:22:01 +00:00
Georg Richter 3e65f6bf57 MFH: fixed bug in mysqli->client_version 2004-07-26 05:45:41 +00:00
Marcus Boerger f84d03b2bc - Update/Add tests 2004-07-25 19:35:30 +00:00
SVN Migration 2db28891e4 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-07-25 19:21:22 +00:00
Ilia Alshanetsky 7adc26fd8b MFH: Fixed bug #29369 (Uploaded files with ' or " in their names get their
names truncated at those characters).
2004-07-25 19:19:28 +00:00
Marcus Boerger fe80df5446 BFN 2004-07-25 17:38:44 +00:00
Marcus Boerger 8588815ef3 - MFH: Fix bug #29368 : The destructor is called when an exception is
thrown from the constructor
2004-07-25 17:37:55 +00:00
Georg Richter a70fc67b0b fixed bug #29311 2004-07-23 12:48:20 +00:00
SVN Migration b5c53ae6c7 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-07-23 12:47:37 +00:00
Edin Kadribasic 3d018fb061 MFB: Updated version number 2004-07-23 02:28:36 +00:00
Ilia Alshanetsky 3845e2c145 MFH: Fixed bug #29333 (output_buffering + trans_sess_id can corrupt output) 2004-07-23 02:05:51 +00:00
Stefan Esser 1930c2c33b MFH 2004-07-22 22:59:11 +00:00
SVN Migration 1e2b92b517 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-07-22 22:39:01 +00:00
Marcus Boerger 983fa5a21e Fix testcase 2004-07-22 18:39:45 +00:00
Georg Richter 3ecbb5c314 MFH: changed warning (bug #29298) for outdated client library 2004-07-22 07:25:31 +00:00
Sara Golemon 8fa1628958 MFH: This should fix binary safety for bound results. 2004-07-22 03:26:59 +00:00
Edin Kadribasic e52b580cad MFH: Fix for #28929 by Michael Sisolak 2004-07-21 22:53:27 +00:00
Edin Kadribasic 4b28e0a8f1 MFH: Build fix 2004-07-21 22:22:21 +00:00
Ilia Alshanetsky 91f5ceb3be MFH: Fixed bug #29209 (imap_fetchbody() doesn't check message index). 2004-07-21 21:57:09 +00:00
Marcus Boerger 603758b484 BFN 2004-07-21 18:38:23 +00:00
Marcus Boerger b6b575c1d5 MFH: Fixded #29291: get_class_vars() return names with NULLs 2004-07-21 18:37:36 +00:00
Christian Stocker e2f3142c78 MFH. Fix for Bug 29010 "make test does not wait to email address" (by Sebastian Nohn) 2004-07-21 11:20:33 +00:00
Ilia Alshanetsky 7623887079 MFH: Abort earlier on invalid format. 2004-07-21 00:14:50 +00:00
Moriyoshi Koizumi 1bd6ec4c91 - MFH (ctype.c: 1.31): Correct range checks.
- MFH (ctype.c: 1.31): Normalize negative values.
2004-07-20 20:09:27 +00:00
Moriyoshi Koizumi 33a6aefce8 oops... 2004-07-20 19:36:00 +00:00
Marcus Boerger d3f8aaecd8 BFN 2004-07-20 19:30:09 +00:00
Marcus Boerger 049cca1711 MFH 2004-07-20 19:25:18 +00:00
Moriyoshi Koizumi a40df45348 - MFH (iconv.c: 1.119): Fix possible leaks / segfaults in persistent iconv
filter.
2004-07-20 18:48:23 +00:00
Marcus Boerger 8f42eaae01 BFN 2004-07-20 18:25:48 +00:00
Marcus Boerger ebeefd9f7d MFH bugfix 28895 2004-07-20 18:23:49 +00:00
Moriyoshi Koizumi 646f9a4a8b - MFH (filters.c: 1.41): Add more null checks. 2004-07-20 18:17:07 +00:00
Moriyoshi Koizumi b4fa1661af - MFH (filters.c: 1.40): pemalloc() might return NULL 2004-07-20 18:04:36 +00:00
Stanislav Malyshev ba3c63dbc9 export ini parser 2004-07-20 08:45:04 +00:00
Sebastian Bergmann 350535d498 BFN: Fixed ReflectionClass::getMethod() and ReflectionClass::getProperty() to raise an ReflectionException instead of returning NULL on failure. 2004-07-20 05:48:45 +00:00
Ilia Alshanetsky 467caa4307 MFH: Fixed bug #29226 (ctype_* functions missing validation of numeric
string representations).
2004-07-20 01:03:18 +00:00
Sergey Kartashoff 01b6956d61 - A Bug #29147 was fixed. Thanks to Antony Dovgal <tony2001 at phpclub.net>
for his patch.
2004-07-19 19:46:52 +00:00
Marcus Boerger 61c3a669b4 - MFH protos and error message 2004-07-19 19:24:37 +00:00
Moriyoshi Koizumi befb6e9b80 - MFH (bug29119.phpt: 1.2): Fix test name 2004-07-19 18:49:46 +00:00
Moriyoshi Koizumi 35e43dabe1 - MFH (html.c: 1.98, bug29199.phpt: 1.1): Fix bug #29199 (html_entity_decode()
misbehaves with UTF-8)
2004-07-19 17:53:00 +00:00
SVN Migration b905779950 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-07-19 17:51:42 +00:00
Moriyoshi Koizumi 04c32887f1 - MFH (iconv.c: 1.118): Fix a bug in iconv stream filter that prevents
pending buckets from being processed.
2004-07-19 08:35:48 +00:00
Moriyoshi Koizumi e0a39d68d8 - MFH (config.m4: 1.52): Fix VPATH build. (patch by Joe Orton) 2004-07-19 05:09:46 +00:00
Moriyoshi Koizumi 92ec8541c1 - MFH: rename php_compat.h to php_onig_compat.h to avoid name conflict.
(reported by Joe Orton, thanks.)
2004-07-19 05:06:01 +00:00
SVN Migration 82a7ef78f3 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-07-19 05:04:34 +00:00
Ilia Alshanetsky 236c42c14e MFH: Fixed bug #28633 (sprintf incorrectly adding padding to floats). 2004-07-18 17:28:04 +00:00
SVN Migration b8fdc56a8b This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-07-18 17:27:51 +00:00
Rob Richards 17ad61bd7f enable exslt support for win32 builds
WS fixes for exslt tests
2004-07-18 13:22:46 +00:00
Rob Richards ec1507ea9d add missing optional value param to createElementNS (chregu) 2004-07-18 13:15:50 +00:00
Rob Richards 69bd1f31fd Fixed bug #29221 (Segfault using DOM ownerDocument in a PHP object) 2004-07-18 11:44:25 +00:00
Moriyoshi Koizumi b9d4af72e9 - MFH (sapi_apache2.c: 1.41): request_dtor should be called if a fatal error
occurs during activation phase.
2004-07-17 21:31:43 +00:00
Sara Golemon fbbc036830 BFN 2004-07-16 23:45:21 +00:00
Sara Golemon c2b0fdd647 MFH: convert.* filters not consuming buckets_in on PSFS_FLUSH_* 2004-07-16 23:42:00 +00:00
Marcus Boerger 3706b626fe BFN 2004-07-16 07:27:34 +00:00
Marcus Boerger edbfc48fdd MFH 2004-07-16 07:26:49 +00:00
Ilia Alshanetsky 59c6886c65 Fixed bug #28800 (strings beginning with "inf" improperly converted). 2004-07-16 02:02:09 +00:00
SVN Migration 8091552925 This commit was manufactured by cvs2svn to create branch 'PHP_5_0'. 2004-07-15 19:41:23 +00:00
2493 changed files with 118684 additions and 360966 deletions

No files matched your search

+13364 -13903
View File
File diff suppressed because it is too large. Load diff
BIN
View File
Binary file not shown.
+15 -13
View File
@@ -68,11 +68,6 @@ PRIMARY MAINTAINER: Alex Leigh <aleigh@php.net>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: date
PRIMARY MAINTAINER: Derick Rethans <derick@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: embed
PRIMARY MAINTAINER: Edin Kadribasic <edink@php.net>
MAINTENANCE: Maintained
@@ -236,7 +231,7 @@ SINCE: 5.0
EXTENSION: simplexml
PRIMARY MAINTAINER: Sterling Hughes <sterling@php.net>
MAINTENANCE: Maintained
STATUS: Working
STATUS: Experimental
SINCE: 5.0
-------------------------------------------------------------------------------
EXTENSION: soap
@@ -307,6 +302,11 @@ MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: dio
MAINTENANCE: Orphaned
STATUS: Working
SINCE: 4.0.6
-------------------------------------------------------------------------------
EXTENSION: exif
PRIMARY MAINTAINER: Marcus Boerger <helly@php.net>
MAINTENANCE: Maintained
@@ -452,7 +452,7 @@ STATUS: Working
EXTENSION: pspell
PRIMARY MAINTAINER: Vlad Krupin <phpdevel@echospace.com>
MAINTENANCE: Unknown
STATUS: Working
STATUS: Unknown
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: readline
@@ -486,12 +486,6 @@ MAINTENANCE: Maintained
STATUS: Experimental
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: spl
PRIMARY MAINTAINER: Marcus Boerger <helly@php.net>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 5.0.0
-------------------------------------------------------------------------------
EXTENSION: sysvmsg
MAINTENANCE: Unknown
STATUS: Unknown
@@ -514,12 +508,20 @@ PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: w32api
MAINTENANCE: Unknown
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: yaz
PRIMARY MAINTAINER: Adam Dickmeiss <adam@indexdata.dk>
MAINTENANCE: Maintained
STATUS: Unknown
SINCE: 4.0.1
-------------------------------------------------------------------------------
EXTENSION: yp
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: zlib
PRIMARY MAINTAINER: Stefan Roehrich <sr@linux.de>
MAINTENANCE: Maintained
+11 -11
View File
@@ -262,8 +262,8 @@ Apache 1.3.x on Unix systems
10. cd ../apache_1.3.x
11. ./configure --prefix=/www --activate-module=src/modules/php5/libphp5.a
(The above line is correct! Yes, we know libphp5.a does not exist at this
11. ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
(The above line is correct! Yes, we know libphp4.a does not exist at this
stage. It isn't supposed to. It will be created.)
12. make
@@ -309,24 +309,24 @@ stop and start:
./configure --with-apxs --with-pgsql
This will create a libphp5.so shared library that is loaded into
This will create a libphp4.so shared library that is loaded into
Apache using a LoadModule line in Apache's httpd.conf file. The
PostgreSQL support is embedded into this libphp5.so library.
PostgreSQL support is embedded into this libphp4.so library.
./configure --with-apxs --with-pgsql=shared
This will create a libphp5.so shared library for Apache, but it will
This will create a libphp4.so shared library for Apache, but it will
also create a pgsql.so shared library that is loaded into PHP either
by using the extension directive in php.ini file or by loading it
explicitly in a script using the dl() function.
./configure --with-apache=/path/to/apache_source --with-pgsql
This will create a libmodphp5.a library, a mod_php5.c and some
accompanying files and copy this into the src/modules/php5 directory
This will create a libmodphp4.a library, a mod_php4.c and some
accompanying files and copy this into the src/modules/php4 directory
in the Apache source tree. Then you compile Apache using
--activate-module=src/modules/php5/libphp5.a and the Apache build
system will create libphp5.a and link it statically into the httpd
--activate-module=src/modules/php4/libphp4.a and the Apache build
system will create libphp4.a and link it statically into the httpd
binary. The PostgreSQL support is included directly into this httpd
binary, so the final result here is a single httpd binary that
includes all of Apache and all of PHP.
@@ -380,8 +380,8 @@ Apache 2.0 on Unix systems
* PHP 4.3.0 or later available at http://www.php.net/downloads.php.
* the latest stable development version. Get the source code
http://snaps.php.net/php5-latest.tar.gz or download binaries for
Windows http://snaps.php.net/win32/php5-win32-latest.zip.
http://snaps.php.net/php4-latest.tar.gz or download binaries for
Windows http://snaps.php.net/win32/php4-win32-latest.zip.
* a prerelease version downloadable from http://qa.php.net/.
* you have always the option to obtain PHP through anonymous CVS.
+1 -1
View File
@@ -1,6 +1,6 @@
--------------------------------------------------------------------
The PHP License, Version 3.0
Copyright (c) 1999 - 2005 The PHP Group. All rights reserved.
Copyright (c) 1999 - 2003 The PHP Group. All rights reserved.
--------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
+4 -4
View File
@@ -7,17 +7,17 @@ $(builddir)/zend_language_scanner.lo: $(builddir)/zend_language_parser.h
$(builddir)/zend_ini_scanner.lo: $(builddir)/zend_ini_parser.h
$(builddir)/zend_language_scanner.c: $(srcdir)/zend_language_scanner.l
@$(LEX) -Pzend -S$(srcdir)/flex.skl -o$@ -i $(srcdir)/zend_language_scanner.l
$(LEX) -Pzend -S$(srcdir)/flex.skl -o$@ -i $(srcdir)/zend_language_scanner.l
$(builddir)/zend_language_parser.h: $(builddir)/zend_language_parser.c
$(builddir)/zend_language_parser.c: $(srcdir)/zend_language_parser.y
@$(YACC) -p zend -v -d $(srcdir)/zend_language_parser.y -o $@
$(YACC) -p zend -v -d $(srcdir)/zend_language_parser.y -o $@
$(builddir)/zend_ini_parser.h: $(builddir)/zend_ini_parser.c
$(builddir)/zend_ini_parser.c: $(srcdir)/zend_ini_parser.y
@$(YACC) -p ini_ -v -d $(srcdir)/zend_ini_parser.y -o $@
$(YACC) -p ini_ -v -d $(srcdir)/zend_ini_parser.y -o $@
$(builddir)/zend_ini_scanner.c: $(srcdir)/zend_ini_scanner.l
@$(LEX) -Pini_ -S$(srcdir)/flex.skl -o$@ -i $(srcdir)/zend_ini_scanner.l
$(LEX) -Pini_ -S$(srcdir)/flex.skl -o$@ -i $(srcdir)/zend_ini_scanner.l
$(builddir)/zend_indent.lo $(builddir)/zend_highlight.lo $(builddir)/zend_compile.lo: $(builddir)/zend_language_parser.h
+11 -35
View File
@@ -5,6 +5,7 @@ INSTALL_DATA = $(INSTALL) -m 644
DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir)
COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH)
all: $(all_targets)
@echo
@echo "Build complete."
@@ -42,44 +43,19 @@ install-modules: build-modules
@rm -f modules/*.la >/dev/null 2>&1
@$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR)
install-headers:
-@if test "$(INSTALL_HEADERS)"; then \
for i in $(INSTALL_HEADERS); do \
i=`$(top_srcdir)/build/shtool path -d $$i`; \
paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
done; \
$(mkinstalldirs) $$paths && \
echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \
for i in $(INSTALL_HEADERS); do \
if test "$(PHP_PECL_EXTENSION)"; then \
src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \
else \
src=$$i; \
fi; \
if test -f "$(top_srcdir)/$$src"; then \
$(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
elif test -f "$(top_builddir)/$$src"; then \
$(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \
else \
(cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \
cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \
fi \
done; \
fi
install-su: install-pear
install-tester:
@echo "Installing regression tester: $(INSTALL_ROOT)$(PEAR_INSTALLDIR)/"
@$(mkinstalldirs) $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
@$(INSTALL) -m 755 $(top_srcdir)/run-tests.php $(INSTALL_ROOT)$(PEAR_INSTALLDIR)
test: all
-@if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(PHP_EXECUTABLE) -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php -d 'extension_dir=modules/' -d `( . $(PHP_MODULES) ; echo extension=$$dlname)` tests/; \
elif test ! -z "$(SAPI_CLI_PATH)" && test -x "$(SAPI_CLI_PATH)"; then \
install-su: install-pear install-tester
test:
-@if test -x $(SAPI_CLI_PATH) && test ! -z $(SAPI_CLI_PATH); then \
TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(top_builddir)/$(SAPI_CLI_PATH) -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' $(top_srcdir)/run-tests.php $(TESTS); \
$(top_builddir)/$(SAPI_CLI_PATH) -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' $(top_srcdir)/run-tests.php $(TESTS); \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi
@@ -93,7 +69,7 @@ clean:
distclean: clean
rm -f config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h php5.spec sapi/apache/libphp5.module buildmk.stamp
$(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
egrep define'.*include/php' configure|sed 's/.*>//'|xargs rm -f
find . -name Makefile | xargs rm -f
.PHONY: all clean install distclean test
+506 -745
View File
File diff suppressed because it is too large. Load diff
+11
View File
@@ -7,6 +7,9 @@ Zend
dimensional arrays.
* Look at replacing c-lib call tolower().
* Make hash API functions work with HASH_OF() to save time.
* Add configure test to determine if dlsym() requires underscore and set
DLSYM_NEEDS_UNDERSCORE accordingly. Perl and zsh have it in configure,
for example. (DONE?)
* Native large number support (probably with GNU GMP)
* Const'ify APIs. Right now, many functions leave parameters untouched,
but don't declare those as const. This makes interaction with other
@@ -64,6 +67,14 @@ documentation
* Add developer documentation.
* Add detailed documentation for Java extension.
ext/bz2
-------
* Add an ini directive to specify the size of decompression buffer.
The default 4k is too small for large files and also requires much time
for decompression. 40k is suitable for such files, however it may be too
much under certain environments. There should be appropriate default
settings for the various SAPI modules (e.g. apache and cli).
ext/curl
--------
* Have a warning scheme for when people use unsupported features.
+13
View File
@@ -1,4 +1,17 @@
Zend Engine
-----------
- Look at making zend_constant value member be a zval* instead of zval. (Andi)
- Add the patch for referring to existing .ini vars in .ini files. (Andrei)
- Implement inheritance rules for type hints. (Marcus)
- Implement true/false/NULL as keywords (apply the patch). (Andi, Marcus)
- Implement typehinting for arrays (apply the patch). (Andi, Marcus)
- Find a keyword for the if-set-or operator (apply the patch). (Marcus, all)
- Fix ZTS destruction (apply the patch). (Marcus)
Build System
------------
- Implement load order of built-in extensions (apply the patch). (Wez)
Standard Library
----------------
- Implement new time/date parsing and handling functions. (Derick)
+3
View File
@@ -0,0 +1,3 @@
- clean up .cvsignores
- purge Makefile.ins and replace PHP_EXTENSION in config.m4s
with appropiate calls to PHP_NEW_EXTENSION
+53 -79
View File
@@ -34,7 +34,9 @@ typedef struct {
size_t size;
ts_allocate_ctor ctor;
ts_allocate_dtor dtor;
#ifdef MBO_0
int done;
#endif
} tsrm_resource_type;
@@ -92,28 +94,12 @@ static FILE *tsrm_error_file;
#if defined(PTHREADS)
/* Thread local storage */
static pthread_key_t tls_key;
# define tsrm_tls_set(what) pthread_setspecific(tls_key, (void*)(what))
# define tsrm_tls_get() pthread_getspecific(tls_key)
#elif defined(TSRM_ST)
static int tls_key;
# define tsrm_tls_set(what) st_thread_setspecific(tls_key, (void*)(what))
# define tsrm_tls_get() st_thread_getspecific(tls_key)
#elif defined(TSRM_WIN32)
static DWORD tls_key;
# define tsrm_tls_set(what) TlsSetValue(tls_key, (void*)(what))
# define tsrm_tls_get() TlsGetValue(tls_key)
#elif defined(BETHREADS)
static int32 tls_key;
# define tsrm_tls_set(what) tls_set(tls_key, (void*)(what))
# define tsrm_tls_get() (tsrm_tls_entry*)tls_get(tls_key)
#else
# define tsrm_tls_set(what)
# define tsrm_tls_get() NULL
# warning tsrm_set_interpreter_context is probably broken on this platform
#endif
/* Startup TSRM (call once for the entire process) */
@@ -176,9 +162,11 @@ TSRM_API void tsrm_shutdown(void)
next_p = p->next;
for (j=0; j<p->count; j++) {
if (p->storage[j]) {
#ifdef MBO_0
if (resource_types_table && !resource_types_table[j].done && resource_types_table[j].dtor) {
resource_types_table[j].dtor(p->storage[j], &p->storage);
}
#endif
free(p->storage[j]);
}
}
@@ -238,7 +226,9 @@ TSRM_API ts_rsrc_id ts_allocate_id(ts_rsrc_id *rsrc_id, size_t size, ts_allocate
resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].size = size;
resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].ctor = ctor;
resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].dtor = dtor;
#ifdef MBO_0
resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].done = 0;
#endif
/* enlarge the arrays for the already active threads */
for (i=0; i<tsrm_tls_table_size; i++) {
@@ -278,16 +268,26 @@ static void allocate_new_resource(tsrm_tls_entry **thread_resources_ptr, THREAD_
(*thread_resources_ptr)->thread_id = thread_id;
(*thread_resources_ptr)->next = NULL;
#if defined(PTHREADS)
/* Set thread local storage to this new thread resources structure */
tsrm_tls_set(*thread_resources_ptr);
pthread_setspecific(tls_key, (void *) *thread_resources_ptr);
#elif defined(TSRM_ST)
st_thread_setspecific(tls_key, (void *) *thread_resources_ptr);
#elif defined(TSRM_WIN32)
TlsSetValue(tls_key, (void *) *thread_resources_ptr);
#elif defined(BETHREADS)
tls_set(tls_key, (void*) *thread_resources_ptr);
#endif
if (tsrm_new_thread_begin_handler) {
tsrm_new_thread_begin_handler(thread_id, &((*thread_resources_ptr)->storage));
}
for (i=0; i<id_count; i++) {
#if MBO_0
if (resource_types_table[i].done) {
(*thread_resources_ptr)->storage[i] = NULL;
} else
#endif
{
(*thread_resources_ptr)->storage[i] = (void *) malloc(resource_types_table[i].size);
if (resource_types_table[i].ctor) {
@@ -321,13 +321,22 @@ TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id)
if(tsrm_tls_table) {
#endif
if (!th_id) {
#if defined(PTHREADS)
/* Fast path for looking up the resources for the current
* thread. Its used by just about every call to
* ts_resource_ex(). This avoids the need for a mutex lock
* and our hashtable lookup.
*/
thread_resources = tsrm_tls_get();
thread_resources = pthread_getspecific(tls_key);
#elif defined(TSRM_ST)
thread_resources = st_thread_getspecific(tls_key);
#elif defined(TSRM_WIN32)
thread_resources = TlsGetValue(tls_key);
#elif defined(BETHREADS)
thread_resources = (tsrm_tls_entry*)tls_get(tls_key);
#else
thread_resources = NULL;
#endif
if (thread_resources) {
TSRM_ERROR((TSRM_ERROR_LEVEL_INFO, "Fetching resource id %d for current thread %d", id, (long) thread_resources->thread_id));
/* Read a specific resource from the thread's resources.
@@ -378,65 +387,6 @@ TSRM_API void *ts_resource_ex(ts_rsrc_id id, THREAD_T *th_id)
#endif
}
/* frees an interpreter context. You are responsible for making sure that
* it is not linked into the TSRM hash, and not marked as the current interpreter */
void tsrm_free_interpreter_context(void *context)
{
tsrm_tls_entry *next, *thread_resources = (tsrm_tls_entry*)context;
int i;
while (thread_resources) {
next = thread_resources->next;
for (i=0; i<thread_resources->count; i++) {
if (resource_types_table[i].dtor) {
resource_types_table[i].dtor(thread_resources->storage[i], &thread_resources->storage);
}
}
for (i=0; i<thread_resources->count; i++) {
free(thread_resources->storage[i]);
}
free(thread_resources->storage);
free(thread_resources);
thread_resources = next;
}
}
void *tsrm_set_interpreter_context(void *new_ctx)
{
tsrm_tls_entry *current;
current = tsrm_tls_get();
/* TODO: unlink current from the global linked list, and replace it
* it with the new context, protected by mutex where/if appropriate */
/* Set thread local storage to this new thread resources structure */
tsrm_tls_set(new_ctx);
/* return old context, so caller can restore it when they're done */
return current;
}
/* allocates a new interpreter context */
void *tsrm_new_interpreter_context(void)
{
tsrm_tls_entry *new_ctx, *current;
THREAD_T thread_id;
thread_id = tsrm_thread_id();
tsrm_mutex_lock(tsmm_mutex);
current = tsrm_tls_get();
allocate_new_resource(&new_ctx, thread_id);
/* switch back to the context that was in use prior to our creation
* of the new one */
return tsrm_set_interpreter_context(current);
}
/* frees all resources allocated for the current thread */
void ts_free_thread(void)
@@ -467,7 +417,11 @@ void ts_free_thread(void)
} else {
tsrm_tls_table[hash_value] = thread_resources->next;
}
tsrm_tls_set(0);
#if defined(PTHREADS)
pthread_setspecific(tls_key, 0);
#elif defined(TSRM_WIN32)
TlsSetValue(tls_key, 0);
#endif
free(thread_resources);
break;
}
@@ -483,6 +437,7 @@ void ts_free_thread(void)
/* deallocates all occurrences of a given id */
void ts_free_id(ts_rsrc_id id)
{
#ifdef MBO_0
int i;
int j = TSRM_UNSHUFFLE_RSRC_ID(id);
@@ -511,6 +466,7 @@ void ts_free_id(ts_rsrc_id id)
tsrm_mutex_unlock(tsmm_mutex);
TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Successfully freed resource id %d", id));
#endif
}
@@ -579,6 +535,12 @@ TSRM_API void tsrm_mutex_free(MUTEX_T mutexp)
#ifdef TSRM_WIN32
DeleteCriticalSection(mutexp);
free(mutexp);
#elif defined(NETWARE)
#ifdef USE_MPK
kMutexFree(mutexp);
#else
NXMutexFree(mutexp);
#endif
#elif defined(GNUPTH)
free(mutexp);
#elif defined(PTHREADS)
@@ -608,6 +570,12 @@ TSRM_API int tsrm_mutex_lock(MUTEX_T mutexp)
#ifdef TSRM_WIN32
EnterCriticalSection(mutexp);
return 1;
#elif defined(NETWARE)
#ifdef USE_MPK
return kMutexLock(mutexp);
#else
return NXLock(mutexp);
#endif
#elif defined(GNUPTH)
return pth_mutex_acquire(mutexp, 0, NULL);
#elif defined(PTHREADS)
@@ -633,6 +601,12 @@ TSRM_API int tsrm_mutex_unlock(MUTEX_T mutexp)
#ifdef TSRM_WIN32
LeaveCriticalSection(mutexp);
return 1;
#elif defined(NETWARE)
#ifdef USE_MPK
return kMutexUnlock(mutexp);
#else
return NXUnlock(mutexp);
#endif
#elif defined(GNUPTH)
return pth_mutex_release(mutexp);
#elif defined(PTHREADS)
+1 -7
View File
@@ -132,18 +132,12 @@ TSRM_API int tsrm_mutex_unlock(MUTEX_T mutexp);
TSRM_API void *tsrm_set_new_thread_begin_handler(tsrm_thread_begin_func_t new_thread_begin_handler);
TSRM_API void *tsrm_set_new_thread_end_handler(tsrm_thread_end_func_t new_thread_end_handler);
/* these 3 APIs should only be used by people that fully understand the threading model
* used by PHP/Zend and the selected SAPI. */
TSRM_API void *tsrm_new_interpreter_context(void);
TSRM_API void *tsrm_set_interpreter_context(void *new_ctx);
TSRM_API void tsrm_free_interpreter_context(void *context);
#define TSRM_SHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)+1)
#define TSRM_UNSHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)-1)
#define TSRMLS_FETCH() void ***tsrm_ls = (void ***) ts_resource_ex(0, NULL)
#define TSRMLS_FETCH_FROM_CTX(ctx) void ***tsrm_ls = (void ***) ctx
#define TSRMLS_SET_CTX(ctx) ctx = (void ***) tsrm_ls
#define TSRMLS_SET_CTX(ctx) (void ***) ctx = tsrm_ls
#define TSRMG(id, type, element) (((type) (*((void ***) tsrm_ls))[TSRM_UNSHUFFLE_RSRC_ID(id)])->element)
#define TSRMLS_D void ***tsrm_ls
#define TSRMLS_DC , TSRMLS_D
+2 -2
View File
@@ -87,11 +87,11 @@ int main() {
], [
dnl For cross compiling running this test is of no use. NetWare supports pthreads
pthreads_working=no
case $host_alias in
case $target_alias in
*netware*)
pthreads_working=yes
esac
]
]
) ] )dnl
dnl
dnl PTHREADS_CHECK()
+1 -1
View File
@@ -96,7 +96,7 @@ dnl to maintain consistency
AC_ARG_WITH(tsrm-pth,
[ --with-tsrm-pth[=pth-config]
Use GNU Pth],[
Use GNU Pth.],[
TSRM_PTH=$withval
],[
TSRM_PTH=no
+11
View File
@@ -0,0 +1,11 @@
#ifndef TSRM_CONFIG_NW_H
#define TSRM_CONFIG_NW_H
#define HAVE_UTIME 1
/* Though we have alloca(), this seems to be causing some problem
* with the stack pointer. Hence not using it
*/
/*#define HAVE_ALLOCA 1*/
#endif
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2005 The PHP Group |
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2005 The PHP Group |
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+54 -172
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2005 The PHP Group |
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -27,7 +27,6 @@
#include <errno.h>
#include <stdlib.h>
#include <fcntl.h>
#include <time.h>
#include "tsrm_virtual_cwd.h"
#include "tsrm_strtok_r.h"
@@ -43,7 +42,8 @@
#endif
#ifdef NETWARE
#include <fsio.h>
/*#include "pipe.h"*/
#include "tsrm_nw.h"
#endif
#ifndef HAVE_REALPATH
@@ -60,9 +60,9 @@ MUTEX_T cwd_mutex;
#endif
#ifdef ZTS
ts_rsrc_id cwd_globals_id;
static ts_rsrc_id cwd_globals_id;
#else
virtual_cwd_globals cwd_globals;
static virtual_cwd_globals cwd_globals;
#endif
cwd_state main_cwd_state; /* True global */
@@ -142,9 +142,15 @@ static int php_check_dots(const char *element, int n)
static int php_is_dir_ok(const cwd_state *state)
{
#if !(defined(NETWARE) && defined(CLIB_STAT_PATCH))
struct stat buf;
if (stat(state->cwd, &buf) == 0 && S_ISDIR(buf.st_mode))
#else
struct stat_libc buf;
if (stat(state->cwd, (struct stat*)(&buf)) == 0 && S_ISDIR(buf.st_mode))
#endif
return (0);
return (1);
@@ -152,9 +158,15 @@ static int php_is_dir_ok(const cwd_state *state)
static int php_is_file_ok(const cwd_state *state)
{
#if !(defined(NETWARE) && defined(CLIB_STAT_PATCH))
struct stat buf;
if (stat(state->cwd, &buf) == 0 && S_ISREG(buf.st_mode))
#else
struct stat_libc buf;
if (stat(state->cwd, (struct stat*)(&buf)) == 0 && S_ISREG(buf.st_mode))
#endif
return (0);
return (1);
@@ -163,31 +175,11 @@ static int php_is_file_ok(const cwd_state *state)
static void cwd_globals_ctor(virtual_cwd_globals *cwd_globals TSRMLS_DC)
{
CWD_STATE_COPY(&cwd_globals->cwd, &main_cwd_state);
#ifdef REALPATH_CACHE
cwd_globals->realpath_cache_size = 0;
cwd_globals->realpath_cache_size_limit = REALPATH_CACHE_SIZE;
cwd_globals->realpath_cache_ttl = REALPATH_CACHE_TTL;
memset(cwd_globals->realpath_cache, 0, sizeof(cwd_globals->realpath_cache));
#endif
}
static void cwd_globals_dtor(virtual_cwd_globals *cwd_globals TSRMLS_DC)
{
CWD_STATE_FREE(&cwd_globals->cwd);
#ifdef REALPATH_CACHE
{
int i;
for (i = 0; i < sizeof(cwd_globals->realpath_cache)/sizeof(cwd_globals->realpath_cache[0]); i++) {
realpath_cache_bucket *p = cwd_globals->realpath_cache[i];
while (p != NULL) {
realpath_cache_bucket *r = p;
p = p->next;
free(r);
}
}
}
#endif
}
static char *tsrm_strndup(const char *s, size_t length)
@@ -210,20 +202,7 @@ CWD_API void virtual_cwd_startup(void)
char cwd[MAXPATHLEN];
char *result;
#ifdef NETWARE
result = getcwdpath(cwd, NULL, 1);
if(result)
{
char *c=cwd;
while(c = strchr(c, '\\'))
{
*c='/';
++c;
}
}
#else
result = getcwd(cwd, sizeof(cwd));
#endif
if (!result) {
cwd[0] = '\0';
}
@@ -308,65 +287,6 @@ CWD_API char *virtual_getcwd(char *buf, size_t size TSRMLS_DC)
return buf;
}
#ifdef REALPATH_CACHE
static inline unsigned long realpath_cache_key(const char *path, int path_len)
{
register unsigned long h;
const char *e = path + path_len;
for (h = 2166136261U; path < e; ) {
h *= 16777619;
h ^= *path++;
}
return h;
}
static inline void realpath_cache_add(const char *path, int path_len, const char *realpath, int realpath_len, time_t t TSRMLS_DC)
{
long size = sizeof(realpath_cache_bucket) + path_len + 1 + realpath_len + 1;
if (CWDG(realpath_cache_size) + size <= CWDG(realpath_cache_size_limit)) {
realpath_cache_bucket *bucket = malloc(size);
unsigned long n;
bucket->key = realpath_cache_key(path, path_len);
bucket->path = (char*)bucket + sizeof(realpath_cache_bucket);
memcpy(bucket->path, path, path_len+1);
bucket->path_len = path_len;
bucket->realpath = bucket->path + (path_len + 1);
memcpy(bucket->realpath, realpath, realpath_len+1);
bucket->realpath_len = realpath_len;
bucket->expires = t + CWDG(realpath_cache_ttl);
n = bucket->key % (sizeof(CWDG(realpath_cache)) / sizeof(CWDG(realpath_cache)[0]));
bucket->next = CWDG(realpath_cache)[n];
CWDG(realpath_cache)[n] = bucket;
CWDG(realpath_cache_size) += size;
}
}
static inline realpath_cache_bucket* realpath_cache_find(const char *path, int path_len, time_t t TSRMLS_DC)
{
unsigned long key = realpath_cache_key(path, path_len);
unsigned long n = key % (sizeof(CWDG(realpath_cache)) / sizeof(CWDG(realpath_cache)[0]));
realpath_cache_bucket **bucket = &CWDG(realpath_cache)[n];
while (*bucket != NULL) {
if (CWDG(realpath_cache_ttl) && (*bucket)->expires < t) {
realpath_cache_bucket *r = *bucket;
*bucket = (*bucket)->next;
CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1 + r->realpath_len + 1;
free(r);
} else if (key == (*bucket)->key && path_len == (*bucket)->path_len &&
memcmp(path, (*bucket)->path, path_len) == 0) {
return *bucket;
} else {
*bucket = (*bucket)->next;
}
}
return NULL;
}
#endif
/* Resolve path relatively to state and put the real path into state */
/* returns 0 for ok, 1 for error */
CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func verify_path, int use_realpath)
@@ -375,7 +295,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
char *ptr, *path_copy;
char *tok = NULL;
int ptr_length;
cwd_state old_state;
cwd_state *old_state;
int ret = 0;
int copy_amount = -1;
char *free_path;
@@ -385,59 +305,19 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
#else
char *new_path;
#endif
#ifdef REALPATH_CACHE
char orig_path[MAXPATHLEN];
int orig_path_len;
realpath_cache_bucket *bucket;
time_t t;
TSRMLS_FETCH();
#endif
if (path_length == 0)
return (0);
if (path_length >= MAXPATHLEN)
return (1);
#ifdef REALPATH_CACHE
if (use_realpath && CWDG(realpath_cache_size_limit)) {
if (IS_ABSOLUTE_PATH(path, path_length) || (state->cwd_length < 1)) {
memcpy(orig_path, path, path_length+1);
orig_path_len = path_length;
} else {
orig_path_len = path_length + state->cwd_length + 1;
if (orig_path_len >= MAXPATHLEN) {
return 1;
}
memcpy(orig_path, state->cwd, state->cwd_length);
orig_path[state->cwd_length] = DEFAULT_SLASH;
memcpy(orig_path + state->cwd_length + 1, path, path_length + 1);
}
t = CWDG(realpath_cache_ttl)?time(NULL):0;
if ((bucket = realpath_cache_find(orig_path, orig_path_len, t TSRMLS_CC)) != NULL) {
int len = bucket->realpath_len;
CWD_STATE_COPY(&old_state, state);
state->cwd = (char *) realloc(state->cwd, len+1);
memcpy(state->cwd, bucket->realpath, len+1);
state->cwd_length = len;
if (verify_path && verify_path(state)) {
CWD_STATE_FREE(state);
*state = old_state;
return 1;
} else {
CWD_STATE_FREE(&old_state);
return 0;
}
}
}
#endif
#if !defined(TSRM_WIN32) && !defined(NETWARE)
/* cwd_length can be 0 when getcwd() fails.
* This can happen under solaris when a dir does not have read permissions
* but *does* have execute permissions */
if (IS_ABSOLUTE_PATH(path, path_length) || (state->cwd_length < 1)) {
if (use_realpath) {
if (realpath(path, resolved_path)) { /* Note: Not threadsafe on older *BSD's */
if (realpath(path, resolved_path)) {
path = resolved_path;
path_length = strlen(path);
} else {
@@ -501,7 +381,8 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
#endif
free_path = path_copy = tsrm_strndup(path, path_length);
CWD_STATE_COPY(&old_state, state);
old_state = (cwd_state *) malloc(sizeof(cwd_state));
CWD_STATE_COPY(old_state, state);
#if VIRTUAL_CWD_DEBUG
fprintf(stderr,"cwd = %s path = %s\n", state->cwd, path);
#endif
@@ -521,7 +402,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
memcpy(state->cwd, path_copy, copy_amount);
path_copy += copy_amount;
} else {
memcpy(state->cwd, old_state.cwd, copy_amount);
memcpy(state->cwd, old_state->cwd, copy_amount);
}
}
state->cwd[copy_amount] = '\0';
@@ -564,19 +445,8 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
}
#elif defined(NETWARE)
/*
Below code keeps appending to state->cwd a File system seperator
cases where this appending should not happen is given below,
a) sys: should just be left as it is
b) sys:system should just be left as it is,
Colon is allowed only in the first token as volume names alone can have the : in their names.
Files and Directories cannot have : in their names
So the check goes like this,
For second token and above simply append the DEFAULT_SLASH to the state->cwd.
For first token check for the existence of :
if it exists don't append the DEFAULT_SLASH to the state->cwd.
*/
if(((state->cwd_length == 0) && (strchr(ptr, ':') == NULL)) || (state->cwd_length > 0)) {
/* If the token is a volume name, it will have colon at the end -- so, no slash before it */
if (ptr[ptr_length-1] != ':') {
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
}
#else
@@ -600,28 +470,24 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
state->cwd_length = path_length;
}
if (verify_path && verify_path(state)) {
CWD_STATE_FREE(state);
*state = *old_state;
ret = 1;
} else {
CWD_STATE_FREE(old_state);
ret = 0;
}
free(old_state);
#ifdef TSRM_WIN32
if (new_path) {
free(new_path);
}
#endif
free(free_path);
#ifdef REALPATH_CACHE
if (use_realpath && CWDG(realpath_cache_size_limit)) {
realpath_cache_add(orig_path, orig_path_len, state->cwd, state->cwd_length, t TSRMLS_CC);
}
#endif
if (verify_path && verify_path(state)) {
CWD_STATE_FREE(state);
*state = old_state;
ret = 1;
} else {
CWD_STATE_FREE(&old_state);
ret = 0;
}
#if VIRTUAL_CWD_DEBUG
fprintf (stderr, "virtual_file_ex() = %s\n",state->cwd);
#endif
@@ -850,6 +716,7 @@ CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC)
return retval;
}
#if !(defined(NETWARE) && defined(CLIB_STAT_PATCH))
CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC)
{
cwd_state new_state;
@@ -863,8 +730,23 @@ CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC)
CWD_STATE_FREE(&new_state);
return retval;
}
#else
CWD_API int virtual_stat(const char *path, struct stat_libc *buf TSRMLS_DC)
{
cwd_state new_state;
int retval;
#if !defined(TSRM_WIN32)
CWD_STATE_COPY(&new_state, &CWDG(cwd));
virtual_file_ex(&new_state, path, NULL, 1);
retval = stat(new_state.cwd, (struct stat*)buf);
CWD_STATE_FREE(&new_state);
return retval;
}
#endif
#ifndef TSRM_WIN32
CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC)
{
cwd_state new_state;
@@ -1003,7 +885,7 @@ CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC)
dir_length = CWDG(cwd).cwd_length;
dir = CWDG(cwd).cwd;
ptr = command_line = (char *) malloc(command_length + sizeof("cd '' ; ") + dir_length + extra+1+1);
ptr = command_line = (char *) malloc(command_length + sizeof("cd '' ; ") + dir_length +extra+1+1);
if (!command_line) {
return NULL;
}
+10 -29
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2005 The PHP Group |
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -74,9 +74,10 @@ typedef unsigned short mode_t;
#define DEFAULT_DIR_SEPARATOR ';'
#define IS_SLASH(c) ((c) == '/' || (c) == '\\')
#define IS_SLASH_P(c) IS_SLASH(*(c))
/* Colon indicates volume name, either first character should be forward slash or backward slash */
#define COPY_WHEN_ABSOLUTE(path) \
(strchr(path, ':') - path + 1) /* Take the volume name which ends with a colon */
#define IS_ABSOLUTE_PATH(path, len) \
((strchr(path, ':') != NULL) || ((len >= 1) && ((path[0] == '/') || (path[0] == '\\'))))
(strchr(path, ':') != NULL) /* Colon indicates volume name */
#else
#ifdef HAVE_DIRENT_H
@@ -140,8 +141,12 @@ CWD_API FILE *virtual_fopen(const char *path, const char *mode TSRMLS_DC);
CWD_API int virtual_open(const char *path TSRMLS_DC, int flags, ...);
CWD_API int virtual_creat(const char *path, mode_t mode TSRMLS_DC);
CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC);
#if !(defined(NETWARE) && defined(CLIB_STAT_PATCH))
CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC);
#if !defined(TSRM_WIN32)
#else
CWD_API int virtual_stat(const char *path, struct stat_libc *buf TSRMLS_DC);
#endif
#if !defined(TSRM_WIN32) && !defined(NETWARE)
CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC);
#endif
CWD_API int virtual_unlink(const char *path TSRMLS_DC);
@@ -195,37 +200,13 @@ CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group TSRMLS_
CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func verify_path, int use_realpath);
#define REALPATH_CACHE
#define REALPATH_CACHE_TTL (2*60) /* 2 minutes */
#define REALPATH_CACHE_SIZE 0 /* disabled while php.ini isn't loaded */
#ifdef REALPATH_CACHE
typedef struct _realpath_cache_bucket {
unsigned long key;
char *path;
int path_len;
char *realpath;
int realpath_len;
time_t expires;
struct _realpath_cache_bucket *next;
} realpath_cache_bucket;
#endif
typedef struct _virtual_cwd_globals {
cwd_state cwd;
#ifdef REALPATH_CACHE
long realpath_cache_size;
long realpath_cache_size_limit;
long realpath_cache_ttl;
realpath_cache_bucket *realpath_cache[1024];
#endif
} virtual_cwd_globals;
#ifdef ZTS
extern ts_rsrc_id cwd_globals_id;
# define CWDG(v) TSRMG(cwd_globals_id, virtual_cwd_globals *, v)
#else
extern virtual_cwd_globals cwd_globals;
# define CWDG(v) (cwd_globals.v)
#endif
@@ -248,7 +229,7 @@ extern virtual_cwd_globals cwd_globals;
#define VCWD_REALPATH(path, real_path) virtual_realpath(path, real_path TSRMLS_CC)
#define VCWD_RENAME(oldname, newname) virtual_rename(oldname, newname TSRMLS_CC)
#define VCWD_STAT(path, buff) virtual_stat(path, buff TSRMLS_CC)
#if !defined(TSRM_WIN32)
#ifndef TSRM_WIN32
#define VCWD_LSTAT(path, buff) virtual_lstat(path, buff TSRMLS_CC)
#endif
#define VCWD_UNLINK(path) virtual_unlink(path TSRMLS_CC)
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2005 The PHP Group |
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2005 The PHP Group |
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
-552
View File
@@ -1,552 +0,0 @@
$Id$
UPGRADE NOTES - PHP 5.1
1. Changes in reference handling
a. Overview
b. Code that worked under PHP 4.3, but now fails
c. Code that was valid under PHP 4.3, but now throws an error
d. Code that failed under PHP 4.3, but now works
e. Code that 'should have worked' under PHP 5.0
f. Warnings that came and went
2. Reading []
3. instanceof, is_a(), is_subclass_of(), catch
4. Integer values in function parameters
5. Abstract private methods
6. Access modifiers in interfaces
7. Changes in inheritance rules
8. Class constants
9. Extensions
a. Extensions that are gone from the PHP core
b. Class constants in new PHP 5.1 extensions
10. Date/time support
11. Changes in database support
a. PDO overview
b. Changes in MySQL support
c. Changes in SQLite support
12. Further migration information
13. Checking for E_STRICT errors
===============================================================================
1. Changes in reference handling
================================
1a. Overview
============
>From the PHP script writer's point of view, the change most likely to impact
legacy code is in the way that references are handled in all PHP versions
post-dating the PHP 4.4.0 release.
Until and including PHP 4.3, it was possible to send, assign or return variables
by reference that should really be returned by value, such as a constant, a
temporary value (e.g. the result of an expression), or the result of a function
that had itself been returned by value, as here:
<?php
$foo = "123";
function return_value() {
global $foo;
return $foo;
}
$bar = &return_value();
?>
Although this code would usually work as expected under PHP 4.3, in the general
case the result is undefined. The Zend Engine could not act correctly on these
values as references. This bug could and did lead to various hard-to-reproduce
memory corruption problems, particularly where the code base was large.
In PHP 4.4.0, PHP 5.0.4 and all subsequent PHP releases, the Engine was fixed
to 'know' when the reference operation is being used on a value that should
not be referenced. The actual value is now used in such cases, and a warning
is emitted. The warning takes the form of an E_NOTICE in PHP 4.4.0 and up,
and E_STRICT in PHP 5.0.4 and up.
Code that could potentially produce memory corruption can no longer do so.
However, some legacy code might work differently as a result.
1b. Code that worked under PHP 4.3, but now fails
=================================================
<?php
function func(&$arraykey) {
return $arraykey; // function returns by value!
}
$array = array('a', 'b', 'c');
foreach (array_keys($array) as $key) {
$y = &func($array[$key]);
$z[] =& $y;
}
var_dump($z);
?>
Running the above script under any version of PHP that pre-dates the reference
fix would produce this output:
array(3) {
[0]=>
&string(1) "a"
[1]=>
&string(1) "b"
[2]=>
&string(1) "c"
}
Following the reference fix, the same code would result in:
array(3) {
[0]=>
&string(1) "c"
[1]=>
&string(1) "c"
[2]=>
&string(1) "c"
}
This is because, following the changes, func() assigns by value. The value
of $y is re-assigned, and reference-binding is preserved from $z. Prior
to the fix, the value was assigned by reference, leading $y to be
re-bound on each assignment. The attempt to bind to a temporary value
by reference was the cause of the memory corruption.
Such code can be made to work identically in both the pre-fix and the
post-fix PHP versions. The signature of func() can be altered to return
by reference, or the reference assignment can be removed from the result
of func().
<?php
function func() {
return 'function return';
}
$x = 'original value';
$y =& $x;
$y = &func();
echo $x;
?>
In PHP 4.3 $x would be 'original value', whereas after the changes it would
be 'function return' - remember that where the function does not return by
reference, the reference assignment is converted to a regular assignment.
Again, this can be brought to a common base, either by forcing func() to
return by reference or by eliminating the by-reference assignment.
1c. Code that was valid under PHP 4.3, but now throws an error
==============================================================
<?php
class Foo {
function getThis() {
return $this;
}
function destroyThis() {
$baz =& $this->getThis();
}
}
$bar = new Foo();
$bar->destroyThis();
var_dump($bar);
?>
In PHP 5.0.3, $bar evaluated to NULL instead of returning an object.
That happened because getThis() returns by value, but the value here
is assigned by reference. Although it now works in the expected way,
this is actually invalid code which will throw an E_NOTICE under
PHP 4.4 or an E_STRICT under PHP 5.0.4 and up.
1d. Code that failed under PHP 4.3, but now works
=================================================
<?php
function &f() {
$x = "foo";
var_dump($x);
print "$x\n";
return($a);
}
for ($i = 0; $i < 3; $i++) {
$h = &f();
}
?>
In PHP 4.3 the third call to var_dump produces NULL, due to the memory
corruption caused by returning an uninitialized value by reference.
This is valid code in PHP 5.0.4 and up, but threw errors in earlier
releases of PHP.
<?php
$arr = array('a1' => array('alfa' => 'ok'));
$arr =& $arr['a1'];
echo '-'.$arr['alfa']."-\n";
?>
Until PHP 5.0.5, it wasn't possible to assign an array element by
reference in this way. It now is.
1e. Code that 'should have worked' under PHP 5.0
================================================
There are a couple of instances of bugs reported under PHP 5.0 prior
to the reference fixes which now 'work'. However, in both cases errors
are thrown by PHP 5.1, because the code was invalid in the first place.
Returning values by reference using self:: now works in the general
case but throws an E_STRICT warning, and although your mileage may
vary when assigning by reference to an overloaded object, you will
still see an E_ERROR when you try it, even where the assignment
itself appears to work.
1f. Warnings that came and went
===============================
<?php
function & foo() {
$var = 'ok';
return $var;
}
function & bar() {
return foo();
}
$a =& bar();
echo "$a\n";
?>
Nested calls to functions returning by reference are valid code under both
PHP 4.3 and PHP 5.1, but threw an unwarranted E_NOTICE or E_STRICT under
the intervening PHP releases.
2. Reading []
=============
<?php
class XmlTest {
function test_ref(&$test) {
$test = "ok";
}
function test($test) { }
function run() {
$ar = array();
$this->test_ref($ar[]);
var_dump($ar);
$this->test($ar[]);
}
}
$o = new XmlTest();
$o->run();
?>
This should always have thrown a fatal E_ERROR, because [] cannot be used
for reading in PHP. It is invalid code in PHP 4.4.2 and PHP 5.0.5 upward.
3. instanceof, is_a(), is_subclass_of(), catch
==============================================
In PHP 5.0, is_a() was deprecated and replaced by the "instanceof" operator.
There were some issues with the initial implementation of "instanceof", which
relied on __autoload() to search for missing classes. If the class was not
present, "instanceof" would throw a fatal E_ERROR due to the failure of
__autoload() to discover that class. The same behaviour occurred in the
"catch" operator and the is_subclass_of() function, for the same reason.
None of these functions or operators call __autoload() in PHP 5.1, and
the class_exists() workarounds used in code written for PHP 5.0, while
not problematic in any way, are no longer necessary.
4. Integer values in function parameters
========================================
With the advent of PHP 5.0, a new parameter parsing API was introduced
which is used by a large number of PHP functions. In all versions of
PHP between 5.0 and 5.1, the handling of integer values was very strict
and would reject non-well formed numeric values when a PHP function
expected an integer. These checks have now been relaxed to support
non-well formed numeric strings such as " 123" and "123 ", and will
no longer fail as they did under PHP 5.0. However, to promote code
safety and input validation, PHP functions will now emit an E_NOTICE
when such strings are passed as integers.
5. Abstract private methods
===========================
Abstract private methods were supported between PHP 5.0.0 and PHP 5.0.4,
but were then disallowed on the grounds that the behaviours of 'private'
and 'abstract' are mutually exclusive.
6. Access modifiers in interfaces
=================================
Under PHP 5.0, function declarations in interfaces were treated in exactly
the same way as function declarations in classes. This has not been the case
since October 2004, at which point only the 'public' access modifier was
allowed in interface function declarations. Since April 2005 - which pre-dates
the PHP 5.0b1 release - the 'static' modifier has also been allowed. However,
the 'protected' and 'private' modifiers will now throw an E_ERROR, as will
'abstract'. Note that this change should not affect your existing code, as
none of these modifiers makes sense in the context of interfaces anyway.
7. Changes in inheritance rules
===============================
Under PHP 5.0, it was possible to have a function declaration in a derived class
that did not match the declaration of the same function in the base class, e.g.
class Base {
function &return_by_ref() {
$r = 1;
return $r;
}
}
class Derived extends Base {
function return_by_ref() {
return 1;
}
}
This code will cause an E_STRICT error to be emitted under PHP 5.1.
8. Class constants
==================
Under PHP 5.0, the following code was valid:
<?php
class test {
const foobar = 'foo';
const foobar = 'bar';
}
?>
Under PHP 5.1, redefinition of a class constant will throw a fatal E_ERROR.
9. Extensions
=============
9a. Extensions that are gone from the PHP core
==============================================
One of the first things you're likely to notice when you download PHP 5.1 is that
several of the older extensions have disappeared. Those extensions that are still
actively maintained are available in the PHP Extension Community Library (PECL),
at http://pecl.php.net. Windows binaries are built regularly, and you can obtain
the binaries for PECL extensions built against PHP 5.1 from
http://pecl4win.php.net/list.php/5_1.
Extension Alternative/status
========= ========================
ext/cpdf pecl/pdflib
ext/dbx pecl/dbx
ext/dio pecl/dio
ext/fam not actively maintained
ext/ingres_ii pecl/ingres
ext/ircg not actively maintained
ext/mcve pecl/mcve
ext/mnogosearch not actively maintained
ext/oracle ext/oci8 or ext/pdo_oci
ext/ovrimos not actively maintained
ext/pfpro not actively maintained
- alternatives at http://pecl.php.net/packages.php?catpid=18&catname=Payment
ext/w32api pecl/ffi
ext/yp not actively maintained
sapi/activescript http://pecl4win.php.net/ext.php/php5activescript.dll (PECL package)
or pecl/activescript (CVS)
Modules in PECL that are not actively maintained (i.e. have not been supported
for some time, have no active maintainer working on them currently, and do not
have any PECL package releases), are still available in CVS at
http://cvs.php.net/pecl/. However, unreleased PHP modules are by their nature
unsupported, and your mileage may vary when attempting to install or use them.
9b. Class constants in new PHP 5.1 extensions
=============================================
The Zend Engine 2.1 API allows extension developers to declare class constants
in object oriented extensions. New extensions written for PHP 5.1, including SPL,
PDO, ext/XMLReader and ext/date, have their constants in the format
PDO::CLASS_CONSTANT
rather than in the C format
PDO_CLASS_CONSTANT
in order to minimise pollution of the global namespace in PHP.
Note that the new Date class exists at this point purely to allow the core date
extension to adhere to the above convention, although extended functionality
is planned for the the class in the future.
10. Date/time support
====================
Date/time support has been fully rewritten in PHP 5.1, and no longer
uses the system settings to 'know' the timezone in operation. It will
instead utilize, in the following order:
* The timezone set using the date_default_timezone_set() function (if any)
* The TZ environment variable (if non empty)
* The date.timezone ini option (if set)
* "magical" guess (if the operating system supports it)
* If none of the above options succeeds, UTC
To ensure accuracy (and avoid an E_STRICT warning), you will need to define
your timezone in your php.ini using the following format:
date.timezone = Europe/London
The supported timezones are listed, in this format, in the PHP manual at
http://www.php.net/manual/en/timezones.php.
11. Changes in database support
==============================
11a. PDO overview
================
PHP Data Objects (PDO) were introduced as a PECL extension under PHP 5.0,
and became part of the core PHP distribution in PHP 5.1. The PDO extension
provides a consistent interface for database access, and is used alongside
database-specific PDO drivers. Each driver may also have database-specific
functions of its own, but basic data access functionality such as issuing
queries and fetching data is covered by PDO functions, using the driver
named in PDO::__construct().
Note that the PDO extension, and its drivers, are intended to be built as
shared extensions. This will enable straightforward driver upgrades from
PECL, without forcing you to rebuild all of PHP.
At the point of the PHP 5.1 release, PDO is more than ready for widespread
testing and could be adopted in most situations. However, it is important
to understand that PDO and its drivers are comparatively young and may be
missing certain database-specific features; evaluate PDO carefully before
you use it in new projects.
Legacy code will generally rely on the pre-existing database extensions,
which are still maintained.
There is more in-depth information about the PDO extension in the manual
at http://www.php.net/manual/ref.pdo.php.
11b. Changes in MySQL support
============================
In PHP 4, MySQL 3 support was built-in. With the release of PHP 5.0 there
were two MySQL extensions, named 'mysql' and 'mysqli', which were designed
to support MySQL < 4.1 and MySQL 4.1 and up, respectively. With the
introduction of PDO, which provides a very fast interface to all the
database APIs supported by PHP, the PDO_MYSQL driver can support any
of the current versions (MySQL 3, 4 or 5) in PHP code written for PDO,
depending on the MySQL library version used during compilation. The
older MySQL extensions remain in place for reasons of back compatibility,
but are not enabled by default.
11c. Changes in SQLite support
=============================
In PHP 5.0, SQLite 2 support was provided by the built-in sqlite
extension, which was also available as a PECL extension in PHP 4.3
and PHP 4.4. With the introduction of PDO, the sqlite extension doubles
up to act as a 'sqlite2' driver for PDO; it is due to this that the
sqlite extension in PHP 5.1 has a dependency upon the PDO extension.
PHP 5.1 ships with a number of alternative interfaces to sqlite:
The sqlite extension provides the "classic" sqlite procedural/OO API
that you may have used in prior versions of PHP. It also provides the
PDO 'sqlite2' driver, which allows you to access legacy SQLite 2
databases using the PDO API.
PDO_SQLITE provides the 'sqlite' version 3 driver. SQLite version 3
is vastly superior to SQLite version 2, but the file formats of the
two versions are not compatible.
If your SQLite-based project is already written and working against
earlier PHP versions, then you can continue to use ext/sqlite without
problems, but will need to explicitly enable both PDO and sqlite. New
projects should use PDO and the 'sqlite' (version 3) driver, as this is
faster than SQLite 2, has improved locking concurrency, and supports
both prepared statements and binary columns natively.
12. Further migration information
================================
For general information about migrating from PHP 4 to PHP 5, please refer to
the relevant section in the PHP manual at http://www.php.net/manual/migration5.php.
13. Checking for E_STRICT errors
================================
If you only have a single script to check, you can pick up E_STRICT
errors using PHP's commandline lint facility:
php -d error_reporting=4095 -l script_to_check.php
For larger projects, the shell script below will achieve the same task:
#!/bin/sh
directory=$1
shift
# These extensions are checked
extensions="php inc"
check_file ()
{
echo -ne "Doing PHP syntax check on $1 ..."
# Options:
ERRORS=`/www/php/bin/php -d display_errors=1 -d html_errors=0 -d error_prepend_string=" " -d error_append_string=" " -d error_reporting=4095 -l $1 | grep -v "No syntax errors detected"`
if test -z "$ERRORS"; then
echo -ne "OK."
else
echo -e "Errors found!\n$ERRORS"
fi
echo
}
# loop over remaining file args
for FILE in "$@" ; do
for ext in $extensions; do
if echo $FILE | grep "\.$ext$" > /dev/null; then
if test -f $FILE; then
check_file "$FILE"
fi
fi
done
done
-4468
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1,6 +1,6 @@
--------------------------------------------------------------------
The Zend Engine License, Version 2.00
Copyright (c) 1999-2005 Zend Technologies Ltd. All rights reserved.
Copyright (c) 1999-2003 Zend Technologies Ltd. All rights reserved.
--------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
-1
View File
@@ -1 +0,0 @@
Zend/zend_execute.lo: $(srcdir)/zend_vm_execute.h $(srcdir)/zend_vm_opcodes.h
-108
View File
@@ -1,108 +0,0 @@
ZEND_VM
=======
ZEND_VM architecture allows specializing opcode handlers according to op_type
fields and using different execution methods (call threading, switch threading
and direct threading). As a result ZE2 got more than 20% speedup on raw PHP
code execution (with specialized executor and direct threading execution
method). As in most PHP applications raw execution speed isn't the limiting
factor but system calls and database callls are, your mileage with this patch
will vary.
Most parts of the old zend_execute.c go into zend_vm_def.h. Here you can
find opcode handlers and helpers. The typical opcode handler template looks
like this:
ZEND_VM_HANDLER(<OPCODE-NUMBER>, <OPCODE>, <OP1_TYPES>, <OP2_TYPES>)
{
<HANDLER'S CODE>
}
<OPCODE-NUMBER> is a opcode number (0, 1, ...)
<OPCODE> is an opcode name (ZEN_NOP, ZEND_ADD, :)
<OP1_TYPES> & <OP2_TYPES> are masks for allowed operand op_types. Specializer
will generate code only for defined combination of types. You can use any
combination of the following op_types UNUSED, CONST, VAR, TMP and CV also
you can use ANY mask to disable specialization according operand's op_type.
<HANDLER'S CODE> is a handler's code itself. For most handlers it stills the
same as in old zend_execute.c, but now it uses macros to access opcode operands
and some internal executor data.
You can see the conformity of new macros to old code in the following list:
EXECUTE_DATA
execute_data
ZEND_VM_DISPATCH_TO_HANDLER(<OP>)
return <OP>_helper(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU)
ZEND_VM_DISPATCH_TO_HELPER(<NAME>)
return <NAME>(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU)
ZEND_VM_DISPATCH_TO_HELPER_EX(<NAME>,<PARAM>,<VAL>)
return <NAME>(<VAL>, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU)
ZEND_VM_CONTINUE()
return 0
ZEND_VM_NEXT_OPCODE()
NEXT_OPCODE()
ZEND_VM_SET_OPCODE(<TARGET>
SET_OPCODE(<TARGET>
ZEND_VM_INC_OPCODE()
INC_OPCOD()
ZEND_VM_RETURN_FROM_EXECUTE_LOOP()
RETURN_FROM_EXECUTE_LOOP()
ZEND_VM_C_LABEL(<LABEL>):
<LABEL>:
ZEND_VM_C_GOTO(<LABEL>)
goto <LABEL>
OP<X>_TYPE
opline->op<X>.op_type
GET_OP<X>_ZVAL_PTR(<TYPE>)
get_zval_ptr(&opline->op<X>, EX(Ts), &free_op<X>, <TYPE>)
GET_OP<X>_ZVAL_PTR_PTR(<TYPE>)
get_zval_ptr_ptr(&opline->op<X>, EX(Ts), &free_op<X>, <TYPE>)
GET_OP<X>_OBJ_ZVAL_PTR(<TYPE>)
get_obj_zval_ptr(&opline->op<X>, EX(Ts), &free_op<X>, <TYPE>)
GET_OP<X>_OBJ_ZVAL_PTR_PTR(<TYPE>)
get_obj_zval_ptr_ptr(&opline->op<X>, EX(Ts), &free_op<X>, <TYPE>)
IS_OP<X>_TMP_FREE()
IS_TMP_FREE(free_op<X>)
FREE_OP<X>()
FREE_OP(free_op<X>)
FREE_OP<X>_IF_VAR()
FREE_VAR(free_op<X>)
FREE_OP<X>_VAR_PTR()
FREE_VAR_PTR(free_op<X>)
Executor's helpers can be defined without parameters or with one parameter.
This is done with the following constructs:
ZEND_VM_HELPER(<HELPER-NAME>, <OP1_TYPES>, <OP2_TYPES>)
{
<HELPER'S CODE>
}
ZEND_VM_HELPER_EX(<HELPER-NAME>, <OP1_TYPES>, <OP2_TYPES>, <PARAM_SPEC>)
{
<HELPER'S CODE>
}
Executor's code is generated by PHP script zend_vm_gen.php it uses zend_vm_def.h
and zend_vm_execute.skl as input and produces zend_vm_opcodes.h and
zend_vm_execute.h. The first file is a list of opcode definitions. It is
included from zend_compile.h. The second one is an executor code itself. It is
included from zend_execute.c.
zend_vm_gen.php can produce different kind of executors. You can select
different opcode threading model using --with-vm-kind=CALL|SWITCH|GOTO. You can
disable opcode specialization using --without-specializer. You can include or
exclude old executor together with specialized one using --without-old-executor.
At last you can debug executor using original zend_vm_def.h or generated file
zend_vm_execute.h. Debugging with original file requires --with-lines
option. By default ZE2 uses the following command to generate executor:
$ php zend_vm_gen.php --with-vm-kind=CALL
Zend Engine II currently includes two executors during the build process, one
is the specialized version and the other is the old one non-specialized with
function handlers. By default Zend Engine II uses the specialized one but you
can switch to the old executor at runtime by calling zend_vm_use_old_executor().
+19 -53
View File
@@ -4,6 +4,21 @@ dnl
dnl This file contains Zend specific autoconf functions.
dnl
AC_DEFUN([LIBZEND_BISON_CHECK],[
if test "$YACC" != "bison -y"; then
AC_MSG_WARN(You will need bison if you want to regenerate the Zend parser.)
else
AC_MSG_CHECKING(bison version)
set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | sed -e 's/\./ /' | tr -d 'a-z'`
if test "${1}" = "1" -a "${2}" -lt "28"; then
AC_MSG_WARN(You will need bison 1.28 if you want to regenerate the Zend parser (found ${1}.${2}).)
fi
AC_MSG_RESULT(${1}.${2} (ok))
fi
])
AC_DEFUN([LIBZEND_CHECK_INT_TYPE],[
AC_MSG_CHECKING(for $1)
AC_TRY_COMPILE([
@@ -121,25 +136,8 @@ AC_ARG_ENABLE(debug,
AC_DEFUN([LIBZEND_OTHER_CHECKS],[
AC_ARG_WITH(zend-vm,
[ --with-zend-vm=TYPE Set virtual machine dispatch method. Type is
one of "CALL", "SWITCH" or "GOTO" [TYPE=CALL]],[
PHP_ZEND_VM=$withval
],[
PHP_ZEND_VM=CALL
])
AC_ARG_ENABLE(zend-memory-manager,
[ --disable-zend-memory-manager
Disable the Zend memory manager - FOR DEVELOPERS ONLY!!],
[
ZEND_USE_ZEND_ALLOC=$enableval
], [
ZEND_USE_ZEND_ALLOC=yes
])
AC_ARG_ENABLE(maintainer-zts,
[ --enable-maintainer-zts Enable thread safety - for code maintainers only!!],[
[ --enable-maintainer-zts Enable thread safety - for code maintainers only],[
ZEND_MAINTAINER_ZTS=$enableval
],[
ZEND_MAINTAINER_ZTS=no
@@ -147,32 +145,26 @@ AC_ARG_ENABLE(maintainer-zts,
AC_ARG_ENABLE(inline-optimization,
[ --disable-inline-optimization
If building zend_execute.lo fails, try this switch],[
If building zend_execute.lo fails, try this switch.],[
ZEND_INLINE_OPTIMIZATION=$enableval
],[
ZEND_INLINE_OPTIMIZATION=yes
])
AC_ARG_ENABLE(memory-limit,
[ --enable-memory-limit Compile with memory limit support], [
[ --enable-memory-limit Compile with memory limit support. ], [
ZEND_MEMORY_LIMIT=$enableval
],[
ZEND_MEMORY_LIMIT=no
])
AC_ARG_ENABLE(zend-multibyte,
[ --enable-zend-multibyte Compile with zend multibyte support], [
[ --enable-zend-multibyte Compile with zend multibyte support. ], [
ZEND_MULTIBYTE=$enableval
],[
ZEND_MULTIBYTE=no
])
AC_MSG_CHECKING([virtual machine dispatch method])
AC_MSG_RESULT($PHP_ZEND_VM)
AC_MSG_CHECKING(whether to enable the Zend memory manager)
AC_MSG_RESULT($ZEND_USE_ZEND_ALLOC)
AC_MSG_CHECKING(whether to enable thread-safety)
AC_MSG_RESULT($ZEND_MAINTAINER_ZTS)
@@ -188,19 +180,6 @@ AC_MSG_RESULT($ZEND_DEBUG)
AC_MSG_CHECKING(whether to enable Zend multibyte)
AC_MSG_RESULT($ZEND_MULTIBYTE)
case $PHP_ZEND_VM in
SWITCH)
AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_SWITCH,[virtual machine dispatch method])
;;
GOTO)
AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_GOTO,[virtual machine dispatch method])
;;
*)
PHP_ZEND_VM=CALL
AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_CALL,[virtual machine dispatch method])
;;
esac
if test "$ZEND_DEBUG" = "yes"; then
AC_DEFINE(ZEND_DEBUG,1,[ ])
echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g"
@@ -216,12 +195,6 @@ fi
test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
if test "$ZEND_USE_ZEND_ALLOC" = "yes"; then
AC_DEFINE(USE_ZEND_ALLOC,1,[Use Zend memory manager])
else
AC_DEFINE(USE_ZEND_ALLOC,0,[Use Zend memory manager])
fi
if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
AC_DEFINE(ZTS,1,[ ])
CFLAGS="$CFLAGS -DZTS"
@@ -250,13 +223,6 @@ AC_C_INLINE
AC_SUBST(INLINE_CFLAGS)
AC_MSG_CHECKING(target system is Darwin)
if echo "$target" | grep "darwin" > /dev/null; then
AC_DEFINE([DARWIN], 1, [Define if the target system is darwin])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
dnl test and set the alignment define for ZEND_MM
dnl this also does the logarithmic test for ZEND_MM.
+1 -15
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2005 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2004 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -65,13 +65,6 @@ int zend_sprintf(char *buffer, const char *format, ...);
#include <math.h>
/* To enable the is_nan, is_infinite and is_finite PHP functions */
#ifdef NETWARE
#define HAVE_ISNAN 1
#define HAVE_ISINF 1
#define HAVE_ISFINITE 1
#endif
#ifndef zend_isnan
#ifdef HAVE_ISNAN
#define zend_isnan(a) isnan(a)
@@ -105,13 +98,6 @@ int zend_sprintf(char *buffer, const char *format, ...);
#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
#ifdef NETWARE
#ifdef USE_WINSOCK
#/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T
#/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H
#endif
#endif
/*
* Local variables:
* tab-width: 4
-33
View File
@@ -2,39 +2,6 @@ dnl $Id$
dnl
dnl This file contains local autoconf functions.
AC_DEFUN([LIBZEND_BISON_CHECK],[
# we only support certain bison versions
bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1"
# for standalone build of Zend Engine
test -z "$SED" && SED=sed
bison_version=none
if test "$YACC"; then
AC_CACHE_CHECK([for bison version], php_cv_bison_version, [
bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
php_cv_bison_version=invalid
if test -n "$bison_version_vars"; then
set $bison_version_vars
bison_version="${1}.${2}"
for bison_check_version in $bison_version_list; do
if test "$bison_version" = "$bison_check_version"; then
php_cv_bison_version="$bison_check_version (ok)"
break
fi
done
fi
])
fi
case $php_cv_bison_version in
""|invalid[)]
bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
AC_MSG_WARN([$bison_msg])
YACC="exit 0;"
;;
esac
])
AC_DEFUN([ZEND_FP_EXCEPT],[
AC_CACHE_CHECK(whether fp_except is defined, ac_cv_type_fp_except,[
AC_TRY_COMPILE([
-419
View File
@@ -1,419 +0,0 @@
<?php
function simple() {
$a = 0;
for ($i = 0; $i < 1000000; $i++)
$a++;
$thisisanotherlongname = 0;
for ($thisisalongname = 0; $thisisalongname < 1000000; $thisisalongname++)
$thisisanotherlongname++;
}
/****/
function simplecall() {
for ($i = 0; $i < 1000000; $i++)
strlen("hallo");
}
/****/
function hallo($a) {
}
function simpleucall() {
for ($i = 0; $i < 1000000; $i++)
hallo("hallo");
}
/****/
function simpleudcall() {
for ($i = 0; $i < 1000000; $i++)
hallo2("hallo");
}
function hallo2($a) {
}
/****/
function mandel() {
$w1=50;
$h1=150;
$recen=-.45;
$imcen=0.0;
$r=0.7;
$s=0; $rec=0; $imc=0; $re=0; $im=0; $re2=0; $im2=0;
$x=0; $y=0; $w2=0; $h2=0; $color=0;
$s=2*$r/$w1;
$w2=40;
$h2=12;
for ($y=0 ; $y<=$w1; $y=$y+1) {
$imc=$s*($y-$h2)+$imcen;
for ($x=0 ; $x<=$h1; $x=$x+1) {
$rec=$s*($x-$w2)+$recen;
$re=$rec;
$im=$imc;
$color=1000;
$re2=$re*$re;
$im2=$im*$im;
while( ((($re2+$im2)<1000000) && $color>0)) {
$im=$re*$im*2+$imc;
$re=$re2-$im2+$rec;
$re2=$re*$re;
$im2=$im*$im;
$color=$color-1;
}
if ( $color==0 ) {
print "_";
} else {
print "#";
}
}
print "<br>";
flush();
}
}
/****/
function mandel2() {
$b = " .:,;!/>)|&IH%*#";
//float r, i, z, Z, t, c, C;
for ($y=30; printf("\n"), $C = $y*0.1 - 1.5, $y--;){
for ($x=0; $c = $x*0.04 - 2, $z=0, $Z=0, $x++ < 75;){
for ($r=$c, $i=$C, $k=0; $t = $z*$z - $Z*$Z + $r, $Z = 2*$z*$Z + $i, $z=$t, $k<5000; $k++)
if ($z*$z + $Z*$Z > 500000) break;
echo $b[$k%16];
}
}
}
/****/
function Ack($m, $n){
if($m == 0) return $n+1;
if($n == 0) return Ack($m-1, 1);
return Ack($m - 1, Ack($m, ($n - 1)));
}
function ackermann($n) {
$r = Ack(3,$n);
print "Ack(3,$n): $r\n";
}
/****/
function ary($n) {
for ($i=0; $i<$n; $i++) {
$X[$i] = $i;
}
for ($i=$n-1; $i>=0; $i--) {
$Y[$i] = $X[$i];
}
$last = $n-1;
print "$Y[$last]\n";
}
/****/
function ary2($n) {
for ($i=0; $i<$n;) {
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
$X[$i] = $i; ++$i;
}
for ($i=$n-1; $i>=0;) {
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
$Y[$i] = $X[$i]; --$i;
}
$last = $n-1;
print "$Y[$last]\n";
}
/****/
function ary3($n) {
for ($i=0; $i<$n; $i++) {
$X[$i] = $i + 1;
$Y[$i] = 0;
}
for ($k=0; $k<1000; $k++) {
for ($i=$n-1; $i>=0; $i--) {
$Y[$i] += $X[$i];
}
}
$last = $n-1;
print "$Y[0] $Y[$last]\n";
}
/****/
function fibo_r($n){
return(($n < 2) ? 1 : fibo_r($n - 2) + fibo_r($n - 1));
}
function fibo($n) {
$r = fibo_r($n);
print "$r\n";
}
/****/
function hash($n) {
for ($i = 1; $i <= $n; $i++) {
$X[dechex($i)] = $i;
}
$c = 0;
for ($i = $n; $i > 0; $i--) {
if ($X[dechex($i)]) { $c++; }
}
print "$c\n";
}
/****/
function hash2($n) {
for ($i = 0; $i < $n; $i++) {
$hash1["foo_$i"] = $i;
$hash2["foo_$i"] = 0;
}
for ($i = $n; $i > 0; $i--) {
foreach($hash1 as $key => $value) $hash2[$key] += $value;
}
$first = "foo_0";
$last = "foo_".($n-1);
print "$hash1[$first] $hash1[$last] $hash2[$first] $hash2[$last]\n";
}
/****/
function gen_random ($n) {
global $LAST;
return( ($n * ($LAST = ($LAST * IA + IC) % IM)) / IM );
}
function heapsort_r($n, &$ra) {
$l = ($n >> 1) + 1;
$ir = $n;
while (1) {
if ($l > 1) {
$rra = $ra[--$l];
} else {
$rra = $ra[$ir];
$ra[$ir] = $ra[1];
if (--$ir == 1) {
$ra[1] = $rra;
return;
}
}
$i = $l;
$j = $l << 1;
while ($j <= $ir) {
if (($j < $ir) && ($ra[$j] < $ra[$j+1])) {
$j++;
}
if ($rra < $ra[$j]) {
$ra[$i] = $ra[$j];
$j += ($i = $j);
} else {
$j = $ir + 1;
}
}
$ra[$i] = $rra;
}
}
function heapsort($N) {
global $LAST;
define("IM", 139968);
define("IA", 3877);
define("IC", 29573);
$LAST = 42;
for ($i=1; $i<=$N; $i++) {
$ary[$i] = gen_random(1);
}
heapsort_r($N, $ary);
printf("%.10f\n", $ary[$N]);
}
/****/
function mkmatrix ($rows, $cols) {
$count = 1;
$mx = array();
for ($i=0; $i<$rows; $i++) {
for ($j=0; $j<$cols; $j++) {
$mx[$i][$j] = $count++;
}
}
return($mx);
}
function mmult ($rows, $cols, $m1, $m2) {
$m3 = array();
for ($i=0; $i<$rows; $i++) {
for ($j=0; $j<$cols; $j++) {
$x = 0;
for ($k=0; $k<$cols; $k++) {
$x += $m1[$i][$k] * $m2[$k][$j];
}
$m3[$i][$j] = $x;
}
}
return($m3);
}
function matrix($n) {
$SIZE = 30;
$m1 = mkmatrix($SIZE, $SIZE);
$m2 = mkmatrix($SIZE, $SIZE);
while ($n--) {
$mm = mmult($SIZE, $SIZE, $m1, $m2);
}
print "{$mm[0][0]} {$mm[2][3]} {$mm[3][2]} {$mm[4][4]}\n";
}
/****/
function nestedloop($n) {
$x = 0;
for ($a=0; $a<$n; $a++)
for ($b=0; $b<$n; $b++)
for ($c=0; $c<$n; $c++)
for ($d=0; $d<$n; $d++)
for ($e=0; $e<$n; $e++)
for ($f=0; $f<$n; $f++)
$x++;
print "$x\n";
}
/****/
function sieve($n) {
$count = 0;
while ($n-- > 0) {
$count = 0;
$flags = range (0,8192);
for ($i=2; $i<8193; $i++) {
if ($flags[$i] > 0) {
for ($k=$i+$i; $k <= 8192; $k+=$i) {
$flags[$k] = 0;
}
$count++;
}
}
}
print "Count: $count\n";
}
/****/
function strcat($n) {
$str = "";
while ($n-- > 0) {
$str .= "hello\n";
}
$len = strlen($str);
print "$len\n";
}
/*****/
function getmicrotime()
{
$t = gettimeofday();
return ($t['sec'] + $t['usec'] / 1000000);
}
function start_test()
{
ob_start();
return getmicrotime();
}
function end_test($start, $name)
{
global $total;
$end = getmicrotime();
ob_end_clean();
$total += $end-$start;
$num = number_format($end-$start,3);
$pad = str_repeat(" ", 24-strlen($name)-strlen($num));
echo $name.$pad.$num."\n";
ob_start();
return getmicrotime();
}
function total()
{
global $total;
$pad = str_repeat("-", 24);
echo $pad."\n";
$num = number_format($total,3);
$pad = str_repeat(" ", 24-strlen("Total")-strlen($num));
echo "Total".$pad.$num."\n";
}
$t0 = $t = start_test();
simple();
$t = end_test($t, "simple");
simplecall();
$t = end_test($t, "simplecall");
simpleucall();
$t = end_test($t, "simpleucall");
simpleudcall();
$t = end_test($t, "simpleudcall");
mandel();
$t = end_test($t, "mandel");
mandel2();
$t = end_test($t, "mandel2");
ackermann(7);
$t = end_test($t, "ackermann(7)");
ary(50000);
$t = end_test($t, "ary(50000)");
ary2(50000);
$t = end_test($t, "ary2(50000)");
ary3(2000);
$t = end_test($t, "ary3(2000)");
fibo(30);
$t = end_test($t, "fibo(30)");
hash(50000);
$t = end_test($t, "hash(50000)");
hash2(500);
$t = end_test($t, "hash2(500)");
heapsort(20000);
$t = end_test($t, "heapsort(20000)");
matrix(20);
$t = end_test($t, "matrix(20)");
nestedloop(12);
$t = end_test($t, "nestedloop(12)");
sieve(30);
$t = end_test($t, "sieve(30)");
strcat(200000);
$t = end_test($t, "strcat(200000)");
total($t0, "Total");
?>
-19
View File
@@ -1,19 +0,0 @@
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2005 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.zend.com/license/2_00.txt. |
| If you did not receive a copy of the Zend license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
*/
/* $Id$ */
-15
View File
@@ -1,15 +0,0 @@
--TEST--
Array type hint
--FILE--
<?php
function foo(array $a) {
echo count($a)."\n";
}
foo(array(1,2,3));
foo(123);
?>
--EXPECTF--
3
Fatal error: Argument 1 passed to foo() must be an array, called in %sarray_type_hint_001.php on line 7 and defined in %sarray_type_hint_001.php on line 2
+3
View File
@@ -34,3 +34,6 @@ $c->viewMom();
--EXPECT--
protected method
protected property
--EXPECT--
protected method
protected property
+40
View File
@@ -18,17 +18,57 @@ for ($i = 0; $i < 8; $i++) {
--EXPECTF--
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
string(3) "foo"
'foo'
Notice: Undefined variable: a in %s on line %d
Strict Standards: Only variable references should be returned by reference in %s on line %d
+1 -1
View File
@@ -8,7 +8,7 @@ class Test {
function __copy()
{
$string = PHP_VERSION;
$version = $string[0];
$version = $string{0};
if($string < 5)
{
return $this;
+1 -1
View File
@@ -3,7 +3,7 @@ Bug #26281 (switch() crash when condition is a string offset)
--FILE--
<?php
$x = 'abc';
switch ($x[0]) {
switch ($x{0}) {
case 'a':
echo "no crash\n";
break;
+2 -2
View File
@@ -4,14 +4,14 @@ Bug #26801 (switch ($a{0}) crash)
<?php
$a = '11';
$b = $a[0];
$b = $a{0};
switch ($b) {
case '-':
break;
}
$a = '22';
switch ($a[0]) {
switch ($a{0}) {
case '-':
break;
}
-28
View File
@@ -1,28 +0,0 @@
--TEST--
Bug #27268 (Bad references accentuated by clone)
--FILE--
<?php
class A
{
public function &getA()
{
return $this->a;
}
}
$A = new A;
$A->a = array(1);
$x = $A->getA();
$clone = clone $A;
$clone->a = array();
print_r($A);
?>
--EXPECT--
A Object
(
[a] => Array
(
[0] => 1
)
)
-23
View File
@@ -1,23 +0,0 @@
--TEST--
Bug #27304
--FILE--
<?php
class Staticexample
{
static function test()
{
var_dump(isset($this));
}
}
$b = new Staticexample();
Staticexample::test();
$b->test();
?>
===DONE===
--EXPECT--
bool(false)
bool(false)
===DONE===
-12
View File
@@ -1,12 +0,0 @@
--TEST--
Bug #27598 (list() array key assignment causes HUGE memory leak)
--FILE--
<?php
list($out[0]) = array(1);
var_dump($out);
?>
--EXPECT--
array(1) {
[0]=>
int(1)
}
-2
View File
@@ -2,8 +2,6 @@
Bug #27641 (zend.ze1_compatibility_mode = On causes object properties to be misreported)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed'); ?>
--INI--
error_reporting=4095
--FILE--
<?php
class A {
-18
View File
@@ -1,18 +0,0 @@
--TEST--
Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dynamically)
--FILE--
<?php
error_reporting(E_ALL & !E_STRICT);
class A {
function hello() {
echo "Hello World\n";
}
}
$y[0] = 'hello';
A::$y[0]();
?>
===DONE===
--EXPECTF--
Hello World
===DONE===
-46
View File
@@ -1,46 +0,0 @@
--TEST--
Bug #28072 (static array with some constant keys will be incorrectly ordered)
--FILE--
<?php
define("FIRST_KEY", "a");
define("THIRD_KEY", "c");
function test()
{
static $arr = array(
FIRST_KEY => "111",
"b" => "222",
THIRD_KEY => "333",
"d" => "444"
);
print_r($arr);
}
function test2()
{
static $arr = array(
FIRST_KEY => "111",
"a" => "222",
"c" => "333",
THIRD_KEY => "444"
);
print_r($arr);
}
test();
test2();
?>
--EXPECT--
Array
(
[a] => 111
[b] => 222
[c] => 333
[d] => 444
)
Array
(
[a] => 111
[c] => 444
)
-23
View File
@@ -1,23 +0,0 @@
--TEST--
Bug #28377 (debug_backtrace is intermittently passing args)
--FILE--
<?php
function doit($a, $b)
{
$trace = debug_backtrace();
custom_callback('dereferenced', $trace);
custom_callback('direct', debug_backtrace());
}
function custom_callback($traceName, $btInfo)
{
echo $traceName ." -- args: ";
echo isset($btInfo[0]['args']) ? count($btInfo[0]['args']) : 'does not exist';
echo "\n";
}
doit('a','b');
?>
--EXPECT--
dereferenced -- args: 2
direct -- args: 2
-11
View File
@@ -1,11 +0,0 @@
--TEST--
Bug #29015 (Incorrect behavior of member vars(non string ones)-numeric mem vars und others)
--FILE--
<?php
$a = new stdClass();
$x = "";
$a->$x = "string('')";
var_dump($a);
?>
--EXPECTF--
Fatal error: Cannot access empty property in %sbug29015.php on line 4
-27
View File
@@ -1,27 +0,0 @@
--TEST--
Bug #29104 Function declaration in method doesn't work
--FILE--
<?php
class A
{
function g()
{
echo "function g - begin\n";
function f()
{
echo "function f\n";
}
echo "function g - end\n";
}
}
$a = new A;
$a->g();
f();
?>
--EXPECT--
function g - begin
function g - end
function f
-104
View File
@@ -1,104 +0,0 @@
--TEST--
Bug #29210 Function: is_callable - no support for private and protected classes
--FILE--
<?php
class test_class {
private function test_func1() {
echo "test_func1\n";
}
protected function test_func2() {
echo "test_func2\n";
}
static private function test_func3() {
echo "test_func3\n";
}
static protected function test_func4() {
echo "test_func4\n";
}
function test() {
if (is_callable(array($this,'test_func1'))) {
$this->test_func1();
} else {
echo "test_func1 isn't callable from inside\n";
}
if (is_callable(array($this,'test_func2'))) {
$this->test_func2();
} else {
echo "test_func2 isn't callable from inside\n";
}
if (is_callable(array('test_class','test_func3'))) {
test_class::test_func3();
} else {
echo "test_func3 isn't callable from inside\n";
}
if (is_callable(array('test_class','test_func4'))) {
test_class::test_func4();
} else {
echo "test_func4 isn't callable from inside\n";
}
}
}
class foo extends test_class {
function test() {
if (is_callable(array($this,'test_func1'))) {
$this->test_func1();
} else {
echo "test_func1 isn't callable from child\n";
}
if (is_callable(array($this,'test_func2'))) {
$this->test_func2();
} else {
echo "test_func2 isn't callable from child\n";
}
if (is_callable(array('test_class','test_func3'))) {
test_class::test_func3();
} else {
echo "test_func3 isn't callable from child\n";
}
if (is_callable(array('test_class','test_func4'))) {
test_class::test_func4();
} else {
echo "test_func4 isn't callable from child\n";
}
}
}
$object = new test_class;
$object->test();
if (is_callable(array($object,'test_func1'))) {
$object->test_func1();
} else {
echo "test_func1 isn't callable from outside\n";
}
if (is_callable(array($object,'test_func2'))) {
$object->test_func2();
} else {
echo "test_func2 isn't callable from outside\n";
}
if (is_callable(array('test_class','test_func3'))) {
test_class::test_func3();
} else {
echo "test_func3 isn't callable from outside\n";
}
if (is_callable(array('test_class','test_func4'))) {
test_class::test_func4();
} else {
echo "test_func4 isn't callable from outside\n";
}
$object = new foo();
$object->test();
?>
--EXPECT--
test_func1
test_func2
test_func3
test_func4
test_func1 isn't callable from outside
test_func2 isn't callable from outside
test_func3 isn't callable from outside
test_func4 isn't callable from outside
test_func1 isn't callable from child
test_func2
test_func3 isn't callable from child
test_func4
+1 -1
View File
@@ -1,7 +1,7 @@
--TEST--
Bug #29368 (The destructor is called when an exception is thrown from the constructor)
--FILE--
<?php
<?
class Foo
{
-41
View File
@@ -1,41 +0,0 @@
--TEST--
Bug #29674 (inherited method doesn't have access to private variables of the derived class)
--FILE--
<?php
class BaseClass
{
private $private_base = "Base";
function printVars ()
{
var_dump($this->private_base);
var_dump($this->private_child);
}
}
class ChildClass extends BaseClass
{
private $private_child = "Child";
}
echo "===BASE===\n";
$obj = new BaseClass;
$obj->printVars();
echo "===CHILD===\n";
$obj = new ChildClass;
$obj->printVars();
?>
===DONE===
--EXPECTF--
===BASE===
string(4) "Base"
Notice: Undefined property: BaseClass::$private_child in %sbug29674.php on line %d
NULL
===CHILD===
string(4) "Base"
Fatal error: Cannot access private property ChildClass::$private_child in %sbug29674.php on line %d
-62
View File
@@ -1,62 +0,0 @@
--TEST--
Bug #29689 (default value of protected member overrides default value of private)
--FILE--
<?php
class foo {
private $foo = 'foo';
private $foo2 = 'foo2';
function printFoo()
{
echo __CLASS__, ': ', $this->foo, " ", $this->foo2, "\n";
}
}
class bar extends foo {
protected $foo = 'bar';
function printFoo()
{
parent::printFoo();
echo __CLASS__, ': ', $this->foo, " ", $this->foo2, "\n";
}
}
class baz extends bar {
protected $foo = 'baz';
protected $foo2 = 'baz2';
}
class bar2 extends foo {
function printFoo()
{
parent::printFoo();
echo __CLASS__, ': ', $this->foo, " ", $this->foo2, "\n";
}
}
class baz2 extends bar2 {
protected $foo = 'baz2';
protected $foo2 = 'baz22';
}
$bar = new bar;
$bar->printFoo();
echo "---baz--\n";
$baz = new baz();
$baz->printFoo();
echo "---baz2--\n";
$baz = new baz2();
$baz->printFoo();
?>
--EXPECTF--
foo: foo foo2
bar: bar
Notice: Undefined property: bar::$foo2 in %s on line %d
---baz--
foo: foo foo2
bar: baz baz2
---baz2--
foo: foo foo2
bar2: baz2 baz22
-23
View File
@@ -1,23 +0,0 @@
--TEST--
Bug #29890 (crash if error handler fails)
--FILE--
<?php
function customErrorHandler($fErrNo,$fErrStr,$fErrFile,$fErrLine,&$fClass) {
echo "error :".$fErrStr."\n";
}
set_time_limit(5);
error_reporting(E_ALL);
set_error_handler("customErrorHandler");
define("TEST",2);
//should return a notice that the constant is already defined
define("TEST",3);
?>
--EXPECT--
error :Constant TEST already defined
-28
View File
@@ -1,28 +0,0 @@
--TEST--
Bug #29896 (Backtrace argument list out of sync)
--FILE--
<?php
function userErrorHandler($num, $msg, $file, $line, $vars)
{
debug_print_backtrace();
}
$OldErrorHandler = set_error_handler("userErrorHandler");
function GenerateError1($A1)
{
$a = $b;
}
function GenerateError2($A1)
{
GenerateError1("Test1");
}
GenerateError2("Test2");
?>
--EXPECTF--
#0 userErrorHandler(8, Undefined variable: b, %sbug29896.php, 11, Array ([A1] => Test1)) called at [%sbug29896.php:11]
#1 GenerateError1(Test1) called at [%sbug29896.php:16]
#2 GenerateError2(Test2) called at [%sbug29896.php:19]
-16
View File
@@ -1,16 +0,0 @@
--TEST--
Bug #29944 (Function defined in switch, crashes)
--FILE--
<?php
$a = 1;
switch ($a) {
case 1:
function foo($a) {
return "ok\n";
}
echo foo($a);
}
?>
--EXPECT--
ok
-18
View File
@@ -1,18 +0,0 @@
--TEST--
Bug #30080 (Passing array or non array of objects)
--FILE--
<?php
class foo {
function foo($arrayobj) {
var_dump($arrayobj);
}
}
new foo(array(new stdClass));
?>
--EXPECT--
array(1) {
[0]=>
object(stdClass)#2 (0) {
}
}
-30
View File
@@ -1,30 +0,0 @@
--TEST--
Bug #30140 (Problem with array in static properties)
--FILE--
<?php
class A {
public static $test1 = true;
public static $test2 = array();
public static $test3 = "str";
}
class B extends A {
}
A::$test1 = "x";
A::$test2 = "y";
A::$test3 = "z";
var_dump(A::$test1);
var_dump(A::$test2);
var_dump(A::$test3);
var_dump(B::$test1);
var_dump(B::$test2);
var_dump(B::$test3);
?>
--EXPECT--
string(1) "x"
string(1) "y"
string(1) "z"
string(1) "x"
string(1) "y"
string(1) "z"
-34
View File
@@ -1,34 +0,0 @@
--TEST--
Bug #30161 (Segmentation fault with exceptions)
--FILE--
<?php
class FIIFO {
public function __construct() {
throw new Exception;
}
}
class hariCow extends FIIFO {
public function __construct() {
try {
parent::__construct();
} catch(Exception $e) {
}
}
public function __toString() {
return "ok\n";
}
}
$db = new hariCow;
echo $db;
?>
--EXPECT--
ok
-52
View File
@@ -1,52 +0,0 @@
--TEST--
Bug #30162 (Catching exception in constructor couses lose of $this)
--FILE--
<?php
class FIIFO {
public function __construct() {
$this->x = "x";
throw new Exception;
}
}
class hariCow extends FIIFO {
public function __construct() {
try {
parent::__construct();
} catch(Exception $e) {
}
$this->y = "y";
try {
$this->z = new FIIFO;
} catch(Exception $e) {
}
}
public function __toString() {
return "Rusticus in asino sedet.";
}
}
try {
$db = new FIIFO();
} catch(Exception $e) {
}
var_dump($db);
$db = new hariCow;
var_dump($db);
?>
--EXPECTF--
Notice: Undefined variable: db in %sbug30162.php on line 35
NULL
object(hariCow)#1 (2) {
["x"]=>
string(1) "x"
["y"]=>
string(1) "y"
}
-40
View File
@@ -1,40 +0,0 @@
--TEST--
Bug #30332 (zend.ze1_compatibility_mode isnt fully compatable with array_push())
--INI--
zend.ze1_compatibility_mode=on
error_reporting=4095
--FILE--
<?php
class x { };
$first = new x;
$second = $first;
$container = array();
array_push($container, $first);
$first->first = " im in the first";
print_r($first);
print_r($second);
print_r($container);
?>
--EXPECTF--
Strict Standards: Implicit cloning object of class 'x' because of 'zend.ze1_compatibility_mode' in %sbug30332.php on line 4
Strict Standards: Implicit cloning object of class 'x' because of 'zend.ze1_compatibility_mode' in %sbug30332.php on line 5
Strict Standards: Implicit cloning object of class 'x' because of 'zend.ze1_compatibility_mode' in %sbug30332.php on line 7
x Object
(
[first] => im in the first
)
x Object
(
)
Array
(
[0] => x Object
(
)
)
-24
View File
@@ -1,24 +0,0 @@
--TEST--
Bug 30346 (arrayAcces & using $this)
--FILE--
<?php
class Test implements ArrayAccess
{
public function __construct() { }
public function offsetExists( $offset ) { return false; }
public function offsetGet( $offset ) { return $offset; }
public function offsetSet( $offset, $data ) { }
public function offsetUnset( $offset ) { }
}
$post = new Test;
$id = 'page';
echo $post[$id.'_show'];
echo "\n";
?>
===DONE===
--EXPECT--
page_show
===DONE===
-30
View File
@@ -1,30 +0,0 @@
--TEST--
Bug #30394 (Assignment operators yield wrong result with __get/__set)
--FILE--
<?php
class Container
{
public function __get( $what )
{
return $this->_p[ $what ];
}
public function __set( $what, $value )
{
$this->_p[ $what ] = $value;
}
private $_p = array();
}
$c = new Container();
$c->a = 1;
$c->a += 1;
print $c->a; // --> 2
print " - ";
$c->a += max( 0, 1 );
print $c->a; // --> 4 (!)
?>
--EXPECT--
2 - 3
-18
View File
@@ -1,18 +0,0 @@
--TEST--
Bug #30407 (Strange behaviour of default arguments)
--FILE--
<?php
function haricow($a = 'one') {
var_dump($a);
$a = 'two';
}
haricow();
haricow();
?>
===DONE===
--EXPECT--
string(3) "one"
string(3) "one"
===DONE===
-36
View File
@@ -1,36 +0,0 @@
--TEST--
Bug #30451 (static properties permissions broken)
--FILE--
<?php
class A {
protected static $property = TRUE;
protected static function method() {
return TRUE;
}
}
class B extends A {
public function __construct() {
var_dump(self::method());
var_dump(parent::method());
var_dump(self::$property);
var_dump(parent::$property);
}
}
new B;
?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
-10
View File
@@ -1,10 +0,0 @@
--TEST--
Bug #30519 Interface not existing says Class not found
--FILE--
<?php
class test implements a {
}
?>
--EXPECTF--
Fatal error: Interface 'a' not found in %sbug30519.php on line 2
-39
View File
@@ -1,39 +0,0 @@
--TEST--
Bug #30702 cannot initialize class variable from class constant
--FILE--
<?php
class foo {
const C1=1;
}
class bar extends foo {
const C2=2;
public $c1=bar::C1;
public $c2=bar::C2;
public $c3=self::C1;
public $c4=self::C2;
public $c5=foo::C1;
public $c6=parent::C1;
}
$x= new bar();
var_dump($x);
?>
--EXPECT--
object(bar)#1 (6) {
["c1"]=>
int(1)
["c2"]=>
int(2)
["c3"]=>
int(1)
["c4"]=>
int(2)
["c5"]=>
int(1)
["c6"]=>
int(1)
}
-29
View File
@@ -1,29 +0,0 @@
--TEST--
Bug #30707 (Segmentation fault on exception in method)
--FILE--
<?php
class C {
function byePHP($plop) {
echo "ok\n";
}
function plip() {
try {
$this->plap($this->plop());
} catch(Exception $e) {
}
}
function plap($a) {
}
function plop() {
throw new Exception;
}
}
$x = new C;
$x->byePHP($x->plip());
?>
--EXPECT--
ok
-23
View File
@@ -1,23 +0,0 @@
--TEST--
Bug #30791 magic methods (__sleep/__wakeup/__toString) call __call if object is overloaded
--FILE--
<?php
class a {
public $a = 4;
function __call($a,$b) {
return "unknown method";
}
}
$b = new a;
echo $b,"\n";
$c = unserialize(serialize($b));
echo $c,"\n";
var_dump($c);
?>
--EXPECT--
Object id #1
Object id #2
object(a)#2 (1) {
["a"]=>
int(4)
}
-27
View File
@@ -1,27 +0,0 @@
--TEST--
Bug #30820 (static member conflict with $this->member silently ignored)
--INI--
error_reporting=4095
--FILE--
<?php
class Blah {
private static $x;
public function show() {
Blah::$x = 1;
$this->x = 5; // no warning, but refers to different variable
echo 'Blah::$x = '. Blah::$x ."\n";
echo '$this->x = '. $this->x ."\n";
}
}
$b = new Blah();
$b->show();
?>
--EXPECTF--
Strict Standards: Accessing static property Blah::$x as non static in %sbug30820.php on line 7
Blah::$x = 1
Strict Standards: Accessing static property Blah::$x as non static in %sbug30820.php on line 10
$this->x = 5
-61
View File
@@ -1,61 +0,0 @@
--TEST--
Bug #30828 (debug_backtrace() reports incorrect class in overridden methods)
--FILE--
<?php
class A {
function __construct() {
debug_print_backtrace();
$bt = debug_backtrace();
foreach ($bt as $t) {
print $t['class'].$t['type'].$t['function']."\n";
}
}
function foo() {
debug_print_backtrace();
$bt = debug_backtrace();
foreach ($bt as $t) {
print $t['class'].$t['type'].$t['function']."\n";
}
}
static function bar() {
debug_print_backtrace();
$bt = debug_backtrace();
foreach ($bt as $t) {
print $t['class'].$t['type'].$t['function']."\n";
}
}
}
class B extends A {
function __construct() {
parent::__construct();
}
function foo() {
parent::foo();
}
static function bar() {
parent::bar();
}
}
$b = new B();
$b->foo();
B::bar();
?>
--EXPECTF--
#0 A->__construct() called at [%sbug30828.php:30]
#1 B->__construct() called at [%sbug30828.php:42]
A->__construct
B->__construct
#0 A->foo() called at [%sbug30828.php:34]
#1 B->foo() called at [%sbug30828.php:43]
A->foo
B->foo
#0 A::bar() called at [%sbug30828.php:38]
#1 B::bar() called at [%sbug30828.php:44]
A::bar
B::bar
-31
View File
@@ -1,31 +0,0 @@
--TEST--
Bug #30889 Conflict between __get/__set and ++ operator
--FILE--
<?php
class overloaded
{
private $values;
function __construct()
{
$this->values = array('a' => 0);
}
function __set($name, $value)
{
print "set $name = $value ($name was ".$this->values[$name].")\n";
$this->values[$name] = $value;
}
function __get($name)
{
print "get $name (returns ".$this->values[$name].")\n";
return $this->values[$name];
}
}
$test = new overloaded();
$test->a++; // __get(), then __set()
++$test->a;
?>
--EXPECT--
get a (returns 0)
set a = 1 (a was 0)
get a (returns 1)
set a = 2 (a was 1)
-21
View File
@@ -1,21 +0,0 @@
--TEST--
Bug #30998 (Crash when user error handler returns false)
--FILE--
<?php
error_reporting(-1);
function my_error($errno, $errstr, $errfile, $errline)
{
print "$errstr ($errno) in $errfile:$errline\n";
return false;
}
set_error_handler('my_error');
$f = fopen("/tmp/blah", "r");
?>
===DONE===
--EXPECTF--
fopen(/tmp/blah): failed to open stream: No such file or directory (2) in %s:%d
Warning: fopen(/tmp/blah): failed to open stream: No such file or directory in %s on line %d
===DONE===
+3 -3
View File
@@ -9,11 +9,11 @@ var_dump(isset($a->b));
$a = '0';
var_dump(isset($a->b));
$a = '';
var_dump(isset($a['b']));
var_dump(isset($a{'b'}));
$a = 'a';
var_dump(isset($a['b']));
var_dump(isset($a{'b'}));
$a = '0';
var_dump(isset($a['b']));
var_dump(isset($a{'b'}));
$simpleString = "Bogus String Text";
echo isset($simpleString->wrong)?"bug\n":"ok\n";
-48
View File
@@ -1,48 +0,0 @@
--TEST--
Bug #31102 (Exception not handled when thrown inside __autoload())
--FILE--
<?php
$test = 0;
function __autoload($class)
{
global $test;
echo __METHOD__ . "($class,$test)\n";
switch($test)
{
case 1:
eval("class $class { function __construct(){throw new Exception('$class::__construct');}}");
return;
case 2:
eval("class $class { function __construct(){throw new Exception('$class::__construct');}}");
throw new Exception(__METHOD__);
return;
case 3:
return;
}
}
while($test++ < 5)
{
try
{
eval("\$bug = new Test$test();");
}
catch (Exception $e)
{
echo "Caught: " . $e->getMessage() . "\n";
}
}
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
__autoload(Test1,1)
Caught: Test1::__construct
__autoload(Test2,2)
Caught: __autoload
__autoload(Test3,3)
Fatal error: Class 'Test3' not found in %sbug31102.php(%d) : eval()'d code on line 1
-18
View File
@@ -1,18 +0,0 @@
--TEST--
Bug #31177 (menory corruption because of incorrect refcounting)
--FILE--
<?php
class foo {
function foo($n=0) {
if($n) throw new Exception("new");
}
}
$x = new foo();
try {
$y=$x->foo(1);
} catch (Exception $e) {
var_dump($x);
}
--EXPECT--
object(foo)#1 (0) {
}
-44
View File
@@ -1,44 +0,0 @@
--TEST--
Bug #31177 (Memory leak)
--FILE--
<?php
class DbGow {
public function query() {
throw new Exception;
}
public function select() {
return new DbGowRecordSet($this->query());
}
public function select2() {
new DbGowRecordSet($this->query());
}
}
class DbGowRecordSet {
public function __construct($resource) {
}
}
$db = new DbGow;
try {
$rs = $db->select();
} catch(Exception $e) {
echo "ok\n";
}
try {
$db->select2();
} catch(Exception $e) {
echo "ok\n";
}
?>
--EXPECT--
ok
ok
-29
View File
@@ -1,29 +0,0 @@
--TEST--
Bug #31341 (escape on curly inconsistent)
--FILE--
<?php
$a = array(
"$ \{ ",
" \{ $",
" \{$ ",
" $\{ ",
" \$\{ ",
" \{\$ ",
"\$ \{ ",
" \{ \$",
"% \{ ");
foreach ($a as $v) {
echo("'$v'\n");
}
?>
--EXPECT--
'$ \{ '
' \{ $'
' {$ '
' $\{ '
' $\{ '
' \{$ '
'$ \{ '
' \{ $'
'% \{ '
-22
View File
@@ -1,22 +0,0 @@
--TEST--
Bug #31525 (object reference being dropped. $this getting lost)
--INI--
error_reporting=4095
--FILE--
<?php
class Foo {
function getThis() {
return $this;
}
function destroyThis() {
$baz =& $this->getThis();
}
}
$bar = new Foo();
$bar->destroyThis();
var_dump($bar);
?>
--EXPECTF--
Strict Standards: Only variables should be assigned by reference in %sbug31525.php on line 7
object(Foo)#1 (0) {
}
+1 -1
View File
@@ -1,7 +1,7 @@
--TEST--
Bug #31720 (Invalid object callbacks not caught in array_walk())
--FILE--
<?php
<?
$array = array('at least one element');
array_walk($array, array($nonesuchvar,'show'));
-25
View File
@@ -1,25 +0,0 @@
--TEST--
Bug #31828 (Crash with zend.ze1_compatibility_mode=On)
--INI--
zend.ze1_compatibility_mode=on
error_reporting=4095
--FILE--
<?php
$o = new stdClass();
$o->id = 77;
$o->name = "Aerospace";
$a[] = $o;
$a = $a[0];
print_r($a);
?>
--EXPECTF--
Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug31828.php on line 2
Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug31828.php on line 5
Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug31828.php on line 6
stdClass Object
(
[id] => 77
[name] => Aerospace
)
-18
View File
@@ -1,18 +0,0 @@
--TEST--
Bug #32080 (segfault when assigning object to itself with zend.ze1_compatibility_mode=On)
--INI--
zend.ze1_compatibility_mode=on
error_reporting=4095
--FILE--
<?php
class test { }
$t = new test;
$t = $t; // gives segfault
var_dump($t);
?>
--EXPECTF--
Strict Standards: Implicit cloning object of class 'test' because of 'zend.ze1_compatibility_mode' in %sbug32080.php on line 3
Strict Standards: Implicit cloning object of class 'test' because of 'zend.ze1_compatibility_mode' in %sbug32080.php on line 5
object(test)#%d (0) {
}
+2 -2
View File
@@ -1,7 +1,7 @@
--TEST--
Bug #32226 (SEGV with exception handler on non existing instance)
Bug # 32226 (SEGV with exception handler on non existing instance)
--FILE--
<?php
<?
class A
{
-47
View File
@@ -1,47 +0,0 @@
--TEST--
Bug #32252 (Segfault when offsetSet throws an Exception (only without debug))
--FILE--
<?php
class Test implements ArrayAccess
{
function offsetExists($offset)
{
echo __METHOD__ . "($offset)\n";
return false;
}
function offsetGet($offset)
{
echo __METHOD__ . "($offset)\n";
return null;
}
function offsetSet($offset, $value)
{
echo __METHOD__ . "($offset, $value)\n";
throw new Exception("Ooops");
}
function offsetUnset($offset)
{
echo __METHOD__ . "($offset)\n";
}
}
$list = new Test();
try
{
$list[-1] = 123;
}
catch (Exception $e)
{
echo "CAUGHT\n";
}
?>
===DONE===
--EXPECT--
Test::offsetSet(-1, 123)
CAUGHT
===DONE===
-60
View File
@@ -1,60 +0,0 @@
--TEST--
Bug #32296 get_class_methods output has changed between 5.0.2 and 5.0.3
--FILE--
<?php
abstract class space{
function __construct(){}
abstract protected function unfold();
}
abstract class shape extends space{
private function x1() {}
protected final function unfold(){}
}
abstract class quad extends shape{
private function x2() {}
function buggy(){
$c = get_class($this);
$a = get_class_methods(get_class($this));
$b = get_class_methods($this);
print($c."\n".'a:');
print_r($a);
print('b:');
print_r($b);
}
}
class square extends quad{}
$a = new square();
$a->buggy();
print_r(get_class_methods("square"));
print_r(get_class_methods($a));
?>
--EXPECT--
square
a:Array
(
[0] => x2
[1] => buggy
[2] => unfold
[3] => __construct
)
b:Array
(
[0] => x2
[1] => buggy
[2] => unfold
[3] => __construct
)
Array
(
[0] => buggy
[1] => __construct
)
Array
(
[0] => buggy
[1] => __construct
)
-80
View File
@@ -1,80 +0,0 @@
--TEST--
Bug #32322 (Return values by reference broken( using self::),example singleton instance)
--INI--
error_reporting=4095
--FILE--
<?php
class test
{
private static $instance = null;
private $myname = '';
private function __construct( $value = '' )
{
echo "New class $value created \n";
$this -> myname = $value;
}
private function __clone() {}
static public function getInstance()
{
if ( self::$instance == null )
{
self::$instance = new test('Singleton1');
}
else {
echo "Using old class " . self::$instance -> myname . "\n";
}
return self::$instance;
}
static public function getInstance2()
{
static $instance2 = null;
if ( $instance2 == null )
{
$instance2 = new test('Singleton2');
}
else {
echo "Using old class " . $instance2 -> myname . "\n";
}
return $instance2;
}
public function __destruct()
{
if ( defined('SCRIPT_END') )
{
echo "Class " . $this -> myname . " destroyed at script end\n";
} else {
echo "Class " . $this -> myname . " destroyed beforce script end\n";
}
}
}
echo "Try static instance inside class :\n";
$getCopyofSingleton = test::getInstance();
$getCopyofSingleton = null;
$getCopyofSingleton = &test::getInstance();
$getCopyofSingleton = null;
$getCopyofSingleton = test::getInstance();
echo "Try static instance inside function :\n";
$getCopyofSingleton2 = test::getInstance2();
$getCopyofSingleton2 = null;
$getCopyofSingleton2 = &test::getInstance2();
$getCopyofSingleton2 = null;
$getCopyofSingleton2 = test::getInstance2();
define('SCRIPT_END',1);
?>
--EXPECTF--
Try static instance inside class :
New class Singleton1 created
Using old class Singleton1
Strict Standards: Only variables should be assigned by reference in %sbug32322.php on line 49
Using old class Singleton1
Try static instance inside function :
New class Singleton2 created
Using old class Singleton2
Strict Standards: Only variables should be assigned by reference in %sbug32322.php on line 55
Using old class Singleton2
Class Singleton1 destroyed at script end
Class Singleton2 destroyed at script end
-19
View File
@@ -1,19 +0,0 @@
--TEST--
Bug #32427 Interfaces are not allowed 'static' access modifier
--FILE--
<?php
interface Example {
public static function sillyError();
}
class ExampleImpl implements Example {
public static function sillyError() {
echo "I am a silly error\n";
}
}
ExampleImpl::sillyError();
?>
--EXPECT--
I am a silly error
-13
View File
@@ -1,13 +0,0 @@
--TEST--
Bug #32428 (The @ warning error supression operator is broken)
--FILE--
<?php
$data = @$not_exists;
$data = @($not_exists);
$data = @!$not_exists;
$data = !@$not_exists;
$data = @($not_exists+1);
echo "ok\n";
?>
--EXPECT--
ok
-28
View File
@@ -1,28 +0,0 @@
--TEST--
Bug #32429 (method_exists() always return TRUE if __call method exists)
--FILE--
<?php
class TestClass {
public function __construct() {
var_dump(method_exists($this, 'test'));
if (method_exists($this, 'test')) {
$this->test();
}
}
public function __call($name, $args) {
throw new Exception('Call to undefined method'.get_class($this).'::'.$name.'()');
}
}
try {
$test = new TestClass;
} catch (Exception $e) {
exit($e->getMessage());
}
?>
--EXPECT--
bool(false)
-27
View File
@@ -1,27 +0,0 @@
--TEST--
Bug #32596 (Segfault/Memory Leak by getClass (etc) in __destruct)
--FILE--
<?php
class BUG {
public $error = "please fix this thing, it wasted a nice part of my life!\n";
static function instance() {return new BUG();}
function __destruct()
{
$c=get_class($this); unset($c);
echo get_class($this) ."\n";
if(defined('DEBUG_'.__CLASS__)){}
$c=get_class($this); //memory leak only
echo $this->error;
}
}
BUG::instance()->error;
echo "this is still executed\n";
?>
--EXPECT--
BUG
please fix this thing, it wasted a nice part of my life!
this is still executed
-36
View File
@@ -1,36 +0,0 @@
--TEST--
Bug #32660 Assignment by reference causes crash when field access is overloaded (__get)
--FILE--
<?php
class A
{
public $q;
function __construct()
{
$this->q = 3;//array();
}
function __get($name)
{
return $this->q;
}
}
$a = new A;
$b = "short";
$c =& $a->whatever;
$c = "long";
print_r($a);
$a->whatever =& $b;
$b = "much longer";
print_r($a);
?>
--EXPECTF--
A Object
(
[q] => long
)
Fatal error: Cannot assign by reference to overloaded object in %sbug32660.php on line 23
-62
View File
@@ -1,62 +0,0 @@
--TEST--
Bug #32674 exception in iterator causes crash
--FILE--
<?php
class collection implements Iterator {
private $_elements = array();
public function __construct() {
}
public function rewind() {
reset($this->_elements);
}
public function count() {
return count($this->_elements);
}
public function current() {
$element = current($this->_elements);
return $element;
}
public function next() {
$element = next($this->_elements);
return $element;
}
public function key() {
$this->_fillCollection();
$element = key($this->_elements);
return $element;
}
public function valid() {
throw new Exception('shit happend');
return ($this->current() !== false);
}
}
class class2 {
public $dummy;
}
$obj = new class2();
$col = new collection();
try {
foreach($col as $co) {
//irrelevant
}
echo 'shouldn`t get here';
//$dummy = 'this will not crash';
$obj->dummy = 'this will crash';
} catch (Exception $e) {
echo "ok\n";
}
?>
--EXPECT--
ok
-21
View File
@@ -1,21 +0,0 @@
--TEST--
Bug #32799 (crash: calling the corresponding global var during the destruct)
--FILE--
<?php
class test{
public $c=1;
function __destruct (){
$GLOBALS['p']->c++; // no warning
print $GLOBALS['p']->c."\n"; // segfault
var_dump($GLOBALS['p']);
}
}
$p=new test;
$p=null; //destroy the object by a new assignment (segfault)
?>
--EXPECT--
2
object(test)#1 (1) {
["c"]=>
int(2)
}
-10
View File
@@ -1,10 +0,0 @@
--TEST--
Bug #32833 Invalid opcode
--FILE--
<?php
$test = array();
$test[] .= "ok\n";
echo $test[0];
?>
--EXPECT--
ok
-38
View File
@@ -1,38 +0,0 @@
--TEST--
Bug #32852 (Crash with singleton and __destruct when zend.ze1_compatibility_mode = On)
--INI--
zend.ze1_compatibility_mode=on
error_reporting=4095
--FILE--
<?php
class crashme {
private static $instance = null;
public function __construct() {
self::$instance = $this;
}
public function __destruct() {
echo "i'm called\n";
}
public static function singleton() {
if (!isset(self::$instance)) {
self::$instance = new crashme();
}
return self::$instance;
}
}
crashme::singleton();
?>
--EXPECTF--
Strict Standards: Implicit cloning object of class 'crashme' because of 'zend.ze1_compatibility_mode' in %sbug32852.php on line 6
i'm called
Strict Standards: Implicit cloning object of class 'crashme' because of 'zend.ze1_compatibility_mode' in %sbug32852.php on line 15
i'm called
Strict Standards: Implicit cloning object of class 'crashme' because of 'zend.ze1_compatibility_mode' in %sbug32852.php on line 17
i'm called
i'm called
-29
View File
@@ -1,29 +0,0 @@
--TEST--
Bug #32993 (implemented Iterator function current() don't throw exception)
--FILE--
<?php
class Test implements Iterator {
public $arr = array();
public function rewind() { return reset($this->arr); }
public function current() { throw new Exception(); }
public function key() { return key($this->arr); }
public function next() { return next($this->arr); }
public function valid() { return (current($this->arr) !== false); }
}
$t = new Test();
$t->arr = array(1, 2, 3);
try {
foreach ($t as $v) {
echo "$v\n";
}
} catch (Exception $e) {
; // handle exception
}
echo "ok\n";
?>
--EXPECT--
ok
-22
View File
@@ -1,22 +0,0 @@
--TEST--
Bug #33116 (crash when assigning class name to global variable in __autoload)
--FILE--
<?php
function __autoload($class)
{
$GLOBALS['include'][] = $class;
eval("class DefClass{}");
}
$a = new DefClass;
print_r($a);
print_r($GLOBALS['include']);
?>
--EXPECT--
DefClass Object
(
)
Array
(
[0] => DefClass
)
-27
View File
@@ -1,27 +0,0 @@
--TEST--
Bug #33171 (foreach enumerates private fields declared in base classes)
--FILE--
<?php
class A
{
private $c = "A's c";
}
class B extends A
{
private $c = "B's c";
public function go()
{
foreach ($this as $key => $val)
{
echo "$key => $val\n";
}
}
};
$x = new B;
$x->go();
?>
--EXPECT--
c => B's c
-25
View File
@@ -1,25 +0,0 @@
--TEST--
Bug #33243 (ze1_compatibility_mode does not work as expected)
--INI--
zend.ze1_compatibility_mode=1
error_reporting=4095
--FILE--
<?php
$a->y->z = 0;
$b = $a; // should perform deep copy of $a
$b->y->z = 1; // hence this should have no effect on $a
var_dump($a);
?>
--EXPECTF--
Strict Standards: Creating default object from empty value in %sbug33243.php on line 2
Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug33243.php on line 3
Strict Standards: Implicit cloning object of class 'stdClass' because of 'zend.ze1_compatibility_mode' in %sbug33243.php on line 5
object(stdClass)#%d (1) {
["y"]=>
object(stdClass)#%d (1) {
["z"]=>
int(0)
}
}
-25
View File
@@ -1,25 +0,0 @@
--TEST--
Bug #33257 array_splice() inconsistent when passed function instead of variable
--INI--
error_reporting=4095
--FILE--
<?php
class X {
protected static $arr = array("a", "b", "c");
public static function getArr() {
return self::$arr;
}
}
//$arr1 = X::getArr();
array_splice(X::getArr(), 1, 1);
print_r(X::getArr());
?>
--EXPECTF--
Strict Standards: Only variables should be passed by reference in %sbug33257.php on line 10
Array
(
[0] => a
[1] => b
[2] => c
)
-28
View File
@@ -1,28 +0,0 @@
--TEST--
Bug #33277 (private method accessed by child class)
--FILE--
<?php
class foo {
private function bar() {
echo "private!\n";
}
}
class fooson extends foo {
function barson() {
$this->bar();
}
}
class foo2son extends fooson {
function bar() {
echo "public!\n";
}
}
$b = new foo2son();
$b->barson();
?>
--EXPECT--
public!
-8
View File
@@ -1,8 +0,0 @@
--TEST--
Bug #33318 (throw 1; results in Invalid opcode 108/1/8)
--FILE--
<?php
throw 1;
?>
--EXPECTF--
Fatal error: Can only throw objects in %sbug33318.php on line 2
Loaded 100 of 2493 files, more files were not shown because too many files have changed in this diff. Show more