Compare commits

...
2133 Commits
Author SHA1 Message Date
SVN Migration 63606073d4 This commit was manufactured by cvs2svn to create tag 'php_5_2_6RC1'. 2008-02-28 00:30:36 +00:00
Ilia Alshanetsky 743bb87a57 5.2.6RC1 2008-02-28 00:30:35 +00:00
Ilia Alshanetsky 9c3f699ed8 Fixed security issue detailed in CVE-2008-0599 2008-02-28 00:29:29 +00:00
Antony Dovgal 0c0fb4be83 MFH 2008-02-27 09:35:10 +00:00
Felipe Pena 5db9cbbc40 MFB: Fixed bug #43559 (array_merge_recursive() doesn't behave as expected with duplicate NULL values) 2008-02-27 02:04:09 +00:00
Felipe Pena 45e379b49d Improved fix for #44242 2008-02-27 01:10:56 +00:00
Ilia Alshanetsky 45c443576e MFB: Fixed bug #44233 (MSG_PEEK undefined under BeOS R5) 2008-02-27 00:32:39 +00:00
Josie Messa 7c28ec2e54 - New tests for chdir() function 2008-02-26 09:31:16 +00:00
Christopher Jones 8b43d4de96 Fix test noise 2008-02-26 01:06:37 +00:00
Ilia Alshanetsky 86647d648f MFB: Better fix for bug #44189 2008-02-26 00:14:04 +00:00
Christopher Jones 8bdaeafc23 Add recent OCI8 bug fixes 2008-02-26 00:04:18 +00:00
Christopher Jones 2ce86f5e5a OCI8: fix bug #44008 (OCI-Lob->close) & bug #44206 (ref cursor leak) 2008-02-25 23:52:10 +00:00
Felipe Pena 9b730870a1 Fixed bug #44242 (metaphone(CMXFXM) crashes PHP) 2008-02-25 22:40:45 +00:00
Derick Rethans a58f8d2a9b - MFH: Fixed tests on 64bit platform. 2008-02-25 22:34:11 +00:00
Derick Rethans 08e237cc6d - MFH: Fixed a problem with parsing timezones as part of a format.
#- It doesn't actually fix anything, but atleast it's consistent with HEAD.
2008-02-25 18:28:18 +00:00
Steve Seear d4e61a3042 Replace hardcoded resource ids with %d in fgetc() tests. 2008-02-25 10:28:43 +00:00
Felipe Pena 7af1de82e3 New test 2008-02-24 18:49:40 +00:00
Felipe Pena f75a2de1c1 Fixed segfault in filter extension when using callbacks. (reported & patched by Arnar Mar Sig) 2008-02-24 18:34:30 +00:00
Ilia Alshanetsky c2805b88e5 MFB: Fixed bug #44200 (A crash in PDO when no bound targets exists and yet
bound parameters are present)
2008-02-24 16:09:05 +00:00
Derick Rethans 8241ee2226 - MFH: Fixed bug #44216 (strftime segfaults on large negative value). 2008-02-22 17:49:30 +00:00
Derick Rethans dfd8f3f735 - MFH: Fixed bug #44209: strtotime doesn't support 64 bit timestamps. 2008-02-22 09:48:18 +00:00
Josie Messa 6dc4795a66 - New tests for reset() function 2008-02-22 09:18:25 +00:00
Dmitry Stogov 6c7fe8df9f Fixed test 2008-02-22 08:16:32 +00:00
Felipe Pena fcffdf2285 Fix test 2008-02-22 02:45:37 +00:00
Josie Messa d8794230ed - New tests for end() and next() function 2008-02-21 16:38:12 +00:00
Dmitry Stogov 7eb1befffe Fixed bug #43483 (get_class_methods() does not list all visible methods) 2008-02-21 15:14:13 +00:00
Josie Messa ffa42113ff - New tests for key() function 2008-02-21 14:34:02 +00:00
Felipe Pena 3ed933811b Fix test 2008-02-21 14:22:04 +00:00
Dmitry Stogov 28306e3439 Fixed bug #44141 (private parent constructor callable through static function) 2008-02-21 13:55:22 +00:00
Ilia Alshanetsky 744d8992b3 MFB: Fixed bug #44189 (PDO setAttribute() does not properly validate values
for native numeric options)
2008-02-21 13:37:52 +00:00
Felipe Pena 4421fc2204 Cosmetics change 2008-02-21 13:32:03 +00:00
Antony Dovgal 00315b1d42 MF53 2008-02-21 11:53:51 +00:00
Dmitry Stogov 7c40e93b69 Fixed test 2008-02-21 08:17:00 +00:00
Felipe Pena 48952c1b1d Fix typo 2008-02-21 02:39:43 +00:00
Felipe Pena e0379278af Fixed Bug #44197 (socket array keys lost on socket_select) 2008-02-21 02:34:50 +00:00
Felipe Pena 50bdcc203b Fixed Bug #44191 (preg_grep messes up array index) 2008-02-20 22:08:18 +00:00
Felipe Pena 2778d2ad59 New test 2008-02-20 21:56:45 +00:00
Ilia Alshanetsky de270b4d6e MFB: Fixed bug #44152 (Possible crash with syslog logging on ZTS builds). 2008-02-20 15:28:37 +00:00
Josie Messa 18dc5aaed6 - New tests for current() function 2008-02-20 14:19:44 +00:00
Dmitry Stogov 39c4c3971d Fixed bug #44184 (Double free of loop-variable on exception) 2008-02-20 12:04:50 +00:00
Ilia Alshanetsky 766b688c8e MFB: Fixed bug #44171 (Invalid FETCH_COLUMN index does not raise an error) 2008-02-20 03:12:16 +00:00
Josie Messa 5c394578de - New tests for each() function 2008-02-19 17:00:58 +00:00
Dmitry Stogov 981603b55c Reverted wrong commit (debug code) 2008-02-19 16:44:43 +00:00
Dmitry Stogov 12e8e280c7 Fixed memory leaks 2008-02-19 16:39:02 +00:00
Dmitry Stogov 59f4a9381f Fixed test 2008-02-19 16:33:17 +00:00
Felipe Pena 5ccd0528fe New test 2008-02-19 14:53:44 +00:00
Felipe Pena d0fea14428 Fixed Bug #44159 (Crash: $pdo->setAttribute(PDO::STATEMENT_ATTR_CLASS, NULL)) 2008-02-19 12:09:47 +00:00
Dmitry Stogov ee82eac68a Fixed memory leak 2008-02-19 12:00:36 +00:00
Josie Messa ae105adfd9 - New tests for natcasesort() function 2008-02-19 10:51:44 +00:00
Sebastian Bergmann 87784c32b3 MFH: Fugbix typo. 2008-02-19 06:52:58 +00:00
Dmitry Stogov 8187dbfa4d Made code opcode-cache friendly. (It is disallowed to change code during execution) 2008-02-18 14:30:25 +00:00
Rui Hirokawa f17936083a fixed some failures on test scripts caused by bug fix. 2008-02-18 14:28:13 +00:00
Ilia Alshanetsky 304923d187 MFB:Fixed a possible crash 2008-02-18 13:29:00 +00:00
Dmitry Stogov 4a3df17f43 Removed redundant refcount manipulations 2008-02-18 12:11:34 +00:00
Dmitry Stogov 63fbdfb3e1 Fixed test 2008-02-18 09:02:16 +00:00
Ilia Alshanetsky f506f6254a Mbstring bug fixing news 2008-02-17 17:20:40 +00:00
Rui Hirokawa 65ef397b3c MF PHP5_3 (fixed #43841) 2008-02-17 02:06:56 +00:00
Rui Hirokawa 419b7283d3 MF PHP5_3 (fixed #43994) 2008-02-17 02:04:12 +00:00
Rui Hirokawa e2fa604b0a MF PHP5_3 (fixed #43998) 2008-02-17 02:01:41 +00:00
Rui Hirokawa bd98b8a3e0 MF PHP5_3 (fixed #43840) 2008-02-17 01:59:03 +00:00
Rui Hirokawa ba670d01b5 MF PHP5_3 2008-02-16 08:32:57 +00:00
Rui Hirokawa ee71417ef0 MF PHP5_3 2008-02-16 08:25:11 +00:00
Christopher Jones 7ac84b8607 Test existing LOB error messages 2008-02-16 03:01:17 +00:00
Christopher Jones 6c0abfe077 Bug #44113 (New collection creation can fail with OCI-22303) 2008-02-15 23:05:19 +00:00
Josie Messa 9da1ec78c0 - New tests for rsort() function 2008-02-15 16:05:28 +00:00
Antony Dovgal e3189410c4 MFH: recursion protection in count() 2008-02-15 09:33:26 +00:00
Dmitry Stogov f29c6b45a8 MFH: Fixed bug #43128 (Very long class name causes segfault) 2008-02-15 07:44:46 +00:00
Dmitry Stogov 5ef434d175 Fixed bug #43507 (SOAPFault HTTP Status 500 - would like to be able to set the HTTP Status) 2008-02-15 06:50:39 +00:00
Dmitry Stogov 0be31f3f3c Fixed test 2008-02-15 06:38:37 +00:00
Josie Messa 5ae0fb0628 - New tests for count() function 2008-02-14 16:49:17 +00:00
Josie Messa 5ce503459d - removing .project file 2008-02-14 16:20:19 +00:00
Josie Messa 87e2a75f70 - New variation test for array_values() 2008-02-14 16:15:16 +00:00
Dmitry Stogov af3aecb688 Fixed bug #44069 (Huge memory usage with concatenation using . instead of .=) 2008-02-14 14:47:25 +00:00
Josie Messa 592f5f384e - New tests for array_values() function 2008-02-14 14:21:48 +00:00
Felipe Pena a69ea8773d Fixed Bug #42838 (Wrong results in array_diff_uassoc) 2008-02-14 14:02:02 +00:00
Felipe Pena cf2c1c59aa New test 2008-02-14 13:49:55 +00:00
Josie Messa f56d34a230 - New tests for array_slice() function 2008-02-14 11:15:54 +00:00
Dmitry Stogov 8448591096 Fixed memory leak 2008-02-14 08:46:08 +00:00
Josie Messa 079c7f0cd6 - New tests for array_shift() function 2008-02-13 16:41:27 +00:00
Josie Messa b289acb3af - New tests for array_push() function 2008-02-13 16:10:43 +00:00
Josie Messa 2554f5ca00 - committing tests for array_merge() function 2008-02-13 14:20:22 +00:00
Josie Messa 064bbbb04e - committing tests for array_key_exists() function 2008-02-13 13:15:11 +00:00
Marcus Boerger 697b79f6a3 - MFH Make this behave like in <= 5.2.5 and test for it 2008-02-13 12:23:26 +00:00
Greg Beaver 26f6c26c8c MFH: fix potential memleak due to destruction of filterparams zval 2008-02-12 23:29:18 +00:00
Johannes Schlüter 201a2ec1f0 - MFH: Make clear what's going on and avoid overwriting parameters 2008-02-12 20:43:50 +00:00
Hannes Magnusson 8fbb789d04 Fix test 2008-02-12 20:06:10 +00:00
Josie Messa fa7ab79523 - committing array_change_key_case variation tests 2008-02-12 17:43:54 +00:00
Felipe Pena d1f536595e MFB: array_slice() - Fixed behavior when NULL is given in third parameter (BC) 2008-02-12 12:47:30 +00:00
Felipe Pena 13e939679b MFB: Fixed Bug #44094 (SEGFAULT when using mysql_connect()) 2008-02-12 10:24:35 +00:00
Zoe Slattery a628bc8856 Fixing 44092 2008-02-12 07:27:49 +00:00
Ilia Alshanetsky 2e6320425b MFB: Fixed test on 64bit machines 2008-02-11 16:23:12 +00:00
Johannes Schlüter eaa1662a75 MFH: The exact message differs on different systems 2008-02-11 00:03:30 +00:00
Johannes Schlüter c04ac43efa - Fix typo (see #44095) 2008-02-11 00:01:29 +00:00
Jani Taskinen 839abfabcc MFH 2008-02-06 19:14:07 +00:00
Jani Taskinen c717b41784 MFH:- Fixed bug in handling arrays which caused the original array being modified too. 2008-02-06 19:07:36 +00:00
Marcus Boerger 745fe9004f - BFN 2008-02-06 11:10:07 +00:00
Marcus Boerger dd570d65ce - WS 2008-02-06 11:09:48 +00:00
Zoe Slattery 44b091a30d Tests for assorted Maths functions 2008-02-06 09:51:19 +00:00
Ilia Alshanetsky 5b0fbbefe1 MFB: Fixed bug #44046 (crash inside array_slice() function with an invalid
by-ref offset).
2008-02-05 16:01:21 +00:00
Robert Nicholson 95121ed073 - fix arsort_variation3.phpt which was missing its EXPECT section 2008-02-05 11:18:00 +00:00
Marcus Boerger f26c177b2d - Damnit you flags (wrong commit) 2008-02-04 21:49:44 +00:00
Marcus Boerger 9a90cfc99c - MFH Really last flag change (got confused with code) 2008-02-04 21:37:55 +00:00
Ilia Alshanetsky 2c92d82a02 Revert fix for bug #43981, not yet ready for 5.2 2008-02-04 21:31:52 +00:00
Marcus Boerger 80907e4a91 - MFH Flag handling and documentation 2008-02-04 20:43:50 +00:00
Sebastian Bergmann 0d516bf7ec Add NEWS entry for ext/dom arginfo changes. 2008-02-04 19:43:34 +00:00
Sebastian Bergmann cc0b2dd120 MFH: Add missing Reflection API metadata for DOM classes. 2008-02-04 15:23:11 +00:00
Robert Nicholson 622504d7a3 - added some new tests for arsort 2008-02-04 00:04:26 +00:00
Ilia Alshanetsky e002e2ec1c MFB: Fixed bug #44028 (crash inside stream_socket_enable_crypto() when
enabling encryption without crypto type)
2008-02-03 16:15:30 +00:00
Derick Rethans 3bcef3b39d - Fixed invalid read errors as found by GCOV. 2008-02-03 14:22:55 +00:00
Antony Dovgal 20b39a9806 fix test, add 64bit version 2008-02-02 23:44:39 +00:00
Derick Rethans d7ae91bea7 - MFH: Make timezone_open() work again. 2008-02-02 17:26:23 +00:00
Zoe Slattery cc0b147a2f A few new tests for math functions - Note the "constants" test will fail on Windows - Bug 42143. 2008-02-01 17:27:43 +00:00
Robert Nicholson 801ce5ee03 - a few more gd tests (committed on behalf of andy wharmby) 2008-02-01 16:33:37 +00:00
Josie Messa bb5f5da561 - Committing new tests for MBString extension.
More details can be found here: http://news.php.net/php.qa/62382
2008-02-01 15:27:57 +00:00
Rob Richards 390b033755 BFN 2008-01-31 22:00:22 +00:00
Rob Richards 1dc8e72874 MFH: fix bug #42369 (Implicit conversion to string leaks memory)
add test
2008-01-31 21:59:41 +00:00
Antony Dovgal caf57b0532 BFN 2008-01-31 20:23:33 +00:00
Christopher Jones dece018a41 Fixed bug #42841 (REF CURSOR and oci_new_cursor PHP crash) 2008-01-31 00:26:44 +00:00
Ilia Alshanetsky 6f1c2f04a0 MFB: Fixed bug #43981 (gmp_div_r() does not preserve the sign of 1st
argument)
2008-01-30 18:27:03 +00:00
Zoe Slattery 51f63718cf Removing superfluous --INI-- section 2008-01-30 17:44:54 +00:00
Rob Richards 82a3271eda BFN 2008-01-30 15:30:44 +00:00
Rob Richards 005ece078a MFH: fix bug #41562 (SimpleXML memory issue) 2008-01-30 15:29:51 +00:00
Robin Fernandes 5912128780 Adding tests for class features, including __autoload(), property inheritance rules and class constants. 2008-01-30 14:24:47 +00:00
Rasmus Lerdorf 529092df9b Copy-paste typo 2008-01-30 08:50:02 +00:00
Sebastian Bergmann 410fb2b6d4 MFH: Fix arginfo. 2008-01-30 06:48:20 +00:00
Rasmus Lerdorf b8af6b08db This one depends on the precision setting 2008-01-30 05:37:23 +00:00
Rasmus Lerdorf 7b624a37bc Fixed bug #43957 (utf8_decode() bogus conversion of partial multibyte UTF8 char) 2008-01-29 23:21:20 +00:00
Sebastian Bergmann 088d2d98b8 MFH: Fix arginfo and prototype. 2008-01-29 21:21:28 +00:00
Nuno Lopes 8cb33d2c04 upgrade to pcre 7.6 2008-01-29 20:25:47 +00:00
Dmitry Stogov 7c51430b37 Fixed bug #43968 (Extending internal class causes a crash)
The fix is a workaround for GCC optizer bug.
2008-01-29 20:01:14 +00:00
Sebastian Bergmann fef277ab76 MFH: Add Reflection API metadata for DOMXPath. 2008-01-29 15:55:29 +00:00
Sebastian Bergmann 0c685dc3c0 MFH: Add Reflection API metadata for DOMNode. 2008-01-29 15:23:25 +00:00
Dmitry Stogov f8d7d6fc90 Fixed bug #43491 (Under certain conditions, file_exists() never returns) 2008-01-29 14:23:19 +00:00
Antony Dovgal 1a4c15d5e1 MFH: fix #43927 (koi8r is missing from html_entity_decode())
patch by andy at demos dot su
2008-01-29 13:39:03 +00:00
Dmitry Stogov e4782cddf4 Fixed bug #43505 (Assign by reference bug) 2008-01-29 10:44:53 +00:00
Dmitry Stogov c9fd5b3010 Fixed test 2008-01-29 10:43:42 +00:00
Antony Dovgal c86f396edf BFN 2008-01-29 09:30:08 +00:00
Sebastian Bergmann 984b2c84a5 MFH: Add Reflection API metadata for XSLTProcessor. 2008-01-29 07:51:46 +00:00
Antony Dovgal 65d0aca95c MFH: fix type and bug #43646 2008-01-29 00:08:08 +00:00
Scott MacVicar 20809972dc MFH: Fixed bug #43954 (Memory leak when sending the same HTTP status code more than once.) 2008-01-28 16:12:55 +00:00
Hannes Magnusson 1e0125e9a4 Remove bogus test (should be in HEAD) 2008-01-27 18:20:27 +00:00
Marcus Boerger f2e8119bf5 - Add second parameter to SplObjectStorage::attach()
- Add SplObjectStorage::setInfo()
- Add SplObjectStorage::getInfo()
2008-01-27 18:04:56 +00:00
Rob Richards 86ae2781fb MFH: add missing export 2008-01-27 16:33:22 +00:00
Derick Rethans da11bc2b32 - MFH Bugfixes:
- Fixed bug #43808 (date_create never fails (even when it should)).
	- Fixed bug #43527 (DateTime created from a timestamp reports environment
	  timezone).
	- Fixed bug #43003 (Invalid timezone reported for DateTime objects
	  constructed using a timestamp).
	- Fixed bug #42190 (Constructing DateTime with TimeZone Indicator
	  invalidates DateTimeZone).
	- Fixed bug #41599 (setTime() fails after modify() is used).
2008-01-26 16:26:47 +00:00
Robert Nicholson 905f0d086b - Add a basic test for array_shuffle() 2008-01-25 00:30:52 +00:00
Robert Nicholson db0c290db4 - add some basic tests for array diff and intersection functions 2008-01-25 00:16:14 +00:00
Antony Dovgal ab8436fc87 MFH 2008-01-24 23:11:15 +00:00
Robert Nicholson 6b7d50ead4 - New tests for compact() 2008-01-24 14:52:38 +00:00
Rob Richards e660e038a4 MFH: fix zts build 2008-01-24 14:10:21 +00:00
Dmitry Stogov bab919b91b Fixed error message 2008-01-24 08:51:04 +00:00
Ilia Alshanetsky cfcb262dfb MFB:Fixed bug #43912 (Interbase column names are truncated to 31 characters) 2008-01-23 01:22:57 +00:00
Antony Dovgal 5331163715 add new test 2008-01-22 15:43:09 +00:00
Hannes Magnusson 66d39db51e MFH: Fixed bug #43875 (Two error messages returned for $new and $flag argument in mysql_connect()) 2008-01-20 14:13:11 +00:00
Christopher Jones a4c915c855 MFH: Add ifdef 2008-01-18 16:03:35 +00:00
Antony Dovgal 45353a5c39 fix test 2008-01-18 12:41:24 +00:00
Antony Dovgal f66f94b4b0 fix test 2008-01-18 12:12:19 +00:00
Antony Dovgal ff7be14077 BFN 2008-01-18 07:10:21 +00:00
Pierre Joye c1fa811b5c - reflect the correct version 2008-01-18 00:51:38 +00:00
Greg Beaver 736e23a4c5 MF5.3: install headers, use correct zip version 2008-01-18 00:31:23 +00:00
Greg Beaver 42b320bca1 MFH: add errors when missing dependencies (Steph) 2008-01-17 21:17:29 +00:00
Ilia Alshanetsky 23994f9150 MFB: Fixed bug #42779 (Incorrect forcing from HTTP/1.0 request to HTTP/1.1
response)
2008-01-16 15:50:37 +00:00
Antony Dovgal b42398f850 MFH: fix #43863 (str_word_count() breaks on cyrillic "ya" in locale cp1251)
patch by phprus at gmail dot com
2008-01-16 08:35:59 +00:00
Dmitry Stogov bb084caec1 Fixed wrong type cast 2008-01-16 06:14:45 +00:00
Christopher Jones 65bec2edc8 MFH: fix #41941 (oci8 extension not lib64 savvy) 2008-01-16 00:42:02 +00:00
Christopher Jones ea2d2d6bb6 MFH: Testcase for #43492 (nested cursors) 2008-01-15 20:54:22 +00:00
Christopher Jones f4a29d5432 fix #43497 (OCI8 XML/getClobVal aka temporary LOBs leak UGA memory) 2008-01-15 20:42:13 +00:00
Rob Richards 844d6ee35b MFH: fix memleak in sign and verify functions 2008-01-15 15:13:37 +00:00
Brian Shire 751b0807b1 MFH: Fix bug #42850 array_walk_recursive() leaves references, refix bug #34982 2008-01-14 22:10:09 +00:00
Ilia Alshanetsky a2581f81d1 MFB: Missing patch bit from the FETCH_GROUP fix 2008-01-14 18:41:41 +00:00
Nuno Lopes 0f9729404f MFH: fix bug #42945, as asked by Ilia 2008-01-14 09:46:55 +00:00
Nuno Lopes 255a7b9cf0 upgrade PCRE to version 7.5 (as asked by Ilia 2008-01-14 09:39:41 +00:00
Greg Beaver c98f8dc302 merge in cgi fixes from PHP_5_3 2008-01-14 04:34:17 +00:00
Greg Beaver b24c96616a add missing alias .h files 2008-01-14 03:58:03 +00:00
Greg Beaver 1d3604c1b1 MFH: export libzip symbols 2008-01-14 03:19:41 +00:00
Greg Beaver 1d28516b79 MFH: far better fix for bug #40189 2008-01-12 22:04:03 +00:00
Greg Beaver ee16647cfd MFH: fix faulty fix for Bug #40189, and provide real fix for the bug 2008-01-12 21:35:44 +00:00
Greg Beaver 5d96f54cf9 revert last commit, was to wrong branch 2008-01-12 03:46:47 +00:00
Greg Beaver 9ce5990880 MFH: export symbols for use by other extensions like phar 2008-01-12 03:43:06 +00:00
Rob Richards 0d1fe9c73b MFH: starting with 2.6.30, standard libxml2 build can be used 2008-01-11 13:37:24 +00:00
Ilia Alshanetsky aa51dce93a MFB: Fixed a bug with PDO::FETCH_COLUMN|PDO::FETCH_GROUP mode when a column
# by which to group by data is specified.
2008-01-11 01:47:55 +00:00
Brian Shire 0c855571c3 - MFH fix truncation of large values on 64-bit systems in http_build_query 2008-01-10 20:32:41 +00:00
Antony Dovgal c2f8930033 correct number of symbols 2008-01-10 08:45:39 +00:00
Antony Dovgal 2fe13db7ac fix test 2008-01-10 08:45:06 +00:00
Dmitry Stogov d5bd104d9d Fixed broken soap.wsdl_cache_enabled 2008-01-09 16:45:30 +00:00
Greg Beaver 8a1cd11e0b apply proper fix of bug #43793 to zlib.deflate (window+16 = gzip) 2008-01-09 08:12:26 +00:00
Dmitry Stogov b58a5db130 Fixed bug #43703 (Signature compatibility check broken) 2008-01-09 07:57:23 +00:00
Greg Beaver a603c8d71b apply same fix of bug #43793 to zlib.deflate 2008-01-09 07:03:41 +00:00
Greg Beaver ad7f030c6d fix Bug #43793: zlib filter is unable to auto-detect gzip/zlib file headers 2008-01-09 06:45:15 +00:00
Pierre Joye 3dd5e7854c - #43790, fix crash when no family name has been found 2008-01-09 01:50:59 +00:00
Ilia Alshanetsky c73247fe2c MFB: Fixed bug #43498 (file_exists() on a proftpd server got SIZE not
allowed in ASCII mode).
2008-01-08 19:10:16 +00:00
Ilia Alshanetsky 0b25a9fb8c Fixed a safe_mode bypass in cURL identified by Maksymilian Arciemowicz. 2008-01-06 17:12:29 +00:00
Greg Beaver 4490673e0e remove potential preg warnings if --EXPECTHEADERS-- is combined with --EXPECTF-- or --EXPECTRE-- 2008-01-05 21:39:47 +00:00
Greg Beaver 32f4ff69b5 implement --FILE_EXTERNAL-- section for using an external file as --FILE--, use CGI for --EXPECTHEADERS--, fix --POST_RAW-- 2008-01-05 21:05:14 +00:00
Raghubansh Kumar d380d052af New testcases for array_diff() function 2008-01-04 14:04:26 +00:00
Raghubansh Kumar 5fe2521143 New testcases for array_diff_assoc() function 2008-01-04 14:03:57 +00:00
Ulf Wendel 8e0bb2d72c MFH: Fix for bug #43036 2008-01-04 09:19:49 +00:00
Ilia Alshanetsky 0c882b2645 MFB: Skip test for PostgreSQL driver since error is too dissimilar to other
drivers
2008-01-03 16:47:08 +00:00
Raghubansh Kumar b054ae8716 this testcase has been split into many smaller testcases and committed. 2008-01-03 09:50:05 +00:00
Raghubansh Kumar 5a6c4393cb new smaller testcases for array_map() function 2008-01-03 09:48:42 +00:00
Steve Seear 425646f98b Adding PHPT tests for the ReflectionMethod class. 2008-01-03 09:06:08 +00:00
Ilia Alshanetsky 02967f7040 MFB: Fixed bug #43647 (Make FindFile use PATH_SEPARATOR instead of ";") 2008-01-02 19:20:15 +00:00
Ilia Alshanetsky 660fac9dc0 MFB: Update copyright 2008-01-01 18:30:41 +00:00
Hartmut Holzgraefe 3e34e202d5 MFH: Fix for bug #42548 "PROCEDURE xxx can't return a result set" 2008-01-01 16:51:09 +00:00
Derick Rethans aaeded2ac7 - Updated to version 2007.11 2008-01-01 15:32:28 +00:00
Hannes Magnusson 30ff9a85cf MFH: Fix test 2008-01-01 14:36:08 +00:00
Sebastian Bergmann 58fea2b990 MFB: Leftover: Bump copyright year. 2008-01-01 06:15:48 +00:00
Sebastian Bergmann dfa693b392 Leftover: Bump copyright year. 2007-12-31 07:25:08 +00:00
Sebastian Bergmann d9f3a1305f MFH: Bump copyright year, 2 of 2. 2007-12-31 07:20:42 +00:00
Sebastian Bergmann e78105b103 MFH: Bump copyright year, 1 of 2. 2007-12-31 07:17:40 +00:00
David Soria Parra e81a660bae - Fixed bug #43663 (Extending PDO class with a __call() function doesn't work). 2007-12-30 17:59:31 +00:00
Jani Taskinen 3b2ca90699 MFH:- This makes no sense with non-ipv6 builds. (and fixes lot of issues with misconfigured servers) 2007-12-29 18:46:37 +00:00
Hannes Magnusson 5a5f3e6dff Fix test when additional ini files are used (patch by <confins_de_l_univers at yahoo dot fr>) 2007-12-29 11:38:06 +00:00
Antony Dovgal 6db1f40e32 correct fix for bug #43522 2007-12-29 10:52:51 +00:00
Hannes Magnusson dbbd4bf1b8 MFH: Update the class method documentation links 2007-12-29 02:22:23 +00:00
Dmitry Stogov df9e324f35 Fixed test related to bug #38469 2007-12-28 13:38:30 +00:00
Dmitry Stogov 2705adc4b9 Fixed bug #38469 (Unexpected creation of cycle). 2007-12-28 13:38:20 +00:00
Hannes Magnusson 97c1cc8925 BFN 2007-12-27 02:12:48 +00:00
Hannes Magnusson 7c9ab52ca4 MFB5.3: Fixed bug#43105 (PHP seems to fail to close open files.) 2007-12-27 02:10:26 +00:00
Hannes Magnusson 6bcf63c567 MFH: Fix typo (TAKAGI Masahiro) 2007-12-26 21:03:12 +00:00
Raghubansh Kumar 8774eb1ae9 fix test : do not run when run as root 2007-12-25 16:16:32 +00:00
Dmitry Stogov 24957a15e0 Fixed %f regex 2007-12-25 12:06:22 +00:00
Raghubansh Kumar cb165e184d new testcases for dir() function 2007-12-24 05:21:08 +00:00
Raghubansh Kumar 63ff78e2f3 fix tests 2007-12-24 04:26:41 +00:00
Raghubansh Kumar 77245e4907 Changing the regex for %f so the it will match e-, e+ and e. 2007-12-24 04:24:20 +00:00
Johannes Schlüter bb52c198ce -Fix name (arg, new keyboard is coming...) 2007-12-21 21:18:01 +00:00
Johannes Schlüter 0bc875c9ca -Fix name 2007-12-21 21:17:31 +00:00
Johannes Schlüter 42add0f2e1 - MFH: Fix #43450 (Memory leak on some functions with implicit object
__toString() call) (Davic C.)
2007-12-21 20:58:11 +00:00
Dmitry Stogov ab6121f686 Fixed test 2007-12-21 09:44:13 +00:00
Raghubansh Kumar 59ddc3b287 fix tests 2007-12-20 17:28:36 +00:00
Dmitry Stogov 6789574da2 x86_64 assembler optimization (Brain Shire) 2007-12-20 13:22:22 +00:00
Robert Nicholson 6194af1343 New test - Indexing - various special cases 2007-12-20 11:41:40 +00:00
Robert Nicholson 847f462905 new tests for array_map usage variations - string keys and references 2007-12-20 11:18:55 +00:00
Ilia Alshanetsky c21ef044a7 MFB: Fixed bug #43635 (mysql extension ingores INI settings on NULL values
passed to mysql_connect())
2007-12-20 00:31:49 +00:00
Raghubansh Kumar a81fccc47d fix test 2007-12-19 10:40:18 +00:00
Derick Rethans dc30b0035d - MFH: Fixed var_export() for array keys
- MFH: Fixed broken explode() test
2007-12-19 08:45:16 +00:00
Steve Seear fd81f61e0d Adding PHPT tests for the ReflectionProperty class. 2007-12-18 17:20:05 +00:00
Ilia Alshanetsky a68454f659 MFB: Fixed bug #43620 (Workaround for a bug inside libcurl 7.16.2 that can
result in a crash)
2007-12-18 13:47:37 +00:00
Jani Taskinen b9fabc8ae6 MFH:- Fix indent of macros 2007-12-17 08:52:30 +00:00
Johannes Schlüter bbfe422bd1 - MFH: Fix #43611 SplObjectStorage is available since 5.1.2 2007-12-16 22:19:58 +00:00
Hannes Magnusson 327109fab1 MFB5.3: Fix test 2007-12-16 19:18:44 +00:00
Ilia Alshanetsky 1643c14e5f MFB: Fixed bug #43589 (a possible infinite loop in bz2_filter.c) 2007-12-16 17:22:31 +00:00
Ilia Alshanetsky 6dc859da75 MFB: Fixed bug #43606 (define missing depencies of the exif extension) 2007-12-16 17:14:54 +00:00
Hannes Magnusson 25a7740600 Fix protos 2007-12-15 12:52:11 +00:00
Raghubansh Kumar ee8d2395e1 New testcases for token_get_all() function 2007-12-14 16:23:12 +00:00
Antony Dovgal eb324c4cce MFH 2007-12-13 22:30:28 +00:00
Douglas Goldstein 45dba3ecc7 add tests for ldap_dn2ufn() 2007-12-13 17:59:52 +00:00
Douglas Goldstein 2013cd57cd expand ldap_explode_dn() tests. 2007-12-13 17:46:46 +00:00
Dmitry Stogov 853adf67f9 Fixed test 2007-12-13 07:57:24 +00:00
Ilia Alshanetsky c35249d45e MFB Fixed bug #43580 (removed bogus declaration of a non-existent php_is_url()
function)
2007-12-13 00:33:26 +00:00
Antony Dovgal 0e70b8fea0 MFH: add valgrind 3.3.0 support 2007-12-12 20:21:57 +00:00
Douglas Goldstein 8f8e19dc7b add skipif case if the ldap extension is not loaded 2007-12-11 17:35:11 +00:00
Douglas Goldstein 57dbd0837a put ldap_explode_dn.phpt in proper directory 2007-12-11 17:33:51 +00:00
Douglas Goldstein becf94003a Adding initial tests for LDAP module. Adding tests for ldap_explode_dn() function 2007-12-11 17:20:58 +00:00
Jani Taskinen 0644aff586 MFH:- Revert previous patch, it was correct to do this, error is logged if logging is enabled 2007-12-11 12:26:16 +00:00
Jani Taskinen 882bd652df MFH: fix error displaying 2007-12-11 11:29:37 +00:00
Raghubansh Kumar b1c09efa90 New testcases for array_walk() function 2007-12-11 10:50:17 +00:00
Raghubansh Kumar 1ed9911cfa New testcases for array_merge_recursive() function 2007-12-11 09:09:12 +00:00
Christopher Jones e2c7f9c485 Fix #42496. Cursor leak fetching LOBs 2007-12-11 06:07:13 +00:00
Ilia Alshanetsky 8a9ad0081d MFB: Fixed bug #43522 (stream_get_line() eats additional characters) 2007-12-10 14:18:02 +00:00
Derick Rethans 63dcbb73f0 - MFH: Fixed Bug #42272 (var_export() incorrectly escapes char(0)). 2007-12-09 16:55:46 +00:00
Ilia Alshanetsky 2caccf3136 Fixed bug #43533 (escapeshellarg('') returns null).
# Backport of code from 5.3
2007-12-09 16:37:02 +00:00
Raghubansh Kumar e31fd8027f new testcases for array_unique() function 2007-12-09 14:44:18 +00:00
Marcus Boerger f012dee00c -MFH: db 4.6 detection 2007-12-06 14:17:43 +00:00
Ilia Alshanetsky f6829cf90f MFB: Fixed bug #43495 (array_merge_recursive() crashes with recursive
arrays)
2007-12-05 20:04:13 +00:00
Ilia Alshanetsky e3ec29a3f1 MFB: fixed test 2007-12-04 13:05:24 +00:00
Ilia Alshanetsky bb9384cb8a MFB: Fixed bug #43493 (pdo_pgsql does not send username on connect when
password is not available)
2007-12-04 13:05:03 +00:00
Antony Dovgal 33885b64a4 MFH 2007-12-04 08:56:14 +00:00
Antony Dovgal fe8771ec81 fix typos
use the earliest bug report in the description
2007-12-03 16:33:37 +00:00
Dmitry Stogov aeae1ce48a bug numbers 2007-12-03 16:20:55 +00:00
Dmitry Stogov 0c2edc588d Fixed crash because of uninitialized SG(sapi_headers).mimetype 2007-12-03 16:04:26 +00:00
Derick Rethans 3f9a50c5bf - Updated to version 2007.10 2007-12-03 15:16:40 +00:00
Dmitry Stogov b68b2e029c Fixed weired behavior in CGI parameter parsing 2007-12-03 15:08:01 +00:00
Ilia Alshanetsky 32463e7af9 Fixed bug #43482 (array_pad() does not warn on very small pad numbers). 2007-12-03 14:11:09 +00:00
Raghubansh Kumar f0570bce0b fix tests : better float values 2007-12-03 13:04:45 +00:00
Raghubansh Kumar 0bf84145b2 fix tests: better float values 2007-12-03 11:59:55 +00:00
Raghubansh Kumar e12bef98c6 New testcases for array_pad() function 2007-12-03 11:53:04 +00:00
Raghubansh Kumar d47d025881 New testcases for array_chunk() function 2007-12-03 03:55:55 +00:00
Ilia Alshanetsky e2ed7b551f MFB: Fixed bug #43457 (Prepared statement with incorrect parms doens't
throw exception with pdo_pgsql driver)
2007-12-02 21:00:06 +00:00
Ilia Alshanetsky 83156cf04d Fixed a typo 2007-11-30 00:12:18 +00:00
Ilia Alshanetsky 056197037d MFB: Fixed tests 2007-11-28 14:50:24 +00:00
Rob Richards ff8e1a32f9 BFN 2007-11-28 10:47:36 +00:00
Rob Richards d5afff5286 MFH: Fix bug #43364 (recursive xincludes don't remove internal nodes properly)
add test
2007-11-28 10:45:16 +00:00
Raghubansh Kumar 1a8b3e0923 Marked with defect 2007-11-28 03:42:43 +00:00
Ilia Alshanetsky b1407d3709 MFB: Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error) 2007-11-27 17:14:27 +00:00
Raghubansh Kumar ea4f3ac8a3 New testcases for array_combine() function 2007-11-27 15:18:11 +00:00
Raghubansh Kumar 9de95af3db New testcases for array_sum() function 2007-11-27 15:00:55 +00:00
Antony Dovgal d3aff8310c fix test 2007-11-27 11:14:17 +00:00
Antony Dovgal 14902c89cc fix test 2007-11-27 06:44:32 +00:00
Ilia Alshanetsky 8330f31750 MFB: Revert addition of - char support for bound param names 2007-11-26 21:10:41 +00:00
Jani Taskinen a109ecaacf MFH:- Fixed bug #43365 (Several enums have trailing commas) 2007-11-26 10:59:18 +00:00
Ilia Alshanetsky 947cebee3c MFB: Fixed bug #43386 (array_globals not reset to 0 properly on init) 2007-11-25 15:56:47 +00:00
Robert Nicholson dc75c7c2a1 Fix incorrect use of assignment in where equality was intended - class tests. 2007-11-23 15:41:05 +00:00
Ilia Alshanetsky 3acbcf448f MFB: Fixed bug #43377 (PHP crashes with invalid argument for DateTimeZone) 2007-11-23 00:16:48 +00:00
Robert Nicholson 202e7f5b28 Add some more pcre tests 2007-11-21 18:21:19 +00:00
Jani Taskinen 14d5ba8aec MFH:- Fixed bug #43035: ignore_repeated_errors=On causes lot of tests to fail 2007-11-21 08:20:45 +00:00
Ilia Alshanetsky fdc2dab50b MFB: Adjusted fix for bug #42978 2007-11-20 23:12:30 +00:00
Ilia Alshanetsky a4bc590ec1 MFB: Fixed bug #42978 (mismatch between number of bound params and values
causes a crash in pdo_pgsql)
2007-11-20 14:23:47 +00:00
Antony Dovgal c39a2f7143 fix test 2007-11-19 11:12:36 +00:00
Dmitry Stogov 06a116cd53 Fixed tests 2007-11-19 08:01:56 +00:00
Derick Rethans 62fb0402db - MFH: Initialize the reserved resource bits so that they can be reliably used. 2007-11-18 21:30:30 +00:00
Ilia Alshanetsky 99a1f9e0b2 MFB: Fixed bug #42261 (Incorrect lengths for date and boolean data types) 2007-11-18 14:20:17 +00:00
Sara Golemon d92f11b9d6 MFH(r-1.192) Remove extraneous space in error/notice messages (felipe) 2007-11-17 21:52:06 +00:00
Raghubansh Kumar b99048d5c7 New testcases for sizeof() function 2007-11-16 17:55:55 +00:00
Raghubansh Kumar 9b85655327 fix tests: removed values that generate diff. output on Linux64 2007-11-16 17:04:19 +00:00
Jani Taskinen 369a97713c MFH: - Fixed bug #43092 (curl_copy_handle() crashes with > 32 chars long URL) 2007-11-16 14:19:35 +00:00
Jani Taskinen aaa295fa35 MFH:- Fixed bug #43301 (mb_ereg*_replace() crashes when replacement string is
invalid PHP expression and 'e' option is used)
2007-11-16 12:28:34 +00:00
Antony Dovgal 332e1b8482 MFH: fix test 2007-11-15 22:14:29 +00:00
Ilia Alshanetsky 81676a4b6e MFB: Fixed bug #43276 (Incomplete fix for bug #42739, mkdir() under
safe_mode).
2007-11-15 18:58:43 +00:00
Hannes Magnusson 177ed895d3 MFH test 2007-11-15 13:14:19 +00:00
Ilia Alshanetsky dbdbfe37f2 MFB: Don't show file names being examined 2007-11-14 23:45:39 +00:00
Elizabeth Marie Smith b9580cd54e MFB 2007-11-14 19:48:57 +00:00
Raghubansh Kumar b298641605 New testcases for uasort() function 2007-11-14 17:17:51 +00:00
Raghubansh Kumar bfe5708953 fix test for linux64 - choosing smaller float values 2007-11-14 16:30:09 +00:00
Hannes Magnusson d3fd30265a MFB5.3: Fixed bug#43293 (Multiple segfaults in getopt()) 2007-11-14 15:19:29 +00:00
Hannes Magnusson 1dd3064045 Fix test 2007-11-14 13:07:07 +00:00
Ilia Alshanetsky 916ad03b84 MFB: Fixed bug #43279 (pg_send_query_params() converts all elements in
'params' to strings)
2007-11-13 20:08:04 +00:00
Dmitry Stogov 5c6a2679c8 Fixed bug #42692 (Procedure 'int1' not present with doc/lit SoapServer) 2007-11-13 15:10:05 +00:00
Antony Dovgal 3258e0cef2 fix typo 2007-11-13 10:31:34 +00:00
Dmitry Stogov 6c7761c807 Fixed Bug #43248 (backward compatibility break in realpath()) 2007-11-13 09:46:39 +00:00
Zoe Slattery 332c87b12a MFH: Changing the regex for %f so the it will match E-, E+ and E. 2007-11-12 21:16:27 +00:00
Rob Richards fe13ae813d BFN 2007-11-12 19:00:04 +00:00
Rob Richards 376d5f828d MFH: fix bug #43221 (SimpleXML adding default namespace in addAttribute)
add test
2007-11-12 18:59:26 +00:00
Ilia Alshanetsky 5d09ce66a3 Fixed bug #43182 (file_put_contents() LOCK_EX does not work properly on
file
2007-11-12 18:47:46 +00:00
Antony Dovgal 144419b3a1 MFH: fix error message (reported by Felipe Nascimento) 2007-11-12 16:56:39 +00:00
Raghubansh Kumar 7a39cd0117 New testcases for ksort() function 2007-11-12 15:55:10 +00:00
Raghubansh Kumar 09e35a5107 New testcases for krsort() function 2007-11-12 15:54:35 +00:00
Antony Dovgal 7a369dc593 MFH: fix #42736 (xmlrpc_server_call_method() crashes) 2007-11-12 11:24:13 +00:00
Dmitry Stogov 2ea3105939 Fixed bug #42937 (__call() method not invoked when methods are called on parent from child class). 2007-11-12 09:11:49 +00:00
Ilia Alshanetsky 9ed8465d1b MFB: Fixed parse error described in bug #43228 2007-11-11 13:38:28 +00:00
Johannes Schlüter 6ff45cf55e - Use #if instead of #ifdef there (by Mikko Koppanen) 2007-11-10 19:52:08 +00:00
Raghubansh Kumar ad732b6140 fix tests 2007-11-09 12:00:57 +00:00
Dmitry Stogov 1ea2e504e3 Fixed bug #43216 (stream_is_local() returns false on "file://") 2007-11-09 09:37:42 +00:00
Dmitry Stogov 84c1ac4385 Fixed bug #43201 (Crash on using unitialized vals and __get/__set) 2007-11-09 09:28:18 +00:00
Dmitry Stogov 85a2d87bae Fixed bug #43175 (__destruct() throwing an exception with __call() causes segfault) 2007-11-09 09:16:45 +00:00
Raghubansh Kumar a91fe5ca49 fix test: better float values 2007-11-09 08:57:18 +00:00
Raghubansh Kumar 6ca1fdbc25 fix tests: better float values 2007-11-09 07:09:52 +00:00
Ilia Alshanetsky 9623aa59eb Fixed win32 build 2007-11-09 03:51:12 +00:00
Ilia Alshanetsky 0125436439 Back to dev 2007-11-08 13:53:14 +00:00
Ilia Alshanetsky af81b9d973 5.2.5 2007-11-08 13:44:12 +00:00
Antony Dovgal e9e1ba64e9 MFH 2007-11-08 11:39:59 +00:00
Antony Dovgal 2bb2bcdcce fix tests 2007-11-08 11:19:46 +00:00
Antony Dovgal f237b06942 fix test 2007-11-08 10:30:08 +00:00
Antony Dovgal 9958658fc3 MFH: fix test 2007-11-08 10:13:47 +00:00
Antony Dovgal 527f581a6b MFH 2007-11-08 08:12:01 +00:00
Dmitry Stogov 76a5faaf8f Fixed tests 2007-11-08 07:06:55 +00:00
Antony Dovgal 0e6b470417 fix tests 2007-11-07 12:07:59 +00:00
Antony Dovgal 295c1cc04e MFH 2007-11-07 08:31:04 +00:00
Jani Taskinen df35a307cc MFH: - Fixed bug #43196 (array_intersect_assoc() crashes with non-array input) 2007-11-06 13:28:21 +00:00
Raghubansh Kumar c6779ec584 New testcases for asort() function 2007-11-05 16:37:45 +00:00
Raghubansh Kumar f87b27a84e better test title 2007-11-05 16:24:37 +00:00
Raghubansh Kumar bbc87a14eb New testcases for sort() function 2007-11-05 15:38:03 +00:00
Raghubansh Kumar c1ee9eeecf New testcases for array_intersect_assoc() function 2007-11-05 14:39:42 +00:00
Derick Rethans db4b1f7f46 - Updated to version 2007.9 2007-11-05 10:36:50 +00:00
Mattias Bengtsson 5697c1a9ac - Right filename 2007-11-05 01:14:18 +00:00
Mattias Bengtsson 7f57a366dc - Fixed Bug #43121 (gdImageFill with IMG_COLOR_TILED crashes httpd) 2007-11-04 23:56:00 +00:00
Raghubansh Kumar 72c994d464 fix tests: proper temp file names 2007-11-02 03:54:05 +00:00
Raghubansh Kumar 5302a164b1 fix tests: proper temp file names 2007-11-02 03:16:22 +00:00
Raghubansh Kumar 72a009a2f2 Fix test: better float values 2007-11-02 03:00:18 +00:00
Ilia Alshanetsky 79cd4dc1c3 back to dev 2007-11-01 22:37:35 +00:00
Ilia Alshanetsky e3eb1b9bed 5.2.5RC2 2007-11-01 22:33:31 +00:00
Antony Dovgal f6966f28d0 MFH: initialize correct variable 2007-11-01 19:13:49 +00:00
Jani Taskinen e207cc58ac MFH: nuke unused variables 2007-11-01 17:32:26 +00:00
Dmitry Stogov 67f6979df2 Another fix for bug #42773 2007-11-01 15:41:13 +00:00
Dmitry Stogov e468aa44a2 Fixed bug #42848 (Status: header incorrect under FastCGI) 2007-11-01 15:23:14 +00:00
Dmitry Stogov fc6d3652f9 Fixed bug #41635 (SoapServer and zlib.output_compression with FastCGI result in major slowdown) 2007-11-01 14:11:47 +00:00
Dmitry Stogov 375bf36e42 Fixed bug #42773 (WSDL error causes HTTP 500 Response) 2007-11-01 14:10:19 +00:00
Robert Nicholson 997925db9f delete .project file 2007-11-01 10:34:38 +00:00
Robert Nicholson fa0e4863a2 update min_error and max_error testcases to take into account bug fix for bug#43125 2007-11-01 08:42:32 +00:00
Dmitry Stogov 2e869a00ac Added CGI SAPI -T option, to measure execution time of script repeated several times. 2007-10-31 18:24:42 +00:00
Jani Taskinen 171184b64d MFH: fix typo 2007-10-31 13:39:14 +00:00
Jani Taskinen bdbcc4b6d3 MFH: - Fixed Bug #43137 (rmdir() and rename() do not clear statcache) 2007-10-31 13:23:07 +00:00
Ilia Alshanetsky f4cd343b6c MFB: Fixed bug #43139 PDO ignores ATTR_DEFAULT_FETCH_MODE in some cases with
fetchAll()
2007-10-31 12:58:24 +00:00
Ilia Alshanetsky e5db0d8077 MFB: Test not relavent for sqlite that uses built-in bound syntax 2007-10-30 23:03:54 +00:00
Ilia Alshanetsky 68893b0cb4 MFB: Fixed bug #43130 (Bound parameters cannot have - in their name) 2007-10-29 22:37:25 +00:00
Jani Taskinen caa0de9205 MFH 2007-10-29 09:05:55 +00:00
Ilia Alshanetsky 39f1f2fcd3 MFB: Fixed bug #42976 (Crash when constructor for newInstance() or
newInstanceArgs() fails)
2007-10-28 13:47:14 +00:00
Raghubansh Kumar b89ab4a4d5 New testcases for shuffle() function 2007-10-27 12:29:25 +00:00
Raghubansh Kumar 6d9165b332 New testcases for array_intersect() function 2007-10-27 12:16:57 +00:00
Stanislav Malyshev b196fbece9 add attribution 2007-10-26 17:45:26 +00:00
Robert Nicholson 85122b5ae6 Remove unneeded INI sections 2007-10-26 16:08:34 +00:00
Raghubansh Kumar 8ba0f7f275 more testcases for array_unshift() function 2007-10-26 11:47:50 +00:00
Robert Nicholson 8ae4fa2810 new testcases for array_splice 2007-10-26 11:07:31 +00:00
Robert Nicholson b6900cb61d new testcases for max and min 2007-10-26 11:02:04 +00:00
Jani Taskinen 9a6012ff21 fix news 2007-10-26 08:13:15 +00:00
Antony Dovgal ef0652c7f3 MFH 2007-10-25 13:01:16 +00:00
Antony Dovgal 54e44a4707 MFH 2007-10-25 11:54:23 +00:00
Dmitry Stogov 602f26dc08 Added ability to control memory consumption between request using ZEND_MM_COMPACT environment variable 2007-10-25 07:30:29 +00:00
Ilia Alshanetsky 68f328560d MFB: Fixed bug #43099 (XMLWriter::endElement() does not check # of params) 2007-10-24 22:50:19 +00:00
Dmitry Stogov 1155200b02 Fixed realpath cache for existent file with CWD_FILEPATH flag on win32 2007-10-23 05:57:35 +00:00
Mattias Bengtsson a04472df2e - Be paranoid and dont allow multiplication with zero 2007-10-23 01:58:08 +00:00
Ilia Alshanetsky 521048a9ae MFB: Fixed bug #4294 (Move *timeout initialization from RINIT to connect
time)
2007-10-22 22:43:44 +00:00
Raghubansh Kumar 4846f7e349 more testcase for array_filter() function 2007-10-22 11:13:51 +00:00
Andrey Hristov 7c21b37a2f Make it compile with libmysql 3.23 2007-10-22 10:35:33 +00:00
Dmitry Stogov f8e5189286 forgotten description 2007-10-22 07:52:03 +00:00
Dmitry Stogov 9926736605 Fixed move_uploaded_file() to always set file permissions of resulting file according to UMASK (Andrew Sitnikov) 2007-10-22 07:37:20 +00:00
Ilia Alshanetsky 0139100668 MFB: Fixed bug #42944 (test failing due to expectation that /etc/passwd has
0644 permissions).
2007-10-21 15:41:45 +00:00
Raghubansh Kumar 083c7f05ca New tetscases for array_rand() function 2007-10-19 18:39:52 +00:00
Raghubansh Kumar ff9f6404dd New testcases for array_fill() function 2007-10-19 18:34:16 +00:00
Raghubansh Kumar ee0c90556e New testcases for array_filter() function 2007-10-19 18:18:17 +00:00
Raghubansh Kumar 5516f0a247 New testcases for array_unshift() function 2007-10-19 09:12:22 +00:00
Robert Thompson 586ceb9d40 formatting 2007-10-19 05:35:05 +00:00
Robert Thompson 08433295c4 News for getcwd() failure fix. 2007-10-19 01:22:24 +00:00
Ilia Alshanetsky c6ec417654 Back to dev 2007-10-18 23:09:54 +00:00
Ilia Alshanetsky 63f4dc835e 5.2.5RC1 2007-10-18 22:59:43 +00:00
Scott MacVicar 3e47b3cb7b MFB53: Fixed bug #43020 (Warning message is missing with shuffle() and more than one argument) 2007-10-18 14:39:08 +00:00
Dmitry Stogov 168f127abb Fixed bug #42722 (display_errors setting ignored for E_PARSE and HTTP 500 page) 2007-10-18 13:11:30 +00:00
Marcus Boerger 2e2a566c15 - BFN 2007-10-18 05:32:50 +00:00
Marcus Boerger 9f6936fc0c - MF53 Fix for #41692, #42703
# Now in correct branch with fixed checkout and so on
2007-10-18 05:26:55 +00:00
Marcus Boerger efc78b635b - Fix test expectation 2007-10-18 04:51:53 +00:00
Marcus Boerger 017fa36d3f - MFB #42654, #42704 2007-10-18 04:49:55 +00:00
Dmitry Stogov c43fe1c6cf Fixed possible crash because of uninitialized value (Zdash Urf) 2007-10-17 12:08:46 +00:00
Dmitry Stogov 82264b0b45 Fixed bug #42637 (SoapFault : Only http and https are allowed) 2007-10-17 11:17:46 +00:00
Antony Dovgal 7a9cd0a4fd MFH 2007-10-17 08:19:50 +00:00
Antony Dovgal 36e950eb5f avoid double free and use zval_dtor() where neccessary 2007-10-16 13:20:29 +00:00
Andrey Hristov c8f8766461 MFB5_3 : Shadowing of params bring undefined results. 2007-10-16 13:00:32 +00:00
Raghubansh Kumar 7a97b74637 New testcases for array_flip() function 2007-10-15 06:29:37 +00:00
Raghubansh Kumar 92642d0189 New testcases for array_reverse() function 2007-10-15 06:09:27 +00:00
Hannes Magnusson a029117eb5 MFH: fix typo and remove dots in error message 2007-10-13 11:35:35 +00:00
Ilia Alshanetsky accfde57ca MFB: Fixed bug #42917 (PDO::FETCH_KEY_PAIR doesn't work with setFetchMode) 2007-10-11 20:56:22 +00:00
Derick Rethans 94a3bb327e - Updated to version 2007.8 2007-10-11 18:54:37 +00:00
Raghubansh Kumar d7e424acbe fix test (temp. file name) 2007-10-11 11:53:16 +00:00
Jani Taskinen 979e8b5896 MFB53 2007-10-11 09:33:53 +00:00
Jani Taskinen 3c9eb61d04 MF53 2007-10-11 08:28:02 +00:00
Robert Thompson 98505945f2 Fix for bug 41899, safe mode and relative paths with Solaris's broken getcwd(). 2007-10-10 23:54:39 +00:00
Jani Taskinen 6f128d2dd7 - Generated with more recent re2c version 2007-10-10 09:28:51 +00:00
Ilia Alshanetsky 00f18d764a MFB: Fixed bug #42869 (automatic session id insertion adds sessions id to
non-local forms)
2007-10-10 00:35:52 +00:00
Scott MacVicar 6928bdc6bf MFH: Add constant to allow setting of character set with mysqli_options prior to connection. 2007-10-09 16:56:38 +00:00
Raghubansh Kumar 2a078d14c9 New testcases for strip_tags() function 2007-10-09 12:47:00 +00:00
Raghubansh Kumar 1993c9a384 fix test 2007-10-09 12:19:27 +00:00
Raghubansh Kumar ecf81d1529 fix tests 2007-10-09 12:12:19 +00:00
Raghubansh Kumar bf428e90a5 fix tests 2007-10-09 10:56:45 +00:00
Scott MacVicar 7deeb54fe1 MFH: Fix expand_filepath when including relative files, ideally you should test your code... 2007-10-09 10:06:34 +00:00
Jani Taskinen 6d078cea10 MFH: ws + cs 2007-10-09 08:40:47 +00:00
Raghubansh Kumar fdf4c22696 fix tests 2007-10-09 06:18:47 +00:00
Raghubansh Kumar be49c27d17 more tests for fseek(), ftell() & rewind() for win32 2007-10-09 04:55:14 +00:00
Raghubansh Kumar 0c9f9f8ef9 fix tests 2007-10-09 04:07:24 +00:00
Andrey Hristov 8cc2f5d576 News entry 2007-10-08 18:27:18 +00:00
Andrey Hristov 3f6b49a340 Fix for bug #42890 Constant "LIST" defined by mysqlclient and c-client 2007-10-08 18:25:52 +00:00
Raghubansh Kumar 393a686507 fix test 2007-10-08 16:02:55 +00:00
Raghubansh Kumar b8e0f7e78a fix test 2007-10-08 15:44:26 +00:00
Raghubansh Kumar 40098256fb fix tests 2007-10-08 15:36:01 +00:00
Raghubansh Kumar 50a4e50d03 New testcases for strtr() function 2007-10-08 15:19:56 +00:00
Raghubansh Kumar 99d99a0ba0 New testcases for get_html_translation_table() function 2007-10-08 15:19:27 +00:00
Raghubansh Kumar f075e78ac1 fix test 2007-10-08 06:19:11 +00:00
Robert Thompson 477e2b315b Fix for bug 41822 and 41899. expand_filepath() will now return a relative path under the specific situation where getcwd() returns NULL and the file is
still readable.  As far as I have been able to tell, this fix only applies to the Solaris OS where files in directories with (--x) cannot getcwd().
2007-10-08 02:49:26 +00:00
Antony Dovgal 98599a1c23 MFH: fix ws & folding 2007-10-06 21:35:53 +00:00
Raghubansh Kumar ea8fc31bf3 New testcases for setlocale() function 2007-10-05 19:30:51 +00:00
Raghubansh Kumar b84873aa96 New testcases for nl2br() function 2007-10-05 18:44:35 +00:00
Raghubansh Kumar 7cf81e0fe0 New testcases for strrpos() function 2007-10-05 18:31:51 +00:00
Raghubansh Kumar 620b1c63d0 New testcases for str_split() function 2007-10-05 18:16:34 +00:00
Raghubansh Kumar 2a05dfadb2 New testcases for vsprintf() function 2007-10-05 18:07:28 +00:00
Jani Taskinen 5a8c9a7d1c MFH: fix test 2007-10-05 14:57:51 +00:00
Nuno Lopes e1a402b6da allow lcov 1.6 2007-10-05 14:51:36 +00:00
Ilia Alshanetsky f9137cddf6 BFN 2007-10-04 23:26:04 +00:00
Ilia Alshanetsky 07710a5fb9 MFB: Fixed bug #42817 (clone() on a non-object does not result in a fatal
error)
2007-10-04 23:23:43 +00:00
Jani Taskinen 1be447eb95 MFH: Removed ending dots from error messages 2007-10-04 13:31:11 +00:00
Ilia Alshanetsky 91e99495af MFB: Fixed bug #42783 (pg_insert() does not accept an empty list for
insertion)
2007-10-03 23:31:58 +00:00
Michael Wallner b260f03830 MFH: fix CURLOPT_TIMEOUT_MS support 2007-10-03 20:34:48 +00:00
Dmitry Stogov 0cd4039af2 Fixed bug #42818 ($foo = clone(array()); leaks memory) 2007-10-03 09:47:25 +00:00
Dmitry Stogov c7047381f5 Fixed bug #42772 (Storing $this in a static var fails while handling a cast to string) 2007-10-03 08:02:19 +00:00
Stanislav Malyshev f422acca26 add html* utf fix 2007-10-03 05:03:12 +00:00
Stanislav Malyshev ecc9d28fed add test with invalid sequences 2007-10-03 04:58:41 +00:00
Stanislav Malyshev 5e82a38f0a do not accept partial multibyte sequences in html* functions 2007-10-03 04:53:05 +00:00
Antony Dovgal 63b3528cb1 improved recursion detection in array_walk()
fixes #42752, though the leaks are still there
2007-10-02 10:04:13 +00:00
Ilia Alshanetsky 139996e1ac MFB: Added test for bug #42785 2007-10-01 15:33:21 +00:00
Ilia Alshanetsky f89aae49a7 MFB: Fixed bug #42785 (json_encode() formats doubles according to locale
rather then following standard syntax).
2007-10-01 15:23:15 +00:00
Ilia Alshanetsky 94eb3ed91b MFB: Fixed typo in previous patch 2007-10-01 15:00:15 +00:00
Ilia Alshanetsky 191bf235ed MFB: Refactor code to make fixes for coverity issues #385 and #386 a bit
more obvious
2007-10-01 14:53:01 +00:00
Antony Dovgal 7d889d818a fix test 2007-10-01 10:41:36 +00:00
Antony Dovgal d70e63458f fix tests 2007-10-01 10:25:50 +00:00
Antony Dovgal 23d9af29d7 these dots exist since PHP3
even though Jani removed them in 5_3, I can't see how they can cause any BUGS
2007-10-01 10:22:43 +00:00
Pierre Joye 73219c9cb0 - add notice about glob regression (Lukas) 2007-10-01 08:14:03 +00:00
Raghubansh Kumar e538e493d7 smaller tests already exist 2007-09-29 17:21:41 +00:00
Raghubansh Kumar 2770262bad New testcases for sprintf() function 2007-09-29 14:13:53 +00:00
Raghubansh Kumar 69158b5e18 New testcases for chunk_split() function 2007-09-29 12:55:34 +00:00
Raghubansh Kumar f0435592a0 New testcases for stripos() function 2007-09-29 09:19:43 +00:00
Raghubansh Kumar 6eaef0712e New testcases for strrchr() function 2007-09-29 09:18:07 +00:00
Raghubansh Kumar 64f7dafa74 New testcases for join() function 2007-09-29 09:10:18 +00:00
Raghubansh Kumar 16242cd2df New testcases for htmlspecialchars_decode() function 2007-09-29 09:00:48 +00:00
Johannes Schlüter 11d5f9c7c4 - MFH: Fix type in example 2007-09-28 22:04:47 +00:00
Ilia Alshanetsky 3447b26334 MFB: Fixed coverity issue #470 Unitialized integer value used inside
zend_ini_boolean_displayer_cb
2007-09-27 17:27:15 +00:00
Jani Taskinen 12760053c1 missing folding tag 2007-09-27 16:42:11 +00:00
Jani Taskinen 52095f58a5 MFH: use Z_STR* macros 2007-09-27 16:29:27 +00:00
Jani Taskinen b024bedbdb MFH: ws 2007-09-27 16:00:20 +00:00
Jani Taskinen 5cb0b7609a MFH: ws + cs (to keep in sync with HEAD/PHP_5_3 only!) 2007-09-27 15:54:49 +00:00
Jani Taskinen 2c841333ee ws + cs fixes 2007-09-27 13:15:09 +00:00
Antony Dovgal 474f6eef5e MFH: fix coverity issue #412 2007-09-27 09:19:06 +00:00
Antony Dovgal eb2659c7b2 MFH: fix coverity issue #411 2007-09-27 09:15:20 +00:00
Ilia Alshanetsky f871988b88 BFN 2007-09-26 15:44:15 +00:00
Ilia Alshanetsky b26d5f6077 Fixed bug #42767 (highlight_string() truncates trailing comment) 2007-09-26 15:43:58 +00:00
Raghubansh Kumar 2ff92b584e new testcases for strrev() function 2007-09-26 14:40:14 +00:00
Antony Dovgal 72fc33ef6a MFH 2007-09-26 10:55:07 +00:00
Raghubansh Kumar 433d1a5d02 New testcases for crc32() function 2007-09-26 06:03:55 +00:00
Ilia Alshanetsky d0796d9d68 Another typo fix 2007-09-25 18:18:10 +00:00
Ilia Alshanetsky b89c7fcf8f Fixed typo 2007-09-24 23:33:24 +00:00
Dmitry Stogov 884b06e303 Fixed crash on POST request after dl("mbstring.so") 2007-09-24 11:53:40 +00:00
Rui Hirokawa e94f26f356 MFH: added support "entity" as substitute_character settin accoding to bug #39404 2007-09-24 11:51:36 +00:00
Dmitry Stogov b441b275b3 Fixed bug #42699 (PHP_SELF duplicates path) 2007-09-24 11:40:05 +00:00
Ilia Alshanetsky f60df047f1 Fixed bug #42739 (mkdir() doesnt like a trailing slash when safe_mode is
enabled).
2007-09-23 15:19:21 +00:00
Ilia Alshanetsky ddc1871576 Improve check for filename (fixed coverity issue #355) 2007-09-22 15:55:35 +00:00
Ilia Alshanetsky 24c806c41b Fixed memory leak inside array_intersec (coverity issues #403,#404) 2007-09-22 15:38:00 +00:00
Ilia Alshanetsky 91e8740fe4 Fixed memory leak inside array_diff() (coverity issues #401,#402) 2007-09-22 15:32:11 +00:00
Ilia Alshanetsky 9307163e67 Fixed memory leak inside pack() (coverity issues #398,#399,#400) 2007-09-22 15:25:46 +00:00
Raghubansh Kumar b17d0085f3 New testcases for strspn() function 2007-09-22 10:51:38 +00:00
Raghubansh Kumar 0aa09167c1 New testcases for strcspn() function 2007-09-22 10:36:15 +00:00
Raghubansh Kumar eb3f8fda65 New testcases for strtok() function 2007-09-22 07:39:57 +00:00
Raghubansh Kumar 32b432f878 replaced by array_search_variation1.phpt, hence removed. 2007-09-22 06:58:33 +00:00
Raghubansh Kumar 12bc950491 update and split of testcases for functions array_search() and in_array() 2007-09-22 06:53:58 +00:00
Antony Dovgal cecbe87656 MFH: add NULL check (coverity issue #385) and fix CS 2007-09-21 14:17:06 +00:00
Antony Dovgal 74ae13f933 MFH: check for NULL (coverity issue #386) 2007-09-21 14:12:52 +00:00
Antony Dovgal 074b4e51f0 MFH: check the return value of getgroups() for -1 (coverity issue #390) 2007-09-21 14:05:18 +00:00
Antony Dovgal 43cc8937b2 MFH: plug leak on error (coverity issue #405) 2007-09-21 13:51:49 +00:00
Antony Dovgal 366c113156 MFH: plug leak on error (coverity issue #407) 2007-09-21 13:37:30 +00:00
Dmitry Stogov 9ee4848c3f Improved speed of array_diff_key(), array_diff_assoc() and array_udiff_assoc(). 2007-09-21 13:10:59 +00:00
Antony Dovgal f5bf263b88 initialize all fields of the struct (it's generally good idea even though they should not be used) 2007-09-21 13:08:00 +00:00
Antony Dovgal 3587185a89 MFH: fix invalid read when opendir over FTP fails (coverity issue #462) 2007-09-21 12:57:38 +00:00
Stanislav Malyshev 7985002fc6 better fix for iconv_substr 2007-09-20 22:35:24 +00:00
Nuno Lopes fa0efe45e0 fix crash when fetching a node type that doesnt exist
# reported in a manual user note
2007-09-20 22:25:06 +00:00
Stanislav Malyshev c70e307e77 fix potential overflow (Mattias Bengtsson) 2007-09-20 21:55:14 +00:00
Stanislav Malyshev cfd8f6d775 add test for dl() with long name 2007-09-20 18:44:24 +00:00
Jani Taskinen 30dc58671d MFH 2007-09-20 14:28:12 +00:00
Jani Taskinen ba144fd417 - Fix test and tuned error message 2007-09-20 14:11:32 +00:00
Jani Taskinen c932082f7b MFH 2007-09-20 13:49:33 +00:00
Ilia Alshanetsky 84d594e4b6 Fixed test for glob() affected by previous patch 2007-09-20 13:29:04 +00:00
Rob Richards da068e5291 BFN 2007-09-20 09:32:31 +00:00
Rob Richards adb1cd835d MFH: fix bug #42139 (XMLReader option constants are broken using XML())
add test
2007-09-20 09:30:45 +00:00
Dmitry Stogov 8d377a698a Improved speed of array_intersect_key(), array_intersect_assoc() and array_uintersect_assoc(). (100 times faster on arrays with 100000 elements) 2007-09-20 09:22:59 +00:00
Antony Dovgal f67c0222fe MFH 2007-09-20 08:10:44 +00:00
Ilia Alshanetsky 47950d10cf Fixed regression in glob() when enforcing safe_mode/open_basedir checks on
paths containing '*'
2007-09-19 22:37:58 +00:00
Antony Dovgal 77951494b7 MFH 2007-09-19 11:25:57 +00:00
Stanislav Malyshev f7e4ff1054 one more test 2007-09-19 00:49:02 +00:00
Stanislav Malyshev d07b041e8a report iconv fix 2007-09-19 00:41:10 +00:00
Stanislav Malyshev 1ef91c8494 limit iconv parameters here too 2007-09-19 00:33:43 +00:00
Stanislav Malyshev 2fe9599880 limit iconv parameter sizes - workaround for glibc bug 2007-09-19 00:30:52 +00:00
Stanislav Malyshev 15a715ae73 add length tests for iconv functions 2007-09-19 00:18:01 +00:00
Rui Hirokawa beeddd8873 MFH: fixed bug #42502 va_* cannot detect. 2007-09-18 21:35:39 +00:00
Rui Hirokawa 507112e44d modified line end CR -> CR+NL 2007-09-18 21:33:29 +00:00
Stanislav Malyshev 08d3f07ced add dl() limit patch 2007-09-18 20:25:07 +00:00
Stanislav Malyshev 280e6464e8 limit dl() argument length (patch by Christian Hoffmann) 2007-09-18 20:19:34 +00:00
Ilia Alshanetsky 785b9d76f8 Fixed bug #42189 (xmlrpc_set_type() crashes php on invalid datetime
values).
2007-09-18 19:49:54 +00:00
Jani Taskinen 21f5a00183 BFN 2007-09-18 09:25:03 +00:00
Jani Taskinen c29136bd08 - Fixed bug #42629 (Dynamically loaded PHP extensions need symbols exported on MacOSX) 2007-09-18 09:24:04 +00:00
Ilia Alshanetsky 6c49087e64 Fixed typos 2007-09-17 12:44:16 +00:00
Ilia Alshanetsky 402d3eb0e0 Fixed a typo 2007-09-16 15:38:57 +00:00
Raghubansh Kumar 35990e7c5b better output matching/fixes 2007-09-15 07:29:55 +00:00
Raghubansh Kumar ec3a713fbb Removing from file dir as it was wrongly committed to this dir 2007-09-14 19:03:14 +00:00
Raghubansh Kumar b59c171e23 New testcases for strncasecmp() 2007-09-14 19:02:07 +00:00
Raghubansh Kumar 6d12620591 New testcases for chop() 2007-09-14 18:58:02 +00:00
Raghubansh Kumar e1a08e5d55 New testcases for wordwrap() 2007-09-14 18:53:38 +00:00
Raghubansh Kumar 4799047e07 New testcases for strncasecmp() function 2007-09-14 18:26:44 +00:00
Raghubansh Kumar aafdc266bf New testscases for chop() function 2007-09-14 18:24:47 +00:00
Zoe Slattery 619b218e9a Changing to use %a to match recent run-tests.php patch 2007-09-14 16:28:54 +00:00
Nuno Lopes 40085b06f2 changes to run-tests.php:
- change %s to %a
- make %s = [^\r\n]+
- fix tests accordingly
2007-09-14 15:28:03 +00:00
Nuno Lopes b121ffae92 fix expected output 2007-09-14 15:04:19 +00:00
Raghubansh Kumar 0cb6cfcd87 better comments 2007-09-14 14:31:55 +00:00
Raghubansh Kumar f22626ba5a New testcases for wordwrap() function 2007-09-14 14:14:48 +00:00
Raghubansh Kumar 4903f48eaa fix test 2007-09-14 09:38:13 +00:00
Jani Taskinen 3373aeff8e fix news 2007-09-14 08:20:15 +00:00
Stanislav Malyshev 03547dc13c register mail.force_extra_parameters change 2007-09-13 20:08:00 +00:00
Stanislav Malyshev cd836153d6 disallow setting mail.force_extra_parameters from .htaccess 2007-09-13 20:04:22 +00:00
Nuno Lopes bb2ec1c790 fix test, particularly when running with valgrind, bacause it may take more than one second to execute both instructions and thus get different dates 2007-09-13 19:58:26 +00:00
Nuno Lopes b0e393e543 attemp to set locale if it exists. fix skip condition 2007-09-13 19:51:34 +00:00
Nuno Lopes e0660a267e fix expected output 2007-09-13 19:30:19 +00:00
Nuno Lopes e3e2a62d44 fix test expected output 2007-09-13 18:55:28 +00:00
Nuno Lopes 69fbaf7d10 fix skip reasons. the word 'skip' should be followed by a single space and doesnt need any \n at the end 2007-09-13 18:24:26 +00:00
Stanislav Malyshev 4d34ae2946 List recent fixes 2007-09-13 17:15:02 +00:00
Ilia Alshanetsky 2cfdcd265d Added a note indicating that the tests may fail to due libc implementation 2007-09-13 15:36:37 +00:00
Jani Taskinen 859a017f95 MFH: cs/ws 2007-09-13 07:42:12 +00:00
Stanislav Malyshev f39d5a2f21 docs say dl() parameter can be filename only - enforce it 2007-09-13 00:56:31 +00:00
Stanislav Malyshev 1f45d49a0c fix crash if stream is empty and reader function sets buffer as null 2007-09-12 21:21:18 +00:00
Ilia Alshanetsky 910850be51 Fixed bug #42643 (CLI segfaults if using ATTR_PERSISTENT). 2007-09-12 18:26:49 +00:00
Jani Taskinen 96df4d2161 reorder 2007-09-12 11:46:02 +00:00
Jani Taskinen 0e0df5e47c BFN 2007-09-12 11:45:34 +00:00
Jani Taskinen bf132de1eb MFH:- Fixed bug #42627 (bz2 extension fails to build with -fno-common) 2007-09-12 11:44:26 +00:00
Nuno Lopes ada2b7ca41 BFN #39651 2007-09-12 11:44:25 +00:00
Nuno Lopes b24d4ddac9 fix bug #39651: proc_open() append mode doesnt work on windows 2007-09-12 11:42:43 +00:00
Jani Taskinen 26bcbca33b fix news 2007-09-12 09:49:20 +00:00
Raghubansh Kumar 99c6da86f3 marked with Bug #42038 2007-09-12 09:47:35 +00:00
Andrey Hristov dc34874dc9 Fix stupid error, which happens only on Windows. And we thought this has
been fixed. Now my_thread_end() should be called and there should be no
warnings in the error logs of exiting thread, which hasn't deinited, and
leaks.
2007-09-12 09:12:56 +00:00
Raghubansh Kumar 5e6724b122 marked with Bug# 42638 2007-09-12 08:27:35 +00:00
Ilia Alshanetsky 79325e3c55 MFH: Fixed function definition 2007-09-11 23:34:25 +00:00
Pierre Joye fd15282c77 - [DOC] add alpha support for imagefilter's IMG_FILTER_COLORIZE 2007-09-11 21:03:48 +00:00
Nuno Lopes 336111e4e9 remove the -DHAVE_CONFIG_H switch again to fix things on windows
this means that the upgrade script strips the #ifdef automatically
2007-09-11 16:17:34 +00:00
Rob Richards 7f7c158096 MFH: revert config header change 2007-09-11 11:25:20 +00:00
Jani Taskinen 3327653e19 - Fix tests (we are not interested what the old value was for the ini option) 2007-09-11 10:23:04 +00:00
Raghubansh Kumar b33ea59337 fix test 2007-09-11 05:21:40 +00:00
Ilia Alshanetsky ea6de20d86 Fixed Bug #42596 (session.save_path MODE option does not work). 2007-09-10 23:42:54 +00:00
Dmitry Stogov 96810f0ae6 Fixed bug #42587 (behaviour change regarding symlinked .php files) 2007-09-10 10:55:26 +00:00
Antony Dovgal a09eadc95b fix tests 2007-09-10 10:28:54 +00:00
Antony Dovgal 99695744ac split one more ten-in-one test
and fix \v\f stuff while we're here..
2007-09-09 22:28:06 +00:00
Ilia Alshanetsky 9f249298fc BFN 2007-09-09 16:34:05 +00:00
Ilia Alshanetsky 8ff31493b7 Fixed bug #42590 (Make the engine recornize \v and \f escape sequences) 2007-09-09 16:33:34 +00:00
Scott MacVicar e041a39e25 BFN 2007-09-09 16:12:09 +00:00
Scott MacVicar 734dfc8b75 MFH: Fixed bug 42549 (ext/mysql failed to compile with libmysql 3.23) 2007-09-09 16:08:17 +00:00
Pierre Joye 374bef4bc4 - #106 entry 2007-09-09 13:07:00 +00:00
Pierre Joye 7ea43ee23a - re-add fix for libgd #106, imagerectangle draws 1x1 rectangles
as 1x3 rectangles
2007-09-09 13:05:51 +00:00
Rob Richards 20296c625d MFH: point to valid config header 2007-09-08 09:57:22 +00:00
Pierre Joye 793956a0e1 - #42592, remove ending dot in warning msg 2007-09-07 18:23:58 +00:00
Raghubansh Kumar a14ef42c0c New testcases for ucwords() function 2007-09-07 14:44:52 +00:00
Raghubansh Kumar 67b4492c47 New testcases for strncmp() function 2007-09-07 14:20:12 +00:00
Jani Taskinen 9025c2a891 - Can not remove because of the idiotic ZEND_STR*() macros 2007-09-07 14:15:17 +00:00
Raghubansh Kumar cf2121887c New testcases for stripslashes() function 2007-09-07 13:51:26 +00:00
Zoe Slattery b7a47a439b fixing error in expected output 2007-09-07 10:28:03 +00:00
Jani Taskinen 2b69d18e49 - Added reminder for 5.3 2007-09-07 10:00:45 +00:00
Jani Taskinen 822400d78f - Missed this from previous commit to zend_ini.h 2007-09-07 09:59:50 +00:00
Jani Taskinen 2a528a158a - No need to break binary compatibility here 2007-09-07 09:55:37 +00:00
Jani Taskinen 279f8d4822 BFN 2007-09-07 09:39:11 +00:00
Jani Taskinen 82626c1868 MFH: - Fixed the rest of bug #41561 ( @ operator not working ) 2007-09-07 09:37:38 +00:00
Jani Taskinen 510ad20616 MFH: folding tags 2007-09-07 09:35:06 +00:00
Jani Taskinen f393620b9b BFN 2007-09-07 08:50:13 +00:00
Jani Taskinen fef2b33e85 MFH:- Fixed bug #42579 (apache_reset_timeout() does not exist) 2007-09-07 08:49:24 +00:00
Dmitry Stogov dd8c8d05e8 Added checks for malformated FastCGI requests (Mattias Bengtsson) 2007-09-07 08:26:47 +00:00
Ilia Alshanetsky 022d4fc0b6 Added missing safety checks for 2nd parameter of setlocale() function 2007-09-07 02:28:42 +00:00
Derick Rethans e280715150 - MFH: Add a comment why not ~0 or -1. 2007-09-06 13:28:05 +00:00
Andrey Hristov 09fbf87a6c Fixed leaks with multiple connects using one mysqli object.
HEAD will be fixed during the next mysqlnd merge

Fixed failing test for bug38710, 5.0 version is bad, 5.1 is ok.
2007-09-06 10:07:42 +00:00
Raghubansh Kumar af40765f8f New testcases for addslashes() function 2007-09-06 04:01:25 +00:00
Ilia Alshanetsky 49c91f6e33 MFH: fixed typo in function name 2007-09-05 13:03:59 +00:00
Andrey Hristov 649152ca49 Fixed bug #42378 (mysqli_stmt_bind_result memory exhaustion)
Fixed regression of bug 38710. Already fixed in HEAD.
#HEAD will be fixed when doing the next merge from svn
2007-09-05 12:36:44 +00:00
Dmitry Stogov e56466edc8 Fixed bug #42214 (SoapServer sends clients internal PHP errors) 2007-09-05 11:20:45 +00:00
Dmitry Stogov ee944bd1b5 Fixed bug #42488 (SoapServer reports an encoding error and the error itself breaks). 2007-09-05 10:18:23 +00:00
Dmitry Stogov 5d238efaa6 Fixed bug #42523 (PHP_SELF duplicates path) 2007-09-05 08:26:32 +00:00
Antony Dovgal 18ce620bdf bfn 2007-09-04 18:51:48 +00:00
Antony Dovgal 2198abb1c4 MFH: detect endianness in compile time when using Apple's GCC (fixes universal binary build) 2007-09-04 18:46:21 +00:00
Rui Hirokawa b9424cdfaf MFH: fixed bug #29955 invalid case conversion in iso-8859-9. 2007-09-04 14:14:11 +00:00
Ilia Alshanetsky 72f910c012 Fixed possible buffer overflows inside the fnmatch() and glob() functions 2007-09-04 12:51:49 +00:00
Zoe Slattery b78b25a336 Test cases for sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, asinh, acosh, atanh. 2007-09-04 09:01:02 +00:00
Raghubansh Kumar 5096c8d232 fix tests 2007-09-04 08:37:51 +00:00
Ilia Alshanetsky 59a410cb76 Fixed bug #42506 (php_pgsql_convert() timezone parse bug) 2007-09-03 15:36:04 +00:00
Ilia Alshanetsky 09cad322fa Fixed bug #42468 (Write lock on file_get_contents fails when using a
compression stream).
2007-09-03 02:53:56 +00:00
Derick Rethans 152d379950 - MFH: Fixed bug #42512 (ip2long('255.255.255.255') should return 4294967295 on
64-bit PHP).
2007-09-01 18:38:39 +00:00
Nuno Lopes c6f777da1f adapt for PCRE 7.3
remove ability to include config.h from php_pcre.c, as it seems pretty useless and produces a few warnings
2007-09-01 17:51:35 +00:00
Nuno Lopes 3edd2a69f2 upgrade to PCRE 7.3 2007-09-01 17:48:43 +00:00
Nuno Lopes a3e6be974f new test 2007-09-01 17:47:13 +00:00
Antony Dovgal eaa89d2443 1.2.4 2007-08-31 22:30:27 +00:00
Antony Dovgal 19b1e39830 fix package2.xml 2007-08-31 22:26:13 +00:00
Antony Dovgal c230fa2b76 add Chris to the maintainers 2007-08-31 21:44:57 +00:00
Christopher Jones 63bfa32aee New tests for getAttribute 2007-08-31 21:09:43 +00:00
Christopher Jones af387e49ba Add $dbh->getAttribute() support for ATTR_SERVER_VERSION, ATTR_SERVER_INFO, ATTR_CLIENT_VERSION, ATTR_AUTOCOMMIT. Sync WS between PHP 5 & 6 and add a couple of casts. 2007-08-31 21:08:48 +00:00
Antony Dovgal 90d58d4668 MFH: prohibit arguments by ref in magic methods 2007-08-31 12:36:14 +00:00
Dmitry Stogov 39bceffc4a Fixed bug #42453 (CGI SAPI does not shut down cleanly with -i/-m/-v cmdline options) 2007-08-31 12:17:52 +00:00
Antony Dovgal a1ac6e1ee3 update changelog, prepare for 1.2.4 release 2007-08-31 12:10:54 +00:00
Dmitry Stogov 83647013af Fixed bug #42359 (xsd:list type not parsed) 2007-08-31 10:48:45 +00:00
Jani Taskinen cac7e107c6 MFH: ws + protos 2007-08-31 10:46:19 +00:00
Dmitry Stogov fdf96bed47 Fixed bug #42086 (SoapServer return Procedure '' not present for WSIBasic compliant wsdl) 2007-08-31 09:36:02 +00:00
Jani Taskinen 77c36cd259 MFH: ws 2007-08-31 08:35:37 +00:00
Jani Taskinen 9be89ed6f6 MFH: ws fixes 2007-08-31 08:16:13 +00:00
Jani Taskinen b9ddb5cba6 MFH 2007-08-31 08:09:50 +00:00
Dmitry Stogov ba1f56cb6d Fixed bug #42326 (SoapServer crash) 2007-08-31 08:07:28 +00:00
Jani Taskinen 6066b01d1b MFH: Revert revert. 2007-08-31 07:52:29 +00:00
Jani Taskinen 3197e135fa MFH: Moved php.ini related protos where they belong 2007-08-31 07:48:05 +00:00
Jani Taskinen 11750c315d MFH: ws 2007-08-31 07:43:37 +00:00
Jani Taskinen cd0cfdfc39 MFH 2007-08-31 07:42:05 +00:00
Christopher Jones 4450386ae0 New tests 2007-08-30 17:33:00 +00:00
Rob Richards 0ecaf04f86 BFN 2007-08-30 16:32:54 +00:00
Rob Richards 78b2aaa954 MFH: fix bug #42462 (Segmentation when trying to set an attribute in DOMElement) 2007-08-30 16:32:34 +00:00
Hannes Magnusson 2fc92c9172 - Fixed bug #42452 (PDO classes do not expose Reflection API information)
- Fixed tests
2007-08-30 14:06:12 +00:00
Sebastian Bergmann d0d1e42c75 Add optional parameter to debug_backtrace(). 2007-08-30 07:43:21 +00:00
Sebastian Bergmann 78e0e02179 Back to -dev. 2007-08-30 07:40:13 +00:00
Raghubansh Kumar 5081b960e5 fix test: do not run when noatime set 2007-08-30 04:04:58 +00:00
Ilia Alshanetsky 493b67b518 5.2.4 2007-08-29 23:36:11 +00:00
Raghubansh Kumar 16980248cc fix test: do not run on MACOS 2007-08-29 10:11:40 +00:00
Pierre Joye a83c2153f9 - gd bug #102, alternative fix when an old library is used 2007-08-29 06:26:30 +00:00
Raghubansh Kumar 3b32190c91 fix test, do not run on macos 2007-08-29 04:38:09 +00:00
Jani Taskinen ff95906878 Fix news 2007-08-27 08:35:27 +00:00
Pierre Joye 73fcf22627 - revert fix for #106
- add news entry for pslib fix
  NB: Please next time, inform us before a complete freeze is done for
      a given branch. And a week for a RC is defitively too short.
2007-08-27 08:27:45 +00:00
Pierre Joye 0d98b9a1d9 - MFB: gd #106, imagerectangle draws 1x1 rectangles as 1x3 rectangles 2007-08-26 20:35:11 +00:00
Zoe Slattery 9dfb01d3b1 adding check for rc1 to version-compare test 2007-08-24 14:47:50 +00:00
Jani Taskinen 00b9764a41 MFH:- Fix problem with non-bash compliant shells 2007-08-24 11:44:10 +00:00
Ilia Alshanetsky 6ed33cd46d Back to dev 2007-08-23 22:53:52 +00:00
Ilia Alshanetsky 43a3524f49 5.2.4RC3 2007-08-23 22:39:02 +00:00
Antony Dovgal cc44f5a09c -BFN 2007-08-23 18:44:09 +00:00
Antony Dovgal 8a3b3e9365 MFH: revert the patch which breaks multithreaded servers 2007-08-23 18:42:42 +00:00
Derick Rethans 80b4ee9f44 - MFH: Make version_compare() also understand the lower case variant of "RC". 2007-08-23 18:38:42 +00:00
Jani Taskinen de85bf4060 MFH: ws + cs changes (sync to ease merging patches around!) 2007-08-23 12:23:59 +00:00
Jani Taskinen 19401951c0 MFH: sync 2007-08-23 11:42:21 +00:00
Raghubansh Kumar ede06426ee fix tests 2007-08-23 09:32:37 +00:00
Ilia Alshanetsky 89c0ba1685 Fixed bug #37273 (Symlinks and mod_files session handler allow open_basedir
bypass).
2007-08-23 02:04:39 +00:00
Ilia Alshanetsky f30f2ef733 Fixed bug #42368 (Incorrect error message displayed by pg_escape_string). 2007-08-22 22:40:29 +00:00
Jani Taskinen 8ab9984707 MFH:- Fixed bug #42365 (glob() crashes with invalid flags) 2007-08-22 14:59:45 +00:00
Dmitry Stogov 8a61fc9b6e Fixed bug #42183 (classmap cause crashr in non-wsdl mode) 2007-08-22 14:18:10 +00:00
Dmitry Stogov 1aab36e3f2 Fixed bug #42009 (is_a() and is_subclass_of() should NOT call autoload, in the same way as "instanceof" operator). 2007-08-22 13:19:48 +00:00
Jani Taskinen 141ae73099 MFH:Fix typo in fastcgi.logging option example 2007-08-21 23:24:18 +00:00
Johannes Schlüter 254992907c - MFH: Fix Bug #42364 Crash when using getRealPath with DirectoryIterator 2007-08-21 22:45:53 +00:00
Ilia Alshanetsky 1fd7133d5a No longer experimental 2007-08-20 23:36:03 +00:00
Sebastian Bergmann 11b820bda3 - Fugbix typo. 2007-08-20 17:01:22 +00:00
Jani Taskinen c6a7e4cad4 MFH:- Part 1 of fixing problems with runpath switch (make --disable-rpath work for real) 2007-08-20 14:28:45 +00:00
Raghubansh Kumar 857aae2bd7 fix test : skip if user is root 2007-08-20 04:07:02 +00:00
Raghubansh Kumar 7f0be4f49d fix tests 2007-08-20 03:37:39 +00:00
Raghubansh Kumar b1080faf44 fix test: skip if user is root 2007-08-20 03:12:36 +00:00
Jani Taskinen 8c4b05ad66 BFN 2007-08-19 16:11:17 +00:00
Ilia Alshanetsky c5e61d4bca No longer relavent, extension is made absolete by fileinfo 2007-08-19 13:48:00 +00:00
Rui Hirokawa 1d44054407 MFH (fixed #42085) 2007-08-19 01:58:39 +00:00
Johannes Schlüter 1d48a1081c - MFH: Mark the parameter for ReflectionProperty::GetValue as optional 2007-08-17 14:21:32 +00:00
Christopher Jones 440ed3da7f PDO_OCI: fix Instant Client build broken by logic correction during previous Solaris lib/lib32 fix 2007-08-17 13:30:36 +00:00
Jani Taskinen b27d339ddb MFH:- Fixed bug #41904 (proc_open with empty env array) 2007-08-17 10:42:30 +00:00
Ilia Alshanetsky 2526d4f752 Back to dev 2007-08-17 00:38:23 +00:00
Ilia Alshanetsky 7f91d94c1d 5.2.4RC2 2007-08-17 00:35:39 +00:00
Stanislav Malyshev 5b021ac2fa fix proto 2007-08-16 23:54:24 +00:00
Jani Taskinen eb4a23c5ca - Check the length too (just like in HEAD) 2007-08-16 23:05:43 +00:00
Jani Taskinen a3e6f47ea1 MFH:- Fix bug #41946 (ip2long("") should return FALSE) 2007-08-16 22:17:10 +00:00
Raghubansh Kumar f2038206cc fix tests 2007-08-16 16:31:25 +00:00
Ilia Alshanetsky 2326c077e7 Extension is no longer experimental 2007-08-15 17:58:46 +00:00
Ilia Alshanetsky a4e199018c Docs were added 2007-08-14 23:53:34 +00:00
Raghubansh Kumar 33f46cfe00 Fix tests 2007-08-14 14:07:46 +00:00
Antony Dovgal 35591acebd MFH 2007-08-14 12:15:04 +00:00
Rob Richards 068ee42185 BFN 2007-08-14 12:12:33 +00:00
Rob Richards 07bf252ef5 MFH: fix bug #42259 (SimpleXMLIterator loses ancestry)
add test
2007-08-14 12:10:46 +00:00
Jani Taskinen 2c126513bb bfn 2007-08-14 08:43:57 +00:00
Jani Taskinen e602885e54 MFH:- Fixed bug #42292 ($PHP_CONFIG not set for phpized builds) 2007-08-14 08:43:41 +00:00
Jani Taskinen d32c991e44 fix is fix, change is something else 2007-08-14 07:36:13 +00:00
Ilia Alshanetsky 74f8114a89 Oracle news 2007-08-14 00:57:06 +00:00
Stanislav Malyshev fb5d47b1fb variable class patch was reverted for 5.2.4 2007-08-14 00:50:45 +00:00
Ilia Alshanetsky c7b4ea7820 Fixed typo 2007-08-13 23:17:38 +00:00
Stanislav Malyshev 848b1cbb91 revert variable class support for 5.2 2007-08-13 21:20:18 +00:00
Stanislav Malyshev c8f090c13e Revert variable class patch for 5.2 2007-08-13 21:16:57 +00:00
Jani Taskinen bd27a1227e touch try 2 2007-08-13 20:33:08 +00:00
Jani Taskinen b1ac58f75b touch 2007-08-13 20:14:05 +00:00
Jani Taskinen 65c77514e4 - RC2 on the run 2007-08-13 20:13:19 +00:00
Hannes Magnusson 1507d56fc6 Fix version
# RC1 is out, RC2 is in the works..
2007-08-13 20:07:58 +00:00
Antony Dovgal afed25d648 MFH 2007-08-13 12:46:40 +00:00
Raghubansh Kumar 5c98effea0 New testcase for clearstatcache() function 2007-08-13 11:40:57 +00:00
Raghubansh Kumar 4ed53a6dce New testcase for parse_ini_file() function 2007-08-13 11:34:42 +00:00
Ilia Alshanetsky fb8e3abe88 Fixed copy test as well as the directory check inside copy() function 2007-08-12 17:09:59 +00:00
Ilia Alshanetsky df9fbb6a73 Fixed test 2007-08-12 16:29:43 +00:00
Ilia Alshanetsky 69c00b75bb WS 2007-08-12 16:28:07 +00:00
Raghubansh Kumar b6e86f054c New testcases for fgetss() function 2007-08-12 06:53:04 +00:00
Raghubansh Kumar 6aa6434abf More new testcases for fopen() & fclose() functions 2007-08-12 05:16:19 +00:00
Antony Dovgal ba1cfb71ae MFH 2007-08-11 22:42:29 +00:00
Antony Dovgal 5c3fb1ec46 MFH: fix tests 2007-08-11 22:18:45 +00:00
Rui Hirokawa e2a13a5c50 fixed compilation error: S_ISDIR is undefined. 2007-08-11 04:34:59 +00:00
Raghubansh Kumar ceeeed9d19 New testcases for fscanf() function 2007-08-10 17:54:48 +00:00
Raghubansh Kumar 7893178d8d New testcases for htmlentities() and htmlspecialchars() 2007-08-10 15:06:17 +00:00
Jani Taskinen 6c305edc9c No dots in error messages! 2007-08-10 13:25:03 +00:00
Antony Dovgal e2a79ed73e .. and remove the original one 2007-08-10 12:30:21 +00:00
Antony Dovgal 296147ea6e split the test 2007-08-10 12:30:09 +00:00
Jani Taskinen c4be8ab831 - Fix the fix for bug #42233 2007-08-10 12:17:26 +00:00
Antony Dovgal e87a7388b7 fix tests 2007-08-10 12:11:46 +00:00
Antony Dovgal 2046298d47 MFH 2007-08-10 10:13:15 +00:00
Antony Dovgal 38b7d577a3 MFH: fix ws/cs & folding 2007-08-10 09:09:46 +00:00
Antony Dovgal 7fbcb745ab nuke the dot 2007-08-10 08:58:44 +00:00
Christopher Jones 9420637921 oci8: MFH with Ilia's OK: changes to build with Oracle Database 11g 2007-08-10 07:02:33 +00:00
Christopher Jones decd278a8d pdo_oci: MFH with Ilia's OK: changes to build with Oracle Database 11g 2007-08-10 07:01:47 +00:00
Raghubansh Kumar 9bdaf6ab55 more new testcases for tempnam() function 2007-08-10 03:31:56 +00:00
Raghubansh Kumar 270414f3b5 New testcases for strtolower() and strtoupper() functions 2007-08-10 03:03:49 +00:00
Raghubansh Kumar 40f54b6c21 More new testcases for copy() function 2007-08-10 02:57:30 +00:00
Ilia Alshanetsky b29b59dcd2 Fixed bug #42242 (sybase_connect() crashes) 2007-08-10 00:43:50 +00:00
Ilia Alshanetsky e9b8f37341 Fixed bug #42243 (copy() does not ouput an error when the first arg is a
dir).
2007-08-10 00:36:57 +00:00
Ilia Alshanetsky ffab827d01 Fixed bug #42261 (header wrong for date field). 2007-08-10 00:30:04 +00:00
Ilia Alshanetsky 6a752ac6df Fixed bug #42117 (bzip2.compress loses data in internal buffer) 2007-08-09 23:27:22 +00:00
Mattias Bengtsson 3126445073 - libgd #101, imagecreatefromgd can crash if gdImageCreate fails 2007-08-09 14:21:38 +00:00
Mattias Bengtsson 436a7a9767 - libgd #94, imagecreatefromxbm can crash if gdImageCreate fails 2007-08-09 12:08:29 +00:00
Jani Taskinen 2c1d8c74bd bfn 2007-08-09 08:43:09 +00:00
Jani Taskinen 8c32099c5e MFH:- Fixed bug #42247 (ldap_parse_result() not defined under win32) 2007-08-09 08:42:43 +00:00
Raghubansh Kumar f852cf4c91 New testcases for tempnam() function 2007-08-09 03:34:00 +00:00
Stanislav Malyshev 50293835bf remove unneeded variables 2007-08-08 23:51:57 +00:00
Antony Dovgal 08286bcb9f fix ws & folding 2007-08-08 22:32:24 +00:00
Stanislav Malyshev 45e907a0ee fix startup - remove unneeded variables 2007-08-08 21:57:30 +00:00
Stanislav Malyshev 1e7a23a376 initialize values 2007-08-08 21:11:53 +00:00
Stanislav Malyshev 6c8312fa03 fix TSRM embed startup 2007-08-08 21:06:28 +00:00
Dmitry Stogov ef71664817 Fixed bug #42211 (property_exists() fails to find protected properties from a parent class) 2007-08-08 13:32:46 +00:00
Raghubansh Kumar 9bd0045359 New Testcases for fgetcsv() function 2007-08-08 13:13:18 +00:00
Raghubansh Kumar af3de070e5 More testcases for fputcsv() function 2007-08-08 13:08:17 +00:00
Dmitry Stogov 50aef7ec83 - Fixed bug #42198 (SCRIPT_NAME and PHP_SELF truncated when inside a userdir
and using PATH_INFO).
- Fixed bug #31892 (PHP_SELF incorrect without cgi.fix_pathinfo, but turning
  on screws up PATH_INFO).
2007-08-08 13:01:40 +00:00
Nuno Lopes cb0e56f7c7 +- Fixed bug #41973 (./configure --with-ldap=shared fails with 2007-08-08 11:37:44 +00:00
Jani Taskinen 9c07366bb0 MFH: fix typos in comments 2007-08-08 10:00:34 +00:00
Jani Taskinen 0d5dd8829b - Fixed bug #42233 (Problems with æøå in extract()). 2007-08-08 07:41:09 +00:00
Jani Taskinen 45e96efd1d MFH: This is what we get for not doing MFH..or MFB..a mess 2007-08-08 07:01:49 +00:00
Dmitry Stogov 6aa06fc7fb Fixed test 2007-08-08 06:42:10 +00:00
Pierre Joye e507b4c4ce - fix regression introduced with #42222 (thx to tony and mattias for the
head up)
2007-08-08 06:29:46 +00:00
Christopher Jones bc890f08fb Record 'nother bug fix 2007-08-08 04:36:02 +00:00
Raghubansh Kumar 83928238c2 New testcases for fputcsv() function 2007-08-08 03:53:07 +00:00
Ilia Alshanetsky 0cb6dd5671 Fixed bug #42237 (stream_copy_to_stream returns invalid values for mmaped
streams).
2007-08-08 02:16:41 +00:00
Christopher Jones aa02056fcb Add bugs fixed 2007-08-07 23:12:31 +00:00
Antony Dovgal 15de12187e update changelog 2007-08-07 21:56:10 +00:00
Hannes Magnusson d937ffa999 Fix test 2007-08-06 23:35:46 +00:00
Hannes Magnusson 42e003cd6c MFH: - Fix isset/empty($ZipArchive->property)
MFH: - Add test
2007-08-06 22:02:32 +00:00
Christopher Jones a289952c47 MFH: oci8: flush persistent connection after password change 2007-08-06 20:32:55 +00:00
Pierre Joye 455cd3d837 - #42222, forgot this one (thanks mattias) 2007-08-06 19:49:45 +00:00
Jani Taskinen 0018bc6ac5 - move entry to right place.. 2007-08-06 19:40:21 +00:00
Pierre Joye 3f05f1f6fd - #42222 entry 2007-08-06 19:16:40 +00:00
Pierre Joye bca0912296 - #42222, truncate the _default to the buffer size (was 200 since day #1, we don't need dynamic alloc here) 2007-08-06 19:11:20 +00:00
Jani Taskinen c07aeab868 Touch generated file 2007-08-06 18:33:29 +00:00
Jani Taskinen 6bd9f53a63 - fix ws 2007-08-06 18:23:16 +00:00
Ilia Alshanetsky 57f3c5b343 Fixed compiler warning 2007-08-06 16:45:23 +00:00
Rob Richards 8f17ded3d7 BFN 2007-08-06 16:23:08 +00:00
Rob Richards 9abc90728d MFH: fix bug #42082 (NodeList length zero should be empty). (Hannes)
add and update tests
2007-08-06 16:22:24 +00:00
Antony Dovgal 12ddff7032 update changelog & list of files 2007-08-06 15:57:27 +00:00
Jani Taskinen 67940a9c29 MFH:- Fixed bug #42195 (C++ compiler required always) 2007-08-06 14:33:51 +00:00
Antony Dovgal 83e7324dae fix build 2007-08-06 12:54:57 +00:00
Ilia Alshanetsky cd32b4e2bb Fixed bug #42208 (substr_replace() crashes when the same array is passed
more than once)
2007-08-05 14:47:42 +00:00
Sara Golemon 6f25b84a3a MFH(r-1.49)Bugfix#36492 Userfilters can leak buckets 2007-08-04 07:53:00 +00:00
Antony Dovgal 515aaeda10 'I32' and 'I' support 2007-08-03 14:31:28 +00:00
Jani Taskinen a847d2c6fe MFH: fix for broken shells 2007-08-03 14:01:56 +00:00
Antony Dovgal fd088beb06 fix test names 2007-08-03 13:50:20 +00:00
Jani Taskinen 82559ff7e5 - Hopefully this fixes the "test: argument expected" error on solaris.. 2007-08-03 10:45:23 +00:00
Antony Dovgal 4a43566b19 fix folding 2007-08-03 09:51:12 +00:00
Antony Dovgal 57daf22d8f MFH: add I64 support to spprintf() 2007-08-03 09:48:58 +00:00
Jani Taskinen 77f9d22a0e - Sync with apache2handler 2007-08-03 09:33:30 +00:00
Jani Taskinen b8470c4ca0 ws 2007-08-03 09:33:17 +00:00
Jani Taskinen fc2fef68ac - ws + sync apache2filter apache_config.c with the one from apache2handler 2007-08-03 09:32:34 +00:00
Christopher Jones 1fbba60dcb New oci8 test for oci_password_change() 2007-08-03 01:55:15 +00:00
Stanislav Malyshev df11ce1ece check correct value 2007-08-03 01:30:21 +00:00
Stanislav Malyshev 6b7f164803 correct fix for access control for save_path and .htaccess 2007-08-03 01:16:40 +00:00
Stanislav Malyshev 1b131c46ad make error_log setting access-controlled by safe_mode/open_basedir 2007-08-03 01:15:51 +00:00
Stanislav Malyshev c94dee8696 implement separate .htaccess stage 2007-08-03 01:14:44 +00:00
Stanislav Malyshev 0ad85237ea add stage for .htaccess 2007-08-02 23:57:52 +00:00
Stanislav Malyshev a019d99e3f it's 4 either way, but it's customary to use 1<< 2007-08-02 23:54:19 +00:00
Stanislav Malyshev f361b07629 use hardcoded ini like CLI 2007-08-02 23:45:28 +00:00
Christopher Jones 864a08d1cb Test existing PHP 5 safe mode functionality and make consistent. No MTH. 2007-08-02 22:39:54 +00:00
Ilia Alshanetsky 56a947a3f7 Back to dev 2007-08-02 22:28:18 +00:00
Antony Dovgal 00b3df2ad3 fix test 2007-08-02 22:28:06 +00:00
Ilia Alshanetsky 6879ccfa7d 5.2.4RC1 2007-08-02 22:18:30 +00:00
Johannes Schlüter b3c6a9dffc - Add possibility to call static class members using variables (Etienne Kneuss) 2007-08-02 21:55:23 +00:00
Antony Dovgal 48d5519378 MFH: int -> zend_bool 2007-08-02 20:32:44 +00:00
Antony Dovgal cc5fd27a0e BFN 2007-08-02 20:30:31 +00:00
Christopher Jones 5534e4381d Fix message grammar and capitalization 2007-08-02 19:38:08 +00:00
Christopher Jones f894c6ece7 MFH: Bug #42173 (INTERVAL and TIMESTAMP type fixes) 2007-08-02 19:04:37 +00:00
Johannes Schlüter c0667eeaff - MFH: Respect value of the parameter for get_loaded_extensions() and only
print zend extensions if set to true
2007-08-02 16:54:44 +00:00
Stanislav Malyshev 959aa4f596 revert wrong fix 2007-08-01 23:51:45 +00:00
Ilia Alshanetsky 3f1b9990a4 Fixed bug #41831 (pdo_sqlite prepared statements convert resources to
strings).
2007-08-01 22:45:31 +00:00
Christopher Jones e942c16f7c MFH: New test for error handling 2007-08-01 15:18:37 +00:00
Pierre Joye 6387c99f83 - fix win32 build 2007-08-01 15:13:40 +00:00
Johannes Schlüter 25848bff61 - MFH: Fix #42164 Internal Sendmail Support is ALWAYS disabled 2007-08-01 12:49:34 +00:00
Antony Dovgal d5a59064f9 MFH 2007-08-01 11:43:05 +00:00
Dmitry Stogov a382ede3e8 Fixed bug #42119 (array_push($arr,&$obj) doesn't work with zend.ze1_compatibility_mode On) 2007-08-01 10:56:45 +00:00
Dmitry Stogov 8589a7f473 Fixed bug #42151 (__destruct functions not called after catching a SoapFault exception) 2007-08-01 10:39:33 +00:00
Johannes Schlüter 8566193449 - MFH: Use a script to generate tokenizer data from zend_language_parser.h 2007-07-31 23:24:11 +00:00
Ilia Alshanetsky c72d39f763 Fixed bug #41971 (PDOStatement::fetch and PDOStatement::setFetchMode causes
unexpected behavior).
2007-07-31 22:48:42 +00:00
Johannes Schlüter 4db96af53f - BFN 2007-07-31 22:47:43 +00:00
Johannes Schlüter ebaba40774 - MFH: Add additional param to get_loaded_extensions() for returning Zend
extensions (Fixes #41278) [DOC]
2007-07-31 22:47:25 +00:00
Jani Taskinen 52bb8f78a0 MFH:- Allow using * in test filenames to match pattern 2007-07-31 21:29:21 +00:00
Antony Dovgal 49fbb7770b add test 2007-07-31 21:11:33 +00:00
Antony Dovgal 287ac21d5f MFH: missing part of the fix for bug #42134 2007-07-31 21:09:01 +00:00
Antony Dovgal 9efa1d8914 MFH: fix #42134 (oci_error() returns false after oci_new_collection() fails) 2007-07-31 19:21:08 +00:00
Rob Richards 10fabe9092 BFN 2007-07-31 15:41:31 +00:00
Rob Richards e0a2d149f5 MFH: fix bug #41833 (addChild() on a non-existent node, no node created, getName() segfaults) 2007-07-31 15:40:49 +00:00
Rob Richards ce582024a5 MFH: fix possible crash 2007-07-31 15:07:54 +00:00
Jani Taskinen 8af7bc2044 MFH: Fix some lib vs $PHP_LIBDIR issues 2007-07-31 13:02:00 +00:00
Antony Dovgal 095fdf88ce fix typo 2007-07-31 12:23:50 +00:00
Antony Dovgal d78c7c9421 fix test 2007-07-31 07:09:08 +00:00
Stanislav Malyshev fb927452c9 sometimes c-client lib returns non-null entry with null host 2007-07-31 00:31:10 +00:00
Pierre Joye 6ed7c8f3aa - fix gd bug #102, < 0 means that no load are loaded, return false
- add error code in the warning
2007-07-30 21:42:36 +00:00
Rob Richards b96718ba20 allow user specified class to be returned from transformToDoc 2007-07-30 16:33:22 +00:00
Ilia Alshanetsky f8217712a4 Fixed bug #42142 (substr_replace() returns FALSE when length > string
length).

[doc] Adjust length validation check inside substr_replace() to be similar
to that inside substr() so that excessive length is truncated to string
length.
2007-07-30 14:22:06 +00:00
Ilia Alshanetsky 3034092111 Fixed bug #42135 (Second call of session_start() causes creation of SID) 2007-07-29 14:43:30 +00:00
Rob Richards 7d8734e5ca BFN 2007-07-28 08:35:09 +00:00
Rob Richards b96a8a79ba Fixed Bug #42112 (deleting a node produces memory corruption)
add test
2007-07-28 08:32:51 +00:00
Dmitry Stogov 786621893e Improved fix for bug #41633 (self:: doesn't work for constants) to support function define() 2007-07-27 16:29:12 +00:00
Ilia Alshanetsky d3571ea2a9 WS 2007-07-27 00:20:43 +00:00
Jani Taskinen 8684e7495f MFH: - Made build system less major version dependant to ease MFB/MFH 2007-07-26 22:45:59 +00:00
Jani Taskinen 68b823564d MFH: - Fixed bug #42107 (sscanf broken when using %2$s type format parameters) 2007-07-26 15:24:06 +00:00
Jani Taskinen 9fe59f509c MFH: cs + ws fixes 2007-07-26 14:30:22 +00:00
Raghubansh Kumar dcc62b53bf file.inc : Added dumping of stat array in functions (compare_self_stat() & compare_stats() )
Smaller testcases for lstat_stat_variation[1-7].phpt files
2007-07-26 13:38:24 +00:00
Hannes Magnusson 423982ac97 MFH: arginfo 2007-07-26 13:20:21 +00:00
Antony Dovgal 0c10470842 BFN 2007-07-26 08:26:47 +00:00
Jani Taskinen 5a1c39f71d MFH: - Allow using extra headers in PHP_CHECK_SIZEOF 2007-07-25 22:49:39 +00:00
Ilia Alshanetsky 2600cf9c20 Already exists in PECL 2007-07-25 22:26:14 +00:00
Dmitry Stogov 2d3d745bd9 Fixed EOF handling in case of reading from file opened in write only mode. 2007-07-25 16:34:06 +00:00
Dmitry Stogov d0ef6e9a95 Fixed bug #41713 (Persistent memory consumption on win32 since 5.2) 2007-07-25 11:13:00 +00:00
Antony Dovgal 934b97d611 MFH 2007-07-25 09:41:06 +00:00
Hannes Magnusson d2d88e74a0 MFH: Show "wrong parameter count" error messages 2007-07-25 09:06:22 +00:00
Johannes Schlüter 179c67a64b - New ReflectionExtension::info() function to print the phpinfo() block
for an extension. [DOC]
2007-07-24 23:15:58 +00:00
Hannes Magnusson e3b8cf0f66 MFH: Fixed bug#42090 (json_decode causes segmentation fault) 2007-07-24 22:57:13 +00:00
Antony Dovgal 3afa134717 [DOC] MFH: add PCRE_VERSION constant to ext/pcre 2007-07-24 22:35:18 +00:00
Antony Dovgal 99a162bb8b fix ZTS build 2007-07-24 20:32:32 +00:00
Dmitry Stogov af0e8612af Fixed test 2007-07-24 20:08:33 +00:00
Dmitry Stogov e13b4c2c4e Fixed bug #40705 (Iterating within function moves original array pointer)
Fixed bug #40509 (key() function changed behaviour if global array is used within function)
2007-07-24 19:24:40 +00:00
Dmitry Stogov 4035a8ebc0 Fixed bug #41372 (Internal pointer of source array resets during array copying)
Fixed bug #37715 (array pointers resetting on copy)
2007-07-24 18:28:39 +00:00
Dmitry Stogov 78932ba2f9 Fixed bug #41984 (Hangs on large SoapClient requests) 2007-07-24 14:24:44 +00:00
Jani Taskinen 335cac3c6a MFH:- Changed "display_errors" php.ini option to accept "stderr" as value which
MFH:  makes the error messages to be outputted to STDERR instead of STDOUT with
MFH:  CGI and CLI SAPIs (FR #22839).
2007-07-24 14:21:36 +00:00
Ilia Alshanetsky 1bc2880c46 Test name formatting fixes 2007-07-24 14:07:42 +00:00
Dmitry Stogov 7ec48cb37f Fixed bug #40757 (get_object_vars get nothing in child class)
Fixed bug #41929 (Foreach on object does not iterate over all visible properties)
2007-07-24 11:39:56 +00:00
Jani Taskinen c96c5ca91f MFH:- Added missing MSG_EOR and MSG_EOF constants 2007-07-24 11:35:08 +00:00
Jani Taskinen 10da2d994b MFH: removed useless file 2007-07-24 11:15:59 +00:00
Dmitry Stogov 7a847f1086 Fixed bug #41983 (Error Fetching http headers terminated by '\n') 2007-07-24 09:27:46 +00:00
Jani Taskinen b555062576 - fix NEWS 2007-07-24 09:26:34 +00:00
Andrey Hristov 38ae7f47c0 Fix build with latest 5.1 sources where gptr is no more. 2007-07-24 09:22:16 +00:00
Dmitry Stogov db97db9430 Fixed bug #42027 is_file() / is_dir() matches file/dirnames with wildcard char or trailing slash 2007-07-24 09:07:33 +00:00
Ilia Alshanetsky 5cdae5bdbb Fixed bug #42072 (No warning message for clearstatcache() with arguments). 2007-07-23 23:03:09 +00:00
Antony Dovgal fe25997d44 fix test 2007-07-23 22:46:03 +00:00
Antony Dovgal 48f4ea9fba fix test 2007-07-23 22:14:47 +00:00
Antony Dovgal a13e153942 remove the tests, they've been splitted into smaller ones 2007-07-23 19:19:09 +00:00
Jani Taskinen 4b1afad123 BFN 2007-07-23 16:18:10 +00:00
Jani Taskinen c9f6d5941e MFH: - Fixed buf #42071 (ini scanner allows using NULL as option name).
MFH: Use Z_* macros to access the zvals.
2007-07-23 16:17:10 +00:00
Jani Taskinen e8fcd7477c MFH: Fixed str_pad() when passed huge negative pad length. 2007-07-23 13:27:59 +00:00
Antony Dovgal 17ee976404 fix ws/folding 2007-07-23 12:24:52 +00:00
Jani Taskinen 5b71d45eff MFH: sync 2007-07-23 11:53:58 +00:00
Jani Taskinen 0dd60dd1cd MFH: fix descriptions 2007-07-23 10:47:13 +00:00
Antony Dovgal ecb986892c more tests 2007-07-23 09:14:34 +00:00
Dmitry Stogov 1f5310747e Fixed wrong expectation 2007-07-23 08:58:17 +00:00
Dmitry Stogov 4ddde21059 Fixed rename() in ZTS to allow renaming of symbolic links;
Consistent handling of trailing slash
2007-07-23 08:57:04 +00:00
Raghubansh Kumar e4bf2268bf more testcases for glob() function 2007-07-23 07:32:08 +00:00
Raghubansh Kumar 6e8d7aa85d New testcases for glob() function 2007-07-23 05:22:59 +00:00
Hannes Magnusson e6e823c844 Avoid endless loop 2007-07-23 01:13:43 +00:00
Jani Taskinen 0b40ec1f19 MFH:- Fixed bug #21197 (socket_read() outputs error with PHP_NORMAL_READ) 2007-07-22 23:01:20 +00:00
Jani Taskinen 815d8a9743 MFH: ws fix + sync U stuff for patches to MFB easier 2007-07-22 22:47:18 +00:00
Jani Taskinen 542d413277 MFH: sync 2007-07-22 22:22:09 +00:00
Jani Taskinen 257405eda6 - Test properly for socketpair inside an extension. 2007-07-22 22:18:41 +00:00
Raghubansh Kumar 8c01bf9ffb More new testcases for fread() function 2007-07-22 17:41:25 +00:00
Raghubansh Kumar 58bae48bf4 New testcases for fread() functions 2007-07-22 17:27:35 +00:00
Ilia Alshanetsky 3fea65b0dc Fixed "Floating point exception" inside wordwrap() 2007-07-22 15:55:16 +00:00
Ilia Alshanetsky 20c4198341 Added test for KEY_PAIR code and fixed KEY_PAIR detection code 2007-07-22 15:50:17 +00:00
Ilia Alshanetsky 285316fcff Fixed PDO_FETCH_KEY_PAIR implementation for fetchAll() 2007-07-22 15:14:21 +00:00
Raghubansh Kumar a6278717f5 New testcases for stat() function on windows 2007-07-22 12:37:09 +00:00
Raghubansh Kumar 66e901b9d5 New testcases for ftruncate() function 2007-07-22 12:35:03 +00:00
Raghubansh Kumar 6b81cef355 fix tests 2007-07-22 12:26:18 +00:00
Raghubansh Kumar 5b83920434 New testcases for umask() function 2007-07-21 18:16:17 +00:00
Raghubansh Kumar 1797c6870e New testcases for lstat() and stat() functions 2007-07-21 17:35:37 +00:00
Raghubansh Kumar a47f464e6e New testcases for is_file() function 2007-07-21 17:34:03 +00:00
Raghubansh Kumar 7cefd7792c New testcases for is_dir() function 2007-07-21 17:31:42 +00:00
Raghubansh Kumar 0e6b39f515 New testcases for fseek(), ftell() and rewind() functions 2007-07-21 17:30:23 +00:00
Raghubansh Kumar ff2a77b1d3 New testcases for fflush() function 2007-07-21 17:14:50 +00:00
Derick Rethans 51431a7660 - MFH: Allow the use of a user defined template.rc file to override the
default ones. This makes it possible to include the extension's version
  inside the version properties of the generated extension DLL instead
  of the PHP version the extension is build against.
2007-07-21 11:24:53 +00:00
Raghubansh Kumar 0b4fc7c768 New testcases for fgetc() and fgets() functions 2007-07-21 07:55:07 +00:00
Jani Taskinen d271071067 MFH: Fixed compile warnings 2007-07-21 01:43:33 +00:00
Jani Taskinen a22a6711ad MFH: Fixed compile warnings 2007-07-21 01:24:26 +00:00
Jani Taskinen 10a6af6bd0 MFH: cs+ws+compile warning fixes 2007-07-21 00:51:17 +00:00
Jani Taskinen 226c56fe76 MFH: Fixed compiler warnings 2007-07-21 00:35:15 +00:00
Jani Taskinen bffb8c406c MFH: fix warnings 2007-07-20 23:53:40 +00:00
Raghubansh Kumar d62163292f Fix for fill_file() in file.inc
New testcases for readfile() and umask() functions
2007-07-20 18:07:02 +00:00
Antony Dovgal bfed3520c9 MFH: fix #41691 (ArrayObject::exchangeArray hangs Apache) 2007-07-20 10:53:56 +00:00
Antony Dovgal 93af1c1f84 MFH: fix #41989 (move_uploaded_file() & relative path in ZTS mode) 2007-07-19 15:49:45 +00:00
Jani Taskinen fb7efdab86 MFH: Use SEPARATE_ZVAL_IF_NOT_REF for cleaner code. 2007-07-19 15:29:30 +00:00
Antony Dovgal a091268eef MFH 2007-07-19 15:15:26 +00:00
Antony Dovgal 0806c6c804 add new tests from HEAD 2007-07-19 15:04:15 +00:00
Antony Dovgal 79e53b202c fix ws & folding 2007-07-19 14:32:55 +00:00
Jani Taskinen 184b2e5d20 MFH 2007-07-19 13:57:16 +00:00
Jani Taskinen a547182c79 MFH:- Stop configure if scanner files are not found and invalid/no flex is found 2007-07-19 12:36:06 +00:00
Antony Dovgal 297f069eb6 MFH 2007-07-19 12:16:30 +00:00
Jani Taskinen 09d9338040 MFH:- Fixed bug #41433 (DBA: configure fails to include correct db.h for db4) 2007-07-19 10:50:16 +00:00
Ilia Alshanetsky 7966ff120b Fixed typo 2007-07-18 23:10:33 +00:00
Nuno Lopes b89637687d fix oci8 entries for Chris Jones 2007-07-18 18:06:55 +00:00
Christopher Jones d2219c0a1a MFH: add casts to fix compilation warnings 2007-07-18 15:10:42 +00:00
Jani Taskinen 6b4b1e7431 MFH: cleanup & sync 2007-07-18 15:04:22 +00:00
Antony Dovgal 521917bdfa MFH 2007-07-18 11:46:50 +00:00
Jani Taskinen 741c74a25e MFH: Use correct macro name 2007-07-18 09:04:58 +00:00
Raghubansh Kumar 9d7e023e37 New testcases for filesystem handling function : unlink() 2007-07-18 04:59:46 +00:00
Ilia Alshanetsky 20aa854940 Allow file uploads to bypass open_basedir checks (fixes regression) 2007-07-17 23:46:40 +00:00
Jani Taskinen 2c05c8c6b3 MFH: ws fix 2007-07-17 13:29:33 +00:00
Jani Taskinen dd23eb0c88 MFH:- Fixed bugs #36796, #36918, #41371 (stream_set_blocking() does not work) 2007-07-17 13:28:44 +00:00
Jani Taskinen addd471501 MFH:- Fixed bug #42019 (configure option --with-adabas=DIR does not work) 2007-07-17 12:12:26 +00:00
Nuno Lopes e73b3b0dc4 update for latest library rlease 2007-07-17 10:29:32 +00:00
Jani Taskinen e8f3167cd3 MFH: removed dots from error messages 2007-07-17 09:09:42 +00:00
Jani Taskinen 0b31350607 MFH:- Fixed bug #42015 (ldap_rename() gets server error "DSA is unwilling to perform") 2007-07-17 08:40:24 +00:00
Antony Dovgal aaa16ad82b initialize glob struct 2007-07-16 20:29:21 +00:00
Ilia Alshanetsky 39c1705848 Fixed a possible crash inside the constructor 2007-07-16 18:00:18 +00:00
Raghubansh Kumar 38002b9f7f fix tests 2007-07-16 17:55:39 +00:00
Raghubansh Kumar c9aedbdda1 New testcases 2007-07-16 17:34:44 +00:00
Antony Dovgal b355edcc3a MFH 2007-07-16 13:29:47 +00:00
Antony Dovgal 2399b208db MFH: split test 2007-07-16 10:59:17 +00:00
Jani Taskinen 76b92b6d5d - Fix issue in differentiating between --with-* and --enable-* 2007-07-16 10:00:44 +00:00
Jani Taskinen c77bcba737 - Remove ereg/ from PHP_5_2 branch. (not yet wanted here :) 2007-07-15 19:43:06 +00:00
Jani Taskinen cc7342ef72 MFH: folding tags and some more ws fixes 2007-07-15 15:34:28 +00:00
Jani Taskinen aad63942b8 MFH: ws fixes (sync!) 2007-07-15 15:21:12 +00:00
Jani Taskinen 268808ad76 MFH: removed unused macros 2007-07-15 15:10:04 +00:00
Ilia Alshanetsky a2fa9bbe84 Clear out last error & last error file information at the end of the
request to ensure that they don't propogate to the next request
2007-07-15 14:15:02 +00:00
Nuno Lopes c5e892b213 ignore *.gcda 2007-07-14 17:29:45 +00:00
Derick Rethans cd34e1c27a - MFH: Let's always use the macro as llabs() requires c99. 2007-07-13 17:49:50 +00:00
Antony Dovgal 241e66a708 MFH: split the test 2007-07-13 16:47:39 +00:00
Zoe Slattery a7b240b337 Assert test cases 2007-07-13 15:20:12 +00:00
Jani Taskinen ad61002dc4 MFH: fix wrong logic 2007-07-13 15:09:19 +00:00
Jani Taskinen 9d53e19697 MFH: cleanups + fixes 2007-07-13 14:23:59 +00:00
Dmitry Stogov 6c5e9cc6e4 Fixed bug #41635 (SoapServer and zlib.output_compression with FastCGI result in major slowdown 2007-07-13 14:00:05 +00:00
Rob Richards 01fe5a0f22 MFH: use macro - llabs not always available on win32 2007-07-13 12:50:00 +00:00
Jani Taskinen 06877d0064 - Do not break thousands of scripts.. (will remove in 5.3) 2007-07-13 10:55:43 +00:00
Antony Dovgal 40e44e99d6 MFH: don't allow $PHP_OCI8 to be empty if OCI8 is enabled
fixes bug #41988
2007-07-13 09:24:30 +00:00
Dmitry Stogov 1e768865dc Fixed memleak 2007-07-13 09:14:03 +00:00
Jani Taskinen 3dff7a7dba MFH: - Make sure people call ldap_first_attribute() before ldap_next_attribute() 2007-07-13 02:00:39 +00:00
Jani Taskinen 95f8148f18 MFH:- Fixed bug #41127 (Memory leak in ldap_{first|next}_attribute functions)
# This removes an useless parameter from 2 functions. Perhaps the next
# release should be 5.3.0, there are lot of other new things done already.
# Sneak in namespaces too.. ;)
2007-07-13 01:24:16 +00:00
Johannes Schlüter 43bbbe8899 MFH: - Mention [DOC] tag in the README
- PHP_5_1 is closed meanwhile
- Fixed a small typo
2007-07-12 23:44:43 +00:00
Ilia Alshanetsky 33329c065c revise test to reflect recent code 2007-07-12 23:34:32 +00:00
Ilia Alshanetsky 4e68effc2e Commit previously missing patch for bug #41919 2007-07-12 23:33:50 +00:00
Jani Taskinen f54f453209 MFH: - Fixed bug #39291 (ldap_sasl_bind() misses the sasl_authc_id parameter). 2007-07-12 22:08:58 +00:00
Zoe Slattery 55ff728d73 reflectionObject tests 2007-07-12 21:03:39 +00:00
Derick Rethans af88e0b52c - MFH: Commit generated file. 2007-07-12 18:59:55 +00:00
Derick Rethans 7588023b65 - MFH: Missing file in previous commit. 2007-07-12 18:59:05 +00:00
Derick Rethans 4b64dbb9a1 - MFH: Fixed bug #41964 (strtotime returns a timestamp for non-time string of
pattern '(A|a) .+').
- MFH: Fixed bug #41844 (Format returns incorrect number of digits for negative
  years -0001 to -0999).
- MFH: Fixed bug #41842 (Cannot create years < 0100 & negative years with
  date_create or new DateTime).
- MFH: Fixed bug #41709 (strtotime() does not handle 00.00.0000).
- MFH: Fixed bug #41523 (strtotime('0000-00-00 00:00:00') is parsed as
  1999-11-30).
2007-07-12 18:58:00 +00:00
Seiji Masugata e206802652 Synced mail function in mb_send_mail function(Escape mail.force_extra_parameters value). 2007-07-12 15:31:54 +00:00
Jani Taskinen 921eb8939b MFH: fix invalid logic + prevent non-integers to be passed 2007-07-12 11:33:37 +00:00
Jani Taskinen 28a2fe07b4 MFH: close file handles 2007-07-12 11:14:22 +00:00
Jani Taskinen efe310579e MFH: - Fixed bug #41815 (Concurrent read/write fails when EOF is reached) 2007-07-12 11:03:46 +00:00
Dmitry Stogov ed10530eb5 Fixed bug #41961 (Ensure search for hidden private methods does not stray from class hierarchy). (robin_fernandes at uk dot ibm dot com) 2007-07-12 10:32:09 +00:00
Antony Dovgal f0dd5f5d52 new test 2007-07-12 09:29:07 +00:00
Antony Dovgal 9069dde1a4 fix test 2007-07-12 09:26:42 +00:00
Jani Taskinen eb923bf6fc MFH: - Changed AC_ARG_* options to PHP_ARG_* options.
MFH: - Some cleanups here and there
MFH: - Enabled PHP_CHECK_CONFIGURE_OPTIONS (checks for unknown configure
MFH:   options)
# Note to Marcus: ext/dba/config.m4 needs to be "converted" to use
# the PHP_ARG_* options. I did't touch it needs quite a lot of work to keep
# it's current behaviour regarding "enabled-by-default" parts of it.
#
# Hint: By using the PHP_ARG_* options you have the "default" option.. ;)
2007-07-11 23:20:37 +00:00
Antony Dovgal 4ef905ae59 MFH 2007-07-11 22:16:11 +00:00
Antony Dovgal d3ac984385 MFH 2007-07-11 22:06:54 +00:00
Jani Taskinen 0261432888 MFH 2007-07-11 21:51:55 +00:00
Zoe Slattery addad71048 More reflectionClass tests 2007-07-11 20:11:34 +00:00
Johannes Schlüter dc8d09bbbd - MFH: Always enable mail() function 2007-07-11 17:36:56 +00:00
Jani Taskinen 90b9d6241e - Introducing 1st part of "show unknown configure options" and nuked PHP_REGEX macro for good 2007-07-11 15:16:56 +00:00
Dmitry Stogov 5c28db4a9c Fixed wrong warning 2007-07-11 14:33:30 +00:00
Antony Dovgal 40f32634c2 MFH: fix copy/paste type and bug #41962 2007-07-11 13:27:49 +00:00
Dmitry Stogov 1ad841d53a mproced openssl_x509_parse() to return extensions in readable form 2007-07-11 12:18:14 +00:00
Jani Taskinen 3067f6a937 MFH: Nuked unnecessary AC_MSG_CHECKING 2007-07-11 11:56:03 +00:00
Jani Taskinen a0a2b24df5 MFH: cleanup, removed unnecessary macro definitions 2007-07-11 11:50:37 +00:00
Jani Taskinen 7b016d72a1 MFH: No return values for void function 2007-07-11 10:24:04 +00:00
Raghubansh Kumar f0a8003c23 better check for skip 2007-07-11 09:13:47 +00:00
Jani Taskinen 45c85130af MFH: Changed AC_ARG_ENABLE to PHP_ARG_ENABLE 2007-07-11 08:47:45 +00:00
Dmitry Stogov f765f73e5f Fixed memory leak 2007-07-11 07:36:12 +00:00
Dmitry Stogov 2821378c33 Fixed crash on non-string passphrase 2007-07-11 07:26:52 +00:00
Stanislav Malyshev 06d76f722d add CVE ref 2007-07-10 20:25:49 +00:00
Stanislav Malyshev 37781a5a84 Escape mail.force_extra_parameters value 2007-07-10 20:21:24 +00:00
Stanislav Malyshev 6f1b3ea73a suppress warnings to avoid potential loop 2007-07-10 17:58:19 +00:00
Stanislav Malyshev 62ec6b17a6 fixes 2007-07-10 17:46:15 +00:00
Stanislav Malyshev 84c9050805 check if write is allowed before writing to error log 2007-07-10 17:42:29 +00:00
Stanislav Malyshev 143badba52 always check save_path (issue reported by Maksymilian Arciemowicz) 2007-07-10 17:40:41 +00:00
Zoe Slattery 90fd8fd7e8 tests for reflectionClass 2007-07-10 16:25:15 +00:00
Dmitry Stogov ca854215db Fixed symlink("", "somthing") and link("", "somthing") in ZTS mode 2007-07-10 13:21:11 +00:00
Rob Richards b8383203a2 BFN 2007-07-10 12:27:15 +00:00
Rob Richards 796d9cd783 fix bug #41947 (SimpleXML incorrectly registers empty strings as namespaces
add test
2007-07-10 12:24:51 +00:00
Dmitry Stogov 510bee631f Fixed warning 2007-07-10 11:57:34 +00:00
Antony Dovgal d0ee4977e7 MFH: use safe_emalloc() 2007-07-10 11:08:08 +00:00
Jani Taskinen b0ef04af84 MFH: Removed --enable-versioning 2007-07-10 10:18:48 +00:00
Raghubansh Kumar c5254dbc1d These testcases are now split into smaller testcases, hence being deleted 2007-07-09 17:55:34 +00:00
Raghubansh Kumar f159642284 Fix and smaller testcases for mkdir_rmdir_variation.phpt, popen_pclose_error.phpt, readlink_realpath_basic.phpt, readlink_realpath_error.phpt & readlink_realpath_variation.phpt 2007-07-09 17:38:33 +00:00
Dmitry Stogov 539f67ed8f Added ability to create local or remote (URL) user streams
Local user streams must not be able to open(), URLs if allow_url_include is off
Implemented new function stream_is_local()
[
- stream_wrapper_register() extended with additional optional argument "flags"
  of type long. This time only one flag is implemented
- STREAM_IS_URL, that means that userstream wrapper is remote (URL).
  By default stream is local.
- stream_is_local() is a new function that accepts stream and tell if this
  stream is local or remote (URL)
]
2007-07-09 17:27:24 +00:00
Dmitry Stogov fe9a826605 Proper fix for MOPB-29 2007-07-09 14:31:56 +00:00
Jani Taskinen 21290220f7 MFH: use defined values instead of plain integers 2007-07-09 13:42:05 +00:00
Zoe Slattery 5d0ee5b518 array copy on write tests 2007-07-09 13:23:37 +00:00
Zoe Slattery 4c22d54e23 ReflectionClass constructor tests 2007-07-09 13:22:10 +00:00
Jani Taskinen 2d098d1856 bfn 2007-07-09 12:55:50 +00:00
Jani Taskinen cab5c25dc2 MFH:- Fixed bug #35981 (pdo-pgsql should not use pkg-config when not present) 2007-07-09 12:54:11 +00:00
Jani Taskinen fb8aedb046 MFH 2007-07-09 12:38:02 +00:00
Jani Taskinen 7c6f0bd42b MFH: - Use $PHP_LIBDIR where appropriate 2007-07-09 12:33:43 +00:00
Dmitry Stogov 3a5501e0d4 ECONNABORTED is not a critical error (Andrei Nigmatulin) 2007-07-09 11:48:39 +00:00
Jani Taskinen d56933b179 MFH: Fixed bug #41870 (PDO_ODBC module linking fails with iODBC) 2007-07-09 11:13:56 +00:00
Jani Taskinen 9d82ead2bc fix news 2007-07-09 10:17:51 +00:00
Antony Dovgal e79091eb13 MFH 2007-07-09 09:08:59 +00:00
Dmitry Stogov 9f62beabfd Fixed bug #41919 2007-07-09 08:53:14 +00:00
Ilia Alshanetsky aeaf26b86d Fixed bug #41919 (crash in string to array conversion) 2007-07-08 15:28:46 +00:00
Raghubansh Kumar a1fdbe88a6 These files are now split into one or more smaller testcases, hence being deleted. 2007-07-08 12:41:44 +00:00
Raghubansh Kumar 0affea112a Run only on 32-bit OS 2007-07-08 05:01:11 +00:00
Christopher Jones ebf7807668 *** empty log message *** 2007-07-06 23:29:44 +00:00
Raghubansh Kumar fda3f33554 Fix and smaller testcases for is_readable_variation.phpt, is_executable_variation.phpt & is_writable_variation.phpt 2007-07-06 18:30:46 +00:00
Antony Dovgal 0cfa8b1a66 MFH 2007-07-06 12:17:58 +00:00
Antony Dovgal 793800c78e MFH: fix #41908 (CFLAGS="-Os" ./configure --enable-debug fails)
patch by christian at hoffie dot info
2007-07-06 10:44:23 +00:00
Raghubansh Kumar 28b73af90f better check for root user 2007-07-06 03:40:31 +00:00
Ilia Alshanetsky fd784655a2 Fixed NOTICE message 2007-07-06 00:13:56 +00:00
Derick Rethans 2ea0137d6c - Marking already fixed bug in NEWS file (Bug #41909). 2007-07-05 20:54:59 +00:00
Raghubansh Kumar 87b2a52a16 fix test: 006_error.phpt & filegroup_basic.phpt
fix and smaller tests for symlink_link_linkinfo_is_link[basic|error|variation].phpt
2007-07-05 18:53:34 +00:00
Derick Rethans 7dcf89d7d5 - MFH: Updated timezone database to 2007.6 (2007f). 2007-07-05 13:49:43 +00:00
Antony Dovgal 86a022f7c7 MFH: add CURLINFO_PRIVATE & CURLOPT_PRIVATE
patch by Andrey A. Belashkov
2007-07-04 13:34:23 +00:00
Dmitry Stogov a3ba415e91 Fixed "make test" 2007-07-04 10:16:22 +00:00
foobar e20d798623 do not fax the fixes :) 2007-07-04 07:45:10 +00:00
Sara Golemon 1ac512f547 MFH (r-1.240)
Fix behavior of empty($sxe->element) and empty($sxe['prop'])
when used on empty elements properties (apply PHP emptiness rules)
2007-07-04 05:05:57 +00:00
Ilia Alshanetsky 26f2367d2d v2 package file 2007-07-03 23:59:13 +00:00
foobar 7ed3c4536d MFH: Fix some configure --help texts 2007-07-03 17:25:43 +00:00
Dmitry Stogov 2fd4e8146c Fixed "make test" mistakes 2007-07-03 15:56:21 +00:00
Christopher Jones 20fece8f76 New test 2007-07-03 15:10:41 +00:00
Rob Richards 36722ebc31 BFN 2007-07-03 15:03:16 +00:00
Rob Richards d6756845e8 fix bug #41861 (getNamespaces() returns namespaces of node's siblings)
add test
2007-07-03 14:55:53 +00:00
Dmitry Stogov e99013d039 Store existent file in realpath cache 2007-07-03 14:48:01 +00:00
Raghubansh Kumar 9beffb1971 Smaller testcases for 006_variation.phpt, file_get_contents_file_put_contents_variation.pht, filesize_variation.phpt, filesize_variation-win32.phpt, fwrite_variation.phpt, fwrite_variation-win32.phpt"
Fix for filesize_variation to match filesize using %d
2007-07-03 07:10:01 +00:00
Christopher Jones 38af2c5741 Added basic PDO->quote() functionality to PDO_OCI 2007-07-03 04:32:27 +00:00
Ilia Alshanetsky 921294e0d7 Fixed bug #41770 (SSL: fatal protocol error due to buffer issues). 2007-07-02 16:42:10 +00:00
Ilia Alshanetsky 46c508e92c oracle BFN 2007-07-02 15:54:08 +00:00
Ilia Alshanetsky adcfdf7fa4 Fixed bug #41845 (pgsql extension does not compile with PostgreSQL <7.4) 2007-07-02 15:37:43 +00:00
Rob Richards 19f89a22c0 BFN 2007-07-02 11:37:26 +00:00
Rob Richards 4938221a36 fix bug #41867 (getName is broken)
add test
2007-07-02 11:35:18 +00:00
foobar 320a41603e MFH: - Fixed bug #41865 (fputcsv(): 2nd parameter is not optional) 2007-07-01 21:28:16 +00:00
Christopher Jones d6e320d849 Fix Bug #11345 Seg fault after NLS environment initialization error 2007-06-30 02:30:35 +00:00
foobar e5b21a95e1 MFH 2007-06-29 15:13:40 +00:00
Christopher Jones 82c2452bf9 Test for old bug fixed in some previous, unknown change 2007-06-29 15:01:51 +00:00
foobar 9e1c9cad2d MFH 2007-06-29 14:30:35 +00:00
foobar a074d2d66b typo 2007-06-29 14:01:11 +00:00
foobar 0f15eeda46 oops 2007-06-29 14:00:21 +00:00
foobar ad0beee01f - Added missing SKIPIFs 2007-06-29 13:51:27 +00:00
Antony Dovgal e4450111cc divide the test into smaller tests 2007-06-29 12:56:49 +00:00
Antony Dovgal 83bc0eb739 MFH 2007-06-29 11:47:36 +00:00
foobar cc2bcefc47 oops 2007-06-29 11:36:29 +00:00
Dmitry Stogov e45dab8c49 Fixed CGI tests 2007-06-29 09:49:21 +00:00
Antony Dovgal 9f4ff35af0 MFH 2007-06-29 09:14:49 +00:00
Christopher Jones 952a281aec Un-DOSify line terminators. No merge to 6 required. 2007-06-29 05:29:48 +00:00
Christopher Jones 3443d9be3f Add testing steps 2007-06-29 04:30:53 +00:00
foobar 4d63c09661 MFH:- Improved php-config:
MFH:  . Added --configure-options option to get configure line for current build
MFH:  . Added --php-sapis option which shows SAPIs available
MFH:  . Fixed problem with missing php binary when CLI is not build but CGI is.
MFH:- Fixed broken sed issues in phpize script
2007-06-29 01:10:35 +00:00
Ilia Alshanetsky d34bfe5c37 When working with persistent connections re-initialize options on each
connection. Flags like error reporting may differ.
2007-06-28 19:22:52 +00:00
Antony Dovgal dd44c6a093 add env vars for test settings (like in PDO) 2007-06-28 17:26:54 +00:00
Antony Dovgal 37e0738f3a MFH 2007-06-28 17:23:07 +00:00
Antony Dovgal 030252067e MFH 2007-06-28 16:07:12 +00:00
Antony Dovgal 4948afff78 MFH 2007-06-28 15:27:09 +00:00
Antony Dovgal 93dfce49ca remove 32bit restriction 2007-06-28 15:10:57 +00:00
Antony Dovgal 6b75f7bb82 more smaller tests 2007-06-28 15:04:47 +00:00
Antony Dovgal b4e74fe9b5 MFH 2007-06-28 14:51:35 +00:00
Andrey Hristov e1f222858f Remove dot at the end of the message 2007-06-28 09:07:40 +00:00
Ilia Alshanetsky 37d1bfed25 Added support for ATTR_TIMEOUT inside pdo_pgsql driver.
Fixed a bug inside PDO's "use persistent" connection detection mechanism
that would trigger connections on "" and "0" values
2007-06-28 03:13:29 +00:00
Antony Dovgal 4b2c457288 ksh is a pita 2007-06-27 22:05:31 +00:00
Antony Dovgal 6e48ec45dd fix test 2007-06-27 17:04:15 +00:00
Zoe Slattery af85497e8f Tests constant initialisation 2007-06-27 14:50:21 +00:00
foobar 3d88f40d51 MFH:- Added PHP_CHECK_SIZEOF macro (special version of AC_CHECK_SIZEOF) 2007-06-27 14:40:08 +00:00
Antony Dovgal f132df4f66 MFH: fix #41692 (ArrayObject shows weird behaviour in respect to inheritance) 2007-06-27 12:30:28 +00:00
Antony Dovgal aa15254e41 BFN 2007-06-27 08:56:38 +00:00
Antony Dovgal feb142cb79 add test 2007-06-27 08:55:27 +00:00
Antony Dovgal 8e26df9523 fix #41813 (segmentation fault when using string offset as an object)
patch by judas dot iscariote at gmail dot com
2007-06-27 08:51:40 +00:00
Ilia Alshanetsky abffe87d42 Fixed a crash inside PDO when there is more then one instance of a
persistent connection inside a script and PDO object is extended by class
with a destructor
2007-06-27 02:02:18 +00:00
Ilia Alshanetsky e8de152ddd Added persistent connection status checker to pdo_pgsql 2007-06-27 02:00:46 +00:00
Dmitry Stogov e5909f149c Fixed bug #40419 (Trailing Slash in CGI request don't work) 2007-06-26 14:47:16 +00:00
Antony Dovgal a61d445360 fix tests as discussed 2007-06-26 12:12:31 +00:00
Antony Dovgal ce22f44493 MFH: fix #41445 (parse_ini_file() has a problem with certain types of integer as sections) 2007-06-26 12:10:08 +00:00
Antony Dovgal 7210ab5695 fix ws 2007-06-26 11:51:14 +00:00
Antony Dovgal 58ac8d559d MFH: fix #41795 (checkdnsrr does not support DNS_TXT type)
patch by lucas at facebook dot com
2007-06-26 11:04:55 +00:00
Antony Dovgal 83e33eac02 MFH 2007-06-26 10:22:48 +00:00
Ilia Alshanetsky dc1c6f74c8 Fixed bug #41698 (float parameters truncated to integer in prepared
statements).
2007-06-26 01:24:10 +00:00
Antony Dovgal 76cf8c0636 fix test 2007-06-25 21:24:44 +00:00
Antony Dovgal 5daef5cd4a fix #41773 (php_strip_whitespace sends headers with errors suppressed)
MFB is not needed, output buffering in HEAD handles this situation correctly
2007-06-25 21:12:47 +00:00
Antony Dovgal fa8a77a466 MFH: fix #41711 (Null temporary lobs not supported) 2007-06-25 18:26:52 +00:00
Antony Dovgal 386cf7889f MFH 2007-06-25 17:37:55 +00:00
Antony Dovgal be9e02fd74 fix test 2007-06-25 17:10:14 +00:00
foobar 76872ee86e MFH: - Fixed bug #41794 (build fails with external libs under Solaris) 2007-06-25 16:26:39 +00:00
Scott MacVicar 99c875a03d Fixed bug #41350 (my_thread_global_end() error during request shutdown on Windows). 2007-06-25 16:01:30 +00:00
Dmitry Stogov 305ae11a3f Fixed stat() to support rdev, blocksize and blocks on Fedora 7 2007-06-25 14:22:49 +00:00
Dmitry Stogov 48658c2512 Fixed tests 2007-06-25 09:01:53 +00:00
Dmitry Stogov 506bd484dc Better fix for bug #41655 2007-06-25 08:40:20 +00:00
Dmitry Stogov aa54d9e385 Restore big exponent letter in var_export() ('1e300' -> '1E300') 2007-06-25 08:39:10 +00:00
Dmitry Stogov c0481701be Fixed tests 2007-06-25 06:45:57 +00:00
Ilia Alshanetsky 67a2cca930 Fixed bug #41685 (array_push() fails to warn when next index is already
occupied).
2007-06-24 17:37:01 +00:00
Nuno Lopes 7f47814c4e fix memleak in sxe_prop_dim_read()
#found by coverity
2007-06-24 11:41:12 +00:00
Zoe Slattery 4d503a8807 Reverting test to original after dicsussion with Raghu. Will open bugzilla for Linux/VMware behaviour 2007-06-22 19:18:37 +00:00
Zoe Slattery 3725bf6d5f Changed expected output so that this runs on Linux under VMWare as well as Linux. 2007-06-22 14:46:18 +00:00
Pierre Joye 1b894c90e7 - MFB: add test cases for #41655 2007-06-22 12:35:41 +00:00
Raghubansh Kumar 7a1b48eeff New tests for file system handling functions 2007-06-22 08:11:45 +00:00
Stanislav Malyshev 3444305c5d Fixed bug #41765 (Recode crashes/does not work on amd64) 2007-06-22 00:10:02 +00:00
Stanislav Malyshev 44bec384ed fix #41765 2007-06-22 00:02:15 +00:00
Raghubansh Kumar e647140a82 New tests for file system handling functions 2007-06-21 21:12:18 +00:00
Raghubansh Kumar 993b689a2e New functons to compare stat array 2007-06-21 21:06:47 +00:00
Dmitry Stogov 70105187db Proper fix for bug #39215 Inappropriate close of stdin/stdout/stderr 2007-06-21 12:42:36 +00:00
Dmitry Stogov 5f82777275 Fixed default values 2007-06-21 09:02:21 +00:00
Dmitry Stogov 5d2180835a no need to return exit status of the last fastcgi request 2007-06-21 08:40:43 +00:00
Ilia Alshanetsky ebb9408202 Fixed typos 2007-06-20 23:05:52 +00:00
Ilia Alshanetsky e2b093bfcb Fixed a memory leak inside load_all_certs_file() 2007-06-19 22:09:49 +00:00
foobar 3322064025 bfn 2007-06-19 18:22:58 +00:00
Nuno Lopes a2e06e6dc8 new test 2007-06-19 17:32:36 +00:00
Nuno Lopes 034e8692b7 final PCRE 7.2 release :-) 2007-06-19 17:11:30 +00:00
Derick Rethans 3b481cef64 - MFH: Added the H modifier to create non-locale-aware non-fixed-precision
float representations.
- MFH: Fixed var_export() to use the new H modifier so that it can generate
  parsable PHP code for floats again, independent of the locale.
2007-06-19 12:20:50 +00:00
foobar 0475096ea1 rephrase 2007-06-18 22:35:30 +00:00
Stanislav Malyshev 6d754185df mysql fix 2007-06-18 22:06:33 +00:00
Stanislav Malyshev b925a9248b Fix INFILE LOCAL option handling with MySQL - now not allowed when open_basedir
or safe_mode is active
2007-06-18 21:51:32 +00:00
Raghubansh Kumar 210f091022 New tests for file system handling functions 2007-06-18 19:45:53 +00:00
foobar 4c61a3f27e rephrase 2007-06-18 16:55:36 +00:00
Ilia Alshanetsky 24bdf0e368 Fixed bug #41686 (Omitting length param in array_slice not possible). 2007-06-18 16:53:09 +00:00
Ilia Alshanetsky 161ab0aa50 Fixed bug #41724 (libxml_get_last_error() - errors survice request scope). 2007-06-18 16:46:21 +00:00
Scott MacVicar b73d2a94ae Fixed bug #41628 (PHP settings leak between Virtual Hosts in Apache 1.3). 2007-06-18 15:52:46 +00:00
Dmitry Stogov d3f2d039a5 Fixed test 2007-06-18 10:02:12 +00:00
Dmitry Stogov 738ff1277a Fixed yet another realpath cache bug and wrong tests 2007-06-18 09:50:40 +00:00
Nuno Lopes 74474a1ef8 malloc+memset == calloc (sync with libgd) 2007-06-17 19:03:58 +00:00
Pierre Joye fcd0a1e790 - Drop useless tests (Daniel Diaz) 2007-06-17 16:51:50 +00:00
Ilia Alshanetsky 32c5a87a14 Fixed zend_alter_ini_entry() memory_limit interruption vulnerability. 2007-06-17 14:31:12 +00:00
Ilia Alshanetsky e2d606e18b Fixed compiler warning 2007-06-17 14:25:46 +00:00
Pierre Joye bf348c8c46 - MFH: #41717, imagepolygon does not respect thickness
(sync with libgd)
2007-06-17 10:56:51 +00:00
Stefan Esser df7bfe0a0f MFH 2007-06-16 07:48:07 +00:00
Stanislav Malyshev 70a8f9313b Disallow characters that Cookie RFC does not allow in unquoted cookies 2007-06-15 22:40:00 +00:00
Nuno Lopes 93cf41436b sync with libgd: improve _gdImageFillTiled() 2007-06-15 19:47:10 +00:00
Nuno Lopes 4e51d2ec73 upgrade PCRE to version 7.2 RC3
# I'll update to the final version early next week when its released
2007-06-15 19:09:26 +00:00
Nuno Lopes 17db5db759 add tests for pcre 7.0 regression
update to pcre 7.2 will follow soon
2007-06-15 11:57:08 +00:00
Dmitry Stogov e1f08c8297 HTTP 500 is sent to browser in case of PHP error instead of blank page 2007-06-15 09:20:27 +00:00
Dmitry Stogov 1fe8fded5f Fixed test 2007-06-15 08:16:11 +00:00
Dmitry Stogov a81b0b5d62 Prevent memory overflow 2007-06-15 08:04:59 +00:00
Dmitry Stogov c2e04e8364 Prevent crash in case of wrong arguments to CRT functions (strftime()) on PHP complead by MS VC2005 2007-06-15 07:27:08 +00:00
Ilia Alshanetsky bab1ce1429 Fixed bug #41693 (scandir() allows empty directory names). 2007-06-14 23:28:06 +00:00
Raghubansh Kumar 788ac84cf4 New tests for file system handling functions 2007-06-14 20:12:58 +00:00
Pierre Joye f5f04f2214 - Fixed regression introduced by the fix for the libgd bug #74 2007-06-14 19:17:31 +00:00
Zoe Slattery c73237b7b9 Tests are not valid if run by root - adding check to skip is user is root. 2007-06-14 15:40:06 +00:00
Dmitry Stogov 3b27cd22b6 Fixed bug #41566 (SOAP Server not properly generating href attributes) 2007-06-14 07:09:31 +00:00
Raghubansh Kumar ed39fac5d2 New tests for file handling system functions 2007-06-13 22:38:49 +00:00
Ilia Alshanetsky c969e9005b Handle very small longs via double 2007-06-13 17:56:41 +00:00
Ilia Alshanetsky 9f28e21bb1 Fixed bug #41673 (json_encode breaks large numbers in arrays). 2007-06-13 17:07:58 +00:00
Dmitry Stogov 1c7fa8fb4c Fixed bug #41633 (Crash instantiating classes with self-referencing constants) 2007-06-13 16:48:10 +00:00
Dmitry Stogov 28bc39500a Fixed some class constant issues related to bug #41633 2007-06-13 14:50:13 +00:00
Dmitry Stogov f018ec9024 Fixed wrong fix for bug #41582 2007-06-13 13:38:26 +00:00
Johannes Schlüter 62849e3fee - MFH: Fix test 2007-06-12 17:24:38 +00:00
Nuno Lopes 5aea16e06b ignore tmp-php.ini 2007-06-12 14:54:14 +00:00
Scott MacVicar 2caf386764 Display PCRE ini entries as part of module info 2007-06-12 14:08:16 +00:00
Scott MacVicar 34d1d2eed0 Fix ZTS build 2007-06-12 13:42:32 +00:00
Ilia Alshanetsky 06b4c66f02 Fixed bug #41655 (open_basedir bypass via glob()) 2007-06-12 12:53:08 +00:00
foobar 5160f532af regroup 2007-06-11 20:22:45 +00:00
Raghubansh Kumar 648aaf250a New tests for file handling system functions 2007-06-11 16:14:59 +00:00
Raghubansh Kumar 38c095a44f New testcase for get_defined_vars() function: get_defined_vars.phpt 2007-06-11 16:04:43 +00:00
Raghubansh Kumar 4f33b594ac New testcase for unset(), isset() and empty functions : 019.phpt 2007-06-11 15:55:44 +00:00
Ilia Alshanetsky f3ad3a770e Fixed test 2007-06-11 15:09:41 +00:00
Ilia Alshanetsky b6762a8991 Fixed bug #41527 (WDDX deserialize numeric string array key). 2007-06-11 15:08:43 +00:00
Ilia Alshanetsky 3b61fd8286 Update test 2007-06-11 15:07:40 +00:00
Ilia Alshanetsky 79d58abf65 Fixed memory corruption when reading exif data of a non-file 2007-06-10 20:12:45 +00:00
foobar 37e8ce097c - Fix special case of no ini file in use or not found 2007-06-09 12:06:53 +00:00
foobar f199649ad6 MFH 2007-06-09 11:53:12 +00:00
foobar f7d22b60f0 MFH:- Added php_ini_loaded_file() function which returns the path to the actual
php.ini in use.
2007-06-09 11:44:08 +00:00
Johannes Schlüter 1351bc4e86 Fix #41640 (get_class_vars produces error on class constants) 2007-06-09 08:38:44 +00:00
Antony Dovgal f903d42867 bfn 2007-06-08 14:48:35 +00:00
Antony Dovgal 0ca8dab47d MFH: fix #41561 (Values set with php_admin_* in httpd.conf can be overwritten with ini_set()) 2007-06-08 14:47:45 +00:00
Antony Dovgal c8d54ca3fe news 2007-06-08 08:45:33 +00:00
Antony Dovgal a87f7117ff MFH: enable statement cache for non-persistent connections (patch by Chris Jones) 2007-06-08 08:44:39 +00:00
Antony Dovgal 76065b520a adjust test for 64bit 2007-06-08 08:40:28 +00:00
Antony Dovgal e5be1f55ad fix test, add 64bit version 2007-06-08 08:34:48 +00:00
Pierre Joye d5c9a6efc4 - #41630 entry 2007-06-08 05:28:40 +00:00
Ilia Alshanetsky 1bd2791cd4 Added missing error check inside bcpowmod(). 2007-06-08 00:41:57 +00:00
Ilia Alshanetsky a6340d27ae Final shot at the date issue 2007-06-07 23:16:04 +00:00
Pierre Joye c4b5196d0b - #41630, fix segfault when an invalid color index is present in the image
data
2007-06-07 21:07:33 +00:00
Antony Dovgal b1a0a4d3e4 MFH: reset active_result_id when fetching persistent connection
patch by Peter Christensen
2007-06-07 12:17:35 +00:00
Antony Dovgal 074b58b7f1 MFH: php_localtime_r() checks 2007-06-07 09:07:36 +00:00
Antony Dovgal d042fd0675 MFH: php_gmtime_r() fixes 2007-06-07 08:59:00 +00:00
Antony Dovgal c9805e7b92 MFH: check return value of *time_r() functions for NULL 2007-06-07 08:44:41 +00:00
Antony Dovgal 91da96ba71 MFH: change E_NOTICE to E_ERROR when using a class constant from non-existent class
(noticed by Jani)
add tests
2007-06-07 08:37:40 +00:00
Ilia Alshanetsky 20b5c66e14 Fixed a crash inside ncurses_panel_above() when called prior to
ncurses_init()
2007-06-07 02:29:44 +00:00
Ilia Alshanetsky 594fe5c398 Fixed typo 2007-06-07 02:21:26 +00:00
Ilia Alshanetsky d02356922a Adjust previous patch to work on all compilers 2007-06-06 23:16:34 +00:00
Ilia Alshanetsky a20bba04d5 Optimize out a loop 2007-06-06 22:58:42 +00:00
foobar 7b9e125e0c fix news 2007-06-06 22:41:23 +00:00
Stanislav Malyshev b6ddf71381 revert - already have unpack.phpt 2007-06-06 22:25:08 +00:00
Stanislav Malyshev bc35767b46 add edge case test 2007-06-06 22:21:59 +00:00
Antony Dovgal 4cf17cfc33 MFH: improve the checks for integer overflow 2007-06-06 22:09:25 +00:00
Ilia Alshanetsky 717e94c67a Added missing format validator to unpack() function 2007-06-06 22:04:05 +00:00
Antony Dovgal 2041566a12 MFH 2007-06-06 21:53:54 +00:00
Stanislav Malyshev 9295456f01 new fixes 2007-06-06 18:53:35 +00:00
foobar cb0fd15625 MFH:- Fix passing of shared extensions to run-tests.php 2007-06-06 18:28:13 +00:00
Stanislav Malyshev d114d0b0c8 fix the chunks fix 2007-06-06 18:15:41 +00:00
Stanislav Malyshev 29b9d79c2f Fix chunk_split fix - avoid using floats
Fix money_format - don't give strfmon more arguments then supplied
Fix str[c]spn integer overflow
2007-06-06 17:59:07 +00:00
Stanislav Malyshev 2e15dda50e fix test format 2007-06-06 17:46:17 +00:00
Stanislav Malyshev 8b5a2d38c4 add some edge cases 2007-06-06 17:12:40 +00:00
Stanislav Malyshev e001e11009 add test for moneyformat 2007-06-06 17:11:59 +00:00
Zoe Slattery 860c643448 New tests for file handling 2007-06-06 12:53:58 +00:00
Zoe Slattery 7a7c447a17 fixed file permission for new empty file 2007-06-06 12:53:17 +00:00
Nuno Lopes 0997342dff fix gcov build for the 100th time.. 2007-06-06 12:27:24 +00:00
Antony Dovgal e029945a02 MFH: minor optimization - make sure the objects are not the same instance before we start comparing their properties 2007-06-06 11:57:36 +00:00
Antony Dovgal 32e23d419f more details 2007-06-06 11:36:20 +00:00
Antony Dovgal 8853804482 MFH: fix several integer overflows in GD 2007-06-06 09:45:43 +00:00
Antony Dovgal 2374641e58 BFN + fix other entries 2007-06-06 08:35:44 +00:00
Antony Dovgal 3790227f9d MFH: fix #41608 (segfault on a weird code with objects and switch()) 2007-06-06 08:35:23 +00:00
Ilia Alshanetsky c38ad55e8e Fixed bug #41600 (url rewriter tags doesn't work with namespaced tags). 2007-06-06 00:00:28 +00:00
Ilia Alshanetsky c084d1c829 Fixed bug #41596 (Fixed a crash inside pdo_pgsql on some non-well-formed
SQL queries).
2007-06-05 22:55:27 +00:00
Antony Dovgal ceef5840ad fix folding 2007-06-05 13:35:26 +00:00
Antony Dovgal 03b0a479dd fix folding 2007-06-05 12:12:55 +00:00
Antony Dovgal cf53dfaff3 MFH 2007-06-05 12:02:46 +00:00
Zoe Slattery 7a03838430 Fixing incorrect comment in test cases fileinode_variation and filetype_variation 2007-06-05 11:35:04 +00:00
Antony Dovgal 0b157a6f84 enable display_startup_errors, fix test 2007-06-05 10:59:25 +00:00
Antony Dovgal 5d8ae45309 MFH: fix #41582 (SimpleXML crashes when accessing newly created element) 2007-06-05 10:03:12 +00:00
Zoe Slattery 22c68a8155 new test cases for general functions 2007-06-05 09:12:34 +00:00
Zoe Slattery ce71724def New test cases for file system functions 2007-06-05 09:10:50 +00:00
Zoe Slattery d5d297d461 Added fill_buffer() function 2007-06-05 08:02:17 +00:00
Antony Dovgal ecd42f9774 MFH: fix #41594 (Statement cache is flushed too frequently) 2007-06-05 07:49:00 +00:00
Ilia Alshanetsky 045b283a7d Fixed bug #41567 (json_encode() double conversion is inconsistent with PHP). 2007-06-04 23:51:32 +00:00
Nuno Lopes bd7c9ebeb0 ignore *.gcno 2007-06-04 18:13:53 +00:00
Antony Dovgal 31ce08253c MFH 2007-06-04 17:18:51 +00:00
Antony Dovgal 43bb6e7c3e news entry 2007-06-04 15:39:26 +00:00
Antony Dovgal 5c75e5b4f4 MFH: add missing open_basedir checks to CGI 2007-06-04 15:38:12 +00:00
Antony Dovgal 3285bd834b fix folding 2007-06-04 09:47:54 +00:00
Antony Dovgal 61d697d100 fix ws 2007-06-04 06:38:22 +00:00
Brian Shire 55b5b89ef7 fix sprintf/printf %u tests so they work correctly on both 32-bit and 64-bit. (broken in previous fix)
# just made these EXPECTREGEX expressions, if there's a prefered way to comply with both 32/64 bit let me know.
2007-06-04 01:23:07 +00:00
Hannes Magnusson d1b9c6e62e fix test 2007-06-03 23:40:01 +00:00
foobar ca1b7e7b47 fix test 2007-06-03 22:50:19 +00:00
foobar d12bbce277 MFH 2007-06-03 21:57:35 +00:00
Pierre Joye c76e5dd0bd - fix logic (goto is a gift, I should use it :) 2007-06-03 21:34:21 +00:00
Pierre Joye d5d2d6e30e - pecl bug #11216, better fix, leak removed and improved test
- typo in news, better late than never (-d)
2007-06-03 21:21:57 +00:00
foobar a4d68b26e4 bug news 2007-06-03 20:28:33 +00:00
foobar 7bd41e0715 MFH:- Fixed bug #41576 (misbehaviour when using --without-apxs) 2007-06-03 20:27:16 +00:00
Pierre Joye fd2e66bd05 - PECL #11216 test 2007-06-03 19:50:36 +00:00
Pierre Joye ef952b0383 - PECL #11216, addEmptyDir crashes if the directory already exists 2007-06-03 19:47:17 +00:00
foobar 029b4678aa fix news 2007-06-03 19:06:23 +00:00
Ilia Alshanetsky 405a15043f Corrected fix for CVE-2007-2872 2007-06-03 18:47:10 +00:00
Pierre Joye 256de924c7 - MFH: @DOC add constants GD_MAJOR_VERSION, GD_MINOR_VERSION, GD_RELEASE_VERSION
GD_EXTRA_VERSION and GD_VERSION_STRING
2007-06-03 17:46:18 +00:00
Ilia Alshanetsky 489c2d739a Fixed test for PostgreSQL 2007-06-03 17:41:21 +00:00
foobar f26145fa8c MFH:- Improved the error message for exceeding max_input_nesting_level. 2007-06-03 16:54:06 +00:00
Ilia Alshanetsky a8be5f419d Improved fix for MOPB-02-2007 2007-06-03 16:19:14 +00:00
Brian Shire 79e3c88352 MFH: Change printf %u behavior so that it does not truncate numbers at 32-bits. (Reported by Aditya Agarwal.) 2007-06-03 09:12:04 +00:00
Pierre Joye f4926a042e - sx/sy must be > 0 and < INT_MAX 2007-06-02 15:38:09 +00:00
Pierre Joye 70650810ad - enable tests even when an external GD is used. Latest releases
(2.0.34 or 2.0.35) work.
2007-06-02 15:35:34 +00:00
foobar 6567a93a2a fix test 2007-06-01 22:18:56 +00:00
foobar c5e8992942 MFH: - Fixed bug #41555 (configure failure: regression caused by fix for #41265) 2007-06-01 21:34:17 +00:00
foobar c1c44ddcf3 MFH: - Add missing CXXFLAGS_CLEAN variable. 2007-06-01 15:12:29 +00:00
Antony Dovgal 8e3eee385e MFH: fix #41518 (file_exists() warns of open_basedir restriction on non-existent file) 2007-06-01 13:35:23 +00:00
Antony Dovgal 6d76fc2834 MFH: fix #39330 (apache2handler does not call shutdown actions before apache child die) 2007-06-01 10:04:06 +00:00
Ilia Alshanetsky de64609fec Back to dev 2007-05-30 18:48:58 +00:00
Ilia Alshanetsky b604bc7200 5.2.3 2007-05-30 18:45:59 +00:00
Antony Dovgal 23eaae2211 MFH 2007-05-30 16:32:02 +00:00
Antony Dovgal df057bf78d fix test names 2007-05-30 15:40:26 +00:00
Pierre Joye f2e130c145 - add missing cert (thx Tony) 2007-05-30 15:16:31 +00:00
Antony Dovgal 568525bbb5 fix test (second try) 2007-05-30 14:43:18 +00:00
Antony Dovgal 2958037b2a fix test 2007-05-30 14:40:24 +00:00
Antony Dovgal 794ceb7bad MFH: fix lstat() function resolving symlinks 2007-05-30 10:50:47 +00:00
Antony Dovgal b529617499 fix tests 2007-05-30 10:19:39 +00:00
Antony Dovgal 770790af04 set module in internal_function struct 2007-05-30 10:17:43 +00:00
Ilia Alshanetsky 9282d4add6 Fixed an interger overflow inside chunk_split(), identified by Gerhard
Wagner
2007-05-30 00:33:13 +00:00
Antony Dovgal f7ec7197f7 fix tests 2007-05-29 10:25:33 +00:00
Marcus Boerger 407c9833ef - Bug #41525 ReflectionParameter::getPosition() not available
# This was supposed to be dropped in 5.1.4, I wonder why thisis not in
# because the functionality is documented.
# [ DOC ] Make sure the function documentation is correct for:
# ReflectionParameter::getPosition
# ReflectionParameter::getDeclaringFunction
# ReflectionFunction::getExtension
# ReflectionFunction::getExtensionName
2007-05-29 08:44:05 +00:00
Antony Dovgal 97e9bd1da0 fix test names 2007-05-28 20:03:54 +00:00
Pierre Joye b49e70f946 - MFH:
- tests for #39217
 - skip test if openssl is too old
2007-05-28 13:55:30 +00:00
Hannes Magnusson c0dd1f4d0b MFH 2007-05-28 12:19:41 +00:00
Hannes Magnusson c64a4a1359 MFH: fix logic 2007-05-28 10:46:21 +00:00
Antony Dovgal f92e99e83a reorder 2007-05-28 10:36:09 +00:00
Antony Dovgal a841027cca MFH 2007-05-28 10:07:50 +00:00
Dmitry Stogov e35679618e Removed deprecated comment 2007-05-28 08:11:59 +00:00
Antony Dovgal ccd16d09c0 MFH 2007-05-27 19:23:09 +00:00
Hannes Magnusson bcc95ae09b the binary is called php-cgi now 2007-05-27 19:00:47 +00:00
foobar 26c60afb5d MFH: add missing entries, these are in PHP_4_4 branch.. 2007-05-27 18:04:10 +00:00
Ilia Alshanetsky 47216d7de4 Adjust tests to reflect the new expected output 2007-05-27 17:57:57 +00:00
Ilia Alshanetsky e3759c2823 Fixed SQLite version 2007-05-27 17:53:04 +00:00
Ilia Alshanetsky 0f6e099d7d Fixed bug #41477 (no arginfo about SoapClient::__soapCall()). 2007-05-27 17:46:46 +00:00
Ilia Alshanetsky 6f61e84727 Fixed bug #41492 (open_basedir/safe_mode bypass inside realpath()). 2007-05-27 17:33:39 +00:00
Ilia Alshanetsky d2ec6b60da Fixed bug #41236 (Regression in timeout handling of non-blocking SSL
connections during reads and writes).
2007-05-27 17:05:51 +00:00
Ilia Alshanetsky faae3e9ecf Fixed bug #41504 (json_decode() incorrectly decodes JSON arrays with empty
string keys).
2007-05-27 16:31:35 +00:00
Nuno Lopes 2c5368c013 fix handling of &&amp; by htmlentities 'no-double-encode'
expand the test cases
2007-05-27 15:57:11 +00:00
Nuno Lopes 452524fe3a fix the new 'no-double-encoding' feature of htmlspecialchars() (the length for char search was wrong. this could lead to crashes..) 2007-05-27 15:45:18 +00:00
Nuno Lopes 8931a76101 make make_digest() output a 16-byte string so that it wont break the internal PHP API (it was breaking the SOAP extension) 2007-05-27 15:29:38 +00:00
Antony Dovgal 7e1647e524 MFH: add missing skipif sections 2007-05-27 15:12:33 +00:00
foobar 8561368787 fix news 2007-05-27 15:11:31 +00:00
foobar 8588db4b46 - Fixed bug #41511 (Compile failure under IRIX 6.5.30 building md5.c) 2007-05-27 14:50:09 +00:00
Antony Dovgal bac779d6b6 check for required func 2007-05-27 14:39:21 +00:00
Antony Dovgal 060589090d fix test 2007-05-27 14:30:06 +00:00
Rasmus Lerdorf 227fd7aa1f Remove simple optimization here for now until we clean up this SAPI/TSRM
mess.
2007-05-25 22:53:34 +00:00
Hannes Magnusson f00ea3c023 MFH: Mention why short_open_tags is off (bug#37068) 2007-05-25 19:25:15 +00:00
Hannes Magnusson df03be1a3b Allow skipping hint_charset (fixes ext/standard/tests/strings/htmlentities18.phpt) 2007-05-25 14:09:02 +00:00
Zoe Slattery eb0f324f70 New testcaes for file/strings/general_functions 2007-05-25 13:44:23 +00:00
Hannes Magnusson de4408c9af MFH: protos (patch by jeffg at activestate dot com) 2007-05-25 13:24:50 +00:00
Michael Wallner d9c97cbd47 - fix typo 2007-05-25 12:47:55 +00:00
Hannes Magnusson 194044bbdb Mention json nesting dept bump 2007-05-25 12:35:33 +00:00
Hannes Magnusson ad57583ba4 This test should only test failures 2007-05-25 12:31:03 +00:00
Hannes Magnusson 993b66b4c8 Fix test after stack limit bump 2007-05-25 12:15:38 +00:00
Rasmus Lerdorf 6e0d643783 Slightly cleaner code 2007-05-25 09:20:01 +00:00
Rasmus Lerdorf f6bffb69c5 Optimize sapi_get_request_time() slightly making it use the cached time
and also checking if there is a server_context before trying to call
the request_time sapi hook.
2007-05-25 09:12:35 +00:00
Ilia Alshanetsky 9998f67c91 Back to dev 2007-05-25 00:07:57 +00:00
Ilia Alshanetsky f0b7941067 5.2.3RC1 2007-05-25 00:05:30 +00:00
foobar a894611636 - Unify installation of SAPIs: CGI is no exception anymore. 2007-05-24 23:29:59 +00:00
Rasmus Lerdorf c7069887a4 Make the code match the commit comment 2007-05-24 22:40:02 +00:00
Rasmus Lerdorf 464d87e58b I don't see any reason to leave the stack limitation at 20. We have
reports of this limit being hit now and as far as I can tell bumping it
to 128 isn't going break anything in the parser code.
2007-05-24 22:37:59 +00:00
foobar efcdcd80b6 - Allow build without flex/bison installed (fixes builddir != srcdir build
when using distributed sources which inlude pre-generated bison/flex
  output. See bug #38762 for more..)
2007-05-24 21:40:41 +00:00
Rasmus Lerdorf 2fba3bf13b Uh, only meant to remove the null check, not the assignment 2007-05-24 21:29:27 +00:00
Rasmus Lerdorf 61b06f1527 Avoid running off the end of a non-null terminated string. Not that we
should have any of those, but a mistake in an extension could hit this
and the check doesn't actually make any sense as far as I am concerned.
2007-05-24 20:53:05 +00:00
foobar 5603bef272 - Fix previous fix. (just revert of Stefan's bad fix..) 2007-05-24 19:52:03 +00:00
foobar 91d98d2986 - Fix idiotic change in logic. (hint: flex is _REQUIRED_ for building PHP! 2007-05-24 19:35:46 +00:00
Dmitry Stogov 9bca44df22 Impoved error reporting on parser errors (Matt, Dmitry) 2007-05-24 08:56:35 +00:00
Ilia Alshanetsky 6f694fab9a Simplify code 2007-05-23 15:01:00 +00:00
Hannes Magnusson a6a989d44c new curl constants 2007-05-22 19:31:07 +00:00
Antony Dovgal 9a37c5588c fix tests 2007-05-22 16:58:33 +00:00
Antony Dovgal d14d148f66 fix test 2007-05-22 16:52:58 +00:00
Hannes Magnusson 77fda18119 Add entry about --ini 2007-05-22 16:38:50 +00:00
Raghubansh Kumar 17a6ac36da New version of gettype_settype_variation1.phpt gettype_settype_variation6.phpt
gettype_settype_variation2.phpt  gettype_settype_variation7.phpt      gettype_settype_variation3.phpt  gettype_settype_variation8.phpt
gettype_settype_basic.phpt  gettype_settype_variation4.phpt
gettype_settype_error.phpt  gettype_settype_variation5.phpt
2007-05-22 16:01:59 +00:00
Raghubansh Kumar 9f5016ef7b New version of basename_basic.phpt, basename_error.phpt, basename_variation.phpt 2007-05-22 15:59:04 +00:00
Hannes Magnusson 13feaf3620 Ladies and gentelmens,
I bring you our new documentation editor....
Philip Olson!
2007-05-22 15:44:11 +00:00
Hannes Magnusson cdd37424a8 Update proto&arginfo for double_encode in htmlspecialchars()&htmlentities() 2007-05-22 15:38:27 +00:00
Pierre Joye c1ba2927aa - add cve ref 2007-05-22 15:17:03 +00:00
Antony Dovgal a69e6e2c79 MFH: improve variable name checks
add more tests
2007-05-22 14:34:23 +00:00
Hannes Magnusson b4eb20c8aa Add max_input_nesting_level 2007-05-22 13:27:16 +00:00
Ilia Alshanetsky c98cbb6020 [DOC] Added a 4th parameter flag to htmlspecialchars() and htmlentities()
that makes the function not encode existing html entities. The feature is
disabled by default and can be activated by passing FALSE as the 4th param
2007-05-22 12:37:00 +00:00
Timm Friebe 43fccbf2b9 - Changed hardcoded "tempdb" database name to a constant 2007-05-22 12:16:32 +00:00
Timm Friebe 090cee2bdc - Fixed expectancy in for SQL query <select convert(datetime, "notadate")>
This query should return bool(false) and not a resource() because
  the above is a syntax error
# Exact message yielded by SQL server is the following:
# "Syntax error during explicit conversion of VARCHAR value `notadate`
# to a DATETIME field.
2007-05-22 11:38:57 +00:00
Timm Friebe 9181a464fe - Added constant TEMPDB, defaulting to "tempdb"
# This constant is used by some of the tests and should point
# to a database where the user has create proc|table permissions
2007-05-22 11:36:55 +00:00
Timm Friebe 6218d2d998 - Changed hardcoded "tempdb" database name to a constant
# This constant is defined in test.inc and defaults to "tempdb"
# In certain setups, create procedure permissions may not be granted
# in tempdb
2007-05-22 11:35:47 +00:00
Timm Friebe 680735fce8 - Fixed tests on Windows
# The tests expected %s/test.inc in warnings and notices, but of course,
# on Windows, the directory separator is a backslash.
# Made this work in both worlds by testing for %stest.inc
2007-05-22 11:33:36 +00:00
Antony Dovgal 083844f847 MFH: fix #41442 (imagegd2() under output control) 2007-05-22 10:22:49 +00:00
Sara Golemon 5040dbd5e8 MFH(r-1.112) Add CURLOPT_TIMEOUT_MS and CURLOPT_CONNECTTIMEOUT_MS option constants 2007-05-22 08:39:20 +00:00
Ilia Alshanetsky 89d57c7c67 Fixed typos 2007-05-21 16:50:03 +00:00
Michael Wallner 5fdcc761a1 - first check the SSL lib string in libcurl and then the header 2007-05-21 13:32:35 +00:00
Dmitry Stogov 7d1dbff79d Fixed bug #41337 WSDL parsing doesn't ignore non soap bindings 2007-05-21 13:13:50 +00:00
Antony Dovgal 007bac315d MFH: fix #41455 (ext/dba/config.m4 pollutes global $LIBS and $LDFLAGS) 2007-05-21 11:38:53 +00:00
Dmitry Stogov 23409a4bbf Fixed crash on "php -b 1234 -unknown-option" 2007-05-21 09:08:13 +00:00
Dmitry Stogov 3040a34b21 libfcgi cleanup (Andrei Nigmatulin) 2007-05-21 08:47:51 +00:00
Antony Dovgal 04aefb4e18 MFH 2007-05-21 07:12:41 +00:00
Marcus Boerger a4e3f29771 - MFH Add print_htptr, print_htstr 2007-05-20 21:46:17 +00:00
Ilia Alshanetsky 30dd6a45d3 Fixed a possible crash when PATH_INFO is not provided but the path contains
path info information
2007-05-20 15:56:10 +00:00
Pierre Joye b65cdd0793 - use the same checks for zip_stat 2007-05-19 22:25:11 +00:00
Pierre Joye 26e22f34fa - #41423. PHP assumes wrongly that certain ciphers are enabled in OpenSSL 2007-05-19 22:05:08 +00:00
Ilia Alshanetsky b828d1939f Optimized digest generation in md5() and sha1() functions by using code
from ext/hash. This makes the functions 20-50% faster on short strings.
2007-05-19 20:30:35 +00:00
Michael Wallner a349109e42 - fix compile/linker agnostic runpath switch 2007-05-19 19:36:11 +00:00
Ilia Alshanetsky c009fc8915 CS fixes
Fixed a possible crash in the event directory cannot be created, due to a
double free.
2007-05-19 19:29:37 +00:00
Ilia Alshanetsky a3899eda3e Fixed typo in constant name 2007-05-19 18:40:27 +00:00
Ilia Alshanetsky c554031b24 Eliminate memory allocation in RINIT for spl 2007-05-19 18:32:35 +00:00
Ilia Alshanetsky 9db4812366 Remove pointless RINIT 2007-05-19 17:58:22 +00:00
Ilia Alshanetsky c8a694eb45 Avoid strlen() 2007-05-19 17:52:30 +00:00
Ilia Alshanetsky 2a6442190c Fixed test to work with postgresql 2007-05-19 15:28:37 +00:00
Antony Dovgal 0db4f06f13 MFH 2007-05-19 12:53:06 +00:00
Stanislav Malyshev 3dc920d4ea and now the right number 2007-05-19 08:10:52 +00:00
Stanislav Malyshev ff95fbd692 fix reference 2007-05-19 08:08:03 +00:00
Antony Dovgal 27dcd0e5fb reorder 2007-05-18 20:56:50 +00:00
Stanislav Malyshev 9955794367 news about #41401 2007-05-18 20:49:28 +00:00
Antony Dovgal 6434290092 fix test
add separate test for 64bit
2007-05-18 20:45:50 +00:00
Antony Dovgal 7e80ad9407 fix leak and check for < 0 only of the 5th arg was passed 2007-05-18 20:34:13 +00:00
Stanislav Malyshev cfedafff67 add test for 41401 2007-05-18 20:13:28 +00:00
Stanislav Malyshev bc2b546dcc fix #41401 - parser precedence on unary operators
# now 1/-2*5 is -2.5 as it should be
2007-05-18 18:36:04 +00:00
Dmitry Stogov 80d2409fd8 Improved compilation of heredocs and interpolated strings. (Matt, Dmitry) 2007-05-18 13:12:05 +00:00
Antony Dovgal 6d41d020df MFH: fix #41430 (Fatal error with negative values of maxlen parameter of file_get_contents()) 2007-05-18 12:06:44 +00:00
Antony Dovgal 4167b0a4ce BFN 2007-05-18 11:52:47 +00:00
Antony Dovgal d7b30e457a MFH: fix #41421 (Uncaught exception from a stream wrapper segfaults) 2007-05-18 11:52:08 +00:00
Antony Dovgal ff514e208e fix tests 2007-05-18 11:47:58 +00:00
Rasmus Lerdorf 7e5f0a8380 Get rid of a stray time() syscall in tsrm and clean up lcg rinit 2007-05-18 11:36:55 +00:00
Antony Dovgal ffd09c0961 fix tests 2007-05-18 11:29:55 +00:00
Nuno Lopes 83aba2c5b9 fix gcov build....... 2007-05-17 17:57:51 +00:00
Antony Dovgal 27c32bab35 news entry 2007-05-17 15:13:51 +00:00
Antony Dovgal ae49128df4 implement FR #41416 (getColumnMeta() should also return table name) 2007-05-17 15:12:23 +00:00
Hannes Magnusson 4ad45f6566 Fix paths for ext/sqlite 2007-05-17 13:40:12 +00:00
Antony Dovgal 4bd12c4673 fix test 2007-05-17 11:43:47 +00:00
Rasmus Lerdorf 52c2d6c235 Get rid of a useless RINIT and an empty RSHUTDOWN on non-Windows 2007-05-17 06:38:13 +00:00
Pierre Joye 85f738261f - fix title 2007-05-16 22:55:27 +00:00
Pierre Joye 7807477a87 - MFH: libgd #86: Fixed possible infinite loop in libgd/gd_png.c, fix test
(Reported by Xavier Roche)
2007-05-16 22:21:41 +00:00
Pierre Joye 587de83684 - MFH: libgd #86: Fixed possible infinite loop in libgd/gd_png.c
(Reported by Xavier Roche)
2007-05-16 22:19:08 +00:00
Michael Wallner a5ce18dd47 - BFN 2007-05-16 21:22:12 +00:00
Michael Wallner 6447c82454 - fixed bug #41358: configure cannot determine libcurl's SSL lib as of v7.16.2 2007-05-16 21:18:41 +00:00
Zoe Slattery 8f06575c23 Updated range() test 2007-05-16 21:07:33 +00:00
Ilia Alshanetsky 2b46d621e6 Upgraded libsqlite3 to SQLite 3.3 2007-05-16 21:04:46 +00:00
Ilia Alshanetsky 67032ecdf0 Make test work in sqlite 2007-05-16 21:03:46 +00:00
Antony Dovgal 5e7b464517 typofix 2007-05-16 20:04:32 +00:00
Ilia Alshanetsky 7cc5c04b47 news 2007-05-16 19:36:21 +00:00
Ilia Alshanetsky efd7846d34 [DOC] Added PDO::FETCH_KEY_PAIR mode that will fetch a 2 column result set
into an associated array.
2007-05-16 19:33:57 +00:00
Marcus Boerger bfbbe4110e - MFH Extensions are indexed lowercased and not case aware 2007-05-16 18:57:15 +00:00
Antony Dovgal 3a10e5c078 MFH: fix #41394 (dbase_create creates file with corrupted header) 2007-05-16 13:17:50 +00:00
Antony Dovgal 09a575a20f MFH: fix #41403 (json_decode cannot decode floats if localeconv decimal_point is not '.') 2007-05-16 12:54:30 +00:00
Stanislav Malyshev 69650d0ebf do not send cookie when session is passed in URL, same as it happens with GET/POST 2007-05-16 01:18:14 +00:00
Antony Dovgal e72d044f9f fix tests 2007-05-15 14:25:21 +00:00
Scott MacVicar 55a3d5f8b1 MFH: Fixed bug #41390 (Clarify error message with invalid protocol scheme) 2007-05-15 13:04:43 +00:00
Antony Dovgal e5a556757e add the original author of the patch 2007-05-15 12:39:05 +00:00
Dmitry Stogov 633aff5541 Fixed bug #41378 (fastcgi protocol lacks support for Reason-Phrase in "Status:" header) 2007-05-15 08:17:08 +00:00
Ilia Alshanetsky 727109283d News file cleanup 2007-05-14 18:54:05 +00:00
Scott MacVicar 607467451d Prefix NEWS item so documentation team know of new function and typo from old parsing API spotted by bjori 2007-05-14 18:09:20 +00:00
Scott MacVicar ac38b635cb Add mysql_set_charset() so that the connection encoding can be changed. This is similar to the SET NAMES statement but allows the mysql_real_escape_string to use the correct character set. 2007-05-14 17:10:47 +00:00
Antony Dovgal a640896685 fix test 2007-05-14 16:18:02 +00:00
Antony Dovgal d85fc29edf MFH 2007-05-14 12:19:34 +00:00
Rob Richards 7d3c91bed3 free wholetext properly 2007-05-14 11:52:35 +00:00
Rob Richards 82dc0875cb BFN 2007-05-14 11:45:38 +00:00
Rob Richards f42784219a Fixed bug #41374 (wholetext concats values of wrong nodes).
add test
2007-05-14 11:44:15 +00:00
Antony Dovgal 725260ea0f fix CS 2007-05-14 11:33:34 +00:00
Antony Dovgal 2274c18cc6 remove floats, their text representation varies depending on many factors 2007-05-14 11:10:30 +00:00
Antony Dovgal 9100e9efde add 64bit tests 2007-05-14 11:04:30 +00:00
Antony Dovgal 83df9beca2 fix precision 2007-05-14 11:04:08 +00:00
Antony Dovgal b33de5d0aa fix tests - make them 32bit only, 64bit version will be later
add --INI-- section
remove recursive arrays, that thing should be in a separate test
2007-05-14 10:57:04 +00:00
Pierre Joye 19d1d24d60 - [@DOC] MFH: #41326, better fix. It restores BC and allows both canonical
and short form:
  - when $content is given, the closing tag will be generated (even for empty
  string)
  - when $content is ignored or NULL is given, the short form will be used
2007-05-14 09:23:49 +00:00
Ilia Alshanetsky f752fd4836 Fixed bug #41353 (crash in openssl_pkcs12_read() on invalid input). 2007-05-13 17:37:32 +00:00
Hannes Magnusson 909894682d MFH: bug#41361 (shell_exec() does not find binaries) 2007-05-12 16:06:46 +00:00
Raghubansh Kumar c5c162d182 New version of debug_zval_dump_b.phpt, is_array.phpt, is_null.phpt, is_string.phpt, debug_zval_dump_e.phpt, is_bool.phpt, is_numeric.phpt, print_r.phpt, debug_zval_dump_o.phpt, is_float.phpt is_object.phpt, strval.phpt,
debug_zval_dump_v.phpt, is_int.phpt, is_scalar.phpt, var_dump.phpt
2007-05-12 10:28:00 +00:00
Raghubansh Kumar 3a97c49489 New version of addcslashes.phpt, md5_file.phpt, str_replace.phpt, substr.phpt, chr_ord.phpt, strpos.phpt, strstr.phpt, trim1.phpt, implode1.phpt, str_repeat.phpt, substr_count.phpt 2007-05-12 10:15:02 +00:00
Raghubansh Kumar 42ae6b508e New version of 005.phpt, array_change_key_case.phpt, array_key_exists.phpt, array_keys.phpt, array_map.phpt, array_pop.phpt, array_search.phpt, array_values.phpt, each.phpt, end.phpt, extract.phpt 2007-05-12 09:53:30 +00:00
Raghubansh Kumar 02dd014013 New version of 009.phpt 2007-05-12 09:50:40 +00:00
Antony Dovgal bc25fc52bf MFH: remove warnings in resource dtor 2007-05-11 15:46:38 +00:00
Antony Dovgal 2b229635c2 BFN 2007-05-11 12:22:00 +00:00
Antony Dovgal c8cfd3b99a MFH: fix #41134 (zend_ts_hash_clean not thread-safe)
fix also zend_ts_hash_*destroy()
2007-05-11 12:21:26 +00:00
Antony Dovgal c1e84f1fff BFN 2007-05-11 09:39:49 +00:00
Antony Dovgal 756f3f60ca MFH: fix #41351 (Invalid opcode with foreach ($a[] as $b)) 2007-05-11 09:39:36 +00:00
Dmitry Stogov d2fe65c191 Fixed bug #39542 (Behaviour of require/include different to < 5.2.0) 2007-05-11 08:02:43 +00:00
Marcus Boerger 93583f9680 - MFH Add invert option to RegexIterator 2007-05-11 00:15:25 +00:00
Antony Dovgal 8de1ecef64 MFH: fix segfault in strripos() when offset == INT_MAX+1
identified and repoted by Joxean Koret
2007-05-10 22:10:43 +00:00
Antony Dovgal 5d8567b83b %d -> %ld 2007-05-10 21:52:10 +00:00
Ilia Alshanetsky 51e0891f0b Fixed random number generation for http auth mechanism in SOAP
# Identified by Stefan Esser
2007-05-10 21:05:14 +00:00
Hannes Magnusson 63c11738f8 use php_strtok_r() rather than strsep()
# Fixes build on, for instance, solaris
2007-05-10 19:48:30 +00:00
Antony Dovgal 7efde494d7 MFH: flush output buffer when/if highlight_string()/php_strip_whitespace()/highlight_string() fail 2007-05-10 16:28:11 +00:00
Dmitry Stogov 6e8438633b Fixed bug #41291 (FastCGI does not set SO_REUSEADDR). (fmajid at kefta dot com) 2007-05-10 15:21:02 +00:00
Dmitry Stogov fb045249e5 Fixed bug #41337 (WSDL parsing doesn't ignore non soap bindings) 2007-05-10 14:58:17 +00:00
Scott MacVicar e7577d57cd Fixed bug #41347 (checkdnsrr() segfaults on empty hostname). 2007-05-10 13:16:54 +00:00
Antony Dovgal c69b76dc52 MFH: fix segfault in iptcembed() 2007-05-10 12:23:25 +00:00
Antony Dovgal f9f456a9cd MFH: bcmath.scale must be greater or equal to zero 2007-05-10 09:53:36 +00:00
Ilia Alshanetsky 6df5384610 Fixed a typo 2007-05-09 23:59:06 +00:00
Pierre Joye 223cfe342f - MFH: #41326, Writing empty tags with Xmlwriter::WriteElement[ns] 2007-05-08 21:41:36 +00:00
Ilia Alshanetsky 75b5ce3b8d Fixed bug #41321 (downgrade read errors in getimagesize() to E_NOTICE). 2007-05-08 18:38:20 +00:00
Dmitry Stogov eec0b67cd8 Fixed bug #41304 (compress.zlib temp files left) 2007-05-08 12:08:17 +00:00
Ilia Alshanetsky 420352d8b5 Register RAW_POST_DATA even when always_populate_raw_post_data is off in
instances where content type is not known
2007-05-07 23:27:59 +00:00
Antony Dovgal c25a2f6cd2 fix tests (add precision) 2007-05-07 22:41:30 +00:00
Antony Dovgal 3a46e8ab1f fix tests 2007-05-07 22:30:16 +00:00
Antony Dovgal 56a27267f3 fix tests 2007-05-07 22:10:14 +00:00
Antony Dovgal c2c4fe75e1 fix test 2007-05-07 21:38:42 +00:00
Ilia Alshanetsky 9b661ea62e Fixed SOAP tests and added additional tests to ensure processing POST data
works based on server001.phpt
2007-05-07 18:45:03 +00:00
Ilia Alshanetsky 146a600711 Added support for --GZIP_POST-- and --DEFLATE_POST-- that allows emulation
of compressed POST input
2007-05-07 18:40:33 +00:00
Antony Dovgal 1f65545121 fix test names 2007-05-07 18:03:01 +00:00
Antony Dovgal b64823deb7 fix test names 2007-05-07 17:54:12 +00:00
Nuno Lopes 877b7c7ea7 fix test title 2007-05-07 15:23:53 +00:00
Pierre Joye 4a8e75b990 - MFH: fix build when use with a museum freetype version (1.x) 2007-05-07 14:54:36 +00:00
Antony Dovgal fa14b60e68 add 64bit version of the tests 2007-05-07 14:00:40 +00:00
Antony Dovgal 8f70937bec fix tests 2007-05-07 12:09:14 +00:00
Antony Dovgal f0dbacb715 fix test 2007-05-07 08:25:12 +00:00
Ilia Alshanetsky 0a63bd4d0b Allow SOAP extension's handler() to work even when
always_populate_raw_post_data is off.

# Tests will be updated in the next few days
2007-05-06 17:21:13 +00:00
Ilia Alshanetsky f932fe5ad4 Fixed bug #41293 (Fixed creation of HTTP_RAW_POST_DATA when there is no
default post handler).
2007-05-06 16:34:14 +00:00
Ilia Alshanetsky 636806a869 Added HTTP_RAW_POST_DATA test for instances where post length exceeds
post_max_size.
2007-05-06 16:30:09 +00:00
Ilia Alshanetsky 468dc98961 Added $HTTP_RAW_POST_DATA test 2007-05-06 16:26:11 +00:00
Ilia Alshanetsky accdf2c64c Clarify bug fix details 2007-05-06 15:37:07 +00:00
Hannes Magnusson 448dbac84f MFH: Fixed PHP CLI to use the php.ini from the binary location 2007-05-06 14:01:26 +00:00
Hannes Magnusson 1d2c53b249 Fix test 2007-05-06 13:11:31 +00:00
Johannes Schlüter 9edf1dc617 - MFH: Fix build without reflection 2007-05-06 12:57:50 +00:00
Antony Dovgal 3000c0be66 fix tests, add more 2007-05-05 21:44:52 +00:00
foobar 0d5a13ddda MFH 2007-05-05 19:26:39 +00:00
Marcus Boerger 3cd6bc54bc - MFH --ri does not require ext/Reflection
- MFH --ini to show ini files being used
2007-05-05 16:21:07 +00:00
Ilia Alshanetsky 502d68e1e7 Fixed bug #41285 (Improved fix for CVE-2007-1887 to work with non-bundled
sqlite2 lib).
2007-05-05 15:36:15 +00:00
Ilia Alshanetsky c70105610a Fixed bug #41283 (Bug with serializing array key that are doubles or
floats).
2007-05-05 15:14:56 +00:00
Antony Dovgal 9fd3c30f94 MFH 2007-05-04 22:32:57 +00:00
foobar 3f6cb452ee MFH:- Prevent bugs like #41265 being submitted from now on. 2007-05-04 21:57:47 +00:00
Rob Richards cde4621907 BFN 2007-05-04 20:18:51 +00:00
Rob Richards 78ccf4e0c2 Fix bug #41287 (Namespace functions don't allow xmlns to be optional)
add test
2007-05-04 20:16:39 +00:00
Rob Richards 3585581412 BFN 2007-05-04 19:32:53 +00:00
Rob Richards 24434e7ba2 fix bug #41257 (lookupNamespaceURI does not work as expected)
fix related issue in isDefaultNamespace
add test
reconcile namespaces when setting attribute in a new namespace
2007-05-04 19:30:59 +00:00
Edin Kadribasic 567c9daeae Update Apache 2 libs to 2.0.59 on the build box and standardize the dirs 2007-05-04 18:17:55 +00:00
Nuno Lopes b8fbcae5b3 get ride of warnings (different signdess) 2007-05-04 17:11:05 +00:00
Antony Dovgal b1b4b0a6a7 fix comments 2007-05-04 16:19:57 +00:00
Antony Dovgal 3f8c011a9a add tests 2007-05-04 12:46:18 +00:00
Antony Dovgal dadbd426c4 MFH 2007-05-04 11:30:37 +00:00
Antony Dovgal 803e6f5887 MFH 2007-05-04 09:05:32 +00:00
Antony Dovgal 1d6fea0e55 MFH 2007-05-04 08:27:33 +00:00
Dmitry Stogov 97b338afe5 - Fixed bug #41097 (ext/soap returning associative array as indexed without
using WSDL).
- Fixed bug #41004 (minOccurs="0" and null class member variable).
2007-05-04 06:19:34 +00:00
Dmitry Stogov d8ce0568ef Fixed altering $this via argument named "this" 2007-05-04 06:18:53 +00:00
Ilia Alshanetsky cd32cab680 Fixed ext/filter Email Validation Vulnerability
(MOPB-24 by Stefan Esser)
2007-05-03 23:38:27 +00:00
Johannes Schlüter f50ec4ea53 - MFH: Fix skipif 2007-05-03 12:44:48 +00:00
Antony Dovgal 0a92fdba8a improve test 2007-05-03 12:10:11 +00:00
Edin Kadribasic ee593ef3b1 Fix Windows Build 2007-05-03 04:16:32 +00:00
Ilia Alshanetsky a64c73121d Back to dev 2007-05-03 01:16:50 +00:00
Ilia Alshanetsky 0f474f9474 5.2.2 2007-05-02 23:05:14 +00:00
Dmitry Stogov df61bae636 Reverted the following fixed because of php-5.2.2 release process
- Fixed altering $this via argument named "this".
- Fixed bug #41097 (ext/soap returning associative array as indexed without
  using WSDL).
- Fixed bug #41004 (minOccurs="0" and null class member variable).
2007-05-02 17:24:16 +00:00
Antony Dovgal fca80f63fb add SKIPIF section 2007-05-02 15:41:22 +00:00
Antony Dovgal e03eadf633 MFH: add USE_ZEND_ALLOC env var 2007-05-02 15:41:06 +00:00
Dmitry Stogov 688cc5039a Fixed altering $this via argument named "this" 2007-05-02 13:21:55 +00:00
Dmitry Stogov c327dec913 Fixed bug #41192 (Per Directory Values only work for one key) 2007-05-02 10:16:34 +00:00
Dmitry Stogov 101a0f08ce Fixed bug #41004 (minOccurs="0" and null class member variable) 2007-05-02 09:38:12 +00:00
Dmitry Stogov 4b7999cd0b New test 2007-05-02 08:35:17 +00:00
Dmitry Stogov 3721cb9d8d Fixed bug #41097 (ext/soap returning associative array as indexed without using WSDL) 2007-05-02 08:22:13 +00:00
Dmitry Stogov f409fcd02a Fixed test 2007-05-02 07:27:36 +00:00
Ilia Alshanetsky 01b0f9d44d Removed completed TODO items 2007-05-01 23:04:30 +00:00
Derick Rethans 047ccbc0c2 - MFH: Added test case for bug #41252. 2007-05-01 16:04:33 +00:00
Ilia Alshanetsky e0cab44595 Remove quotes 2007-05-01 00:05:39 +00:00
Antony Dovgal 96964359af MFH: initialize optional params 2007-04-30 21:40:02 +00:00
Johannes Schlüter c52e519bc0 BFN 2007-04-30 20:01:16 +00:00
Johannes Schlüter e181e3ac7b - MFH Fix "f" modifier for zend_parse_parameters_ex in case of a __call call
# only affects iterator_apply() in 5_2 branch
2007-04-30 19:54:41 +00:00
Edin Kadribasic 618e172ec8 Sync correctly with configure.in 2007-04-30 16:18:06 +00:00
Edin Kadribasic 7bcf3ef165 Sync with zlib 2007-04-29 17:47:31 +00:00
Ilia Alshanetsky 7810fc89fa Fixed bug #41215 (setAttribute return code reversed). 2007-04-29 14:47:34 +00:00
foobar e878249669 typofix..and exactly HOW or WHAT in commandline handling was fixed? 2007-04-29 00:45:23 +00:00
foobar 1d7d3a4307 - Updated credits 2007-04-29 00:43:11 +00:00
Antony Dovgal c3b9d939e0 add new tests 2007-04-28 11:59:08 +00:00
Antony Dovgal 70e6d3d042 add new tests 2007-04-27 21:33:02 +00:00
Edin Kadribasic 9b1de77959 Sync with configure.in 2007-04-27 20:54:47 +00:00
Antony Dovgal a6cd2b4cec MFH: improve the tests 2007-04-27 11:43:45 +00:00
Antony Dovgal de4f3007e2 MFH: initialize retval_ptr_ptr before returning FAILURE
this fixes invalid read in #41209
2007-04-27 08:12:24 +00:00
Uwe Schindler 88bef568da MFH: Fix crash on server startup when log message is printed 2007-04-27 00:29:26 +00:00
Antony Dovgal 66859a74de fix tests 2007-04-26 23:30:00 +00:00
Antony Dovgal ef32c956f7 MFH 2007-04-26 23:13:25 +00:00
Ilia Alshanetsky bd7e78c48b Back to dev 2007-04-26 22:44:53 +00:00
Ilia Alshanetsky cc8ea13d5b 5.2.2RC2 2007-04-26 22:39:10 +00:00
Antony Dovgal 3c6d2617e7 MFH: fix build on Tru64 2007-04-26 19:08:58 +00:00
Antony Dovgal 3e7b4e5d1a MFH: add test & GMP_VERSION constant
do not allow zero operand in gmp_divexact()
2007-04-26 13:44:02 +00:00
Dmitry Stogov 69cfe50f74 Prevent double close() of the same file handle 2007-04-26 12:52:58 +00:00
Ilia Alshanetsky 6a6ae2f713 Update TODO: filter extension was added 2007-04-25 18:22:43 +00:00
Dmitry Stogov 4bd17132b1 ZTS fix 2007-04-25 14:18:01 +00:00
Antony Dovgal 41896020ea fix ZTS build 2007-04-25 11:05:16 +00:00
Hannes Magnusson 42170968cf MFH: php --ri main 2007-04-25 09:56:29 +00:00
Dmitry Stogov 8464abe22e Fixed crashes because of SAPI handlers overrding from inside of dl()-ed extensions 2007-04-25 08:40:07 +00:00
Ilia Alshanetsky af7a7a4e36 Fixed error message to reflect the check 2007-04-24 14:11:28 +00:00
Ilia Alshanetsky bc9f8f582c Fixed bug #41175 (addAttribute() fails to add an attribute with an empty
value).
2007-04-24 13:54:59 +00:00
foobar c8925ba493 - fix compile warning 2007-04-24 12:51:22 +00:00
Johannes Schlüter 3d7dd44ceb - MFH: Add my name (sync to CREDITS file) 2007-04-23 20:54:22 +00:00
Hannes Magnusson 5eb0037584 MFH: Plug leak when trying to write via the http wrapper 2007-04-23 16:37:28 +00:00
Ilia Alshanetsky 0e9abe13d1 Bug fixing news 2007-04-23 15:23:37 +00:00
Scott MacVicar 65408b1520 MFH: Fixed bug #40130 (TTF usage doesn't work properly under Netware). 2007-04-23 15:17:47 +00:00
Antony Dovgal b316a030aa MFH: add CURLOPT_FTP_CREATE_MISSING_DIRS 2007-04-23 14:36:56 +00:00
Ilia Alshanetsky cde610e5f0 Order by bug id 2007-04-23 14:17:52 +00:00
Antony Dovgal ea7f23b053 MFH 2007-04-23 11:19:15 +00:00
Antony Dovgal a10cd19d05 MFH: fix long options 2007-04-23 11:05:16 +00:00
Antony Dovgal 6a73be6329 fix folding 2007-04-23 10:05:33 +00:00
Dmitry Stogov 2a689a4267 64-bit support 2007-04-23 09:56:56 +00:00
Dmitry Stogov b1aea75ac1 WIN64 support 2007-04-23 09:56:30 +00:00
Antony Dovgal 5340a509f4 revert 2007-04-23 09:32:44 +00:00
Antony Dovgal a06d3b7bf3 revert 2007-04-23 09:27:07 +00:00
Antony Dovgal ba5798cb4d BFN 2007-04-22 21:33:32 +00:00
Antony Dovgal f6cef916bc MFH: fix #41118 (PHP does not handle overflow of octal integers) 2007-04-22 21:33:10 +00:00
Marcus Boerger e910699347 - MFH Update docu 2007-04-22 17:13:52 +00:00
Marcus Boerger d82779ec26 - BFN 2007-04-22 15:33:43 +00:00
Marcus Boerger f62d5c9adf - MFH getopt fixes 2007-04-22 15:31:16 +00:00
Ilia Alshanetsky 0369b693b4 Fixed bug #41159 (mysql_pconnect() hash does not account for connect
flags).
2007-04-22 15:19:08 +00:00
Dmitry Stogov 6a8b3db8bc Fixed buffer overflow 2007-04-22 10:25:18 +00:00
Dmitry Stogov 1f8f38e653 Fixed test 2007-04-22 08:37:38 +00:00
Antony Dovgal d66080d6f0 make this test 32bit only 2007-04-20 16:14:37 +00:00
Nuno Lopes 0f99cf14c1 fix gcov build 2007-04-20 14:51:16 +00:00
Nuno Lopes b6fac40b3a update install instructions (auto-generated from phpdoc XML sources) 2007-04-20 14:13:47 +00:00
Antony Dovgal cb81428054 apply correct fix 2007-04-20 10:16:46 +00:00
Antony Dovgal 8deb6294ec fix test 2007-04-20 10:15:04 +00:00
Antony Dovgal 60e1a548ff new test 2007-04-20 09:17:46 +00:00
Antony Dovgal d5dc7cbf63 MFH 2007-04-20 08:18:42 +00:00
Antony Dovgal 157ba803c6 fix test 2007-04-20 08:00:52 +00:00
Antony Dovgal 18af8baa44 MFH 2007-04-20 07:55:21 +00:00
Ilia Alshanetsky c34806e145 Fixed bug #41121 (range() overflow handling for large numbers on 32bit
machines).
2007-04-19 23:21:22 +00:00
Andrey Hristov 73da9ea31d Hmm, the right place to edit 2007-04-19 09:49:28 +00:00
Andrey Hristov 0a9360b16c Update credits 2007-04-19 09:46:54 +00:00
Antony Dovgal 9ad2c80c62 fix double-to-string conversion utils 2007-04-19 09:30:49 +00:00
Dmitry Stogov 52a9667c3a Fixed tests 2007-04-19 07:00:41 +00:00
Sascha Schumann 73cc55a070 - fix vpath build 2007-04-19 06:42:28 +00:00
Ilia Alshanetsky 111df261a5 Upgraded SQLite 3 to version 3.3.16 2007-04-18 22:53:46 +00:00
Antony Dovgal 6a0efe0b7d new tests for ext/gmp 2007-04-18 21:04:21 +00:00
Antony Dovgal 8aa441b9b8 MFH 2007-04-18 20:53:28 +00:00
Antony Dovgal efcb227198 MFH 2007-04-18 20:36:54 +00:00
Dmitry Stogov b2785c3d4c Fixed tests (win32) 2007-04-18 14:51:29 +00:00
Dmitry Stogov 41d27878de Fixed crash on win32 in case of negative size 2007-04-18 14:23:06 +00:00
Dmitry Stogov 02ee91dbb4 Fixed crash 2007-04-18 13:53:19 +00:00
Dmitry Stogov 72e7bfdedf Fixed endless loop in open_basedir check 2007-04-18 11:58:40 +00:00
Antony Dovgal 93dd417180 update to reflect current status 2007-04-18 10:58:41 +00:00
Rob Richards b6b312c020 add file locking under windows
change win build to use common clock compat files
2007-04-18 09:38:59 +00:00
Antony Dovgal bb489851e9 win32 test fixes 2007-04-18 08:06:29 +00:00
Dmitry Stogov 1d56aa095a Fixed tests (win32) 2007-04-18 07:55:52 +00:00
Antony Dovgal 16129b7024 MFH: fix putenv("var") (i.e. unset) on BSD systems
add test
2007-04-17 20:34:14 +00:00
Antony Dovgal 695e81c2cc fix test 2007-04-17 20:17:25 +00:00
foobar 4f54b301ef - Fix a possible leak when multiple -c parameters are used 2007-04-17 20:00:53 +00:00
Antony Dovgal 1668daa621 add .cvsignore 2007-04-17 20:00:03 +00:00
Antony Dovgal a0370cd797 add tests for CGI 2007-04-17 19:49:26 +00:00
foobar 75d8d28e71 - Fix a possible leak when multiple -c parameters are used 2007-04-17 19:46:13 +00:00
Antony Dovgal 44066f23b7 MFH: fix leak appearing when more than one -f option specified 2007-04-17 18:51:34 +00:00
Antony Dovgal 9ab23a7e53 fix leaks in row_get_properties()
thanks to Kellen Bombardier for noticing
2007-04-17 17:00:16 +00:00
Hannes Magnusson 8edb601981 Fix proto 2007-04-17 15:44:23 +00:00
Pierre Joye 8eb8ae051b - INFO_EX not INFO 2007-04-17 15:39:19 +00:00
Pierre Joye 2f4c6acfc8 - imagegrab* entry 2007-04-17 15:33:57 +00:00
Pierre Joye 569e8596af - MFH: add imagegrabwindow and imagegrabscreen (win32 only) [DOC]
capture a window using its handle or a full screen
2007-04-17 15:31:45 +00:00
Ilia Alshanetsky 1e0f6fe5bb Separate parm zval. 2007-04-17 15:29:13 +00:00
Ilia Alshanetsky 843d0d58a0 Fixed bug #41093 (magic_quotes_gpc ignores first arrays keys). 2007-04-17 15:06:50 +00:00
Marcus Boerger 170af7e861 - MFH Fix #41109: recursiveiterator.inc says 'implements' Iterator instead of 'extends' 2007-04-17 06:33:50 +00:00
Dmitry Stogov c60eee7046 typo 2007-04-17 06:26:32 +00:00
Ilia Alshanetsky 8b245e5aaf Fixed bug #41067 (json_encode() problem with UTF-16 input). 2007-04-16 22:31:05 +00:00
foobar 8f845b705b - Updated bundled shtool to 2.0.6 and added "platform" command in it. 2007-04-16 20:49:33 +00:00
Antony Dovgal 7a6e0a1dd2 fix test 2007-04-16 09:11:10 +00:00
Antony Dovgal e83f375c2f fix test 2007-04-16 08:14:33 +00:00
Dmitry Stogov e1814f0dbe WIN64 support 2007-04-16 08:09:56 +00:00
Brian Shire f088268f91 fix fold typo 2007-04-16 02:25:24 +00:00
foobar 2fe7267d53 MFH: Simplify previous patch. 2007-04-15 23:06:08 +00:00
foobar a40b6f5c4f - Allow using syntax highlighting under FastCGI mode. 2007-04-15 22:52:07 +00:00
foobar c71b1401ff - Synch these files from sapi/cli/ and allow using s.c. long-options
with CGI.
2007-04-15 22:50:58 +00:00
Ilia Alshanetsky 2f3e330ad0 Fixed bug #40935 (pdo_mysql does not raise an exception on empty
fetchAll()).
2007-04-15 16:50:42 +00:00
Pierre Joye 42429cadea - add reference to the initial report (helps the packager) 2007-04-14 17:39:13 +00:00
Pierre Joye ffaaaa4df0 - MFH: libgd #74, gdImageFilledArc, huge CPU usage with large angles 2007-04-14 17:33:15 +00:00
Marcus Boerger a4bf33f02d - MFH Fix warning 2007-04-14 11:15:13 +00:00
Antony Dovgal 85fe8e9663 MFH 2007-04-14 10:35:05 +00:00
Antony Dovgal 07435262b9 MFH: fix #41083 (mysql_ping() requires MYSQL_OPT_RECONNECT to be set since MySQL 5.0.13) 2007-04-14 10:19:19 +00:00
Andrei Zmievski b62d120580 Fix processing of control characters; they should be escaped as \u
sequences.
2007-04-13 21:34:12 +00:00
Derick Rethans bcd72ca5a3 - Updated timezone database to version 2007.5. (Derick) 2007-04-13 14:51:40 +00:00
Antony Dovgal 7d92fba759 BFN 2007-04-13 14:41:57 +00:00
Antony Dovgal bb0def99a8 fix #41075 (memleak when creating default object caused exception) 2007-04-13 14:41:36 +00:00
Derick Rethans 35d5a196bd - Fixed bug #39416 (Milliseconds in date()). 2007-04-13 14:09:20 +00:00
Antony Dovgal d3df2eb468 add new test 2007-04-13 13:37:17 +00:00
Antony Dovgal 61a3b763d8 fix tests 2007-04-13 12:29:32 +00:00
Derick Rethans 2e18eb3858 - Fixed bug #39965 (Latitude and longitude are backwards in date_sun_info()). 2007-04-13 08:33:48 +00:00
Derick Rethans d62dca3d48 - Fixed bug #40290 (strtotime() returns unexpected result with particular
timezone offset).
2007-04-13 08:11:07 +00:00
Brian Shire e7d68b8373 reverting incorrect changes to pack test
# only a problem on darwin, latest gcc-4.2 branch works as expected.
2007-04-13 02:15:07 +00:00
Antony Dovgal 73aa351741 MFH: add support for %I64(u|d) to sprintf() utilities 2007-04-12 22:01:20 +00:00
Ilia Alshanetsky a133297c86 Fixed bug #41034 (json_encode() ignores null byte started keys in arrays) 2007-04-12 19:40:38 +00:00
Johannes Schlüter bbcd8c5b69 - Fix bug #41061 ("visibility error" in ReflectionFunction::export()) 2007-04-12 18:39:46 +00:00
Dmitry Stogov 9f2022743b Fixed bug #41063 (chdir doesn't like root paths). 2007-04-12 15:28:58 +00:00
Antony Dovgal d1a190beea MFH 2007-04-12 12:31:39 +00:00
Antony Dovgal c668dc0a26 add missing SKIPIF sections 2007-04-12 12:29:48 +00:00
Antony Dovgal 9788d96b0c add new test 2007-04-12 12:23:30 +00:00
Antony Dovgal ad9b50ae1f MFH 2007-04-12 10:25:15 +00:00
Antony Dovgal 8d20caa848 minor improvement 2007-04-11 22:34:48 +00:00
Antony Dovgal e972fc1797 improve test 2007-04-11 22:29:53 +00:00
Ilia Alshanetsky 9ba1328702 Don't define KEY_END twice 2007-04-11 22:19:11 +00:00
Georg Richter ebdffa5ed9 added support for HOME and END key 2007-04-11 18:37:15 +00:00
Antony Dovgal a8c1bb45b4 MFH 2007-04-11 16:03:06 +00:00
Derick Rethans b15cbf69c6 - MFH: Fixed bug #40861 (strtotime() doesn't handle double negative relative
time units correctly).
2007-04-11 14:37:42 +00:00
Pierre Joye 737a66e83c - add HAVE_GD_FONTCACHESHUTDOWN to w32 build script (always here) 2007-04-11 11:44:20 +00:00
Ilia Alshanetsky 9005e996f1 Back to dev 2007-04-10 22:38:47 +00:00
Ilia Alshanetsky ba5e5fe4ed 5.2.2RC1 2007-04-10 22:31:16 +00:00
Antony Dovgal 19aa4a932f fix #40931 (open_basedir bypass via symlink and move_uploaded_file()) 2007-04-10 22:30:07 +00:00
Antony Dovgal e145f1aa2a skip test if openssl is present 2007-04-10 21:38:20 +00:00
Antony Dovgal 5f48fbb4da skip this test on MacOS 2007-04-10 21:20:44 +00:00
Antony Dovgal 903155d504 fix test name 2007-04-10 21:16:56 +00:00
Antony Dovgal ab84306fc7 fix #41043 (pdo_oci crash when freeing error text with persistent connection) 2007-04-10 20:28:49 +00:00
Marcus Boerger 5447fca028 - WS/CS 2007-04-10 15:56:31 +00:00
Marcus Boerger b15d742639 - Cleanup the cleanup 2007-04-10 15:50:34 +00:00
Antony Dovgal cf440194b0 declare THREADSAFE explicitly (it's On if undefined) 2007-04-10 11:32:48 +00:00
foobar 26761c4222 - Fixed ZEND_SIGNED_MULTIPLY_LONG() so that ext/filter/tests/046.phpt wont fail. (Integer overflow) 2007-04-10 10:57:35 +00:00
Antony Dovgal 3aaf8bbdb7 fix test 2007-04-10 10:49:16 +00:00
Antony Dovgal 562f886ecb MFH: fix #41037 (unregister_tick_function() inside the tick function crash PHP) 2007-04-10 09:37:09 +00:00
Dmitry Stogov 08daab9d1c Initial WIN64 support 2007-04-10 06:22:28 +00:00
Antony Dovgal c61cbbdc9f fix folding tags 2007-04-09 21:19:38 +00:00
foobar 191b843a02 Fix test 2007-04-09 20:07:25 +00:00
Ilia Alshanetsky eb8d30f912 Upgrade libsqlite 3 inside PDO sqlite to version 3.3.15 2007-04-09 16:35:11 +00:00
Dmitry Stogov 857f992cd3 Removed wrong size_t definition 2007-04-09 15:39:59 +00:00
Dmitry Stogov 4de76f02ea Fixed 64-bit support 2007-04-09 15:38:58 +00:00
Dmitry Stogov 1b01048cd8 Fixed 64-bit issues 2007-04-09 15:32:35 +00:00
Dmitry Stogov 6c394c8b38 ZTS fix 2007-04-09 15:32:08 +00:00
Antony Dovgal 383c7fe437 BFN 2007-04-09 07:30:26 +00:00
Antony Dovgal b2e2994a6e fix #41026 (segfault when calling "self::method()" in shutdown functions) 2007-04-09 07:30:09 +00:00
Ilia Alshanetsky 65afdf097c Fixed bug #40822 (pdo_mysql does not return rowCount() on select). 2007-04-08 15:26:21 +00:00
Johannes Schlüter 8591b20d4e - MFH: Added linenumbers to array returned by token_get_all() 2007-04-08 00:18:38 +00:00
Antony Dovgal d428314e2d MFB: clean & refactored disk_*() funcs implementation
Ilia, feel free to make these functions public, though I don't see why would want to do that
2007-04-06 22:10:56 +00:00
Antony Dovgal f2f885c023 fix test 2007-04-06 19:35:12 +00:00
Andrei Zmievski da4ba85cb4 We can't use the printf attribute here since we are supporting
non-standard formats (like 'F').
2007-04-06 19:25:52 +00:00
Andrei Zmievski fb2def7d97 Apologies. Didn't realize we were using custom snprintf(). 2007-04-06 18:27:58 +00:00
Andrei Zmievski 8a1f346162 Typo? 2007-04-06 18:25:49 +00:00
Marcus Boerger 515f4f6e6f - Fix 40442 2007-04-06 17:57:10 +00:00
Marcus Boerger 0ec117146e - Add bug name 2007-04-06 17:54:22 +00:00
Marcus Boerger b08cfa8833 - Better fix for #40091 2007-04-06 16:00:08 +00:00
Pierre Joye 17eaaea1f7 - Fix windows mutex intialization, add HAVE_GD_FONTMUTEX and HAVE_LIBFREETYPE
to config.w32 (Thanks to Frank for the report)
2007-04-06 15:38:35 +00:00
Marcus Boerger 63d8f70206 - Fix #40442 2007-04-06 15:32:30 +00:00
Ilia Alshanetsky aa18505f34 Avoid locks when appening to the error log file 2007-04-06 13:58:48 +00:00
Ilia Alshanetsky d9adb6715f Fixed foreach by-ref bug.
# Patch from Brian Shire
2007-04-05 23:48:43 +00:00
Marcus Boerger 9c5ea420ac - MFH zend_info_call_*() stuff, fixes coverity issue #328, noticed by tony 2007-04-05 19:49:42 +00:00
Rob Richards 3530b8a2c6 fix win32 build 2007-04-05 18:08:42 +00:00
Pierre Joye 12b66657d7 - reflect the "real" version to avoid confusions. Users should really use
only the bundled version
2007-04-05 11:57:57 +00:00
Pierre Joye e3bc12631b - MFB: import the right data 005_crt.txt 2007-04-05 09:38:45 +00:00
Antony Dovgal 70cd86420b MFH: fix build 2007-04-05 09:33:10 +00:00
Pierre Joye 1ace1904e4 - MFH: add missing data for 005.phpt 2007-04-05 09:00:07 +00:00
Antony Dovgal e0318e21fb fix test 2007-04-05 07:23:56 +00:00
Antony Dovgal 90a277d0ce fix ZTS build 2007-04-05 07:10:07 +00:00
Ilia Alshanetsky ed0f0e4a67 Fixed bug #40999 (mcrypt_create_iv() not using random seed). 2007-04-05 01:48:56 +00:00
Pierre Joye 6e5875b025 - nuke c++ comments 2007-04-04 22:00:51 +00:00
Pierre Joye b7fde2caa7 - #39867 and openssl MB fix 2007-04-04 21:27:55 +00:00
Pierre Joye d4fb0108bc - implement #39867, PKCS#12 support
- Fix possible multibyte issues issue in the add_assoc function
- add test for openssl_csr_get_subject
2007-04-04 21:24:01 +00:00
Pierre Joye 2a2fd69fbf - filter and gd entries 2007-04-04 21:01:51 +00:00
Pierre Joye 2caba30962 - #40947, allow a single filter as argument for filter_var_array 2007-04-04 20:50:26 +00:00
Antony Dovgal 39f9184fa6 MFH: fix #40998 (long session array keys are truncated) 2007-04-04 19:52:19 +00:00
Seiji Masugata febad95f3f Sync with mail function in mb_send_mail function(problem MOPB-33-2007:PHP and MOPB-34-2007:PHP). 2007-04-04 15:25:41 +00:00
Nuno Lopes 5833fc40dc fix race condition on font cache shutdown 2007-04-04 14:24:03 +00:00
Pierre Joye 539be2cc81 - do not try to use the global color map when none was found (Nuno, Pierre)
- free im on error
2007-04-04 11:40:11 +00:00
Antony Dovgal e07b83afb2 MFH: fix leak on error 2007-04-04 10:44:55 +00:00
Pierre Joye 89ad25f1af - MFH: don't declare MSHUTDOWN if both cachesetup and t1lib are not used 2007-04-04 01:58:24 +00:00
Pierre Joye e4749c609c - Sync with gd 2.0.35 (bug #52, #60 and #66)
- Improve TS of gif loading code (Roman Nemecek, Nuno, Pierre)
 - a frame size must be confined to the screen defition (Pierre)
 - be sure to always read the dimensions in the frame and does not use
   the screen size (see #66 for a side effect) (Pierre)
- Update #37360 test. The frame does not fit the logical screen (specs
  tell that it must fit) (Pierre)
2007-04-04 01:34:50 +00:00
Pierre Joye 6ef9642b16 - MFH:
- remove double lock (tween colors cache is created in each thread, the
   cache mutex is already locked earlier)
 - #40858, other TS improvements for gd freetype cache management
   cache initialization and shutdown is now done in MINIT and MSHUTDOWN.
2007-04-04 00:47:55 +00:00
Ilia Alshanetsky 17c0c49a54 Addres limitation of __HALT_COMPILER() that allowed only one instance
per request.

# Patch by Greg Beaver
2007-04-04 00:42:42 +00:00
Pierre Joye a9ca51ff1a . colors allocated henceforth from the resulting image overwrite
the palette colors (sync with 2.0.34) (Rob Leslie)
2007-04-04 00:30:18 +00:00
Antony Dovgal 0c168b643c BFN 2007-04-03 20:21:20 +00:00
Antony Dovgal eb25e82249 MFH: fix #39351 (relative include fails on Solaris) 2007-04-03 20:20:56 +00:00
Brian Shire bd4add59f7 correction for previous fix to bug #38770 (pack/unpack is broken on 64bit)
fix pack test, correct space to tabs
2007-04-03 19:50:40 +00:00
Rob Richards 0291924222 allow registered classes to be changed 2007-04-03 11:57:04 +00:00
Ilia Alshanetsky ba4089ac41 Fixed typos 2007-04-02 21:35:46 +00:00
Stanislav Malyshev 67cdb4927b fix #33664 2007-04-02 20:51:12 +00:00
Stanislav Malyshev 8f0d69159e fix for #33664 Console window appears when using exec() 2007-04-02 20:44:30 +00:00
foobar 3da21dc6fc - 64bit test 2007-04-02 15:09:37 +00:00
foobar bb0547029a - Make this 32bit only test. (will add 64bit version next) 2007-04-02 15:02:02 +00:00
Dmitry Stogov 36c6ad915b Fixed bug #37013 (server hangs when returning circular object references) 2007-04-02 13:43:08 +00:00
foobar 2429299507 - Changed phpinfo() to make difference between set php.ini path and what was actually loaded. 2007-04-02 12:41:07 +00:00
Dmitry Stogov 77a8b0be35 Fixed test 2007-04-02 11:44:40 +00:00
Ilia Alshanetsky 642432a5de Fixed bug #40897 (error_log file not locked) 2007-04-01 19:29:42 +00:00
Ilia Alshanetsky f80afa623d Fixed bug #40921 (php_default_post_reader crashes when post_max_size is
exceeded).
2007-04-01 19:09:36 +00:00
Dmitry Stogov 99c5cebab3 new test 2007-03-30 10:10:33 +00:00
Ilia Alshanetsky 86ca439a5d Fixed MOPB-34-2007:PHP mail() Header Injection Through Subject and To
Parameters
2007-03-30 00:28:58 +00:00
Sara Golemon 52b07d1895 Add missing #if check 2007-03-29 18:47:04 +00:00
Antony Dovgal 9de5929efa add news entry
+ minor text fixes
2007-03-29 09:33:50 +00:00
Antony Dovgal 26cf62d293 MFH: fix PECL bug #10194 (crash in Oracle client when memory limit reached in the callback)
preallocate the required buffer, so that it would fail earlier.
2007-03-29 09:33:04 +00:00
Dmitry Stogov 4a119f9a79 Improved FastCGI SAPI to support external pipe and socket servers on win32 2007-03-28 15:39:22 +00:00
foobar 1c36d38891 - Fix test: Some people actually use --enable-debug here.. 2007-03-28 12:25:33 +00:00
Zoe Slattery c18d3b56e7 new ltrim, rtrim and str_pad tests 2007-03-28 10:44:04 +00:00
Antony Dovgal 859c3c22d9 add .cvsignore 2007-03-28 10:10:04 +00:00
Antony Dovgal 481609c980 MFH: fix #40392 (memory leaks in PHP milter SAPI) 2007-03-28 10:08:31 +00:00
Zoe Slattery 517865fb6e New tests for printf and ucfirst 2007-03-28 09:38:30 +00:00
Antony Dovgal 291f3a28c9 MFH: fix compile warning 2007-03-28 09:14:08 +00:00
Zoe Slattery 23d64aeaa4 Three new string tests for funtions strcasecmp, strcmp and strlen. 2007-03-28 09:08:08 +00:00
Marcus Boerger acf92f283a - MFH Allow to load multipe extensions via -d 2007-03-27 20:28:06 +00:00
Antony Dovgal 2c06cea75b MFH: fix compile warning 2007-03-27 09:29:10 +00:00
Antony Dovgal b9bffbe019 fix compile warning 2007-03-27 09:20:27 +00:00
Ilia Alshanetsky ae1c5674cb Fixed MOPB-33-2007:PHP mail() Message ASCIIZ Byte Truncation 2007-03-27 00:13:09 +00:00
Rob Richards c0cd876a7f BFN 2007-03-26 20:17:30 +00:00
Rob Richards b7c2eb3228 fix bug #37386 (autocreating element doesn't assign value to first node)
all single SimpleXMLElements are addressable using offset 0
use correct node for xpath context node
add test
2007-03-26 20:14:58 +00:00
Antony Dovgal 7053b89072 MFH: fix #40915 (addcslashes unexpected behavior with binary input) 2007-03-26 10:25:41 +00:00
Marcus Boerger 4e085083cd - MFH Need to install headers 2007-03-25 12:53:47 +00:00
Hannes Magnusson d677506541 Typo 2007-03-25 11:47:27 +00:00
foobar f5d9f9cd27 - Check if Makefile.frag actually exists before running sed on it. 2007-03-25 10:21:02 +00:00
foobar 82023f9aac - Fixed test to skip when mysqld is not running 2007-03-25 01:14:51 +00:00
Marcus Boerger eceb7faee0 - MFH Drop double variable declaration 2007-03-24 16:28:53 +00:00
Ilia Alshanetsky bc1f7356d7 Fixed CRLF injection inside ftp_putcmd().
# Reported on BugTraq by loveshell[at]Bug.Center.Team
2007-03-24 16:25:42 +00:00
Nuno Lopes 88f48476f9 regenerate to fix gcov build. plus use re2c bitvectors 2007-03-23 20:28:40 +00:00
Stanislav Malyshev 10f7bb95e8 fix MOPB-29 - unserialize modifier S does not calculate length correctly 2007-03-23 20:22:52 +00:00
Stanislav Malyshev 0af75d6b1a fix MOPB-29 - unserialize modifier S does not calculate length correctly
# reported by Stefan Esser
2007-03-23 20:15:22 +00:00
Stanislav Malyshev 008259dba8 fix comment - guard system changed 2007-03-23 17:16:55 +00:00
Wez Furlong cbb0db124b export the module guy in the external dll version of the build 2007-03-23 14:30:00 +00:00
Dmitry Stogov 6458e42496 Fixed bug #40899 (memory leak when nesting list()) 2007-03-23 12:46:16 +00:00
Dmitry Stogov 2dd2ac6d50 Fixed bug #40883 (mysql_query() is allocating memory incorrectly). (Tony) 2007-03-23 07:59:26 +00:00
Ilia Alshanetsky 57a88f71d5 Added -- test case 2007-03-22 23:34:14 +00:00
Douglas Goldstein 4b39efa0ee Replaced all instances of ldap_get_values() with ldap_get_values_len(), which returns back the length of the data so on non-NULL terminated data we don't crash in a strlen(). Removed the PHP function ldap_get_values() since it's the same thing as ldap_get_values_len() now and made it alias ldap_get_values_len(). This should fix some random PHP<->LDAP crashes 2007-03-22 21:50:34 +00:00
Johannes Schlüter d95939d566 - MFH: Fix handling of not existing long CLI options 2007-03-22 21:35:41 +00:00
Wez Furlong 76329a99f0 Add php_pdo_sqlite_external.dll to windows build.
This allows the user to provide their own version of sqlite3.dll.
The php_pdo_sqlite.dll is still there, and will continue to be there.
It is built from the bundled sources.
[[DOC]]
 (this should cc: phpdoc, if it's wrong, please let the docs folks know :-)
2007-03-22 01:00:23 +00:00
Marcus Boerger 68c1c83149 - MFH Fix issue with long form of command line switches 2007-03-21 23:20:21 +00:00
Derick Rethans b7a791827c - Revert this patch, as the code was incorrect.
- It was also not committed to HEAD.
2007-03-21 09:40:33 +00:00
Ilia Alshanetsky 5abffb51b6 Fixed bug #40861 (Multiple +/- on relative units breaks strtotime()). 2007-03-21 00:25:55 +00:00
Marcus Boerger 4c1c431a38 - MFH Fix Bug #40872 (inconsistency in offsetSet, offsetExists treatment
of string enclosed integers)
2007-03-20 20:28:08 +00:00
Marcus Boerger 6081c2284e - MFH Optional dependency for SPL must be specified in header 2007-03-20 20:00:27 +00:00
Antony Dovgal e8bd8d03b3 BFN 2007-03-20 19:39:27 +00:00
Antony Dovgal 17d89125b2 MFH: fix shmop_open() with IPC_CREAT|IPC_EXCL flags on win32 2007-03-20 17:57:59 +00:00
Dmitry Stogov 3ee54ce924 Added ability to encode arrays with "SOAP-ENC:Array" type instead of WSDL type. To activate the ability use "feature"=>SOAP_USE_XSI_ARRAY_TYPE option in SoapClient/SoapServer constructors. 2007-03-20 09:52:14 +00:00
Dmitry Stogov ef06bfa3ec Fixed bug #36226 (Inconsistent handling when passing nillable arrays) 2007-03-20 07:51:32 +00:00
Dmitry Stogov d514bf27a6 Improved Zend Memory Manager to guarantee reasonable time for worst cases of best-fit free block searching algorithm. 2007-03-20 06:46:48 +00:00
Ilia Alshanetsky 13aac95bfc Fixed bug #40854 (imap_mail_compose() creates an invalid terminator for
multipart e-mails).
2007-03-19 22:56:57 +00:00
Dmitry Stogov b0a875104e Fixed bug #40833 (Crash when using unset() on an ArrayAccess object retrieved via __get()) 2007-03-19 18:31:30 +00:00
Antony Dovgal ddc07c90b6 new test 2007-03-19 08:11:14 +00:00
Edin Kadribasic e77f670ba0 Make DLL only once (Wez) 2007-03-19 03:15:48 +00:00
Rob Richards ded5324d49 BFN 2007-03-18 21:31:57 +00:00
Rob Richards b172d3f8cd MFH: fix bug #40836 (Segfault in ext/dom)
add test
2007-03-18 21:31:05 +00:00
Wez Furlong ff0864ebac BFN, #40848 2007-03-18 20:21:43 +00:00
Wez Furlong 16fc958508 fixes #40848 2007-03-18 20:20:23 +00:00
Ilia Alshanetsky 89939e13d6 Fixed MOPB-26-2007 mb_parse_str() can be used to activate register_globals
# Discovered by Stefan Esser
2007-03-18 16:36:13 +00:00
Antony Dovgal 8e67ec8225 MFH: fix #40794 (ReflectionObject::getValues() may crash when used with dynamic properties) 2007-03-17 23:00:49 +00:00
Antony Dovgal 722287a538 fix tests 2007-03-17 19:16:17 +00:00
Stanislav Malyshev 7b7dcc89f3 fix spprintf usage 2007-03-16 21:59:23 +00:00
Stanislav Malyshev d0c229d4cb clarify 2007-03-16 21:49:56 +00:00
Stanislav Malyshev b44c524b7c array_user_key_compare() fix 2007-03-16 19:58:19 +00:00
Stanislav Malyshev a424d65e0b add test 2007-03-16 19:55:21 +00:00
Stanislav Malyshev 90eff54400 Fix UMR in array_user_key_compare() (MOPB24 by Stefan Esser) 2007-03-16 19:38:58 +00:00
Antony Dovgal c0aae895c6 BFN 2007-03-16 09:31:20 +00:00
Sebastian Bergmann d3cb98caf0 Fugbix typo. 2007-03-16 06:41:24 +00:00
Antony Dovgal 6a45f716ae fix #40805 (Failure executing function ibase_execute()) 2007-03-15 22:33:04 +00:00
Antony Dovgal bfb599b067 BFN 2007-03-15 16:44:35 +00:00
Antony Dovgal 79ed194a64 fix #40815 (using strings like "class::func" and static methods in set_exception_handler() might result in crash) 2007-03-15 16:44:12 +00:00
Antony Dovgal f6536ed2b2 MFH: remove unnecessary warning in case of exception 2007-03-14 23:47:44 +00:00
Ilia Alshanetsky 7aab16c333 Fixed MOPB-22-2007:PHP session_regenerate_id() Double Free Vulnerability
# Discovered by Stefan Esser
2007-03-14 19:37:07 +00:00
Antony Dovgal f9d54cbb75 MFH: fix #40750 (openssl stream wrapper ignores default_stream_timeout) 2007-03-14 19:22:14 +00:00
Pierre Joye b85f4d4077 - leak in extract 2007-03-14 16:36:16 +00:00
Pierre Joye 6e074459fc - add ::open to the safemode check entry 2007-03-14 15:10:37 +00:00
Ilia Alshanetsky 5ed63dd8a9 Fixed a possible memory leak on open_basedir validation 2007-03-14 15:02:20 +00:00
Pierre Joye fc3a62ed48 - MFH: openbasedir and safemode check in ::open() 2007-03-14 12:06:20 +00:00
Antony Dovgal 6e47537a01 BFN 2007-03-14 11:58:18 +00:00
Antony Dovgal e5b5f00949 MFH: fix #40800 (cannot disable memory_limit with -1) 2007-03-14 11:58:05 +00:00
Timm Friebe b9bc7c55d4 - Changed message handler also to handle message #11021
- Adjusted expected output
# Seems newer Sybase versions yielf different error codes for getdate(NULL)
2007-03-14 11:57:45 +00:00
Timm Friebe ca75503c8f - Fixed segmentation fault in sybase_connect()
# This was introduced by changing sprintf -> spprintf and resulted
# from passing a char* to spprintf() instead of a char**
2007-03-14 11:48:49 +00:00
Timm Friebe 142357d445 - Changed expected output
# select getdate() returns something like "Mar 14 2007 12:44PM", we
# were checking for one additional (nonexistant) whitespace after "Mar"
# which was wrong. Don`t know when and how this changed
2007-03-14 11:46:06 +00:00
Timm Friebe d8ed658b78 - Changed expected output
# Due to var_export() & __set_state() changes
2007-03-14 11:44:24 +00:00
Pierre Joye b40b5b5305 - MFH: Fixed possible relative path issues in zip_open in TS mode (old API) 2007-03-14 11:32:25 +00:00
Pierre Joye 1c0b8e6f15 - rename SAFEMODE_CHECKFILE to OPENBASEDIR_CHECKPATH (can be used without
confusing in head without confusion)
- Add safemode and open basedir checks in zip:// wrapper (revert Ilia's
  patch). Bug found by Stefan Esser in his MOPB-20-2007
2007-03-14 11:08:57 +00:00
Pierre Joye 4f5303ab92 - add more cases for getComment 2007-03-14 11:02:29 +00:00
Martin Kraemer 9c62ddde34 Typo 2007-03-14 09:58:14 +00:00
Ilia Alshanetsky 6d70aa1f4e Added missing open_basedir & safe_mode checks to zip:// and bzip://
wrappers.

Issues idendtified by MOPB-20 and MOPB-21
2007-03-14 03:50:18 +00:00
Stanislav Malyshev c3e4a2854a fix odbc resource handling, patch by Dave Lawson 2007-03-13 00:04:38 +00:00
Antony Dovgal 81f99c721b return false instead of empty string when -length is greater than (len - offset) 2007-03-12 23:42:26 +00:00
Ilia Alshanetsky c829314963 malloc() -> pemalloc() 2007-03-12 23:21:41 +00:00
Antony Dovgal 165f44c9c3 MFH 2007-03-12 20:55:15 +00:00
Antony Dovgal 5088614ea1 synchronize iconv_substr() behavior with substr()
no MFB so far, since substr() changes are not MFBed either
2007-03-12 19:34:26 +00:00
Dmitry Stogov ab699d03bc Fixed bug #40770 (Apache child exits when PHP memory limit reached) 2007-03-12 16:59:52 +00:00
Antony Dovgal ed844bbb3f BFN 2007-03-12 13:10:55 +00:00
Antony Dovgal 30f45e15de MFH: fix #40784 (Case sensivity in constructor's fallback) 2007-03-12 13:10:40 +00:00
Dmitry Stogov 1e13ef2de5 Fixed compilation warning 2007-03-12 07:39:01 +00:00
Edin Kadribasic ff53da7213 Lib upgrade news 2007-03-12 03:10:08 +00:00
Ilia Alshanetsky f96245f8b4 malloc() -> pemalloc() 2007-03-11 18:42:19 +00:00
Antony Dovgal 80616688db MFH 2007-03-11 12:56:44 +00:00
Antony Dovgal e8ede1ec08 fix tests 2007-03-11 12:54:54 +00:00
Ilia Alshanetsky e82c30c845 Re-added check removed by the previous patch 2007-03-10 20:07:50 +00:00
Ilia Alshanetsky 1453879587 Added additional checks for long input arrays inside
import_request_variables().

# Missing checks identified by Stefan Esser
2007-03-10 19:20:16 +00:00
Pierre Joye cb11ba761e - MFH: CVE-2007-1001, integer overflow with invalid wbmp images 2007-03-10 12:18:36 +00:00
Pierre Joye 547e4760e0 - #40764, line thickness not respected for horizontal and vertical lines
- add test
 - NEWS entry
2007-03-10 01:13:19 +00:00
Stanislav Malyshev 1e9fd0f002 add testcase 2007-03-09 18:37:03 +00:00
Dmitry Stogov c2a71f8eb1 Return HTTP 403 in case of "access denied". 2007-03-09 16:46:07 +00:00
Antony Dovgal 982de65f6e fix substr()
it's perfectly legal to do substr("str", 0, 1000000);
2007-03-09 10:04:59 +00:00
Antony Dovgal c9ded196b4 fix tests 2007-03-09 09:45:14 +00:00
Ilia Alshanetsky 02fae929af Fixed bug #40754 (added substr() & substr_replace() overflow checks). 2007-03-09 01:58:34 +00:00
Ilia Alshanetsky b3b6db3f03 Add _SESSION to checklist 2007-03-09 01:48:56 +00:00
Ilia Alshanetsky 0fa1427c6e Fixed a possible super-global overwrite inside import_request_variables().
# Reported by Stefano Di Paola
2007-03-09 01:42:20 +00:00
Rasmus Lerdorf 5b9ec4828f Off by ! in the url control char check for file:/// urls 2007-03-09 01:20:34 +00:00
Pierre Joye 1286d9e266 - #40764, line thickness not respected for horizontal and vertical lines 2007-03-09 01:18:40 +00:00
Stanislav Malyshev 0aa13e923b more fixes 2007-03-08 22:53:37 +00:00
Stanislav Malyshev 6e460bab4e fix crash/leak in bug #38710 2007-03-08 22:49:53 +00:00
Stanislav Malyshev c4423ae27d add news 2007-03-08 22:44:22 +00:00
Nuno Lopes 95391e4f9c BFN: gd gif reading 2007-03-08 22:04:33 +00:00
Stanislav Malyshev 8779d1cdd3 fix crash on $x['x']['y'] += 1, patch by Brian Shire 2007-03-08 20:59:31 +00:00
Nuno Lopes 5116b67016 fix thread unsafety in the gif reader code (merge from libgd cvs) 2007-03-08 20:24:53 +00:00
Stanislav Malyshev 79195bfe2e clarify checks and error messages 2007-03-08 00:47:04 +00:00
Antony Dovgal af1843f866 MFH: fix #40752 (parse_ini_file() segfaults when a scalar setting is redeclared as an array) 2007-03-08 00:44:23 +00:00
Ilia Alshanetsky 8696c9bc89 Improved length parameter validation 2007-03-08 00:18:10 +00:00
Ilia Alshanetsky 42ff70ede8 Improved offset validation 2007-03-08 00:06:41 +00:00
Stanislav Malyshev 2625be4ed0 fix MOPB#14
# The error message seems wrong, so maybe better fix is needed
2007-03-07 18:15:46 +00:00
Antony Dovgal 0628f86e0e fix small typo
add --with-zlib-dir option (and simple automagic zlib detection)
2007-03-07 09:36:22 +00:00
Antony Dovgal c73225ab61 MFH: fix #40727 (segfault in PDO when failed to bind parameters) 2007-03-07 09:03:07 +00:00
Ilia Alshanetsky 0638ac7651 Fixed calloc wrapper 2007-03-07 00:55:49 +00:00
Ilia Alshanetsky 4a614cd6b1 malloc() -> pemalloc() 2007-03-07 00:52:40 +00:00
Ilia Alshanetsky f6343f45f2 Add checks around raw allocation code 2007-03-07 00:47:42 +00:00
Derick Rethans d447facb42 - Updated timezone database to version 2007.3. (Derick) 2007-03-06 21:28:37 +00:00
Antony Dovgal a806ce9700 MFH 2007-03-06 21:08:05 +00:00
Antony Dovgal a8f076d7a3 use the aliases and eliminate one more compile warning 2007-03-06 21:04:27 +00:00
Antony Dovgal db8bbdc2a9 MFH: declare zend_mm_random() only when needed 2007-03-06 20:59:13 +00:00
Uwe Schindler ad336e432a remove (large) static buffers for header names and request uri 2007-03-06 18:15:25 +00:00
Uwe Schindler e25bb8ea04 use slprintf instead of snprintf and remove 0termination things (because slprintf is always available now) 2007-03-06 15:43:49 +00:00
Antony Dovgal cc49ea3a1e MFH 2007-03-06 10:13:54 +00:00
Ilia Alshanetsky 37da90248d Added missing allocation checks 2007-03-06 03:15:41 +00:00
Stanislav Malyshev 896abc5e34 use safe_realloc 2007-03-06 02:17:13 +00:00
Stanislav Malyshev 49a7bcd60b use safe_realloc 2007-03-06 02:10:25 +00:00
Stanislav Malyshev ec71493b99 use safe_erealloc 2007-03-06 02:03:28 +00:00
Marcus Boerger 331034afbb - Revert last part and fix issue under windows 2007-03-06 01:19:47 +00:00
Marcus Boerger 3c21c05e43 - And the sizes too 2007-03-06 01:14:38 +00:00
Marcus Boerger 26ebcdfcb9 - More to go
# CVS sucks, you cannot mix -D with -r
# However, thanks edin for reminding me that we have mini version tags
# I still prefer subverison. There we don't have any problem of this kind
2007-03-06 01:13:21 +00:00
Marcus Boerger 638ffdb477 - There you go 2007-03-06 01:00:51 +00:00
Marcus Boerger 03bccc1b15 - MFH Revert back to sprintf (we could define snprintf for windows but we don't) 2007-03-06 00:56:42 +00:00
Ilia Alshanetsky ff3e825083 Fixed bug #40417 (Allow multiple instances of the same named PDO token in
prepared statement emulation code).
2007-03-06 00:52:55 +00:00
Stanislav Malyshev 7508066230 fix broken snprintf code 2007-03-06 00:24:00 +00:00
Stanislav Malyshev d856029c78 use safe_emalloc 2007-03-05 21:54:46 +00:00
Uwe Schindler f34ec4f606 snprintf patch 2007-03-05 16:29:18 +00:00
andy wharmby a252c79d53 Fixed bug #35872 (Prevent object store references during RSHUTDOWN) 2007-03-05 15:49:00 +00:00
Michael Wallner c938da6a97 BFN 2007-03-05 14:10:27 +00:00
Michael Wallner 3db2db7159 - fix ws as requested by derick 2007-03-05 14:10:18 +00:00
Michael Wallner 87b02796d8 - fix bug #40691: add comparison object handler 2007-03-05 14:05:55 +00:00
Ilia Alshanetsky ecf4e93630 Fixed bug #40703 (Resolved a possible namespace conflict between libxmlrpc
and MySQL's NDB table handler).
2007-03-04 18:24:49 +00:00
Ilia Alshanetsky 1ac71c4fe9 Fixed bug #40709 (array_reduce() behaves strange with one item stored
arrays).
2007-03-04 17:21:16 +00:00
Marcus Boerger fa29c1a2f5 - Fix copy'n'paste issues 2007-03-04 14:01:06 +00:00
Marcus Boerger ed359b4529 - MFH simplify, synch docu/implementation 2007-03-04 12:18:02 +00:00
Stanislav Malyshev 2ad036da3a ik, make it memcpy 2007-03-04 04:38:43 +00:00
Stanislav Malyshev b2673ab004 fix wrong code
# noticed by Stefan Esser
2007-03-04 02:23:47 +00:00
Edin Kadribasic 730a77f19b Check that manifest file exists before trying to embed it 2007-03-04 00:41:16 +00:00
Edin Kadribasic 285edfcd77 Library update 2007-03-03 23:10:16 +00:00
Marcus Boerger 0ad927dbf2 - MFH A stream wrapper might only allow directory access 2007-03-03 19:01:34 +00:00
Ilia Alshanetsky e769e1b49e Fixed bug #40704 (strip_tags() does not handle single quotes correctly) 2007-03-03 15:46:29 +00:00
Marcus Boerger 276aed565e - The # line does not belong here 2007-03-03 15:18:03 +00:00
Marcus Boerger e5397c076b - MFH [DOC] Add SplFileInfo::getBasename(), DirectoryIterator::getBasename
- MFH Add SplFileInfo::getLinkTarget(), SplFileInfo::getRealPath()
# All based on suggestions by Arnold Daniels
2007-03-03 15:08:59 +00:00
Ilia Alshanetsky a500d1efe9 Adjust checks to allow paths without a trailing / 2007-03-03 15:07:31 +00:00
Marcus Boerger b15d1f22ef - Catch empty class name error earlier 2007-03-03 13:45:14 +00:00
Edin Kadribasic 7fc3493c8c Lib upgrade update 2007-03-03 02:06:43 +00:00
Stanislav Malyshev a0215e9ac4 fix variable name 2007-03-02 22:03:05 +00:00
Stanislav Malyshev fc35807a38 limit input variable nesting 2007-03-02 22:00:50 +00:00
Stanislav Malyshev 32fb34e2d1 limit nesting level of input variables 2007-03-02 21:58:05 +00:00
Nuno Lopes f1d075a102 increase the stream_select() timeout, to make the test pass in a slow machine with valgrind 2007-03-02 18:54:13 +00:00
Nuno Lopes 7b37c41384 fix access to non initialized memory (check valgrind reports on http://gcov.php.net) 2007-03-02 18:41:25 +00:00
Antony Dovgal f87f4a1468 improved test 2007-03-02 09:09:49 +00:00
Ilia Alshanetsky 4735df26f8 Improve safe_mode check 2007-03-02 00:49:47 +00:00
Antony Dovgal 7a069b81d8 new tests 2007-03-01 23:29:38 +00:00
Antony Dovgal 37b4db2d00 allocate descriptors dynamically 2007-03-01 22:27:44 +00:00
Nuno Lopes e5c4b50127 merge from gd sources: unlock mutex before shuting it down 2007-03-01 18:39:49 +00:00
Antony Dovgal acd14f802c MFH 2007-03-01 11:29:43 +00:00
Antony Dovgal 6124bcda0d MFH: fix #40678 (Cross compilation fails) 2007-03-01 11:23:54 +00:00
Ilia Alshanetsky 416b31ccc9 Fixed bug #40464 (session.save_path wont use default-value when safe_mode
or open_basedir is enabled).
2007-03-01 00:01:32 +00:00
Hannes Magnusson d193017342 Typo 2007-02-28 10:37:07 +00:00
Ilia Alshanetsky 3c27b48662 Fixed typo 2007-02-28 01:10:41 +00:00
Ilia Alshanetsky a9c4107ee4 Adjust vsnprintf() usage 2007-02-28 01:01:01 +00:00
Ilia Alshanetsky efad70c2cc snprintf() -> slprintf() 2007-02-27 03:28:17 +00:00
Ilia Alshanetsky cc04404b28 snprintf() -> slprintf()
# Part 1
2007-02-27 03:04:40 +00:00
Ilia Alshanetsky 1d08a8d157 Fixed bug #40637 (Regression in strip_tags() in relation so quote handling) 2007-02-27 00:15:21 +00:00
Antony Dovgal c667c70bdb fix typo 2007-02-26 17:47:21 +00:00
Dmitry Stogov 8ae520d0b5 Fixed tests 2007-02-26 16:19:56 +00:00
Antony Dovgal f7e434969a MFH: remind about 'make test' 2007-02-26 14:51:44 +00:00
Antony Dovgal e07b611b10 fix folding 2007-02-26 14:11:34 +00:00
Rob Richards 796d5ee3ab MFH: fix win build 2007-02-26 12:38:34 +00:00
Antony Dovgal ad8c94d8cc fix
the sprintf() -> zend_spprintf() change affected this
2007-02-26 12:08:12 +00:00
Antony Dovgal 7939691523 fix ws/cs and make the ugly code less ugly.. 2007-02-26 12:05:52 +00:00
Antony Dovgal 666370d7ee add new test 2007-02-26 09:58:04 +00:00
Dmitry Stogov 94d7b8b004 poll() is not affected by FD_SETSIZE (Tony) 2007-02-26 09:38:44 +00:00
Ilia Alshanetsky 58c167168d Revert previous commit that caused a buffer overflow (Bug #40634) 2007-02-26 02:12:36 +00:00
Antony Dovgal fb3a3b72f1 MFH: do not allow db without fields 2007-02-25 23:17:12 +00:00
Antony Dovgal b42addcc54 MFH: zerofill socket structs 2007-02-25 22:59:32 +00:00
Nuno Lopes d3ddf47718 update pcre symbols list 2007-02-25 18:47:21 +00:00
Dmitry Stogov c373324692 Fixed bug #40591 (list()="string"; gives invalid opcode) 2007-02-25 16:02:43 +00:00
Dmitry Stogov 015a5655df Fixed bug #40609 (Segfaults when using more than one SoapVar in a request). (Rob, Dmitry) 2007-02-25 13:19:29 +00:00
Marcus Boerger 255c6a71d7 - MFH Readability 2007-02-25 13:09:13 +00:00
Pierre Joye dfeff9efe6 - sync with libgd.org, patch from Kees Cook 2007-02-25 02:45:06 +00:00
Rasmus Lerdorf 7b80d01aa3 Fix test 2007-02-24 22:02:16 +00:00
Antony Dovgal 914b64dd4f BFN 2007-02-24 21:30:56 +00:00
Antony Dovgal e058ba92f9 MFH: fix #40621 (Crash when constructor called inappropriately (statically)) 2007-02-24 21:30:48 +00:00
Marcus Boerger 1345740fa5 - Add [v]slprintf to overcome the returnvalues issue of snprintf 2007-02-24 18:20:46 +00:00
Ilia Alshanetsky 3588f9eed6 missing -1 2007-02-24 18:02:11 +00:00
Ilia Alshanetsky 9783f5f1f3 strncpy() -> strlcpy() 2007-02-24 18:00:56 +00:00
Ilia Alshanetsky 9651aeaf78 Pad to given length, not replace data with spaces 2007-02-24 17:57:57 +00:00
Ilia Alshanetsky afa4b732c5 Eliminate strncpy and simplify code 2007-02-24 17:40:45 +00:00
Ilia Alshanetsky 27c6f40783 Eliminate strncpy() and simplify code 2007-02-24 17:18:24 +00:00
Ilia Alshanetsky 34928eeeca strncpy > strlcpy 2007-02-24 17:16:23 +00:00
Ilia Alshanetsky 0ccf1cf9ce Only do size check on create operations 2007-02-24 16:36:56 +00:00
Ilia Alshanetsky f4a8180f65 Fixed snprintf() usage 2007-02-24 16:23:10 +00:00
Ilia Alshanetsky a2a55daf21 Segment size validation 2007-02-24 15:50:54 +00:00
Ilia Alshanetsky 1b8a85415d Fixed Bug #39396 (stream_set_blocking crashes on Win32). 2007-02-24 15:48:40 +00:00
Ilia Alshanetsky e4ff13e43e Unify validation of shm segment size inside shm_attach() 2007-02-24 15:44:43 +00:00
Ilia Alshanetsky 44aefd1ea0 Fixed test to work with new version of libtidy that strips spaces 2007-02-24 15:35:04 +00:00
Marcus Boerger 24fa61e202 - Drop superflous efree 2007-02-24 14:53:50 +00:00
Marcus Boerger d2c343a3df - Fix spprintf usage 2007-02-24 14:33:50 +00:00
Marcus Boerger 1b1c62d708 - Make debug code really safe 2007-02-24 14:28:09 +00:00
Dmitry Stogov 0caa2be91f Use poll() instead of select() if available 2007-02-24 11:20:43 +00:00
Ilia Alshanetsky 0763686034 strdup() can fail 2007-02-24 03:24:40 +00:00
Stanislav Malyshev 698f114ddc use safe allocations 2007-02-24 03:08:05 +00:00
Ilia Alshanetsky 6223b18134 Fixed a typo 2007-02-24 02:59:58 +00:00
Stanislav Malyshev b415e3da5a Unfortunately, VC does not have snprintf, and sprintf_s supported only in vc2005
Fortunately, we don't need it here too badly.
2007-02-24 02:50:58 +00:00
Stanislav Malyshev 33956fc358 fix typo 2007-02-24 02:45:24 +00:00
Stanislav Malyshev b107f3bfbe fix typos 2007-02-24 02:43:53 +00:00
Marcus Boerger 50ea26760d - Avoid sprintf, even when checked copy'n'paste or changes lead to errors 2007-02-24 02:17:47 +00:00
Stanislav Malyshev 3e262bd369 disallow negative length 2007-02-24 01:18:14 +00:00
Sara Golemon c3935671cd MFH (r-1.82): Add retry for interrupted reads and graceful handling for failed retries 2007-02-23 23:09:14 +00:00
Stanislav Malyshev 59bcd2372d use strlcat 2007-02-23 22:08:31 +00:00
Stanislav Malyshev b40c94194f use strlcat 2007-02-23 22:05:46 +00:00
Stanislav Malyshev 4019bf5370 use snprintf 2007-02-23 21:45:00 +00:00
Stanislav Malyshev e894206874 use snprintf 2007-02-23 21:38:25 +00:00
Stanislav Malyshev 43aa661c5e increase array size to fit buffer size 2007-02-23 21:14:52 +00:00
Antony Dovgal fa513e74ce MFH: fix leak 2007-02-23 20:51:02 +00:00
Stanislav Malyshev 9d3e446d80 use safe_emalloc 2007-02-23 20:40:55 +00:00
Antony Dovgal f3a9413b28 MFH: fix #40606 (umask is not being restored when request is finished) 2007-02-23 16:22:20 +00:00
Rob Richards db19c74cfe BFN 2007-02-23 11:15:08 +00:00
Rob Richards 7846ed2e84 fix bug #40598 (libxml segfault) 2007-02-23 11:12:49 +00:00
Pierre Joye b5e6c78eda - #40578, fix the 2nd race condition on shutdown when the cache is freed 2007-02-23 00:58:49 +00:00
Ilia Alshanetsky a471f75354 Simplify code by converting emalloc() + sprintf() to spprintf() 2007-02-23 00:37:36 +00:00
Antony Dovgal e0a7362646 MFH: check for buflen (on FreeBSD _SC_GETGR_R_SIZE_MAX is not implemented)
patch by stas at FreeBSD dot org
2007-02-22 23:40:39 +00:00
Marcus Boerger e3d786be4e - MFH Fix logic 2007-02-22 23:26:03 +00:00
Nuno Lopes d94e388d74 fix test on ultra-fast-machines and/or SOs with long time slices
# Thanks Tony
2007-02-22 11:48:14 +00:00
Antony Dovgal dfbc224555 MFH 2007-02-22 10:06:22 +00:00
Dmitry Stogov f027aef074 Fixed possible crash in putenv() on win32 2007-02-22 08:23:17 +00:00
Ilia Alshanetsky 609ecbfc37 One more strcpy. (Thanks Stas) 2007-02-22 00:44:08 +00:00
Ilia Alshanetsky 06e5bc9ea2 strcpy() elimination 2007-02-22 00:25:38 +00:00
Antony Dovgal e1fe2c9165 MFH 2007-02-21 22:08:08 +00:00
Antony Dovgal 4a95928d1d MFH: implement PHP_STREAM_FLAG_NO_CLOSE and avoid hacks 2007-02-21 21:57:21 +00:00
Stanislav Malyshev 2a019a14bf use snprintf 2007-02-21 21:08:58 +00:00
Antony Dovgal 26fac39d5e fix test 2007-02-21 19:57:15 +00:00
Antony Dovgal 7255b4b953 fix tests on AIX 2007-02-21 19:52:20 +00:00
Antony Dovgal 905491d6c9 wrong string len 2007-02-21 19:36:20 +00:00
Antony Dovgal d162a8fb9e add test for 64bit arch 2007-02-21 19:35:15 +00:00
Antony Dovgal a2a682975c fix test 2007-02-21 19:27:37 +00:00
Antony Dovgal 22a866818b fix test 2007-02-21 19:22:28 +00:00
Nuno Lopes 4f3150c350 use /usr/bin/nohup instead 2007-02-21 16:25:37 +00:00
Nuno Lopes 6be4ea4d97 fix gcov build (#line stuff) 2007-02-21 16:08:18 +00:00
Dmitry Stogov 2b5e7d315f Check for FD_SETSIZE limit 2007-02-21 15:46:13 +00:00
Antony Dovgal 94bab7b206 MFH: fix #40578 (imagettftext() multithreading issue) 2007-02-21 15:00:26 +00:00
Antony Dovgal bccae9a134 MFH: fix #40576 (double values are truncated to 6 decimal digits when encoding) 2007-02-21 14:25:27 +00:00
Dmitry Stogov 149dd625be Special case for last iteration 2007-02-21 14:11:00 +00:00
Dmitry Stogov d4ccfade57 Fixed bug #40560 (DIR functions do not work on root UNC path) 2007-02-21 13:09:03 +00:00
Ilia Alshanetsky 6b253ae064 Improve redirect validation 2007-02-21 04:29:15 +00:00
Ilia Alshanetsky 5ecffe6eb5 Use strlcpy() rather then strcpy() 2007-02-21 03:59:05 +00:00
Stanislav Malyshev 462d545a63 fix putenv - if there was no previous, remove variable from environ 2007-02-21 03:03:37 +00:00
Stanislav Malyshev 31a325823a Cosmetic fix - safe_emalloc(nmemb, size, offset) 2007-02-21 01:13:44 +00:00
Stanislav Malyshev a72041406b CreateInstance requires BSTR (should fix #33188) 2007-02-21 01:11:11 +00:00
Stanislav Malyshev 47e06ea821 fix unallocated free 2007-02-20 20:30:36 +00:00
Antony Dovgal 43d788ec33 MFH: move PHP_TEST_WRITE_STDOUT to acinclude.m4 and use it in configure.in 2007-02-20 20:11:11 +00:00
Antony Dovgal 748b6fdeb3 MFH: make use of startup hooks 2007-02-20 19:20:41 +00:00
Antony Dovgal 180baf0109 MFH: fix leak and errmsg
add test
2007-02-20 14:08:43 +00:00
Antony Dovgal e7544f28b8 MFH: fix #38406 (crash when assigning objects to SimpleXML attributes) 2007-02-20 13:22:41 +00:00
Marcus Boerger 2db70cb520 - BFN 2007-02-20 13:09:54 +00:00
Marcus Boerger f44b63c57f - Make stat based functions throw an exception 2007-02-20 13:08:01 +00:00
Antony Dovgal 6ba2491d37 BFN 2007-02-20 12:01:40 +00:00
Antony Dovgal 8185f4550e MFH: fix #40545 (multithreading issue in zend_strtod()) 2007-02-20 12:00:58 +00:00
Ilia Alshanetsky 03e5b080a3 Upgraded SQLite 3 library to version 3.3.13 2007-02-20 00:09:43 +00:00
Ilia Alshanetsky c6402df3a7 Eliminate strcat() usage. 2007-02-19 23:53:00 +00:00
Ilia Alshanetsky 9ae588dfb1 Fixed strlcat() usage.
# Thanks Andi
2007-02-19 23:52:13 +00:00
Marcus Boerger ba4cbbaf69 - Bugfix #40546: SplFileInfo::getPathInfo() throws an execption if directory is in root dir. 2007-02-19 20:34:29 +00:00
Antony Dovgal 19c517938e MFH: check SQLError() return value and output a meaningful errmsg when it fails 2007-02-19 20:22:38 +00:00
Antony Dovgal 13ca6ed9fa MFH: fix heap protection on SPARC, required by GCC4
patch by Dmitry
2007-02-19 18:29:31 +00:00
Edin Kadribasic 8f5907fe96 Info on new lib versions and BFN 2007-02-19 17:32:54 +00:00
Dmitry Stogov 955d3e73e8 typo 2007-02-19 17:29:19 +00:00
Edin Kadribasic f31b3b497d Fixed bug #40371 2007-02-19 17:26:15 +00:00
Marcus Boerger 58c77d3925 - MFH CachingIterator implements Countable 2007-02-19 16:18:24 +00:00
Edin Kadribasic fee1ef3463 Fixed bug #36496 2007-02-19 16:03:42 +00:00
Dmitry Stogov f49d044cee On win32 directories in the middle of the patch may be unreadable 2007-02-19 14:58:07 +00:00
Dmitry Stogov 2a170f0584 Initialize "retval" on each request 2007-02-19 14:13:02 +00:00
Dmitry Stogov 7c77611057 Fixed fcgi_putenv() semantic with NULL value 2007-02-19 13:21:14 +00:00
Antony Dovgal 772e35e99a MFH: fix test 2007-02-19 12:19:44 +00:00
Ilia Alshanetsky 26214fc15f Eliminate strcat() usage
Fixed handling of argv[] for GET
2007-02-18 18:08:22 +00:00
Ilia Alshanetsky 7605d10252 PQfreemem checks 2007-02-18 17:05:53 +00:00
Ilia Alshanetsky 5e274ea47d Fixed bug #40503 (json_encode() value corruption on 32bit systems with
overflown values).
2007-02-18 16:54:59 +00:00
Stanislav Malyshev 05584eb55a use safer functions, check error value 2007-02-17 01:45:52 +00:00
Antony Dovgal 704b191d6a fix typo 2007-02-16 23:49:48 +00:00
Stanislav Malyshev 8edc9018db use error message size 2007-02-16 18:48:53 +00:00
Stanislav Malyshev 1fd2039fdd fix snprintf size
#-1 is not needed
2007-02-16 18:32:38 +00:00
Stanislav Malyshev f1728950fe increase hebdate buffer, use snprintf 2007-02-16 18:24:16 +00:00
Stanislav Malyshev 624dd135a8 fix typo 2007-02-16 18:10:36 +00:00
Stanislav Malyshev 4274449a02 add safe_realloc 2007-02-16 18:06:28 +00:00
Dmitry Stogov a3493bd3de Optimize out RINIT() 2007-02-16 16:35:04 +00:00
Antony Dovgal 01058e9770 fix possible double free 2007-02-16 13:28:03 +00:00
Dmitry Stogov 0262f05c17 Fixed return value of assert_options(ASSERT_CALLBACK) and possible crash (Andy Wharmby) 2007-02-16 13:12:10 +00:00
Dmitry Stogov 780c66d14b Fixed bug #40286 (PHP fastcgi with PHP_FCGI_CHILDREN don't kill children when parent is killed) 2007-02-16 11:30:03 +00:00
Antony Dovgal 9208d250c2 MFH 2007-02-16 11:08:22 +00:00
Dmitry Stogov 574630190e Allow C++ extensions to use CG(), EG() ... (Caroline) 2007-02-16 08:54:17 +00:00
Dmitry Stogov b6a2b760dc Fixed zend_llist_remove_tail (Michael Wallner) 2007-02-16 08:33:28 +00:00
Ilia Alshanetsky 4a33a63ab6 Fixed bug #40465 (Ensure that all PHP elements are printed by var_dump). 2007-02-16 03:41:56 +00:00
Ilia Alshanetsky ee17c54d88 Reduce stack usage & improve boundary checks 2007-02-16 03:32:06 +00:00
Nuno Lopes 14a6567f09 fix build on cygwin with windows-style EOLs 2007-02-15 20:52:50 +00:00
Nuno Lopes fd7d6a6f0a fix cvsclean on cygwin with windows-style EOLs 2007-02-15 20:42:24 +00:00
Antony Dovgal 286dee8100 MFH 2007-02-15 19:11:48 +00:00
Dmitry Stogov ea278e8566 Fixed memory leak 2007-02-15 17:01:29 +00:00
Dmitry Stogov 2cf92f365a Fixed bug #40467 (Partial SOAP request sent when XSD sequence or choice include minOccurs=0) 2007-02-15 14:48:12 +00:00
Dmitry Stogov a79d74b694 Fixed bug #40414 (possivle endless fork() loop when running fastcgi) 2007-02-15 12:33:16 +00:00
Dmitry Stogov 12bbbf022f Fixed Bug #40352 (FCGI_WEB_SERVER_ADDRS function get lost) 2007-02-15 12:04:59 +00:00
Dmitry Stogov 0291ad5fa6 Fixed bug #40236 (php -a function allocation eats memory) 2007-02-15 10:38:28 +00:00
Ilia Alshanetsky b997390e1d use constant 2007-02-15 01:40:36 +00:00
Ilia Alshanetsky ed6725c695 Improved validation route for size parameter of the mcrypt_create_iv()
function.
2007-02-15 01:15:45 +00:00
Ilia Alshanetsky f8958c466d Fixed a possible memory corruption inside mime_content_type() on a
non-existent file.
2007-02-15 00:05:42 +00:00
Derick Rethans e254f976fb - MFH: Clarify the source of the timezone data. 2007-02-14 19:35:09 +00:00
Nuno Lopes d446564786 Fixed bug #39322 (proc_terminate() destroys process resource) 2007-02-14 19:13:31 +00:00
Andi Gutmans 71645e8c4f - Give Dmitry credit for all the FastCGI work 2007-02-14 08:12:27 +00:00
Ilia Alshanetsky fc49f98e6a Make sure p is not pointing to the start of the buffer 2007-02-13 23:55:20 +00:00
Ilia Alshanetsky a92ef5e0dc Fixed a memory leak on highlight_file() with a non-existant file 2007-02-13 23:39:14 +00:00
Antony Dovgal 32c2c7a510 MFH 2007-02-13 20:19:56 +00:00
Ilia Alshanetsky 2e35bdc5e9 Fixed a memory leak inside imap_utf8() 2007-02-13 20:12:52 +00:00
Nuno Lopes 9cc85b6030 Fixed bug #34794 (proc_close() hangs when used with two processes) 2007-02-13 19:53:42 +00:00
Antony Dovgal c8a4b13638 MFH: improve php_userstreamop_seek() 2007-02-13 19:50:59 +00:00
Nuno Lopes 3d65d6d8d9 Fixed bug #37799 (ftp_ssl_connect() falls back to non-ssl connection) 2007-02-13 18:29:10 +00:00
Antony Dovgal dc9e17faf3 fix #40455 (proc_open() uses wrong commandline when safe_mode_exec_dir is set) 2007-02-13 15:55:45 +00:00
Antony Dovgal 29a9ba9639 new/improved tests 2007-02-13 12:59:53 +00:00
Antony Dovgal 60c435df5e MFH 2007-02-13 12:56:36 +00:00
Antony Dovgal a9ed150a74 fix .cvsignore's 2007-02-13 10:07:39 +00:00
Ilia Alshanetsky 103b8c33c0 Fixed bug #40432 (strip_tags() fails with greater than in attribute). 2007-02-13 02:16:22 +00:00
Marcus Boerger e19f55bb82 - MFH Drop useless stuff 2007-02-13 00:32:32 +00:00
Marcus Boerger 5026a9fd83 - MFH Add new example 2007-02-13 00:19:00 +00:00
Antony Dovgal 2c31b1e194 fix #40451 (addAttribute() may crash when used with non-existent child node) 2007-02-12 21:06:29 +00:00
Antony Dovgal cce7545d18 upgrade to new parameter parsing API
+ mostly ws/cs fixes, sort of MFH
2007-02-12 20:40:11 +00:00
Antony Dovgal 511463854b MFH: fix #40109 (iptcembed fails on non-jfif jpegs) 2007-02-12 20:30:52 +00:00
Antony Dovgal 634615cd42 MFH: fix tests 2007-02-12 14:49:05 +00:00
Antony Dovgal 796080d8c4 MFH: add separate IPv6 test 2007-02-12 14:43:00 +00:00
Antony Dovgal b877bb70de MFH: fix pcre tests 2007-02-12 14:22:19 +00:00
Antony Dovgal 8e49f0c54c MFH 2007-02-12 09:36:23 +00:00
Antony Dovgal 23d484ff2b fix news entry 2007-02-12 08:57:41 +00:00
Ilia Alshanetsky c92668e768 Fixed a memory leak inside readline_completion_function() on non-callable
callback.
2007-02-12 01:23:17 +00:00
Antony Dovgal 45c0253f2c add test 2007-02-11 20:56:46 +00:00
Antony Dovgal f9a9eda86c MFH 2007-02-11 20:12:53 +00:00
Antony Dovgal 77d93ee6b3 fix test 2007-02-11 20:06:19 +00:00
Nuno Lopes 8b9f475ac6 merge the tidyNode::getParent() patch from HEAD 2007-02-11 16:07:30 +00:00
Pierre Joye 18e4a7aacb - Fixed bug #40428, imagepstext() doesn't accept optional parameter
(Pierre)
2007-02-11 11:11:48 +00:00
Antony Dovgal 9d26a78f6a MFH 2007-02-11 09:25:32 +00:00
Antony Dovgal 9c100b20e6 MFH 2007-02-10 20:52:42 +00:00
Nuno Lopes 1bd4f5bef4 fix gcov build (#line directives) 2007-02-10 20:26:09 +00:00
Antony Dovgal 7b12fd5492 MFH 2007-02-10 00:50:38 +00:00
Nuno Lopes da9f515648 new test to keep track of the reported pcre regression 2007-02-09 20:00:17 +00:00
Nuno Lopes b3e66c616d upgrade pcre to version 7.0 2007-02-09 19:48:47 +00:00
Antony Dovgal e6d69595af BFN 2007-02-09 10:15:56 +00:00
Antony Dovgal 2024ec6e2a MFH: fix #40410 (ext/posix does not compile on MacOS 10.3.9) 2007-02-09 10:15:46 +00:00
Ilia Alshanetsky d35449bbfb Upgraded SQLite 3 to version 3.3.12 2007-02-09 03:17:47 +00:00
Marcus Boerger 7aa2282124 - MFH Add include 2007-02-08 22:54:34 +00:00
Marcus Boerger ac3b5ebbde - MFH Rearrange code: mode Countable from spl_array.c to spl_iterator.c 2007-02-08 22:17:40 +00:00
Marcus Boerger 1d1ea0b2ca - MFH: Fix Bug #39836 SplObjectStorage empty after unserialize 2007-02-08 22:14:25 +00:00
Marcus Boerger 38201d8d12 - MFH php --ri <extension> 2007-02-08 16:55:34 +00:00
Nuno Lopes a875e10909 convert all ereg*() calls to preg_match(), so that we become future-proof (ereg is scheduled for removal in PHP 6) 2007-02-08 15:22:03 +00:00
Marcus Boerger 3bd74e422a - MFH Add new test 2007-02-08 08:44:51 +00:00
Ilia Alshanetsky d4dd117d7f Remove already done item from the todo 2007-02-08 02:10:24 +00:00
Antony Dovgal 323467f9c9 add test 2007-02-07 21:13:01 +00:00
Antony Dovgal ffe3e65ac0 fix MFHed segfault 2007-02-07 21:07:31 +00:00
Marcus Boerger 6ded8042b9 - MFH Fix memleak with temp dir 2007-02-07 21:01:06 +00:00
Marcus Boerger ee3226e50e - MFH options/exports 2007-02-07 20:59:59 +00:00
Nuno Lopes 3fdab070a9 MFH: use getenv() instead of _ENV
enable multiple error reporting on the same test
2007-02-07 11:31:22 +00:00
Antony Dovgal ed7c89cc03 MFH: check if GCC on MacOS supports -no-cpp-precomp before using it 2007-02-07 11:16:52 +00:00
Antony Dovgal 0f0fe9c967 MFH: new tests 2007-02-07 11:10:32 +00:00
Ilia Alshanetsky 3f8e222ab3 Back to dev 2007-02-07 01:01:37 +00:00
Ilia Alshanetsky ee626ccb51 5.2.1 2007-02-07 00:45:04 +00:00
Ilia Alshanetsky 629d7cf43f Fixed Bug #40274 (Sessions fail with numeric root keys). 2007-02-06 00:01:18 +00:00
Andrei Zmievski 871fb78154 Update ! docs. 2007-02-05 17:57:51 +00:00
Andi Gutmans a11e0b5ef1 - Make sure to be ANSI C compliant 2007-02-05 05:15:16 +00:00
Frank M. Kromann b436ad2af5 #39213
Fix for '' returned as ' '.
This only works with FreeTDS as microsofts library returns a length of 1 for an empty string!
2007-02-04 21:19:37 +00:00
Frank M. Kromann 850998256c Fix win32 build 2007-02-04 00:21:51 +00:00
Marcus Boerger 0709a0490f - MFH Add PHPAPI to stuff needed by streams API for shared exts
- MFH Readonly issue fix to memory streams option handling (still not
  activated in 5.2.1 though)
2007-02-03 16:40:05 +00:00
andy wharmby 74cafe0840 Fixed bug #37927 (Prevent trap when COM extension processes argument of type VT_DISPATCH|VT_REF) 2007-02-02 15:44:06 +00:00
andy wharmby cda82bc0a3 Fixed bug #34564 (COM extension not returning modified "out" argument) 2007-02-02 15:27:35 +00:00
Ilia Alshanetsky a8c006235c Better generated parser 2007-02-02 00:03:33 +00:00
Ilia Alshanetsky 79dfb302b1 Fixed test mixup 2007-02-02 00:00:33 +00:00
Dmitry Stogov 44297ddea8 Removed dead code 2007-02-01 16:23:28 +00:00
Dmitry Stogov ed30d91cd6 Fixed possible crash because of dereference of NULL 2007-02-01 15:23:46 +00:00
Dmitry Stogov 009f5a3937 Enable canary protection in DEBUG mode only. 2007-02-01 15:08:10 +00:00
Antony Dovgal c313af32a9 MFH 2007-02-01 14:21:01 +00:00
Antony Dovgal 0c84a4d927 MFH: free class_name when necessary 2007-02-01 14:07:43 +00:00
Antony Dovgal 6e8654aae1 plug leak 2007-02-01 14:02:35 +00:00
Antony Dovgal 82f70c9493 fix leaks on error 2007-02-01 13:45:25 +00:00
Ilia Alshanetsky c219c6f4a8 Fixed bug #40285 (The PDO prepare parser goes into an infinite loop in
some instances).
2007-02-01 00:12:39 +00:00
Antony Dovgal 56bb90399e BFN 2007-01-31 13:57:58 +00:00
Antony Dovgal cdaff68610 MFH: improve tests 2007-01-31 13:56:16 +00:00
Antony Dovgal 4f6f150490 MFH: fix segfault on rebindinging and rexecuting a statement with LOBs
fix compile failure in ZTS mode when collections support is missing
2007-01-31 13:55:43 +00:00
Ilia Alshanetsky 9eb6d36c39 Prepare news file for release 2007-01-30 01:27:29 +00:00
Rui Hirokawa 693c9a7d2c fixed incompatibility with PHP 5.2.0 for encoding conversion between ShiftJIS(CP932), eucJP, ISO-2022-JP. 2007-01-29 22:53:47 +00:00
Dmitry Stogov d44cb7fa7b Prevent flush of closed handle on php_module_shutdown() 2007-01-29 19:36:01 +00:00
Pierre Joye 3265d023a4 - #40228 2007-01-29 15:25:35 +00:00
Pierre Joye 601a77b3a3 - #40228, ZipArchive::extractTo does create empty directories
recursively
2007-01-29 15:25:06 +00:00
Dmitry Stogov 52f6312866 Fixed bug #40259 (ob_start call many times - memory error). (Dmitry) 2007-01-29 11:21:31 +00:00
Antony Dovgal 58e96c4c10 nullify param.parameter and avoid destroying it twice 2007-01-27 21:53:26 +00:00
Marcus Boerger 0903f26151 - Disable memory streams set option until 5.2.2 2007-01-27 20:31:51 +00:00
Marcus Boerger d10beb67c3 - MFH truncate support for mem/temp streams 2007-01-27 20:25:11 +00:00
Antony Dovgal c98dcd5a21 use length - 1 when we fetch it from hashes 2007-01-26 15:33:18 +00:00
Dmitry Stogov cb443c6e5a Fixed bug #40231 (file_exists incorrectly reports false) 2007-01-26 15:15:16 +00:00
Antony Dovgal c5732112a9 fix leak
readuce size of the buffer to prevent ORA-01461
2007-01-26 15:07:45 +00:00
Ilia Alshanetsky 7c166ddf86 Back to dev 2007-01-26 00:21:20 +00:00
4153 changed files with 453172 additions and 57078 deletions

No files matched your search

+44 -10
View File
@@ -8,7 +8,7 @@ define ____executor_globals
end
document ____executor_globals
portable way of accessing executor_globals
portable way of accessing executor_globals, set $eg
ZTS detection is automatically based on ext/standard module struct
end
@@ -39,14 +39,18 @@ define printzv
end
document printzv
prints content of zval
prints zval contents
end
define ____printzv_contents
set $zvalue = $arg0
set $type = $zvalue->type
printf "(refcount=%d) ", $zvalue->refcount
printf "(refcount=%d", $zvalue->refcount
if $zvalue->is_ref
printf ",is_ref"
end
printf ") "
if $type == 0
printf "NULL"
end
@@ -69,7 +73,7 @@ define ____printzv_contents
if ! $arg1
printf "{\n"
set $ind = $ind + 1
____print_ht $zvalue->value.ht
____print_ht $zvalue->value.ht 1
set $ind = $ind - 1
set $i = $ind
while $i > 0
@@ -103,7 +107,7 @@ define ____printzv_contents
printf "(%d): ", $ht->nNumOfElements
printf "{\n"
set $ind = $ind + 1
____print_ht $ht
____print_ht $ht 1
set $ind = $ind - 1
set $i = $ind
while $i > 0
@@ -188,12 +192,10 @@ define print_const_table
end
define ____print_ht
set $ht = $arg0
set $ht = (HashTable*)$arg0
set $p = $ht->pListHead
while $p != 0
set $zval = *(zval **)$p->pData
set $i = $ind
while $i > 0
printf " "
@@ -206,8 +208,18 @@ define ____print_ht
else
printf "%d => ", $p->h
end
if $arg1 == 0
printf "%p\n", (void*)$p->pData
end
if $arg1 == 1
set $zval = *(zval **)$p->pData
____printzv $zval 1
end
if $arg1 == 2
printf "%s\n", (char*)$p->pData
end
____printzv $zval 1
set $p = $p->pListNext
end
end
@@ -215,7 +227,7 @@ end
define print_ht
set $ind = 1
printf "[0x%08x] {\n", $arg0
____print_ht $arg0
____print_ht $arg0 1
printf "}\n"
end
@@ -223,6 +235,28 @@ document print_ht
dumps elements of HashTable made of zval
end
define print_htptr
set $ind = 1
printf "[0x%08x] {\n", $arg0
____print_ht $arg0 0
printf "}\n"
end
document print_htptr
dumps elements of HashTable made of pointers
end
define print_htstr
set $ind = 1
printf "[0x%08x] {\n", $arg0
____print_ht $arg0 2
printf "}\n"
end
document print_htstr
dumps elements of HashTable made of strings
end
define ____print_ft
set $ht = $arg0
set $p = $ht->pListHead
+1 -1
View File
@@ -256,7 +256,7 @@ that the first implementation include a file labeled 'EXPERIMENTAL'
in the function directory, and that the functions follow the
standard prefixing conventions during their initial implementation.
The file labelled 'EXPERIMENTAL' should include the following
The file labeled 'EXPERIMENTAL' should include the following
information:
Any authoring information (known bugs, future directions of the module).
Ongoing status notes which may not be appropriate for CVS comments.
+92 -105
View File
@@ -127,32 +127,14 @@ EXTENSION: dbase
MAINTENANCE: Orphaned
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: dbx
PRIMARY MAINTAINER: Marc Boeren <M.Boeren@guidance.nl>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.0.6
COMMENT: DB abstraction for odbc, mysql, pgsql, mssql, fbsql and more, see documentation
-------------------------------------------------------------------------------
EXTENSION: fbsql
PRIMARY MAINTAINER: Frank M. Kromann <fmk@swwwing.com>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: informix
PRIMARY MAINTAINER: Danny Heijl <Danny.Heijl@cevi.be>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: ingres_ii
PRIMARY MAINTAINER: David Hénot <henot@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: interbase
PRIMARY MAINTAINER: Ard Biesheuvel <ard@ard.nu>, Jouni Ahto <jouni.ahto@exdec.fi>
MAINTENANCE: Maintained
MAINTENANCE: Odd fixes
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: msql
@@ -177,7 +159,7 @@ STATUS: Working
SINCE: 5.0
-------------------------------------------------------------------------------
EXTENSION: oci8
PRIMARY MAINTAINER: Antony Dovgal <tony2001@php.net>
PRIMARY MAINTAINER: Christopher Jones <sixd@php.net>, Antony Dovgal <tony2001@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
@@ -187,14 +169,53 @@ MAINTENANCE: Maintained
STATUS: Working
COMMENT: Working
-------------------------------------------------------------------------------
EXTENSION: oracle
MAINTENANCE: Orphaned
EXTENSION: pdo
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
COMMENT: Using the new OCI8 driver is encouraged where possible.
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: ovrimos
MAINTENANCE: Unknown
STATUS: Unknown
EXTENSION: pdo_dblib
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pdo_firebird
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pdo_mysql
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pdo_odbc
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pdo_oci
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pdo_pgsql
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pdo_sqlite
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.1
-------------------------------------------------------------------------------
EXTENSION: pgsql
PRIMARY MAINTAINER: Marcus Boerger <helly@php.net>, Yasuo Ohgaki <yohgaki@php.net>
@@ -237,11 +258,11 @@ SINCE: 5.0
EXTENSION: soap
PRIMARY MAINTAINER: Dmitry Stogov <dmitry@zend.com>
MAINTENANCE: Maintained
STATUS: Experimental
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: wddx
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
MAINTENANCE: Maintained
MAINTENANCE: Orphaned
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: xml
@@ -249,11 +270,21 @@ PRIMARY MAINTAINER: Thies C. Arntzen <thies@thieso.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: xmlreader
PRIMARY MAINTAINER: Rob Richards <rrichards@php.net>, Christian Stocker <chregu@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: xmlrpc
PRIMARY MAINTAINER: Dan Libby
MAINTENANCE: UNKNOWN
MAINTENANCE: Orphaned
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: xmlwriter
PRIMARY MAINTAINER: Rob Richards <rrichards@php.net>, Pierre-Alain Joye <pajoye@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: xsl
PRIMARY MAINTAINER: Christian Stocker <chregu@php.net>, Rob Richards <rrichards@php.net>
MAINTENANCE: Maintained
@@ -267,7 +298,7 @@ SINCE: 5.0
-------------------------------------------------------------------------------
EXTENSION: bcmath
MAINTENANCE: Unknown
STATUS: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: bz2
PRIMARY MAINTAINER: Hartmut Holzgraefe <hholzgra@php.net>
@@ -286,11 +317,6 @@ MAINTENANCE: Maintained
STATUS: Windows
SINCE: 5.0
-------------------------------------------------------------------------------
EXTENSION: cpdf
PRIMARY MAINTAINER: Uwe Steinmann <steinm@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: ctype
PRIMARY MAINTAINER: Hartmut Holzgraefe <hholzgra@php.net>
MAINTENANCE: Maintained
@@ -313,27 +339,19 @@ MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.2
-------------------------------------------------------------------------------
EXTENSION: fam
PRIMARY MAINTAINER: Sascha Schumann <sascha@schumann.cx>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: fdf
PRIMARY MAINTAINER: Uwe Steinmann <steinm@php.net>
EXTENSION: filter
PRIMARY MAINTAINER: Derick Rethans <derick@php.net>, Pierre-Alain Joye <pajoye@php.net>, Ilia Alshanetsky <iliaa@php.net>
MAINTENANCE: Maintained
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: filepro
MAINTENANCE: Unknown
STATUS: Unknown
STATUS: Working
SINCE: 5.2
-------------------------------------------------------------------------------
EXTENSION: ftp
PRIMARY MAINTAINER: Stefan Esser (sesser@php.net)
MAINTENANCE: Maintained
PRIMARY MAINTAINER: Stefan Esser <sesser@php.net>
MAINTENANCE: Odd fixes
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: gd
PRIMARY MAINTAINER: Rasmus Lerdorf <rasmus@php.net>
PRIMARY MAINTAINER: Pierre-Alain Joye <pajoye@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
@@ -342,15 +360,11 @@ MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: gmp
MAINTENANCE: Unknown
STATUS: Unknown
PRIMARY MAINTAINER: Stanislav Malyshev <stas@php.net>, Antony Dovgal <tony2001@php.net>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.0.4
-------------------------------------------------------------------------------
EXTENSION: hwapi
PRIMARY MAINTAINER: Uwe Steinmann <steinm@php.net>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: iconv
PRIMARY MAINTAINER: Moriyoshi Koizumi <moriyoshi@php.net>
MAINTENANCE: Maintained
@@ -361,13 +375,14 @@ PRIMARY MAINTAINER: Chuck Hagenbuch <chuck@horde.org>, Ilia Alshanetsky <iliaa@
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: ircg
PRIMARY MAINTAINER: Sascha Schumann <sascha@schumann.cx>
MAINTENANCE: Unknown
STATUS: Unknown
EXTENSION: json
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Odd fixes
STATUS: Working
SINCE: 5.2
-------------------------------------------------------------------------------
EXTENSION: ldap
PRIMARY MAINTAINER: Stig Venaas <venaas@php.net>
PRIMARY MAINTAINER: Stig Venaas <venaas@php.net>, Douglas Goldstein <cardoe@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
@@ -381,14 +396,9 @@ PRIMARY MAINTAINER: Derick Rethans <derick@derickrethans.nl>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: mcve
PRIMARY MAINTAINER: Unknown
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: mhash
PRIMARY MAINTAINER: Sascha Schumann <sascha@schumann.cx>
MAINTENANCE: Maintained
MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: mime_magic
@@ -402,48 +412,26 @@ PRIMARY MAINTAINER: Frank M. Kromann
MAINTENANCE: Unknown
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: mnogosearch
PRIMARY MAINTAINER: Sergey Kartashoff <gluke@mail.ru>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: mono
PRIMARY MAINTAINER: Sterling Hughes <sterling@php.net>
MAINTENANCE: Unknown
STATUS: Unknown
-------------------------------------------------------------------------------
EXTENSION: msession
PRIMARY MAINTAINER Mark L. Woodward <mlwmohawk@mohawksoft.com>
MAINTENANCE: Maintained
STATUS: Working/Experimental
COMMENT: Tested on Linux, should work on other UNIX platforms. Backend server code can compile under Windows.
-------------------------------------------------------------------------------
EXTENSION: ncurses
PRIMARY MAINTAINER Ilia Alshanetsky <iliaa@php.net>, Wez Furlong <wez@php.net>, Hartmut Holzgraefe <hholzgra@php.net>, Georg Richter <georg@php.net>
MAINTENANCE: Unknown
STATUS: Experimental
-------------------------------------------------------------------------------
EXTENSION: openssl
PRIMARY MAINTAINER: Wez Furlong <wez@php.net>
PRIMARY MAINTAINER: Wez Furlong <wez@php.net>, Pierre-Alain Joye <pajoye@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
STATUS: Working
SINCE: 4.0.4
-------------------------------------------------------------------------------
EXTENSION: pcntl
MAINTENANCE: Unknown
STATUS: Experimental
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: pcre
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>, Nuno Lopes <nlopess@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: pfpro
PRIMARY MAINTAINER: David Croft <david@infotrek.co.uk>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: posix
PRIMARY MAINTAINER: Kristian Köhntopp <kris@koehntopp.de>
MAINTENANCE: Maintained
@@ -477,7 +465,7 @@ STATUS: Working
EXTENSION: shmop
PRIMARY MAINTAINER: Ilia Alshanetsky <iliaa@php.net>
MAINTENANCE: Maintained
STATUS: Experimental
STATUS: Working
SINCE: 4.0.3
-------------------------------------------------------------------------------
EXTENSION: snmp
@@ -488,7 +476,7 @@ STATUS: Working
EXTENSION: sockets
PRIMARY MAINTAINER: Chris Vandomelen <chrisv@b0rked.dhs.org>
MAINTENANCE: Maintained
STATUS: Experimental
STATUS: Working
SINCE: 4.0.2
-------------------------------------------------------------------------------
EXTENSION: spl
@@ -499,31 +487,30 @@ SINCE: 5.0.0
-------------------------------------------------------------------------------
EXTENSION: sysvmsg
MAINTENANCE: Unknown
STATUS: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: sysvsem
MAINTENANCE: Unknown
STATUS: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: sysvshm
MAINTENANCE: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: tidy
PRIMARY MAINTAINER: John Coggeshall <john@php.net>, Ilia Alshanetsky <iliaa@php.net>
PRIMARY MAINTAINER: John Coggeshall <john@php.net>, Ilia Alshanetsky <iliaa@php.net>, Nuno Lopes <nlopess@php.net>
MAINTENANCE: Maintained
STATUS: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: tokenizer
PRIMARY MAINTAINER: Andrei Zmievski <andrei@php.net>
MAINTENANCE: Unknown
STATUS: Unknown
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: yaz
PRIMARY MAINTAINER: Adam Dickmeiss <adam@indexdata.dk>
EXTENSION: zip
PRIMARY MAINTAINER: Pierre-Alain Joye <pajoye@php.net>
MAINTENANCE: Maintained
STATUS: Unknown
SINCE: 4.0.1
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: zlib
PRIMARY MAINTAINER: Stefan Roehrich <sr@linux.de>
+154 -99
View File
@@ -11,7 +11,7 @@ Installing PHP
Caudium
fhttpd related notes
Sun, iPlanet and Netscape servers on Sun Solaris
CGI and commandline setups
CGI and command line setups
HP-UX specific installation notes
OpenBSD installation notes
Solaris specific installation tips
@@ -20,6 +20,7 @@ Installing PHP
3. Installation on Mac OS X
Using Packages
Using the bundled PHP
Compiling for OS X Server
Compiling for MacOS X Client
@@ -28,7 +29,7 @@ Installing PHP
Introduction to PECL Installations
Downloading PECL extensions
PECL for Windows users
Compiling shared PECL extensions with PEAR
Compiling shared PECL extensions with the pecl command
Compiling shared PECL extensions with phpize
Compiling PECL extensions statically into PHP
@@ -90,7 +91,7 @@ Chapter 1. General Installation Considerations
With PHP you can also write desktop GUI applications using the PHP-GTK
extension. This is a completely different approach than writing web
pages, as you do not output any HTML, but manage windows and objects
pages, as you do not output any HTML, but manage Windows and objects
within them. For more information about PHP-GTK, please visit the site
dedicated to this extension. PHP-GTK is not included in the official
PHP distribution.
@@ -124,10 +125,10 @@ Chapter 2. Installation on Unix systems
package installation system. This can assist in setting up a standard
configuration, but if you need to have a different set of features
(such as a secure server, or a different database driver), you may need
to build PHP and/or your webserver. If you are unfamiliar with building
and compiling your own software, it is worth checking to see whether
somebody has already built a packaged version of PHP with the features
you need.
to build PHP and/or your web server. If you are unfamiliar with
building and compiling your own software, it is worth checking to see
whether somebody has already built a packaged version of PHP with the
features you need.
Prerequisite knowledge and software for compiling:
@@ -139,8 +140,8 @@ Chapter 2. Installation on Unix systems
* Any module specific components (such as gd, pdf libs, etc.)
The initial PHP setup and configuration process is controlled by the
use of the commandline options of the configure script. You could get a
list of all available options along with short explanations running
use of the command line options of the configure script. You could get
a list of all available options along with short explanations running
./configure --help. Our manual documents the different options
separately. You will find the core options in the appendix, while the
different extension specific options are descibed on the reference
@@ -345,7 +346,7 @@ stop and start:
will mean that you can compile apache separately, and don't have to
recompile everything as you add to, or change, PHP. Building PHP into
apache (static method) means that PHP will load and run faster. For
more information, see the Apache webpage on DSO support.
more information, see the Apache web page on DSO support.
Note: Apache's default httpd.conf currently ships with a section
that looks like this:
@@ -562,13 +563,13 @@ Sun, iPlanet and Netscape servers on Sun Solaris
From PHP 4.3.3 on you can use PHP scripts with the NSAPI module to
generate custom directory listings and error pages. Additional
functions for Apache compatibility are also available. For support in
current webservers read the note about subrequests.
current web servers read the note about subrequests.
You can find more information about setting up PHP for the Netscape
Enterprise Server (NES) here:
http://benoit.noss.free.fr/php/install-php4.html
To build PHP with Sun JSWS/Sun ONE WS/iPlanet/Netscape webservers,
To build PHP with Sun JSWS/Sun ONE WS/iPlanet/Netscape web servers,
enter the proper install directory for the --with-nsapi=[DIR] option.
The default directory is usually /opt/netscape/suitespot/. Please also
read /php-xxx-version/sapi/nsapi/nsapi-readme.txt.
@@ -610,7 +611,7 @@ Sun, iPlanet and Netscape servers on Sun Solaris
Configuration Instructions for Sun/iPlanet/Netscape. Firstly you may
need to add some paths to the LD_LIBRARY_PATH environment for the
server to find all the shared libs. This can best done in the start
script for your webserver. The start script is often located in:
script for your web server. The start script is often located in:
/path/to/server/https-servername/start. You may also need to edit the
configuration files that are located in:
/path/to/server/https-servername/config/.
@@ -631,7 +632,7 @@ Init fn="php4_init" LateInit="yes" errorString="Failed to initialize PHP!" [php_
ini="/path/to/php.ini"]
(PHP >= 4.3.3) The php_ini parameter is optional but with it you
can place your php.ini in your webserver config directory.
can place your php.ini in your web server config directory.
3. Configure the default object in obj.conf (for virtual server
classes [version 6.0+] in their vserver.obj.conf):
@@ -684,8 +685,8 @@ AuthTrans fn=php4_auth_trans
</Object>
Note: The stacksize that PHP uses depends on the configuration of
the webserver. If you get crashes with very large PHP scripts, it is
recommended to raise it with the Admin Server (in the section
the web server. If you get crashes with very large PHP scripts, it
is recommended to raise it with the Admin Server (in the section
"MAGNUS EDITOR").
__________________________________________________________________
@@ -693,22 +694,21 @@ CGI environment and recommended modifications in php.ini
Important when writing PHP scripts is the fact that Sun JSWS/Sun ONE
WS/iPlanet/Netscape is a multithreaded web server. Because of that all
requests are running in the same process space (the space of the
webserver itself) and this space has only one environment. If you want
to get CGI variables like PATH_INFO, HTTP_HOST etc. it is not the
correct way to try this in the old PHP 3.x way with getenv() or a
similar way (register globals to environment, $_ENV). You would only
get the environment of the running webserver without any valid CGI
variables!
requests are running in the same process space (the space of the web
server itself) and this space has only one environment. If you want to
get CGI variables like PATH_INFO, HTTP_HOST etc. it is not the correct
way to try this in the old PHP 3.x way with getenv() or a similar way
(register globals to environment, $_ENV). You would only get the
environment of the running web server without any valid CGI variables!
Note: Why are there (invalid) CGI variables in the environment?
Answer: This is because you started the webserver process from the
admin server which runs the startup script of the webserver, you
Answer: This is because you started the web server process from the
admin server which runs the startup script of the web server, you
wanted to start, as a CGI script (a CGI script inside of the admin
server!). This is why the environment of the started webserver has
server!). This is why the environment of the started web server has
some CGI environment variables in it. You can test this by starting
the webserver not from the administration server. Use the command
the web server not from the administration server. Use the command
line as root user and start it manually - you will see there are no
CGI-like environment variables.
@@ -749,8 +749,8 @@ pt.php" [inikey=value inikey=value...]
Note about nsapi_virtual() and subrequests (PHP >= 4.3.3)
The NSAPI module now supports the nsapi_virtual() function (alias:
virtual()) to make subrequests on the webserver and insert the result
in the webpage. This function uses some undocumented features from the
virtual()) to make subrequests on the web server and insert the result
in the web page. This function uses some undocumented features from the
NSAPI library. On Unix the module automatically looks for the needed
functions and uses them if available. If not, nsapi_virtual() is
disabled.
@@ -758,10 +758,10 @@ Note about nsapi_virtual() and subrequests (PHP >= 4.3.3)
Note: But be warned: Support for nsapi_virtual() is EXPERIMENTAL!!!
__________________________________________________________________
CGI and commandline setups
CGI and command line setups
The default is to build PHP as a CGI program. This creates a
commandline interpreter, which can be used for CGI processing, or for
The default is to build PHP as a CGI program. This creates a command
line interpreter, which can be used for CGI processing, or for
non-web-related PHP scripting. If you are running a web server PHP has
module support for, you should generally go for that solution for
performance reasons. However, the CGI version enables users to run
@@ -816,62 +816,18 @@ Using Variables
HP-UX specific installation notes
This section contains notes and hints specific to installing PHP on
HP-UX systems. (Contributed by paul_mckay at clearwater-it dot co dot
uk).
HP-UX systems.
Note: These tips were written for PHP 4.0.4 and Apache 1.3.9.
There are two main options for installing PHP on HP-UX systems. Either
compile it, or install a pre-compiled binary.
1. You need gzip, download a binary distribution from
http://hpux.connect.org.uk/ftp/hpux/Gnu/gzip-1.2.4a/gzip-1.2.4a-sd-
10.20.depot.Z uncompress the file and install using swinstall.
2. You need gcc, download a binary distribution from
http://gatekeep.cs.utah.edu/ftp/hpux/Gnu/gcc-2.95.2/gcc-2.95.2-sd-1
0.20.depot.gz. uncompress this file and install gcc using
swinstall.
3. You need the GNU binutils, you can download a binary distribution
from
http://hpux.connect.org.uk/ftp/hpux/Gnu/binutils-2.9.1/binutils-2.9
.1-sd-10.20.depot.gz. uncompress this file and install binutils
using swinstall.
4. You now need bison, you can download a binary distribution from
http://hpux.connect.org.uk/ftp/hpux/Gnu/bison-1.28/bison-1.28-sd-10
.20.depot.gz, install as above.
5. You now need flex, you need to download the source from one of the
http://www.gnu.org mirrors. It is in the non-gnu directory of the
ftp site. Download the file, gunzip, then tar -xvf it. Go into the
newly created flex directory and run ./configure, followed by make,
and then make install.
If you have errors here, it's probably because gcc etc. are not in
your PATH so add them to your PATH.
6. Download the PHP and apache sources.
7. gunzip and tar -xvf them. We need to hack a couple of files so that
they can compile OK.
8. Firstly the configure file needs to be hacked because it seems to
lose track of the fact that you are a hpux machine, there will be a
better way of doing this but a cheap and cheerful hack is to put
lt_target=hpux10.20 on line 47286 of the configure script.
9. Next, the Apache GuessOS file needs to be hacked. Under
apache_1.3.9/src/helpers change line 89 from echo
"hp${HPUXMACH}-hpux${HPUXVER}"; exit 0 to: echo
"hp${HPUXMACH}-hp-hpux${HPUXVER}"; exit 0
10. You cannot install PHP as a shared object under HP-UX so you must
compile it as a static, just follow the instructions at the Apache
page.
11. PHP and Apache should have compiled OK, but Apache won't start. you
need to create a new user for Apache, e.g. www, or apache. You then
change lines 252 and 253 of the conf/httpd.conf in Apache so that
instead of
Official pre-compiled packages are located here:
http://software.hp.com/
User nobody
Group nogroup
you have something like
User www
Group sys
This is because you can't run Apache as nobody under hp-ux. Apache
and PHP should then work.
Until this manual section is rewritten, the documentation about
compiling PHP (and related extensions) on HP-UX systems has been
removed. For now, consider reading the following external resource:
Building Apache and PHP on HP-UX 11.11
__________________________________________________________________
OpenBSD installation notes
@@ -1128,6 +1084,104 @@ Using Packages
* Fink: http://fink.sourceforge.net/
__________________________________________________________________
Using the bundled PHP
PHP has come standard with Macs since OS X version 10.0.0. Enabling PHP
with the default web server requires uncommenting a few lines in the
Apache configuration file httpd.conf whereas the CGI and/or CLI are
enabled by default (easily accessible via the Terminal program).
Enabling PHP using the instructions below is meant for quickly setting
up a local development environment. It's highly recommended to always
upgrade PHP to the newest version. Like most live software, newer
versions are created to fix bugs and add features and PHP being is no
different. See the appropriate MAC OS X installation documentation for
further details. The following instructions are geared towards a
beginner with details provided for getting a default setup to work. All
users are encouraged to compile, or install a new packaged version.
The standard installation type is using mod_php, and enabling the
bundled mod_php on Mac OS X for the Apache web server (the default web
server, that is accessible via System Preferences) involves the
following steps:
1. Locate and open the Apache configuration file. By default, the
location is as follows: /etc/httpd/httpd.conf
Using Finder or Spotlight to find this file may prove difficult as
by default it's private and owned by the root user.
Note: One way to open this is by using a Unix based text editor in
the Terminal, for example nano, and because the file is owned by
root we'll use the sudo command to open it (as root) so for example
type the following into the Terminal Application (after, it will
prompt for a password): sudo nano /etc/httpd/httpd.conf
Noteworthy nano commands: ^w (search), ^o (save), and ^x (exit)
where ^ represents the Ctrl key.
2. With a text editor, uncomment the lines (by removing the #) that
look similar to the following (these two lines are often not
together, locate them both in the file):
# LoadModule php4_module libexec/httpd/libphp4.so
# AddModule mod_php4.c
Notice the location/path. When building PHP in the future, the
above files should be replaced or commented out.
3. Be sure the desired extensions will parse as PHP (examples: .php
.html and .inc)
Due to the following statement already existing in httpd.conf (as
of Mac Panther), once PHP is enabled the .php files will
automatically parse as PHP.
<IfModule mod_php4.c>
# If php is turned on, we respect .php and .phps files.
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
# Since most users will want index.php to work we
# also automatically enable index.php
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
</IfModule>
4. Be sure the DirectoryIndex loads the desired default index file
This is also set in httpd.conf. Typically index.php and index.html
are used. By default index.php is enabled because it's also in the
PHP check shown above. Adjust accordingly.
5. Set the php.ini location or use the default
A typical default location on Mac OS X is /usr/local/php/php.ini
and a call to phpinfo() will reveal this information. If a php.ini
is not used, PHP will use all default values. See also the related
FAQ on finding php.ini.
6. Locate or set the DocumentRoot
This is the root directory for all the web files. Files in this
directory are served from the web server so the PHP files will
parse as PHP before outputting them to the browser. A typical
default path is /Library/WebServer/Documents but this can be set to
anything in httpd.conf. Alternatively, the default DocumentRoot for
individual users is /Users/yourusername/Sites
7. Create a phpinfo() file
The phpinfo() function will display information about PHP. Consider
creating a file in the DocumentRoot with the following PHP code:
<?php phpinfo(); ?>
8. Restart Apache, and load the PHP file created above
To restart, either execute sudo apachectl graceful in the shell or
stop/start the "Personal Web Server" option in the OS X System
Preferences. By default, loading local files in the browser will
have an URL like so: http://localhost/info.php Or using the
DocumentRoot in the user directory is another option and would end
up looking like: http://localhost/~yourusername/info.php
The CLI (or CGI in older versions) is appropriately named php and
likely exists as /usr/bin/php. Open up the terminal, read the command
line section of the PHP manual, and execute php -v to check the PHP
version of this PHP binary. A call to phpinfo() will also reveal this
information.
__________________________________________________________________
Compiling for OS X Server
Mac OS X Server install.
@@ -1238,7 +1292,8 @@ Introduction to PECL Installations
These instructions assume /your/phpsrcdir/ is the path to the PHP
source distribution, and that extname is the name of the PECL
extension. Adjust accordingly. These instructions also assume a
familiarity with the pear command.
familiarity with the pear command. The information in the PEAR manual
for the pear command also applies to the pecl command.
To be useful, a shared extension must be built, installed, and loaded.
The methods described below provide you with various instructions on
@@ -1263,7 +1318,7 @@ Downloading PECL extensions
requirements and other similar details.
* pecl download extname
PECL extensions that have releases listed on the PECL web site are
available for download and installation using the pear command.
available for download and installation using the pecl command.
Specific revisions may also be specified.
* CVS
Most PECL extensions also reside in CVS. A web-based view may be
@@ -1276,9 +1331,9 @@ $ cvs -d:pserver:cvsread@cvs.php.net:/repository co pecl/extname
* Windows downloads
Windows users may find compiled PECL binaries by downloading the
Collection of PECL modules from the PHP Downloads page, and by
retrieving a PECL Snapshot. To compile PHP under Windows, read the
appropriate chapter.
Collection of PECL modules from the PHP Downloads page, or by
retrieving a PECL Snapshot or an extension DLL on PECL4WIN. To
compile PHP under Windows, read the appropriate chapter.
__________________________________________________________________
PECL for Windows users
@@ -1293,9 +1348,9 @@ PECL for Windows users
After doing this, restart the web server.
__________________________________________________________________
Compiling shared PECL extensions with PEAR
Compiling shared PECL extensions with the pecl command
PEAR makes it easy to create shared PHP extensions. Using the pear
PECL makes it easy to create shared PHP extensions. Using the pecl
command, do the following:
$ pecl install extname
@@ -1304,7 +1359,7 @@ Compiling shared PECL extensions with PEAR
extname.so into your extension_dir. extname.so may then be loaded via
php.ini
By default, the pear command will not install packages that are marked
By default, the pecl command will not install packages that are marked
with the alpha or beta state. If no stable packages are available, you
may install a beta package using the following command:
@@ -1317,9 +1372,9 @@ Compiling shared PECL extensions with PEAR
Compiling shared PECL extensions with phpize
Sometimes, using the pear installer is not an option. This could be
Sometimes, using the pecl installer is not an option. This could be
because you're behind a firewall, or it could be because the extension
you want to install is not available as a PEAR compatible package, such
you want to install is not available as a PECL compatible package, such
as unreleased extensions from CVS. If you need to build such an
extension, you can use the lower-level build tools to perform the build
manually.
@@ -1355,7 +1410,7 @@ Compiling PECL extensions statically into PHP
regenerate its configure script.
$ cd /your/phpsrcdir/ext
$ pear download extname
$ pecl download extname
$ gzip -d < extname.tgz | tar -xvf -
$ mv extname-x.x.x extname
@@ -1441,9 +1496,9 @@ The configuration file
* The PHPRC environment variable. Before PHP 5.2.0 this was checked
after the registry key mentioned below.
* As of PHP 5.2.0, the following registry locations are searched in
order: HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath\x.y.z,
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath\x.y and
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath\x, where x, y and z
order: HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y.z\IniFilePath,
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x.y\IniFilePath and
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\x\IniFilePath, where x, y and z
mean the PHP major, minor and release versions.
* HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath (Windows Registry
location)
+9 -9
View File
@@ -3,21 +3,21 @@
# Zend
#
$(builddir)/zend_language_scanner.lo: $(builddir)/zend_language_parser.h
$(builddir)/zend_ini_scanner.lo: $(builddir)/zend_ini_parser.h
$(builddir)/zend_language_scanner.lo: $(srcdir)/zend_language_parser.h
$(builddir)/zend_ini_scanner.lo: $(srcdir)/zend_ini_parser.h
$(builddir)/zend_language_scanner.c: $(srcdir)/zend_language_scanner.l
$(srcdir)/zend_language_scanner.c: $(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
$(srcdir)/zend_language_parser.h: $(srcdir)/zend_language_parser.c
$(srcdir)/zend_language_parser.c: $(srcdir)/zend_language_parser.y
@$(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
$(srcdir)/zend_ini_parser.h: $(srcdir)/zend_ini_parser.c
$(srcdir)/zend_ini_parser.c: $(srcdir)/zend_ini_parser.y
@$(YACC) -p ini_ -v -d $(srcdir)/zend_ini_parser.y -o $@
$(builddir)/zend_ini_scanner.c: $(srcdir)/zend_ini_scanner.l
$(srcdir)/zend_ini_scanner.c: $(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
$(builddir)/zend_indent.lo $(builddir)/zend_highlight.lo $(builddir)/zend_compile.lo: $(srcdir)/zend_language_parser.h
+60 -15
View File
@@ -8,27 +8,27 @@ COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORK
all: $(all_targets)
@echo
@echo "Build complete."
@echo "(It is safe to ignore warnings about tempnam and tmpnam)."
@echo "Don't forget to run 'make test'."
@echo
build-modules: $(PHP_MODULES)
libphp5.la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
libphp$(PHP_MAJOR_VERSION).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@
-@$(LIBTOOL) --silent --mode=install cp libphp5.la $(phptempdir)/libphp5.la >/dev/null 2>&1
-@$(LIBTOOL) --silent --mode=install cp $@ $(phptempdir)/$@ >/dev/null 2>&1
libs/libphp5.bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
$(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp5.so
libs/libphp$(PHP_MAJOR_VERSION).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS)
$(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@ && cp $@ libs/libphp$(PHP_MAJOR_VERSION).so
install: $(all_targets) $(install_targets)
install-sapi: $(OVERALL_TARGET)
@echo "Installing PHP SAPI module: $(PHP_SAPI)"
-@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
-@if test ! -r $(phptempdir)/libphp5.$(SHLIB_DL_SUFFIX_NAME); then \
-@if test ! -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); then \
for i in 0.0.0 0.0 0; do \
if test -r $(phptempdir)/libphp5.$(SHLIB_DL_SUFFIX_NAME).$$i; then \
$(LN_S) $(phptempdir)/libphp5.$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp5.$(SHLIB_DL_SUFFIX_NAME); \
if test -r $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i; then \
$(LN_S) $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_MAJOR_VERSION).$(SHLIB_DL_SUFFIX_NAME); \
break; \
fi; \
done; \
@@ -66,33 +66,78 @@ install-headers:
fi \
done; \
fi
install-su: install-pear
test: all
PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1'
PHP_TEST_SHARED_EXTENSIONS = ` \
if test "x$(PHP_MODULES)" != "x"; then \
for i in $(PHP_MODULES)""; do \
. $$i; $(top_srcdir)/build/shtool echo -n -- " -d extension=$$dlname"; \
done; \
fi`
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/; \
$(PHP_EXECUTABLE) $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -U -d extension_dir=modules/ $(PHP_TEST_SHARED_EXTENSIONS) tests/; \
elif test ! -z "$(SAPI_CLI_PATH)" && test -x "$(SAPI_CLI_PATH)"; then \
INI_FILE=`$(top_builddir)/$(SAPI_CLI_PATH) -r 'echo php_ini_loaded_file();'`; \
if test "$$INI_FILE"; then \
$(EGREP) -v '^extension[\t\ ]*=' "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
else \
echo > $(top_builddir)/tmp-php.ini; \
fi; \
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) $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -c $(top_builddir)/tmp-php.ini -U -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi
utest: all
-@if test ! -z "$(SAPI_CLI_PATH)" && test -x "$(SAPI_CLI_PATH)"; then \
INI_FILE=`$(top_builddir)/$(SAPI_CLI_PATH) -r 'echo php_ini_loaded_file();'`; \
if test "$$INI_FILE"; then \
$(EGREP) -v '^extension[\t\ ]*=' "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
else \
echo > $(top_builddir)/tmp-php.ini; \
fi; \
TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(top_builddir)/$(SAPI_CLI_PATH) $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -c $(top_builddir)/tmp-php.ini -u -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi
ntest: all
-@if test ! -z "$(SAPI_CLI_PATH)" && test -x "$(SAPI_CLI_PATH)"; then \
INI_FILE=`$(top_builddir)/$(SAPI_CLI_PATH) -r 'echo php_ini_loaded_file();'`; \
if test "$$INI_FILE"; then \
$(EGREP) -v '^extension[\t\ ]*=' "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
else \
echo > $(top_builddir)/tmp-php.ini; \
fi; \
TEST_PHP_EXECUTABLE=$(top_builddir)/$(SAPI_CLI_PATH) \
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(top_builddir)/$(SAPI_CLI_PATH) $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -c $(top_builddir)/tmp-php.ini -N -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi
clean:
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp5.la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
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
rm -f config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h php5.spec sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp
$(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
find . -name Makefile | xargs rm -f
+1384 -516
View File
File diff suppressed because it is too large. Load diff
+6 -4
View File
@@ -39,9 +39,7 @@ HEAD Will become PHP 6.0. This CVS branch is for active development.
PHP_5_2 Is used to release the PHP 5.2.x series. Only minor feature
enhancements may go in here, but please keep that as infrequent as
possible.
PHP_5_1 Is used to release the PHP 5.1.x series. Only bugfixes are permitted
on this branch (Consult the releasemaster prior to commit).
PHP_5_0 This branch is closed.
PHP_5_1 This branch is closed.
PHP_4_4 Is used to release the PHP 4.4.x series. Only bugfixes are permitted
on this branch (Consult the releasemaster prior to commit).
PHP_4_3 This branch is closed.
@@ -100,9 +98,13 @@ For string.c:
The # lines will be omitted from the ChangeLog automagically.
Use the [DOC] tag in your log message whenever you feel that your changes
imply a documentation modification. The php-doc team will automatically
get notified about your commit through the php-doc mailing list.
If you fix some bugs, you should note the bug ID numbers in your
commit message. Bug ID should be prefixed by "#" for easier access to
bug report when developers are browsing CVS via. LXR or Bonsai.
bug report when developers are browsing CVS via LXR or Bonsai.
Example:
+3 -3
View File
@@ -51,8 +51,8 @@ Type specifiers
passed to it.
/ - use SEPARATE_ZVAL_IF_NOT_REF() on the parameter it follows
! - the parameter it follows can be of specified type or NULL (only applies
to 'a', 'o', 'O', 'r', and 'z'). If NULL is passed, the results
pointer is set to NULL as well.
to 's', 'a', 'o', 'O', 'r', 'h', 'C', 'z', and 'Z'). If NULL is passed,
the results pointer is set to NULL as well.
Examples
--------
@@ -70,7 +70,7 @@ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lsz",
/* Gets an object of class specified by my_ce, and an optional double. */
zval *obj;
double d = 0.5;
zend_class_entry my_ce;
zend_class_entry *my_ce;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|d",
&obj, my_ce, &d) == FAILURE) {
return;
+15
View File
@@ -172,6 +172,21 @@ Items from the NEWS file explained
from your error handler in order to populate $php_errormsg. This allows
you to fine-grain the levels of the messages stored.
==============================
Regressions introduced/fixed
==============================
- In version 5.2.4 a security fix caused a regression for patterns of
the form "/foo/*/bar/*". Since version 5.2.5 instead of raising a warning the
glob() function will return false when openbase_dir restrictions are violated.
#See http://bugs.php.net/bug.php?id=41655
The warning that used to be raised looked like something as follows:
Warning: glob() [function.glob]: Unable to access /foo/*/bar/* in /foo.php on line xxx
#See http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dir.c?r1=1.169&r2=1.170
The patch can safely be applied to PHP 5.2.4 as well.
==============================
Backwards incompatible changes
-8
View File
@@ -96,13 +96,6 @@ ext/pcntl
* Remove all zend_extension code
* Add object callback support to pcntl_signal()
ext/pgsql
---------
For PHP 4.3.0:
* Add pg_metadata() with metadata cache feature.
* Add pg_convert() to check and convert array value for query.
* Add pg_insert/pg_update/pg_delete/pg_select for simple query.
ext/session
-----------
For PHP 4.3.0:
@@ -129,7 +122,6 @@ ext/standard
ext/wddx
--------
* See if we can support the remaining data types:
dateTime
binary
http://www.wddx.org/WDDX_SDK_10a/7__References/WDDX_DTD.htm
-20
View File
@@ -48,26 +48,6 @@ Responsibility: Shane Caraveo & each sapi module owner
Timeframe: ? (but shouldn't be much effort, most modules are probably ok)
Component: Input Filtering
- Implement a SAPI input filter hook that will get called
just before registering a variable in the
treat_data/post_handler hooks. (done)
- Make sure this is also done in mbstring (done)
- Provide access functions, or perhaps a new
$_RAW_GET/POST/Cookie set of superglobals to get at the
unfiltered data
- Provide a .ini directive which allows people to set their
input filter to one of the built-in strip_tags,
htmlspecialchars or whatever other internal function might
be useful here.
- (The main benefit of this is to make it easier for people
to solve the XSS problem once and for all without having
to go through every line of their code and adding input
validation/filtering everywhere)
Responsibility: Rasmus
Timeframe: Yesterday
Component: RPC Abstraction Layer
Porting java, com, dotnet, xmlrpc, corba, soap and python, srm
(are there more ?) to work with the new oo api and preferably
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Thread Safe Resource Manager |
+----------------------------------------------------------------------+
| Copyright (c) 1999-2007, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| Copyright (c) 1999-2008, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| This source file is subject to the TSRM license, that is bundled |
| with this package in the file LICENSE |
+----------------------------------------------------------------------+
+12 -7
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Thread Safe Resource Manager |
+----------------------------------------------------------------------+
| Copyright (c) 1999-2007, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| Copyright (c) 1999-2008, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| This source file is subject to the TSRM license, that is bundled |
| with this package in the file LICENSE |
+----------------------------------------------------------------------+
@@ -13,14 +13,11 @@
#ifndef TSRM_H
#define TSRM_H
/* #ifndef WIN32 */
#ifndef WIN32
# include <tsrm_config.h>
#endif
#ifdef WIN32
#if !defined(__CYGWIN__) && defined(WIN32)
# define TSRM_WIN32
# include "tsrm_config.w32.h"
#else
# include <tsrm_config.h>
#endif
#ifdef TSRM_WIN32
@@ -33,6 +30,14 @@
# define TSRM_API
#endif
#ifdef _WIN64
typedef __int64 tsrm_intptr_t;
typedef unsigned __int64 tsrm_uintptr_t;
#else
typedef long tsrm_intptr_t;
typedef unsigned long tsrm_uintptr_t;
#endif
/* Only compile multi-threading functions if we're in ZTS mode */
#ifdef ZTS
+4 -2
View File
@@ -1,8 +1,10 @@
#ifndef TSRM_CONFIG_COMMON_H
#define TSRM_CONFIG_COMMON_H
#if WINNT|WIN32
# define TSRM_WIN32
#ifndef __CYGWIN__
# if WINNT|WIN32
# define TSRM_WIN32
# endif
#endif
#ifdef TSRM_WIN32
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2007 The PHP Group |
| Copyright (c) 1997-2008 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 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-2007 The PHP Group |
| Copyright (c) 1997-2008 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+216 -104
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2007 The PHP Group |
| Copyright (c) 1997-2008 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -136,7 +136,7 @@ static int php_check_dots(const char *element, int n)
free((s)->cwd);
#ifdef TSRM_WIN32
CWD_API int php_sys_stat(const char *path, struct stat *buf)
CWD_API int php_sys_stat(const char *path, struct stat *buf) /* {{{ */
{
WIN32_FILE_ATTRIBUTE_DATA data;
__int64 t;
@@ -215,9 +215,10 @@ CWD_API int php_sys_stat(const char *path, struct stat *buf)
buf->st_mtime = (unsigned long)((t / 10000000) - 11644473600);
return 0;
}
/* }}} */
#endif
static int php_is_dir_ok(const cwd_state *state)
static int php_is_dir_ok(const cwd_state *state) /* {{{ */
{
struct stat buf;
@@ -226,8 +227,9 @@ static int php_is_dir_ok(const cwd_state *state)
return (1);
}
/* }}} */
static int php_is_file_ok(const cwd_state *state)
static int php_is_file_ok(const cwd_state *state) /* {{{ */
{
struct stat buf;
@@ -236,8 +238,9 @@ static int php_is_file_ok(const cwd_state *state)
return (1);
}
/* }}} */
static void cwd_globals_ctor(virtual_cwd_globals *cwd_globals TSRMLS_DC)
static void cwd_globals_ctor(virtual_cwd_globals *cwd_globals TSRMLS_DC) /* {{{ */
{
CWD_STATE_COPY(&cwd_globals->cwd, &main_cwd_state);
cwd_globals->realpath_cache_size = 0;
@@ -245,14 +248,16 @@ static void cwd_globals_ctor(virtual_cwd_globals *cwd_globals TSRMLS_DC)
cwd_globals->realpath_cache_ttl = REALPATH_CACHE_TTL;
memset(cwd_globals->realpath_cache, 0, sizeof(cwd_globals->realpath_cache));
}
/* }}} */
static void cwd_globals_dtor(virtual_cwd_globals *cwd_globals TSRMLS_DC)
static void cwd_globals_dtor(virtual_cwd_globals *cwd_globals TSRMLS_DC) /* {{{ */
{
CWD_STATE_FREE(&cwd_globals->cwd);
realpath_cache_clean(TSRMLS_C);
}
/* }}} */
static char *tsrm_strndup(const char *s, size_t length)
static char *tsrm_strndup(const char *s, size_t length) /* {{{ */
{
char *p;
@@ -266,8 +271,9 @@ static char *tsrm_strndup(const char *s, size_t length)
p[length]=0;
return p;
}
/* }}} */
CWD_API void virtual_cwd_startup(void)
CWD_API void virtual_cwd_startup(void) /* {{{ */
{
char cwd[MAXPATHLEN];
char *result;
@@ -302,8 +308,9 @@ CWD_API void virtual_cwd_startup(void)
cwd_mutex = tsrm_mutex_alloc();
#endif
}
/* }}} */
CWD_API void virtual_cwd_shutdown(void)
CWD_API void virtual_cwd_shutdown(void) /* {{{ */
{
#ifndef ZTS
cwd_globals_dtor(&cwd_globals TSRMLS_CC);
@@ -314,8 +321,9 @@ CWD_API void virtual_cwd_shutdown(void)
free(main_cwd_state.cwd); /* Don't use CWD_STATE_FREE because the non global states will probably use emalloc()/efree() */
}
/* }}} */
CWD_API char *virtual_getcwd_ex(size_t *length TSRMLS_DC)
CWD_API char *virtual_getcwd_ex(size_t *length TSRMLS_DC) /* {{{ */
{
cwd_state *state;
@@ -347,10 +355,10 @@ CWD_API char *virtual_getcwd_ex(size_t *length TSRMLS_DC)
*length = state->cwd_length;
return strdup(state->cwd);
}
/* }}} */
/* Same semantics as UNIX getcwd() */
CWD_API char *virtual_getcwd(char *buf, size_t size TSRMLS_DC)
CWD_API char *virtual_getcwd(char *buf, size_t size TSRMLS_DC) /* {{{ */
{
size_t length;
char *cwd;
@@ -369,8 +377,9 @@ CWD_API char *virtual_getcwd(char *buf, size_t size TSRMLS_DC)
free(cwd);
return buf;
}
/* }}} */
static inline unsigned long realpath_cache_key(const char *path, int path_len)
static inline unsigned long realpath_cache_key(const char *path, int path_len) /* {{{ */
{
register unsigned long h;
const char *e = path + path_len;
@@ -382,8 +391,9 @@ static inline unsigned long realpath_cache_key(const char *path, int path_len)
return h;
}
/* }}} */
CWD_API void realpath_cache_clean(TSRMLS_D)
CWD_API void realpath_cache_clean(TSRMLS_D) /* {{{ */
{
int i;
@@ -398,8 +408,9 @@ CWD_API void realpath_cache_clean(TSRMLS_D)
}
CWDG(realpath_cache_size) = 0;
}
/* }}} */
CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC)
CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC) /* {{{ */
{
unsigned long key = realpath_cache_key(path, path_len);
unsigned long n = key % (sizeof(CWDG(realpath_cache)) / sizeof(CWDG(realpath_cache)[0]));
@@ -418,8 +429,9 @@ CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC)
}
}
}
/* }}} */
static inline void realpath_cache_add(const char *path, int path_len, const char *realpath, int realpath_len, time_t t TSRMLS_DC)
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)) {
@@ -440,8 +452,9 @@ static inline void realpath_cache_add(const char *path, int path_len, const char
CWDG(realpath_cache_size) += size;
}
}
/* }}} */
static inline realpath_cache_bucket* realpath_cache_find(const char *path, int path_len, time_t t TSRMLS_DC)
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]));
@@ -462,11 +475,11 @@ static inline realpath_cache_bucket* realpath_cache_find(const char *path, int p
}
return NULL;
}
/* }}} */
/* 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)
CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func verify_path, int use_realpath) /* {{{ */
{
int path_length = strlen(path);
cwd_state old_state;
@@ -474,10 +487,17 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
realpath_cache_bucket *bucket;
time_t t = 0;
int ret;
int use_cache;
int use_relative_path = 0;
#ifdef TSRM_WIN32
int is_unc;
#endif
TSRMLS_FETCH();
use_cache = ((use_realpath != CWD_EXPAND) && CWDG(realpath_cache_size_limit));
if (path_length == 0)
return (0);
return (1);
if (path_length >= MAXPATHLEN)
return (1);
@@ -488,28 +508,33 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
/* 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 > 0)) {
int orig_path_len;
int state_cwd_length = state->cwd_length;
if (!IS_ABSOLUTE_PATH(path, path_length)) {
if (state->cwd_length == 0) {
use_cache = 0;
use_relative_path = 1;
} else {
int orig_path_len;
int state_cwd_length = state->cwd_length;
#ifdef TSRM_WIN32
if (IS_SLASH(path[0])) {
state_cwd_length = 2;
}
if (IS_SLASH(path[0])) {
state_cwd_length = 2;
}
#endif
orig_path_len = path_length + state_cwd_length + 1;
if (orig_path_len >= MAXPATHLEN) {
return 1;
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);
path = orig_path;
path_length = orig_path_len;
}
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);
path = orig_path;
path_length = orig_path_len;
}
if (use_realpath != CWD_EXPAND && CWDG(realpath_cache_size_limit)) {
t = CWDG(realpath_cache_ttl)?time(NULL):0;
if (use_cache) {
t = CWDG(realpath_cache_ttl)?time(0):0;
if ((bucket = realpath_cache_find(path, path_length, t TSRMLS_CC)) != NULL) {
int len = bucket->realpath_len;
@@ -538,6 +563,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
}
goto no_realpath;
}
use_realpath = CWD_REALPATH;
CWD_STATE_COPY(&old_state, state);
state->cwd_length = strlen(resolved_path);
@@ -548,15 +574,23 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
#endif
} else {
char *ptr, *path_copy, *free_path;
char *tok = NULL;
char *tok;
int ptr_length;
no_realpath:
#ifdef TSRM_WIN32
if (memchr(path, '*', path_length) ||
memchr(path, '?', path_length)) {
return 1;
}
#endif
free_path = path_copy = tsrm_strndup(path, path_length);
CWD_STATE_COPY(&old_state, state);
#ifdef TSRM_WIN32
#ifdef TSRM_WIN32
ret = 0;
is_unc = 0;
if (path_length >= 2 && path[1] == ':') {
state->cwd = (char *) realloc(state->cwd, 2 + 1);
state->cwd[0] = toupper(path[0]);
@@ -570,6 +604,7 @@ no_realpath:
state->cwd[1] = '\0';
state->cwd_length = 1;
path_copy += 2;
is_unc = 2;
} else {
#endif
state->cwd = (char *) realloc(state->cwd, 1);
@@ -579,6 +614,7 @@ no_realpath:
}
#endif
tok = NULL;
ptr = tsrm_strtok_r(path_copy, TOKENIZER_STRING, &tok);
while (ptr) {
ptr_length = strlen(ptr);
@@ -586,6 +622,12 @@ no_realpath:
if (IS_DIRECTORY_UP(ptr, ptr_length)) {
char save;
if (use_relative_path) {
CWD_STATE_FREE(state);
*state = old_state;
return 1;
}
save = DEFAULT_SLASH;
#define PREVIOUS state->cwd[state->cwd_length - 1]
@@ -605,33 +647,38 @@ no_realpath:
state->cwd_length--;
}
} else if (!IS_DIRECTORY_CURRENT(ptr, ptr_length)) {
state->cwd = (char *) realloc(state->cwd, state->cwd_length+ptr_length+1+1);
if (use_relative_path) {
state->cwd = (char *) realloc(state->cwd, state->cwd_length+ptr_length+1);
use_relative_path = 0;
} else {
state->cwd = (char *) realloc(state->cwd, state->cwd_length+ptr_length+1+1);
#ifdef TSRM_WIN32
/* Windows 9x will consider C:\\Foo as a network path. Avoid it. */
if (state->cwd_length < 2 ||
(state->cwd[state->cwd_length-1]!='\\' && state->cwd[state->cwd_length-1]!='/') ||
IsDBCSLeadByte(state->cwd[state->cwd_length-2])) {
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
}
/* Windows 9x will consider C:\\Foo as a network path. Avoid it. */
if (state->cwd_length < 2 ||
(state->cwd[state->cwd_length-1]!='\\' && state->cwd[state->cwd_length-1]!='/') ||
IsDBCSLeadByte(state->cwd[state->cwd_length-2])) {
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)) {
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
}
/*
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)) {
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
}
#else
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
#endif
}
memcpy(&state->cwd[state->cwd_length], ptr, ptr_length+1);
#ifdef TSRM_WIN32
@@ -648,11 +695,15 @@ no_realpath:
memcpy(&state->cwd[state->cwd_length], data.cFileName, length+1);
ptr_length = length;
FindClose(hFind);
ret = 0;
} else if (use_realpath == CWD_REALPATH) {
free(free_path);
CWD_STATE_FREE(state);
*state = old_state;
return 1;
if (is_unc) {
/* skip share name */
is_unc--;
ret = 0;
} else {
ret = 1;
}
}
}
#endif
@@ -661,9 +712,26 @@ no_realpath:
}
ptr = tsrm_strtok_r(NULL, TOKENIZER_STRING, &tok);
}
free(free_path);
if (use_realpath == CWD_REALPATH) {
if (ret) {
CWD_STATE_FREE(state);
*state = old_state;
return 1;
}
} else {
#if defined(TSRM_WIN32) || defined(NETWARE)
if (path[path_length-1] == '\\' || path[path_length-1] == '/') {
#else
if (path[path_length-1] == '/') {
#endif
state->cwd = (char*)realloc(state->cwd, state->cwd_length + 2);
state->cwd[state->cwd_length++] = DEFAULT_SLASH;
state->cwd[state->cwd_length] = 0;
}
}
if (state->cwd_length == COPY_WHEN_ABSOLUTE(state->cwd)) {
state->cwd = (char *) realloc(state->cwd, state->cwd_length+1+1);
state->cwd[state->cwd_length] = DEFAULT_SLASH;
@@ -672,7 +740,12 @@ no_realpath:
}
}
if (use_realpath != CWD_EXPAND && CWDG(realpath_cache_size_limit)) {
/* Store existent file in realpath cache. */
#ifdef TSRM_WIN32
if (use_cache && !is_unc) {
#else
if (use_cache && (use_realpath == CWD_REALPATH)) {
#endif
realpath_cache_add(path, path_length, state->cwd, state->cwd_length, t TSRMLS_CC);
}
@@ -690,13 +763,15 @@ no_realpath:
#endif
return (ret);
}
/* }}} */
CWD_API int virtual_chdir(const char *path TSRMLS_DC)
CWD_API int virtual_chdir(const char *path TSRMLS_DC) /* {{{ */
{
return virtual_file_ex(&CWDG(cwd), path, php_is_dir_ok, CWD_REALPATH)?-1:0;
}
/* }}} */
CWD_API int virtual_chdir_file(const char *path, int (*p_chdir)(const char *path TSRMLS_DC) TSRMLS_DC)
CWD_API int virtual_chdir_file(const char *path, int (*p_chdir)(const char *path TSRMLS_DC) TSRMLS_DC) /* {{{ */
{
int length = strlen(path);
char *temp;
@@ -727,13 +802,29 @@ CWD_API int virtual_chdir_file(const char *path, int (*p_chdir)(const char *path
tsrm_free_alloca(temp);
return retval;
}
/* }}} */
CWD_API char *virtual_realpath(const char *path, char *real_path TSRMLS_DC)
CWD_API char *virtual_realpath(const char *path, char *real_path TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
char *retval;
char cwd[MAXPATHLEN];
CWD_STATE_COPY(&new_state, &CWDG(cwd));
/* realpath("") returns CWD */
if (!*path) {
new_state.cwd = (char*)malloc(1);
new_state.cwd[0] = '\0';
new_state.cwd_length = 0;
if (VCWD_GETCWD(cwd, MAXPATHLEN)) {
path = cwd;
}
} else if (!IS_ABSOLUTE_PATH(path, strlen(path))) {
CWD_STATE_COPY(&new_state, &CWDG(cwd));
} else {
new_state.cwd = (char*)malloc(1);
new_state.cwd[0] = '\0';
new_state.cwd_length = 0;
}
if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)==0) {
int len = new_state.cwd_length>MAXPATHLEN-1?MAXPATHLEN-1:new_state.cwd_length;
@@ -749,8 +840,9 @@ CWD_API char *virtual_realpath(const char *path, char *real_path TSRMLS_DC)
return retval;
}
/* }}} */
CWD_API int virtual_filepath_ex(const char *path, char **filepath, verify_path_func verify_path TSRMLS_DC)
CWD_API int virtual_filepath_ex(const char *path, char **filepath, verify_path_func verify_path TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
int retval;
@@ -763,13 +855,15 @@ CWD_API int virtual_filepath_ex(const char *path, char **filepath, verify_path_f
return retval;
}
/* }}} */
CWD_API int virtual_filepath(const char *path, char **filepath TSRMLS_DC)
CWD_API int virtual_filepath(const char *path, char **filepath TSRMLS_DC) /* {{{ */
{
return virtual_filepath_ex(path, filepath, php_is_file_ok TSRMLS_CC);
}
/* }}} */
CWD_API FILE *virtual_fopen(const char *path, const char *mode TSRMLS_DC)
CWD_API FILE *virtual_fopen(const char *path, const char *mode TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
FILE *f;
@@ -789,8 +883,9 @@ CWD_API FILE *virtual_fopen(const char *path, const char *mode TSRMLS_DC)
CWD_STATE_FREE(&new_state);
return f;
}
/* }}} */
CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC)
CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
int ret;
@@ -811,10 +906,10 @@ CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC)
return ret;
}
/* }}} */
#if HAVE_UTIME
CWD_API int virtual_utime(const char *filename, struct utimbuf *buf TSRMLS_DC)
CWD_API int virtual_utime(const char *filename, struct utimbuf *buf TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
int ret;
@@ -830,9 +925,10 @@ CWD_API int virtual_utime(const char *filename, struct utimbuf *buf TSRMLS_DC)
CWD_STATE_FREE(&new_state);
return ret;
}
/* }}} */
#endif
CWD_API int virtual_chmod(const char *filename, mode_t mode TSRMLS_DC)
CWD_API int virtual_chmod(const char *filename, mode_t mode TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
int ret;
@@ -848,9 +944,10 @@ CWD_API int virtual_chmod(const char *filename, mode_t mode TSRMLS_DC)
CWD_STATE_FREE(&new_state);
return ret;
}
/* }}} */
#if !defined(TSRM_WIN32) && !defined(NETWARE)
CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int link TSRMLS_DC)
CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int link TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
int ret;
@@ -874,9 +971,10 @@ CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int li
CWD_STATE_FREE(&new_state);
return ret;
}
/* }}} */
#endif
CWD_API int virtual_open(const char *path TSRMLS_DC, int flags, ...)
CWD_API int virtual_open(const char *path TSRMLS_DC, int flags, ...) /* {{{ */
{
cwd_state new_state;
int f;
@@ -902,8 +1000,9 @@ CWD_API int virtual_open(const char *path TSRMLS_DC, int flags, ...)
CWD_STATE_FREE(&new_state);
return f;
}
/* }}} */
CWD_API int virtual_creat(const char *path, mode_t mode TSRMLS_DC)
CWD_API int virtual_creat(const char *path, mode_t mode TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
int f;
@@ -919,22 +1018,23 @@ CWD_API int virtual_creat(const char *path, mode_t mode TSRMLS_DC)
CWD_STATE_FREE(&new_state);
return f;
}
/* }}} */
CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC)
CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC) /* {{{ */
{
cwd_state old_state;
cwd_state new_state;
int retval;
CWD_STATE_COPY(&old_state, &CWDG(cwd));
if (virtual_file_ex(&old_state, oldname, NULL, CWD_REALPATH)) {
if (virtual_file_ex(&old_state, oldname, NULL, CWD_EXPAND)) {
CWD_STATE_FREE(&old_state);
return -1;
}
oldname = old_state.cwd;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, newname, NULL, CWD_FILEPATH)) {
if (virtual_file_ex(&new_state, newname, NULL, CWD_EXPAND)) {
CWD_STATE_FREE(&old_state);
CWD_STATE_FREE(&new_state);
return -1;
@@ -948,8 +1048,9 @@ CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC)
return retval;
}
/* }}} */
CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC)
CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
int retval;
@@ -965,15 +1066,16 @@ CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC)
CWD_STATE_FREE(&new_state);
return retval;
}
/* }}} */
#if !defined(TSRM_WIN32)
CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC)
CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
int retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_EXPAND)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -983,9 +1085,10 @@ CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC)
CWD_STATE_FREE(&new_state);
return retval;
}
/* }}} */
#endif
CWD_API int virtual_unlink(const char *path TSRMLS_DC)
CWD_API int virtual_unlink(const char *path TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
int retval;
@@ -1001,8 +1104,9 @@ CWD_API int virtual_unlink(const char *path TSRMLS_DC)
CWD_STATE_FREE(&new_state);
return retval;
}
/* }}} */
CWD_API int virtual_mkdir(const char *pathname, mode_t mode TSRMLS_DC)
CWD_API int virtual_mkdir(const char *pathname, mode_t mode TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
int retval;
@@ -1021,8 +1125,9 @@ CWD_API int virtual_mkdir(const char *pathname, mode_t mode TSRMLS_DC)
CWD_STATE_FREE(&new_state);
return retval;
}
/* }}} */
CWD_API int virtual_rmdir(const char *pathname TSRMLS_DC)
CWD_API int virtual_rmdir(const char *pathname TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
int retval;
@@ -1038,12 +1143,13 @@ CWD_API int virtual_rmdir(const char *pathname TSRMLS_DC)
CWD_STATE_FREE(&new_state);
return retval;
}
/* }}} */
#ifdef TSRM_WIN32
DIR *opendir(const char *name);
#endif
CWD_API DIR *virtual_opendir(const char *pathname TSRMLS_DC)
CWD_API DIR *virtual_opendir(const char *pathname TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
DIR *retval;
@@ -1059,20 +1165,19 @@ CWD_API DIR *virtual_opendir(const char *pathname TSRMLS_DC)
CWD_STATE_FREE(&new_state);
return retval;
}
/* }}} */
#ifdef TSRM_WIN32
CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC)
CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC) /* {{{ */
{
return popen_ex(command, type, CWDG(cwd).cwd, NULL);
}
/* }}} */
#elif defined(NETWARE)
/* On NetWare, the trick of prepending "cd cwd; " doesn't work so we need to perform
a VCWD_CHDIR() and mutex it
*/
CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC)
CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC) /* {{{ */
{
char prev_cwd[MAXPATHLEN];
char *getcwd_result;
@@ -1097,10 +1202,9 @@ CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC)
return retval;
}
/* }}} */
#else /* Unix */
CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC)
CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC) /* {{{ */
{
int command_length;
int dir_length, extra = 0;
@@ -1157,15 +1261,23 @@ CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC)
free(command_line);
return retval;
}
/* }}} */
#endif
CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC)
CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
char cwd[MAXPATHLEN];
if (!IS_ABSOLUTE_PATH(path, strlen(path)) &&
/* realpath("") returns CWD */
if (!*path) {
new_state.cwd = (char*)malloc(1);
new_state.cwd[0] = '\0';
new_state.cwd_length = 0;
if (VCWD_GETCWD(cwd, MAXPATHLEN)) {
path = cwd;
}
} else if (!IS_ABSOLUTE_PATH(path, strlen(path)) &&
VCWD_GETCWD(cwd, MAXPATHLEN)) {
new_state.cwd = strdup(cwd);
new_state.cwd_length = strlen(cwd);
@@ -1190,7 +1302,7 @@ CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC)
return new_state.cwd;
}
}
/* }}} */
/*
* Local variables:
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2007 The PHP Group |
| Copyright (c) 1997-2008 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+8 -7
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2007 The PHP Group |
| Copyright (c) 1997-2008 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
@@ -219,7 +219,7 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c "));
sprintf(cmd, "%s /c %s", TWG(comspec), command);
if (!CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle, NORMAL_PRIORITY_CLASS, env, cwd, &startup, &process)) {
if (!CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle, NORMAL_PRIORITY_CLASS|CREATE_NO_WINDOW, env, cwd, &startup, &process)) {
return NULL;
}
free(cmd);
@@ -228,10 +228,10 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
proc = process_get(NULL TSRMLS_CC);
if (read) {
fno = _open_osfhandle((long)in, _O_RDONLY | mode);
fno = _open_osfhandle((tsrm_intptr_t)in, _O_RDONLY | mode);
CloseHandle(out);
} else {
fno = _open_osfhandle((long)out, _O_WRONLY | mode);
fno = _open_osfhandle((tsrm_intptr_t)out, _O_WRONLY | mode);
CloseHandle(in);
}
@@ -280,9 +280,6 @@ TSRM_API int shmget(int key, int size, int flags)
info_handle = OpenFileMapping(FILE_MAP_ALL_ACCESS, FALSE, shm_info);
if ((!shm_handle && !info_handle)) {
if (flags & IPC_EXCL) {
return -1;
}
if (flags & IPC_CREAT) {
shm_handle = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, size, shm_segment);
info_handle = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, sizeof(shm->descriptor), shm_info);
@@ -291,6 +288,10 @@ TSRM_API int shmget(int key, int size, int flags)
if ((!shm_handle || !info_handle)) {
return -1;
}
} else {
if (flags & IPC_EXCL) {
return -1;
}
}
shm = shm_get(key, NULL);
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2007 The PHP Group |
| Copyright (c) 1997-2008 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
+28 -7
View File
@@ -1,13 +1,34 @@
The goal of the new memory manager (PHP 5.2 and later) is reducing memory allocation overhead and speedup memory management.
Zend Memory Manager
===================
The new manager's "configure" has no "--disable-zend-memory-manager" option, but it has "--enable-malloc-mm" instead. It is enabled by default in DEBUG build and disabled by default in RELEASE built. It allows select malloc/emalloc at runtime. So you can use internal and external memory debuggers without recompilation.
General:
--------
$ sapi/cli/php -r 'leak();'
The goal of the new memory manager (available since PHP 5.2) is to reduce memory
allocation overhead and speedup memory management.
$ USE_ZEND_ALLOC=0 valgrind --leak-check=full -r 'leak();'
The new manager's "configure" has no "--disable-zend-memory-manager" option,
but it has "--enable-malloc-mm" instead. It is enabled by default in DEBUG
build and disabled by default in RELEASE build. when enabled it allows selecting
between malloc and emalloc at runtime so you can use internal and external memory
debuggers without recompilation.
The patch allows tweaking memory manager with ZEND_MM_MEM_TYPE and ZEND_MM_SEG_SIZE environment variables. Default values are "malloc" and "256K". Dependent on target system you can also use "mmap_anon", "mmap_zero"
and "win32" storage managers.
Debugging:
----------
$ ZEND_MM_MEM_TYPE=mmap_anon ZEND_MM_SEG_SIZE=1M sapi/cli/php
Normal:
$ sapi/cli/php -r 'leak();'
Zend MM disabled:
$ USE_ZEND_ALLOC=0 valgrind --leak-check=full sapi/cli/php -r 'leak();'
Tweaking:
---------
The Zend MM can be tweaked using ZEND_MM_MEM_TYPE and ZEND_MM_SEG_SIZE environment
variables. Default values are "malloc" and "256K". Dependent on target system you
can also use "mmap_anon", "mmap_zero" and "win32" storage managers.
$ ZEND_MM_MEM_TYPE=mmap_anon ZEND_MM_SEG_SIZE=1M sapi/cli/php ..etc.
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2007 Zend Technologies Ltd. (http://www.zend.com) |
| Copyright (c) 1998-2008 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 |
+8 -4
View File
@@ -10,9 +10,11 @@ var_dump(get_resource_type($fp));
fclose($fp);
var_dump(get_resource_type($fp));
var_dump(get_loaded_extensions(true));
var_dump(gettype(get_loaded_extensions()));
var_dump(count(get_loaded_extensions()));
var_dump(gettype(get_loaded_extensions(true)));
var_dump(count(get_loaded_extensions(true)));
var_dump(get_loaded_extensions(true, true));
define("USER_CONSTANT", "test");
@@ -50,11 +52,13 @@ Warning: Supplied argument is not a valid resource handle in %s on line %d
bool(false)
string(6) "stream"
string(7) "Unknown"
Warning: Wrong parameter count for get_loaded_extensions() in %s on line %d
NULL
string(5) "array"
int(%d)
string(5) "array"
int(%d)
Warning: get_loaded_extensions() expects at most 1 parameter, 2 given in %s on line %d
NULL
Warning: Wrong parameter count for get_defined_constants() in %s on line %d
NULL
+36
View File
@@ -0,0 +1,36 @@
--TEST--
constant() tests
--FILE--
<?php
var_dump(constant());
var_dump(constant("", ""));
var_dump(constant(""));
var_dump(constant(array()));
define("TEST_CONST", 1);
var_dump(constant("TEST_CONST"));
define("TEST_CONST2", "test");
var_dump(constant("TEST_CONST2"));
echo "Done\n";
?>
--EXPECTF--
Warning: Wrong parameter count for constant() in %s on line %d
NULL
Warning: Wrong parameter count for constant() in %s on line %d
NULL
Warning: constant(): Couldn't find constant in %s on line %d
NULL
Notice: Array to string conversion in %s on line %d
Warning: constant(): Couldn't find constant Array in %s on line %d
NULL
int(1)
string(4) "test"
Done
+1332
View File
File diff suppressed because it is too large. Load diff
+31
View File
@@ -0,0 +1,31 @@
--TEST--
func_get_arg() invalid usage
--FILE--
<?php
var_dump(func_get_arg(1,2,3));
var_dump(func_get_arg(1));
var_dump(func_get_arg());
function bar() {
var_dump(func_get_arg(1));
}
function foo() {
bar(func_get_arg(1));
}
foo(1,2);
echo "Done\n";
?>
--EXPECTF--
bool(false)
Warning: func_get_arg(): Called from the global scope - no function context in %s on line %d
bool(false)
bool(false)
Warning: func_get_arg(): Argument 1 not passed to function in %s on line %d
bool(false)
Done
+73
View File
@@ -0,0 +1,73 @@
--TEST--
adding arrays
--FILE--
<?php
$a = array(1,2,3);
$b = array("str", "here");
$c = $a + $b;
var_dump($c);
$a = array(1,2,3);
$b = array(1,2,4);
$c = $a + $b;
var_dump($c);
$a = array("a"=>"aaa",2,3);
$b = array(1,2,"a"=>"bbbbbb");
$c = $a + $b;
var_dump($c);
$a += $b;
var_dump($c);
$a += $a;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
array(3) {
["a"]=>
string(3) "aaa"
[0]=>
int(2)
[1]=>
int(3)
}
array(3) {
["a"]=>
string(3) "aaa"
[0]=>
int(2)
[1]=>
int(3)
}
array(3) {
["a"]=>
string(3) "aaa"
[0]=>
int(2)
[1]=>
int(3)
}
Done
+19
View File
@@ -0,0 +1,19 @@
--TEST--
adding objects to arrays
--FILE--
<?php
$a = array(1,2,3);
$o = new stdclass;
$o->prop = "value";
$c = $a + $o;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
Notice: Object of class stdClass could not be converted to int in %s on line %d
Fatal error: Unsupported operand types in %s on line %d
+19
View File
@@ -0,0 +1,19 @@
--TEST--
adding arrays to objects
--FILE--
<?php
$a = array(1,2,3);
$o = new stdclass;
$o->prop = "value";
$c = $o + $a;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
Notice: Object of class stdClass could not be converted to int in %s on line %d
Fatal error: Unsupported operand types in %s on line %d
+14
View File
@@ -0,0 +1,14 @@
--TEST--
adding numbers to arrays
--FILE--
<?php
$a = array(1,2,3);
$c = $a + 5;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
Fatal error: Unsupported operand types in %s on line %d
+22
View File
@@ -0,0 +1,22 @@
--TEST--
adding integers to doubles
--INI--
precision=14
--FILE--
<?php
$i = 75636;
$d = 2834681123.123123;
$c = $i + $d;
var_dump($c);
$c = $d + $i;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
float(2834756759.1231)
float(2834756759.1231)
Done
+49
View File
@@ -0,0 +1,49 @@
--TEST--
adding numbers to strings
--INI--
precision=14
--FILE--
<?php
$i = 75636;
$s1 = "this is a string";
$s2 = "876222numeric";
$s3 = "48474874";
$s4 = "25.68";
$c = $i + $s1;
var_dump($c);
$c = $i + $s2;
var_dump($c);
$c = $i + $s3;
var_dump($c);
$c = $i + $s4;
var_dump($c);
$c = $s1 + $i;
var_dump($c);
$c = $s2 + $i;
var_dump($c);
$c = $s3 + $i;
var_dump($c);
$c = $s4 + $i;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
int(75636)
int(951858)
int(48550510)
float(75661.68)
int(75636)
int(951858)
int(48550510)
float(75661.68)
Done
+16
View File
@@ -0,0 +1,16 @@
--TEST--
adding strings to arrays
--FILE--
<?php
$a = array(1,2,3);
$s1 = "some string";
$c = $a + $s1;
var_dump($c);
echo "Done\n";
?>
--EXPECTF--
Fatal error: Unsupported operand types in %s on line %d
+39
View File
@@ -0,0 +1,39 @@
--TEST--
bitwise AND and strings
--FILE--
<?php
$s = "123";
$s1 = "234";
var_dump($s & $s1);
$s = "test";
$s1 = "some";
var_dump($s & $s1);
$s = "test long";
$s1 = "some";
var_dump($s & $s1);
$s = "test";
$s1 = "some long";
var_dump($s & $s1);
$s = "test";
$s &= "some long";
var_dump($s);
echo "Done\n";
?>
--EXPECTF--
string(3) "020"
string(4) "pead"
string(4) "pead"
string(4) "pead"
string(4) "pead"
Done
+16
View File
@@ -0,0 +1,16 @@
--TEST--
Tests that array manipulation code is correctly dealing with copy on write and splitting on reference
--FILE--
<?php
$a=array();
$b=1;
$c=&$b;
$a[]=$b;
$b=2;
var_dump ($a);
?>
--EXPECT--
array(1) {
[0]=>
int(1)
}
+16
View File
@@ -0,0 +1,16 @@
--TEST--
Tests that array unshift code is correctly dealing with copy on write and splitting on reference
--FILE--
<?php
$a=array();
$b=1;
$c=&$b;
array_unshift ($a,$b);
$b=2;
var_dump ($a);
?>
--EXPECT--
array(1) {
[0]=>
int(1)
}
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
bug #22725 (A derived class can call a parent's protected method that calls a private method)
Bug #22725 (A derived class can call a parent's protected method that calls a private method)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--FILE--
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #27304
Bug #27304 (Static functions don't function properly)
--FILE--
<?php
+2 -2
View File
@@ -49,12 +49,12 @@ array(1) {
}
Base::__construct
array(3) {
["Baz"]=>
int(4)
["Foo"]=>
int(1)
["Bar"]=>
int(2)
["Baz"]=>
int(3)
}
Child::__construct
array(3) {
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #29104 Function declaration in method doesn't work
Bug #29104 (Function declaration in method doesn't work)
--FILE--
<?php
class A
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #29210 Function: is_callable - no support for private and protected classes
Bug #29210 (Function is_callable does not support private and protected methods)
--FILE--
<?php
class test_class {
+1 -1
View File
@@ -33,7 +33,7 @@ $obj->printVars();
===BASE===
string(4) "Base"
Notice: Undefined property: BaseClass::$private_child in %sbug29674.php on line %d
Notice: Undefined property: BaseClass::$private_child in %sbug29674.php on line %d
NULL
===CHILD===
string(4) "Base"
+1 -1
View File
@@ -52,7 +52,7 @@ $baz->printFoo();
--EXPECTF--
foo: foo foo2
bar: bar
Notice: Undefined property: bar::$foo2 in %s on line %d
Notice: Undefined property: bar::$foo2 in %s on line %d
---baz--
foo: foo foo2
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #30519 Interface not existing says Class not found
Bug #30519 (Interface not existing says Class not found)
--FILE--
<?php
class test implements a {
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #30702 cannot initialize class variable from class constant
Bug #30702 (cannot initialize class variable from class constant)
--FILE--
<?php
class foo {
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #30791 magic methods (__sleep/__wakeup/__toString) call __call if object is overloaded
Bug #30791 (magic methods (__sleep/__wakeup/__toString) call __call if object is overloaded)
--FILE--
<?php
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #30889 Conflict between __get/__set and ++ operator
Bug #30889 (Conflict between __get/__set and ++ operator)
--FILE--
<?php
class overloaded
+1 -1
View File
@@ -10,4 +10,4 @@ var_dump($a instanceOf A);
echo "ok\n";
?>
--EXPECTF--
Fatal error: Interface RecurisiveFooFar cannot not implement itself in %sbug30922.php on line %d
Fatal error: Interface RecurisiveFooFar cannot implement itself in %sbug30922.php on line %d
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #32296 get_class_methods output has changed between 5.0.2 and 5.0.3
Bug #32296 (get_class_methods output has changed between 5.0.2 and 5.0.3)
--FILE--
<?php
abstract class space{
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #32427 Interfaces are not allowed 'static' access modifier
Bug #32427 (Interfaces are not allowed 'static' access modifier)
--FILE--
<?php
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #32660 Assignment by reference causes crash when field access is overloaded (__get)
Bug #32660 (Assignment by reference causes crash when field access is overloaded (__get))
--FILE--
<?php
class A
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #32674 exception in iterator causes crash
Bug #32674 (exception in iterator causes crash)
--FILE--
<?php
class collection implements Iterator {
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #32833 Invalid opcode
Bug #32833 (Invalid opcode with $a[] .= '')
--FILE--
<?php
$test = array();
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #33257 array_splice() inconsistent when passed function instead of variable
Bug #33257 (array_splice() inconsistent when passed function instead of variable)
--INI--
error_reporting=4095
--FILE--
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #34712 zend.ze1_compatibility_mode = on segfault
Bug #34712 (zend.ze1_compatibility_mode = on segfault)
--INI--
zend.ze1_compatibility_mode=1
error_reporting=4095
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #35437 Segfault or Invalid Opcode 137/1/4
Bug #35437 (Segfault or Invalid Opcode 137/1/4)
--FILE--
<?php
function err2exception($errno, $errstr)
+1 -3
View File
@@ -6,8 +6,6 @@ error_reporting=4095
<?php
$a = clone 0;
$a[0]->b = 0;
echo "ok\n";
?>
--EXPECTF--
Warning: __clone method called on non-object in %sbug36071.php on line 2
ok
Fatal error: __clone method called on non-object in %sbug36071.php on line 2
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #3721 (Access to protected property of common base class)
Bug #37212 (Access to protected property of common base class)
--FILE--
<?php
+29
View File
@@ -0,0 +1,29 @@
--TEST--
Bug #37715 (array pointers resetting on copy)
--FILE--
<?php
$a = array(
'a' => array(
'A', 'B', 'C', 'D',
),
'b' => array(
'AA', 'BB', 'CC', 'DD',
),
);
// Set the pointer of $a to 'b' and the pointer of 'b' to 'CC'
reset($a);
next($a);
next($a['b']);
next($a['b']);
next($a['b']);
var_dump(key($a['b']));
foreach($a as $k => $d)
{
}
// Alternatively $c = $a; and foreachloop removal will cause identical results.
var_dump(key($a['b']));
--EXPECT--
int(3)
int(3)
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #37811 define not using toString on objects
Bug #37811 (define not using toString on objects)
--FILE--
<?php
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
Bug #38220 Crash on some object operations
Bug #38220 (Crash on some object operations)
--FILE--
<?php
class drv {
+28
View File
@@ -0,0 +1,28 @@
--TEST--
Bug #38469 Unexpected creation of cycle
--FILE--
<?php
$a = array();
$a[0] = $a;
var_dump($a);
$b = array(array());
$b[0][0] = $b;
var_dump($b);
?>
--EXPECT--
array(1) {
[0]=>
array(0) {
}
}
array(1) {
[0]=>
array(1) {
[0]=>
array(1) {
[0]=>
array(0) {
}
}
}
}
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Bug #39542 (Behaviour of require_once/include_once different to < 5.2.0)
--FILE--
<?php
$oldcwd = getcwd();
chdir(dirname(__FILE__));
if (substr(PHP_OS, 0, 3) == 'WIN') {
set_include_path(dirname(__FILE__).'/bug39542;.');
} else {
set_include_path(dirname(__FILE__).'/bug39542:.');
}
function __autoload($class) {
if (!require_once($class.'.php')) {
error_log('Error: Autoload class: '.$class.' not found!');
}
}
new bug39542();
chdir($oldcwd);
?>
--EXPECT--
ok
+7
View File
@@ -0,0 +1,7 @@
<?php
class bug39542 {
function bug39542() {
echo "ok\n";
}
}
?>
+1 -1
View File
@@ -4,6 +4,7 @@ Bug #39602 (Invalid session.save_handler crashes PHP)
<?php if (!extension_loaded("session")) die("skip"); ?>
--INI--
session.save_handler=qwerty
error_reporting=0
--FILE--
<?php
ini_set("session.save_handler","files");
@@ -12,4 +13,3 @@ echo "ok";
?>
--EXPECT--
ok
Fatal error: Unknown: Cannot find save handler qwerty in Unknown on line 0
+10
View File
@@ -0,0 +1,10 @@
<?php
function func1() { }
function func2() { }
function func3() { }
function func4() { }
function func5() { }
function func6() { }
function func7() { }
print ("ok\n");
?>
+17
View File
@@ -0,0 +1,17 @@
--TEST--
Bug #40236 (php -a function allocation eats memory)
--SKIPIF--
<?php
if (php_sapi_name() != "cli") die("skip CLI only");
if (extension_loaded("readline")) die("skip Test doesn't support readline");
?>
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE');
$cmd = "$php -d memory_limit=4M -a ".dirname(__FILE__)."/bug40236.inc";
echo `$cmd`;
?>
--EXPECTF--
Interactive %s
ok
+25
View File
@@ -0,0 +1,25 @@
--TEST--
Bug #40261 (Extremely slow data handling due to memory fragmentation)
--INI--
memory_limit=128M
--FILE--
<?php
$num = 100000;
$a = Array();
for ($i=0; $i<$num; $i++) {
$a[$i] = Array(1);
}
for ($i=0; $i<$num; $i++) {
$b[$i] = $a[$i][0];
}
unset($a);
for ($i=0; $i<$num; $i++) {
$b[$i] = "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890";
}
echo "ok\n";
?>
--EXPECT--
ok
+26
View File
@@ -0,0 +1,26 @@
--TEST--
Bug #40509 (key() function changed behaviour if global array is used within function)
--FILE--
<?php
function foo()
{
global $arr;
$c = $arr["v"];
foreach ($c as $v) {}
}
$arr["v"] = array("a");
var_dump(key($arr["v"]));
foo();
var_dump(key($arr["v"]));
foreach ($arr["v"] as $k => $v) {
var_dump($k);
}
var_dump(key($arr["v"]));
--EXPECT--
int(0)
int(0)
int(0)
NULL
+20
View File
@@ -0,0 +1,20 @@
--TEST--
Bug #40621 (Crash when constructor called inappropriately (statically))
--FILE--
<?php
class Foo {
private function __construct() { }
function get() {
self::__construct();
}
}
Foo::get();
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Non-static method Foo::get() should not be called statically in %s on line %d
Fatal error: Non-static method Foo::__construct() cannot be called statically in %s on line %d
+26
View File
@@ -0,0 +1,26 @@
--TEST--
Bug #40705 (Iterating within function moves original array pointer)
--FILE--
<?php
function doForeach($array)
{
foreach ($array as $k => $v) {
// do stuff
}
}
$foo = array('foo', 'bar', 'baz');
var_dump(key($foo));
doForeach($foo);
var_dump(key($foo));
foreach ($foo as $k => $v) {
var_dump($k);
}
var_dump(key($foo));
--EXPECT--
int(0)
int(0)
int(0)
int(1)
int(2)
NULL
+28
View File
@@ -0,0 +1,28 @@
--TEST--
Bug #40757 (get_object_vars() get nothing in child class)
--FILE--
<?php
class Base {
private $p1='sadf';
function getFields($obj){
return get_object_vars($obj);
}
}
class Child extends Base { }
$base=new Base();
print_r($base->getFields(new Base()));
$child=new Child();
print_r($child->getFields(new Base()));
?>
--EXPECT--
Array
(
[p1] => sadf
)
Array
(
[p1] => sadf
)
+22
View File
@@ -0,0 +1,22 @@
--TEST--
Bug #40770 (Apache child exits when PHP memory limit reached)
--INI--
memory_limit=8M
--SKIPIF--
<?php
$zend_mm_enabled = getenv("USE_ZEND_ALLOC");
if ($zend_mm_enabled === "0") {
die("skip Zend MM disabled");
}
?>
--FILE--
<?php
ini_set('display_errors',true);
$mb=148;
$var = '';
for ($i=0; $i<=$mb; $i++) {
$var.= str_repeat('a',1*1024*1024);
}
?>
--EXPECTF--
Fatal error: Allowed memory size of 8388608 bytes exhausted%s(tried to allocate %d bytes) in %s on line %d
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Bug #40784 (Case sensivity in constructor's fallback)
--FILE--
<?php
class A {
function A () { echo "I'm A\n"; }
}
class B extends A {
function __construct() {
parent::__construct();
parent::__constrUct();
}
}
$b = new B;
echo "Done\n";
?>
--EXPECTF--
I'm A
I'm A
Done
+33
View File
@@ -0,0 +1,33 @@
--TEST--
Bug #40809 (Poor perfomance of ".=")
--FILE--
<?php
error_reporting(E_ALL|E_STRICT);
$num_increments = 100;
$num_repeats = 1000;
$increment = 50;
/* Create some more holes to give the memory allocator something to
* work with. */
$num = 5000;
$a = Array();
for ($i=0; $i<$num; $i++) {
$a[$i] = Array(1);
}
for ($i=0; $i<$num; $i++) {
$b[$i] = $a[$i][0];
}
unset($a);
for ($i=0;$i<$num_repeats;$i++) {
$evil = "";
for ($j=0;$j<$num_increments;$j++) {
$evil .= str_repeat("a", $increment);
}
unset($evil);
}
echo "ok\n";
?>
--EXPECT--
ok
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #40815 (using strings like "class::func" and static methods in set_exception_handler() might result in crash).
--FILE--
<?php
class ehandle{
static public function exh ($ex) {
echo 'foo';
}
}
set_exception_handler("ehandle::exh");
throw new Exception ("Whiii");
echo "Done\n";
?>
--EXPECTF--
foo
+72
View File
@@ -0,0 +1,72 @@
--TEST--
Bug #40833 (Crash when using unset() on an ArrayAccess object retrieved via __get)
--FILE--
<?php
class entity
{
private $data;
private $modified;
function __get($name)
{
if ( isset($this->data[$name]) )
return $this->data[$name];
else
return $this->data[$name] = new set($this);
}
function __set($name, $value)
{
$this->modified[$name] = $value;
}
}
class set implements ArrayAccess
{
private $entity;
function __construct($entity)
{
$this->entity = $entity;
$this->entity->whatever = $this;
}
function clear() {
$this->entity->whatever = null;
}
function offsetUnset($offset)
{
$this->clear();
// $this->entity->{$this->name} = null;
}
function offsetSet($offset, $value)
{
}
function offsetGet($offset)
{
return 'Bogus ';
}
function offsetExists($offset)
{
}
}
$entity = new entity();
echo($entity->whatever[0]);
//This will crash
// $entity->whatever->clear();
unset($entity->whatever[0]);
//This will not crash (comment previous & uncomment this to test
// $test = $entity->whatever; unset($test[0]);
echo($entity->whatever[0]);
echo "ok\n";
?>
--EXPECT--
Bogus Bogus ok
+9
View File
@@ -0,0 +1,9 @@
--TEST--
Bug #40899 (memory leak when nesting list())
--FILE--
<?php
list(list($a,$b),$c)=array(array('a','b'),'c');
echo "$a$b$c\n";
?>
--EXPECT--
abc
+26
View File
@@ -0,0 +1,26 @@
--TEST--
Bug #41026 (segfault when calling "self::method()" in shutdown functions)
--FILE--
<?php
class try_class
{
static public function main ()
{
register_shutdown_function (array ("self", "on_shutdown"));
}
static public function on_shutdown ()
{
printf ("CHECKPOINT\n"); /* never reached */
}
}
try_class::main ();
echo "Done\n";
?>
--EXPECTF--
Done
Warning: (Registered shutdown functions) Unable to call self::on_shutdown() - function does not exist in Unknown on line 0
+31
View File
@@ -0,0 +1,31 @@
--TEST--
Bug #41075 (memleak when creating default object caused exception)
--FILE--
<?php
function err($errno, $errstr, $errfile, $errline)
{
throw new Exception($errstr);
}
set_error_handler("err");
class test {
function foo() {
$var = $this->blah->prop = "string";
var_dump($this->blah);
}
}
$t = new test;
try {
$t->foo();
} catch (Exception $e) {
var_dump($e->getMessage());
}
echo "Done\n";
?>
--EXPECTF--
string(40) "Creating default object from empty value"
Done
+14
View File
@@ -0,0 +1,14 @@
--TEST--
Bug #41117 (Altering $this via argument)
--FILE--
<?php
class foo {
function __construct($this) {
echo $this."\n";
}
}
$obj = new foo("Hello world");
?>
--EXPECTF--
Fatal error: Cannot re-assign $this in %sbug41117_1.php on line 3
+46
View File
@@ -0,0 +1,46 @@
--TEST--
Bug #41209 (Segmentation fault with ArrayAccess, set_error_handler and undefined var)
--FILE--
<?php
class env
{
public function __construct()
{
set_error_handler(array(__CLASS__, 'errorHandler'));
}
public static function errorHandler($errno, $errstr, $errfile, $errline)
{
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
}
}
class cache implements ArrayAccess
{
private $container = array();
public function offsetGet($id) {}
public function offsetSet($id, $value) {}
public function offsetUnset($id) {}
public function offsetExists($id)
{
return isset($this->containers[(string) $id]);
}
}
$env = new env();
$cache = new cache();
var_dump(isset($cache[$id]));
echo "Done\n";
?>
--EXPECTF--
Fatal error: Uncaught exception 'ErrorException' with message 'Undefined variable: id' in %s:%d
Stack trace:
#0 %s(%d): env::errorHandler()
#1 {main}
thrown in %s on line %d
+14
View File
@@ -0,0 +1,14 @@
--TEST--
Bug #41351 (Invalid opcode with foreach ($a[] as $b))
--FILE--
<?php
$a = array();
foreach($a[] as $b) {
}
echo "Done\n";
?>
--EXPECTF--
Fatal error: Cannot use [] for reading in %s on line %d
+14
View File
@@ -0,0 +1,14 @@
--TEST--
Bug #41351 (Invalid opcode with foreach ($a[] as $b)) - 2
--FILE--
<?php
$a = array();
foreach($a[]['test'] as $b) {
}
echo "Done\n";
?>
--EXPECTF--
Fatal error: Cannot use [] for reading in %s on line %d
+14
View File
@@ -0,0 +1,14 @@
--TEST--
Bug #41351 (Invalid opcode with foreach ($a[] as $b)) - 3
--FILE--
<?php
$a = array();
foreach($a['test'][] as $b) {
}
echo "Done\n";
?>
--EXPECTF--
Fatal error: Cannot use [] for reading in %s on line %d
+13
View File
@@ -0,0 +1,13 @@
--TEST--
Bug #41372 Internal pointer of source array resets during array copying
--FILE--
<?php
$Foo = array('val1', 'val2', 'val3');
end($Foo);
echo key($Foo),"\n";
$MagicInternalPointerResetter = $Foo;
echo key($Foo),"\n";
?>
--EXPECT--
2
2
+10
View File
@@ -0,0 +1,10 @@
--TEST--
Bug #41401 (wrong precedence for unary minus)
--FILE--
<?php
echo 1/-2*5;
echo "\n";
echo 6/+2*-3;
--EXPECT--
-2.5
-9
+29
View File
@@ -0,0 +1,29 @@
--TEST--
Bug #41421 (Uncaught exception from a stream wrapper segfaults)
--FILE--
<?php
class wrapper {
function stream_open() {
return true;
}
function stream_eof() {
throw new exception();
}
}
stream_wrapper_register("wrap", "wrapper");
$fp = fopen("wrap://...", "r");
feof($fp);
echo "Done\n";
?>
--EXPECTF--
Warning: feof(): wrapper::stream_eof is not implemented! Assuming EOF in %s on line %d
Fatal error: Uncaught exception 'Exception' in %s:%d
Stack trace:
#0 [internal function]: wrapper->stream_eof()
#1 %s(%d): feof(Resource id #6)
#2 {main}
thrown in %s on line %d
+12
View File
@@ -0,0 +1,12 @@
--TEST--
Bug #41633.1 (self:: doesn't work for constants)
--FILE--
<?php
class Foo {
const A = self::B;
const B = "ok";
}
echo Foo::A."\n";
?>
--EXPECT--
ok
+11
View File
@@ -0,0 +1,11 @@
--TEST--
Bug #41633.2 (Undefined class constants must not be substituted by strings)
--FILE--
<?php
class Foo {
const A = self::B;
}
echo Foo::A."\n";
?>
--EXPECTF--
Fatal error: Undefined class constant 'self::B' in %sbug41633_2.php on line 5
+12
View File
@@ -0,0 +1,12 @@
--TEST--
Bug #41633.3 (Crash instantiating classes with self-referencing constants)
--FILE--
<?php
class Foo {
const A = Foo::B;
const B = Foo::A;
}
echo Foo::A;
?>
--EXPECTF--
Fatal error: Cannot declare self-referencing constant 'Foo::B' in %sbug41633_3.php on line %d
+12
View File
@@ -0,0 +1,12 @@
--TEST--
Bug #41633.4 (self:: doesn't work for constants)
--FILE--
<?php
class Foo {
const A = self::B;
const B = "ok";
}
var_dump(defined("Foo::A"));
?>
--EXPECT--
bool(true)
+15
View File
@@ -0,0 +1,15 @@
--TEST--
Bug #41640 (get_class_vars produces error on class constants)
--FILE--
<?php
class foo {
const FOO = 1;
public $x = self::FOO;
}
var_dump(get_class_vars("foo"));
--EXPECT--
array(1) {
["x"]=>
int(1)
}
+12
View File
@@ -0,0 +1,12 @@
--TEST--
Bug #41813 (segmentation fault when using string offset as an object)
--FILE--
<?php
$foo = "50";
$foo[0]->bar = "xyz";
echo "Done\n";
?>
--EXPECTF--
Fatal error: Cannot use string offset as an array in %s on line %d
+11
View File
@@ -0,0 +1,11 @@
--TEST--
Bug #41919 (crash in string to array conversion)
--FILE--
<?php
$foo="50";
$foo[3]->bar[1] = "bang";
echo "ok\n";
?>
--EXPECTF--
Fatal error: Cannot use string offset as an object in %s/bug41919.php on line %d
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Bug #41929 (Foreach on object does not iterate over all visible properties)
--FILE--
<?php
class C {
private $priv = "ok";
function doLoop() {
echo $this->priv,"\n";
foreach ($this as $k=>$v) {
echo "$k: $v\n";
}
}
}
class D extends C {
}
$myD = new D;
$myD->doLoop();
?>
--EXPECT--
ok
priv: ok
+29
View File
@@ -0,0 +1,29 @@
--TEST--
Bug #41961 (Ensure search for hidden private methods does not stray from class hierarchy)
--FILE--
<?php
X::test();
/** Class X is related to neither ParentClass nor ChildClass. */
class X {
public static function test() {
$myChild = new ChildClass;
$myChild->secret(); // bug - invokes X::secret() instead of ChildClass::secret()
}
private function secret() {
echo "Called private " . __METHOD__ . "() on an instance of: " . get_class($this) . "\n";
}
}
class ParentClass {
private function secret() { }
}
class ChildClass extends ParentClass {
public function secret() {
echo "Called public " . __METHOD__ . "() on an instance of: " . get_class($this) . "\n";
}
}
?>
--EXPECT--
Called public ChildClass::secret() on an instance of: ChildClass
+19
View File
@@ -0,0 +1,19 @@
--TEST--
Bug #42119 (array_push($arr,&$obj) doesn't work with zend.ze1_compatibility_mode On)
--INI--
allow_call_time_pass_reference=1
zend.ze1_compatibility_mode=1
--FILE--
<?php
class myclass {
var $item = 1;
}
$arr = array();
@$myobj = new myclass();
array_push($arr,&$myobj);
$myobj->item = 2;
echo $arr[0]->item,"\n";
?>
--EXPECT--
2
+30
View File
@@ -0,0 +1,30 @@
--TEST--
Bug #42211 (property_exists() fails to find protected properties from a parent class)
--FILE--
<?php
class A {
function foo() {
var_dump(property_exists('B', 'publicBar'));
var_dump(property_exists('B', 'protectedBar'));
var_dump(property_exists('B', 'privateBar'));
}
}
class B extends A {
static public $publicBar = "ok";
static protected $protectedBar = "ok";
static private $privateBar = "fail";
}
$a = new A();
$a->foo();
$b = new B();
$b->foo();
--EXPECT--
bool(true)
bool(false)
bool(false)
bool(true)
bool(true)
bool(false)
Loaded 100 of 4153 files, more files were not shown because too many files have changed in this diff. Show more