Compare commits

..
Author SHA1 Message Date
Stanislav Malyshev 76b580d87a 5.4.0 2012-02-29 07:25:21 +00:00
Stanislav Malyshev bfd72d0386 5.4.0 2012-02-29 07:22:43 +00:00
Stanislav Malyshev 5dd23ae6a7 prepare NEWS for 5.4.0 2012-02-29 00:50:00 +00:00
Stanislav Malyshev f43330a371 remove -dev for release 2012-02-28 18:43:44 +00:00
Pierre Joye ee772f60b1 - fix bug #60879, unserialize does not invoke __wakeup 2012-02-28 18:36:10 +00:00
Stanislav Malyshev f2c791c42b update credits 2012-02-26 06:23:14 +00:00
Olivier DOUCET ad832abba1 test for bug #61124 2012-02-25 13:27:57 +00:00
Olivier DOUCET e613889d50 more verbose skip reason in test files with not so obvious extension requirements 2012-02-25 12:10:41 +00:00
Olivier DOUCET 6546beecec fix test file for bug #47997 : fopen(data://) requires allow_url_fopen=1 2012-02-25 10:58:30 +00:00
Scott MacVicar 5ef66f2cf5 Fixed bug #61124 (Crash when decoding an invalid base64 encoded string). 2012-02-23 01:26:46 +00:00
Etienne Kneuss c51f737994 Fix #61095 (Lexing 0x0*+<NUM> incorrectly) 2012-02-20 18:28:57 +00:00
Nuno Lopes 1800baf4c2 fix race condition in find (it was finding the copied files over and over again, and recursing forever) 2012-02-20 16:01:34 +00:00
Michael Wallner 2942e86625 NEWS for r323219 2012-02-16 09:04:32 +00:00
Stanislav Malyshev 6561d47e55 back to dev 2012-02-16 07:47:02 +00:00
Stanislav Malyshev c1d415f798 5.4.0rc8 2012-02-16 07:45:08 +00:00
Stanislav Malyshev fa9540e1f1 make ZEND_SIGNALS configurable, off by default
also make ZEND_SIGNALS enabled and disabled binary-compatible
2012-02-16 01:51:45 +00:00
Michael Wallner 685a3c86c2 fix compat function not passing along input buffer with php_output_context_pass() if the output_handler_func does not set out_str 2012-02-14 19:31:54 +00:00
Dmitry Stogov 106e88b3db Fixed reinitialization of SAPI callbacks after php_module_startup() 2012-02-14 13:31:23 +00:00
Rasmus Lerdorf f60145a1a2 This one depends on max_input_vars as well 2012-02-14 09:50:46 +00:00
Rasmus Lerdorf 346e88ae69 These tests fail unless max_input_vars and/or max_file_uploads is set high enough 2012-02-14 09:47:32 +00:00
Dmitry Stogov 49ce9b9bff Added ability to reset user opcode handlers (Yoram) 2012-02-14 09:27:08 +00:00
Dmitry Stogov 04f6171012 Improved max_input_vars directive to check nested variables 2012-02-14 08:58:52 +00:00
David Soria Parra dd14c92499 Add credit line for the PHP Output Handler 2012-02-13 19:54:51 +00:00
Stanislav Malyshev fe5d10d072 change 6.0.0 to 5.4.0 2012-02-08 20:12:44 +00:00
Xinchen Hui 27df8b6ff0 Revert -r319102 and -r322922 in 5.4 branch since they introduce #60978
Fixed #60978 in trunk without reverting previous fix
#see http://news.php.net/php.internals/57789
2012-02-08 03:03:05 +00:00
Antony Dovgal 206f123bd3 fix bug #54682 (tidy null pointer dereference) 2012-02-07 20:49:10 +00:00
Christopher Jones 73ccc0a5e9 Fix OpenSSL version-dependent diff. "Time Stamp signing" is not in openssl 0.9. Skip current test for 0.9. New test for 0.9 approved by Stas 2012-02-07 01:15:13 +00:00
Christopher Jones 74a79f706f Force allow_url_fopen to fix qa.php.net/reports diffs 2012-02-06 23:52:42 +00:00
Christopher Jones 3f0dfb0ee5 Mask different curl message. Now passes on Oracle Linux 5 2012-02-06 23:31:51 +00:00
Christopher Jones a46497fd19 Allow alternative curl output shown in several qa.php.net/reports logs 2012-02-06 23:14:47 +00:00
Ferenc Kovacs de2355935e merging the patch from bug #52078, fixes the test on disk with huge inode size(fileinode() can overflow and return negative values there). 2012-02-06 22:47:21 +00:00
Rasmus Lerdorf 090bb97555 Safer way to call pcre_fullinfo - bug 60986 2012-02-06 18:18:53 +00:00
Rasmus Lerdorf 0f0261e0b7 Fix for bug 60986 2012-02-06 18:11:56 +00:00
Rasmus Lerdorf 2500b7e5ba Same thing here. "June 18, 1969 8:49:59 AM " does not contain a timezone, so there
is no way to know whether dst should be applied or not.
2012-02-05 10:35:56 +00:00
Rasmus Lerdorf fe777cd4db Without a timezone you can't know whether it is dst or not in this one 2012-02-05 10:29:34 +00:00
Rasmus Lerdorf 8d5f83dde5 Another openssl test that is dependent on the openssl version. The output has
changed in more recent versions. Synch with newer output and consider changing
the test to only pick out the more stable fields instead of all of them.
2012-02-05 10:08:16 +00:00
Gustavo André dos Santos Lopes d4cf399cc4 - Merge r323056 (see bug #60965). 2012-02-05 09:59:33 +00:00
Popa Adrian Marius 53f5653bea fix gcov Warning: ibase_drop_db(): lock time-out on wait transaction object http://gcov.php.net/viewer.php?version=PHP_5_4&func=tests&file=ext%2Fpdo_firebird%2Ftests%2Fbug_53280.phpt 2012-02-05 09:58:50 +00:00
Rasmus Lerdorf e4fb44c8b6 Need EXPECTF here, of course 2012-02-05 09:52:41 +00:00
Rasmus Lerdorf f3a7ba75cf Getting different hashes here. But this test isn't testing the hashes,
it is just making sure we actually get a hash and don't crash.
2012-02-05 09:50:14 +00:00
Rasmus Lerdorf a06e8ca56d According to the reports on qa this test is failing the same way for everyone.
See: http://qa.php.net/reports/viewreports.php?version=5.3.10&test=%2Fext%2Fopenssl%2Ftests%2Fbug28382.phpt
I'm not sure if this is due to a change in the openssl library or in the extension, so perhaps the test
itself needs to change, but for now synch it with the new output and watch for failures.
2012-02-05 09:32:20 +00:00
Rasmus Lerdorf 6452b81b14 This test needs gc enabled 2012-02-05 06:09:22 +00:00
David Soria Parra cb6655ccef mention git 2012-02-03 08:14:39 +00:00
Adam Harvey 98f5e51a7e Fix bug #60933 on PHP_5_4 (approved by Stas). 2012-02-03 04:17:11 +00:00
Stanislav Malyshev 9e9683b6b0 back to dev 2012-02-02 17:29:00 +00:00
Stanislav Malyshev 29e2f050f5 retag 5.4.0 rc7 2012-02-02 17:28:03 +00:00
Andrey Hristov da0da10bc9 assert 2012-02-02 15:00:42 +00:00
Dmitry Stogov cc1829d187 Fixed memory leaks 2012-02-02 10:26:53 +00:00
Stanislav Malyshev 3a95557cc3 back to dev 2012-02-02 06:09:50 +00:00
Stanislav Malyshev 9e9d6d3aaf 5.4.0 rc7 2012-02-02 06:08:29 +00:00
Stanislav Malyshev 9cb8f3ad48 fix UMR in php_register_variable_ex, reported by Stefan Esser 2012-02-01 19:52:05 +00:00
Lars Strojny 33a2c339bd Test for null behavior with ext/mbstring functions 2012-02-01 14:43:52 +00:00
Dmitry Stogov 586c834a36 Fixed basic HTTP authentication for WSDL sub requests. 2012-02-01 12:16:52 +00:00
Dmitry Stogov dc7c5eba5a Fixed basic HTTP authentication for WSDL sub requests 2012-02-01 11:26:57 +00:00
Michael Wallner 93c549913f fix usage of php_output_(de)activate; I guess this code doesn't bother about one more hack; 2012-01-31 10:47:21 +00:00
Michael Wallner c64a69c8b8 MFH: r322963
fix headers print to stdout/stderr if no output written; 
fix crashes and invalid usage of output control in cli server while passing by
2012-01-31 09:58:26 +00:00
Pierre Joye 0c87d70b1a - fix #55226, WS 2012-01-31 07:17:05 +00:00
Pierre Joye d056f9ccb2 - fix #55226, fix build 2012-01-31 07:14:36 +00:00
Michael Wallner 3c03829429 use stderr before, stdout after php_output_startup() and sapi_module.ub_write() after php_output_activate()
- fixes Bug #60920  CLI: php -v on STDERR
- fixes Bug #60923  Failing tests for sapi/cli
2012-01-30 12:17:51 +00:00
Pierre Joye 90321eaa98 - libssh2 1.3.0 2012-01-30 11:04:19 +00:00
Dmitry Stogov 3fe072f8a9 Fixed (disabled) inline-caching for ZEND_OVERLOADED_FUNCTION methods 2012-01-30 10:51:02 +00:00
Dmitry Stogov 2c90b8a06b Fixed bug #51860 (Include fails with toplevel symlink to /) 2012-01-30 10:08:11 +00:00
Derick Rethans 33863b2cf8 - Reinstated correct return values after David's fix for #60218. 2012-01-29 15:25:40 +00:00
Rasmus Lerdorf 9111a8a58a createCollation() for pdo_sqlite as well
Closes bug #55226
2012-01-29 04:22:23 +00:00
Rasmus Lerdorf 9722bff0c3 Missed the test 2012-01-29 04:20:50 +00:00
Rasmus Lerdorf ad5ae9e0bf Good patch from Brad Dewar that adds missing createCollation()
method. Fixes bug #60871 and is related to bug #55226
2012-01-29 03:57:29 +00:00
Felipe Pena 2cb820275d - Fixed bug #60860 (session.save_handler=user without defined function core dumps) 2012-01-28 21:02:09 +00:00
Rasmus Lerdorf 6e77fce6a6 Simple fix that just quotes the filenames in run-tests to support paths with spaces.
Fixes bug #60734
2012-01-28 02:43:31 +00:00
Pierre Joye 614c22e105 - update libs 2012-01-27 17:35:01 +00:00
Pierre Joye 499bb11887 - update libs 2012-01-27 17:31:17 +00:00
Pierre Joye 7e865a1555 - update libs 2012-01-27 13:27:03 +00:00
Pierre Joye d54710ae2f - fix #60895, possible invalid handler usage 2012-01-27 10:56:33 +00:00
Pierre Joye 07cf07df61 - openssl 0.9.8t, curl 7.24.0 2012-01-26 12:11:02 +00:00
Scott MacVicar 398c6e6d11 MFH r322485
Fix possible attack in SSL sockets with SSL 3.0 / TLS 1.0.
CVE-2011-3389
2012-01-26 05:15:57 +00:00
Xinchen Hui bbd6ab2054 WS, merged from trunk cause this issue, sorry 2012-01-26 01:28:37 +00:00
Xinchen Hui 1207451239 Fixed bug #60825 (Segfault when running symfony 2 tests) 2012-01-26 01:21:35 +00:00
Michael Wallner bfccc4ed58 fix crash with display_startup_errors=1 2012-01-25 17:22:46 +00:00
Rasmus Lerdorf 0116466974 Please test your tests 2012-01-23 06:39:01 +00:00
Nuno Lopes e718c53223 revert r319254 (fix bug #54682) since it is not correct
add test that was broken with that patch.
this bug is probably in libtidy itself and not in PHP. I didn't investigate it enough to confirm, though
2012-01-21 11:32:56 +00:00
Dmitry Stogov 3299a2673c Fixed Bug #60809 (TRAITS - PHPDoc Comment Style Bug)
Fixed some other traits related bugs (uninitialized variable, return => continue)
Removed some trait related redundant code and variables
2012-01-20 12:30:57 +00:00
Rasmus Lerdorf a5c3078c3f Missing ifdef here
Fixes bug 60811
2012-01-19 22:35:22 +00:00
Stanislav Malyshev cbdfc93154 back to dev 2012-01-19 06:29:15 +00:00
Stanislav Malyshev 44c773120e 5.4.0RC6 2012-01-19 06:27:56 +00:00
Pierre Joye ed075eab5a - add test for bug #60761 2012-01-18 20:29:13 +00:00
Pierre Joye 902bbce03b - add test for bug #60771 2012-01-18 20:22:47 +00:00
Pierre Joye f6ea9cecfa - add test for bug #60761 2012-01-18 20:21:40 +00:00
Michael Wallner e11ece1ca7 remove XFAIL for bug #47178 2012-01-18 10:16:37 +00:00
Michael Wallner 302adc4edd add notes about ob_start(), gzencode() and removed hash algos 2012-01-18 10:07:46 +00:00
Michael Wallner 6a7bbb1561 merge ext/hash from trunk 2012-01-18 09:15:34 +00:00
Dmitry Stogov d940f2d38a Fixed workaround for bug #48034 on Windows (Crash when script is 8192 (8KB) bytes long) 2012-01-17 09:30:12 +00:00
Dmitry Stogov a1525977a0 Regenerated scanners 2012-01-17 08:11:32 +00:00
Dmitry Stogov b515bfbdfb Improved traits implementation. Now to support __CLASS__ constant in traits php doesn't have to copy the complete compiled method, but can reuse the same code. The resolution of __CLASS__ constants in methods defined in traits are delayed till run-time. This approach also made possible to use __CLASS__ constant as default value for traits properties and method arguments. 2012-01-17 08:09:13 +00:00
Michael Wallner 6b31413b13 Fix bug #60768 Output buffer not discarded
in php_output_handler_op():
  * if appending to buffer succeeds, just return HANDLER_NO_DATA
    and do nothing else
  * if a zero sized string or true is returned from the handler
    function, reset the context as well as the handler's buffer
2012-01-16 17:51:35 +00:00
Boris Lytochkin 4c414c12a3 merge from trunk:
Fixed bug #60585 (php build fails with USE flag snmp when IPv6 support is disabled
Fixed bug #60749 (SNMP module should not strip non-standard SNMP port from hostname
2012-01-13 18:46:56 +00:00
Christopher Jones 6d75ac3df9 Fix configuration message typo and alignment (5.4 merge approved by Stas) 2012-01-12 23:23:05 +00:00
Pierre Joye 993992d6db - add new build type, optional. has been used for the last 2 RCs 2012-01-11 15:47:37 +00:00
Pierre Joye 92120997c9 - add new build type, optional. has been used for the last 2 RCs 2012-01-11 15:46:45 +00:00
Dmitry Stogov ca77173afb Fixed incorrect type cast 2012-01-11 15:04:14 +00:00
Popa Adrian Marius bcb8931452 Added fixes Pdo Firebird bugs to the NEWS file 2012-01-10 13:42:14 +00:00
Pierre Joye 9425379852 - make it windows version independent, error msg differs, bad but well 2012-01-10 08:30:00 +00:00
Pierre Joye d8c6dd182b - any other dir may not exist or may not be used 2012-01-10 07:33:36 +00:00
Pierre Joye dd3eb33d76 - error is windows version dependent and not what we test here 2012-01-09 15:31:33 +00:00
Pierre Joye c5b02759c4 - rm 2012-01-09 14:29:06 +00:00
Pierre Joye f6a7b27198 - spl tests are also under examples (sigh) 2012-01-09 13:56:46 +00:00
Rasmus Lerdorf f1191166d8 These tests don't work if run as root 2012-01-08 18:43:30 +00:00
Rasmus Lerdorf a7dca551f7 This test only works if gc is enabled 2012-01-08 18:21:13 +00:00
Nuno Lopes 4cc04be260 do kill 9 to fix a race condition in this test. (should fix the debian 32-bit buildbot) 2012-01-08 18:03:56 +00:00
Daniel Convissor 5df401af21 Remove test for bug 60675, the change in behavior between 5.3 and 5.4 is intentional. 2012-01-07 23:09:49 +00:00
Daniel Convissor edf86e5282 Test for bug 60675. 2012-01-06 22:09:15 +00:00
Patrick Allaert b1721549dd Changed: restoring REQUEST_TIME as a long, introducing REQUEST_TIME_FLOAT instead as discussed on the ML 2012-01-06 13:38:06 +00:00
Stanislav Malyshev 64a9019171 back to dev 2012-01-05 07:24:26 +00:00
Stanislav Malyshev 6cb0b66053 5.4.0rc5 2012-01-05 07:22:29 +00:00
Jérôme Loyet de92e5ab30 - Fixed credits for bug #60659 2012-01-04 21:19:55 +00:00
Jérôme Loyet c730ed9656 - Fixed bug #60659 (FPM does not clear auth_user on request accept) 2012-01-04 21:18:26 +00:00
Stanislav Malyshev a1ec2aab1b move to XFAIL since it fails on 32-bit 2012-01-04 20:40:13 +00:00
Arpad Ray 23ba6bb7fe add more tests for #60634 (stems from #21306) and xfail them all for the moment 2012-01-04 11:44:05 +00:00
Xinchen Hui 1c4f227553 Fixed bug #60627 (httpd.worker segfault on startup with php_value) 2012-01-04 08:25:06 +00:00
Xinchen Hui dd943bcb1b fix test 2012-01-04 08:13:58 +00:00
Arpad Ray 6e76f1ed2b NEWS entry for r321738 2012-01-04 01:34:08 +00:00
Arpad Ray 08eb16f015 fix return values of inherited session handler to match user handlers - #60640 2012-01-04 01:31:30 +00:00
Arpad Ray 7486849b56 add SessionHandlerInterface for session_set_save_handler() - #60551 2012-01-04 01:16:45 +00:00
Jérôme Loyet e747222100 - Fixed bug #60629 (memory corruption when web server closed the fcgi fd) 2012-01-03 22:26:11 +00:00
Arpad Ray 5f948f63ed add test for #60634 2012-01-03 21:47:16 +00:00
Matteo Beccati daa8e833b2 Bug #55663, fixed test for bug 43139 on Firebird. Per request from mariuz 2012-01-02 11:43:25 +00:00
Stanislav Malyshev cbcddcb02e fix bug #55871 - Interruption in substr_replace() 2012-01-02 00:47:57 +00:00
Stanislav Malyshev 2a687aed1a fix bug #54374, bug #55500 - filter file names better, no dangling [s 2012-01-01 23:54:25 +00:00
Stanislav Malyshev 0fdbefa430 add test for ob_gzhandler 2012-01-01 23:51:21 +00:00
Nuno Lopes 3a06ca721c regen for r321655 2012-01-01 22:52:23 +00:00
Nuno Lopes 8b23cae172 fix memory leak in compile_string when there's a parse error (used e.g. in eval or assert) 2012-01-01 22:45:58 +00:00
Felipe Pena 4e19825281 - Year++ 2012-01-01 13:15:04 +00:00
George Wang f9d84f4f6b fixed a crash in cli mode when apache_request_headers() is called 2011-12-31 18:15:22 +00:00
Michael Wallner ecfb3af78f follow naming convention 2011-12-30 09:20:07 +00:00
Dmitry Stogov f7942c9e63 Added an API call to return active output handler 2011-12-30 08:50:49 +00:00
Popa Adrian Marius 853b48dc30 Fixed PDO_Firebird: bug 53280 segfaults if query column count is less than param count 2011-12-28 19:58:37 +00:00
Popa Adrian Marius 24227957bf fix tablename in testcase test->testz 2011-12-28 19:09:41 +00:00
Popa Adrian Marius 0b692661d4 Added test case for PDO_Firebird: bug 53280 segfaults if query column count is less than param count 2011-12-28 18:52:39 +00:00
Popa Adrian Marius cfe00e6053 fix Bug #47415 PDO_Firebird segfaults when passing lowercased column name to bindColumn() 2011-12-28 10:17:17 +00:00
Dmitry Stogov 90a8da866b Fixed tests 2011-12-28 10:12:43 +00:00
Popa Adrian Marius caeba0e83f one more error to fix Table unknown TEST , it should be TESTZ 2011-12-28 10:04:25 +00:00
Popa Adrian Marius bba41172e7 fix table name in testcase 2011-12-28 09:59:53 +00:00
Dmitry Stogov c058385112 Fixed bug #60613 (Segmentation fault with $cls->{expr}() syntax) 2011-12-28 09:59:39 +00:00
Popa Adrian Marius 503540a4e4 added testcase for Bug 47415 2011-12-28 09:53:15 +00:00
Popa Adrian Marius 28878d390f cleanup for bug 48877 test, add description 2011-12-28 09:41:02 +00:00
Xinchen Hui 84ce790437 Fix #60613 (Segmentation fault with $cls->{expr}() syntax)
#now the behavior is like 5.3, a COMPILER_ERROR will be triggered
2011-12-28 06:46:12 +00:00
Daniel Convissor c49b8515df Resolve the last of the xfails from Bug 55253. 2011-12-28 01:13:12 +00:00
Daniel Convissor defc87db2c Resolve more xfails due to Bug 55253 being fixed. 2011-12-27 19:44:13 +00:00
Daniel Convissor 7ea4e8266c Another xfail resolved since Bug 55253 was fixed. 2011-12-27 16:50:16 +00:00
Popa Adrian Marius b3ecb6841c http://gcov.php.net/viewer.php?version=PHP_5_3&func=tests&file=ext%2Fpdo_firebird%2Ftests%2Fbug_43130.phpt
fix failure for bug 43130
2011-12-27 16:49:00 +00:00
Daniel Convissor 4a59413e48 Another xfail resolved since Bug 55253 was fixed. 2011-12-27 15:20:16 +00:00
Hannes Magnusson 6238cf5a7a Looks like we need to explicity add libstdc++ on recent linux' too, like fedora 14 and ubuntu 11
This fixes build failures for ext/intl and several pecl exts
2011-12-27 13:53:11 +00:00
Popa Adrian Marius ddf95da798 added test for PDO_Firebird: bug 48877 2011-12-27 10:49:03 +00:00
Xinchen Hui 2f4875bf92 Fix bug #60611 (Segmentation fault with Cls::{expr}() syntax) 2011-12-27 08:38:18 +00:00
Daniel Convissor 448ed9bc83 One less xfail since Bug 55253 was fixed. 2011-12-27 02:13:55 +00:00
Pierre Joye 850168ba62 - Fix bug #60326, fix crash introduced by initial fix 2011-12-26 22:53:12 +00:00
Pierre Joye 7dcc4c0d0e - Fix bug #60326, fix TS build (introduced by r321406) 2011-12-26 12:32:05 +00:00
Stanislav Malyshev e665e01e88 fix bug #60326 - restore ob_gzhandler 2011-12-26 08:29:11 +00:00
Stanislav Malyshev f863d486d1 fix test 2011-12-26 05:08:09 +00:00
Stanislav Malyshev 87b9f7bb3a fix bug #60322 (ob_get_clean() now raises an E_NOTICE if no buffers exist) 2011-12-26 05:01:46 +00:00
Stanislav Malyshev 36d4585996 fix test - paths may be expressed in different way 2011-12-26 03:55:29 +00:00
Stanislav Malyshev d42917b605 test fixes 2011-12-26 03:22:07 +00:00
Stanislav Malyshev 2f15c1d717 fix uninitialized var that may lead to crash 2011-12-26 02:16:37 +00:00
Stanislav Malyshev e4f40a3375 fix tests 2011-12-26 01:08:47 +00:00
Dmitry Stogov 0e563dfa93 Initialize structure (some fields may be missed in array returned from user handler). 2011-12-22 15:33:48 +00:00
Dmitry Stogov cef0d27af9 Change fatal error into warning and ignore arguments over limit 2011-12-22 15:31:41 +00:00
Xinchen Hui 2217bba732 test for bug 60591 2011-12-22 08:08:52 +00:00
Xinchen Hui 77b97de8df Fix bug #60591 (Memory leak when access a non-exists file) 2011-12-22 07:39:44 +00:00
Stanislav Malyshev 48a688ffa0 back to dev 2011-12-22 03:27:00 +00:00
Stanislav Malyshev 1a79692791 5.4.0rc4 2011-12-22 03:25:28 +00:00
Stanislav Malyshev 0610ca459a Fix warning on non-numeric offsets 2011-12-22 03:22:42 +00:00
Gustavo André dos Santos Lopes f24f2b4df6 - Fixed bug #60570 (http wrapper leaks context resource if request fails/is
redirected).
2011-12-21 15:44:58 +00:00
Xinchen Hui 2fe9f37026 Fix tests 2011-12-19 16:57:36 +00:00
Xinchen Hui 2f62602c03 Fixed bug #60558 (Invalid read and writes)
Re-Fixed bug #60536 (Traits Segfault)
#Thanks to tony2001, I found the previous fix -r321089 is actually not a correct one.
#The key problem there is because the traits didn't correct set the property_info.offset
#for private properties. so here come the new fix.
2011-12-19 16:48:18 +00:00
Xinchen Hui 7fcba87e68 Revert previous bad fix, introduce memory leak 2011-12-19 12:00:09 +00:00
Xinchen Hui 1a4a527c37 Codes standard & Remove useless empty lines 2011-12-19 10:05:48 +00:00
Xinchen Hui d589d33468 Fixed bug #60558 (Invalid read and writes) 2011-12-19 09:58:29 +00:00
Scott MacVicar c36926ba4c Add tests for OpenSSL crash. 2011-12-19 03:09:05 +00:00
Stanislav Malyshev 622412d8e6 implement the solution for isset/string offsets, fix bug #60362 2011-12-19 02:05:03 +00:00
Scott MacVicar beda5efd41 Fix segfault in older versions of OpenSSL (before 0.9.8i) 2011-12-18 05:14:32 +00:00
Stefan Marr 3dc9f0abe6 Fixed inconsistent and broken handling of private properties in traits.
# The handling of private properties in classes is now consistent with private properties in traits.
# Perviously, privates could cause strict warnings, are were not properly merged into the class when
# the parent class had a private property of the same name. Now, we introduce it without notice,
# since it is a new and independent property, just like in normal classes.
# This problem was diagnosed while working on Bug #60536.
2011-12-17 14:26:39 +00:00
Xinchen Hui db63456a8d Reduce memory usage 2011-12-17 03:57:01 +00:00
Xinchen Hui 80ab69876c Fixed bug #60523 (PHP Errors are not reported in browsers using built-in SAPI) 2011-12-16 19:25:03 +00:00
Xinchen Hui 01dc47631e Fixed bug #60536 (Traits Segfault)
# this is a tough one, I think I should explain
# Zend use zend_object->properties_table both as zval ** and zval ***
# if a zend_object->properties is not initialized, the properties_table is zval **
# while in rebuild_object_properties, zend will store the zval ** to zend_object->properties
# then stash the zval ***(ie, zobj->properties_table[0] is zval ** now) to  zobj->properties_table[0] 
# so when a zend_object inherit form multi parent and these parent have a same property_info->offset 
# properties, will result in a repeat zval **->zval ** transform, which will lead to a segmentfault
# *may be* this fix is not the best fix, we should not use this tricky way, and rewrite this mechanism.
2011-12-16 19:02:52 +00:00
Dmitry Stogov e467a791d3 Added max_input_vars directive to prevent attacks based on hash collisions 2011-12-15 10:31:02 +00:00
Andrey Hristov 4dfd69e84b fix for 5.5.19 2011-12-14 19:29:45 +00:00
Andrey Hristov 9e14665237 another fix 2011-12-14 19:28:41 +00:00
Andrey Hristov b8697d07f8 fix test 2011-12-14 18:37:49 +00:00
Andrey Hristov 3ef71f9726 fix test 2011-12-14 18:36:04 +00:00
Andrey Hristov 9033d60caf fix typo 2011-12-14 17:59:11 +00:00
Pierre Joye 4faab885ec - add announce steps, s,cvs,svn, MFH 2011-12-14 16:32:50 +00:00
Andrey Hristov e38daffe60 fix test 2011-12-14 16:27:52 +00:00
Dmitry Stogov 6fb3897f80 Added max_input_vars directive to prevent attacks based on hash collisions 2011-12-14 08:56:35 +00:00
Pierre Joye f94cc91dda - tmp dir is system depedent 2011-12-13 23:18:12 +00:00
Pierre Joye 3b8e237128 - skip on win 2011-12-13 23:04:01 +00:00
Pierre Joye 609ade1bed - ignore notices here, not what we test (array to string conversion) 2011-12-13 13:46:27 +00:00
Pierre Joye df3cd84f80 - use the test itself, making the test passes when ran outside the src tree 2011-12-12 19:09:01 +00:00
Pierre Joye 9cfc56d445 - copy run-test php 2011-12-12 15:09:52 +00:00
Pierre Joye b54e8fa231 - skip on win 2011-12-12 14:03:24 +00:00
Pierre Joye a275c409c6 - skip on win 2011-12-12 14:02:06 +00:00
Pierre Joye 02e898c9e0 - skip on win 2011-12-12 13:56:42 +00:00
Pierre Joye b02c751074 - skip on win 2011-12-12 13:53:38 +00:00
Pierre Joye df3c9a79fe - skip on win 2011-12-12 13:49:21 +00:00
Pierre Joye 582363d9c8 - skip on win 2011-12-12 13:34:21 +00:00
Pierre Joye d15e57d5db - skip on win 2011-12-12 13:31:43 +00:00
Derick Rethans 31afa034f0 This test should no longer fail, and is perfectly okay for Linux to test on too. 2011-12-12 12:57:46 +00:00
Popa Adrian Marius b2bf466363 bug fixed #48877 - bindValue and bindParam do not work for PDO Firebird 2011-12-12 06:33:43 +00:00
Gustavo André dos Santos Lopes 52c36e60c4 - Fixed bug #60455: stream_get_line misbehaves if EOF is not detected together
with the last read.
2011-12-11 21:08:15 +00:00
Popa Adrian Marius 74343ca506 bug fixed #48877 - bindValue and bindParam do not work for PDO Firebird 2011-12-10 22:04:23 +00:00
Felipe Pena 9e06b00e71 - Fixed bug #60489 (Simple Typo In php.ini Files)
patch by: danbrown at php.net
2011-12-09 22:43:01 +00:00
Xinchen Hui e29c46a50d add $_SERVER["SERVER_NAME"] since it's handy 2011-12-09 16:16:31 +00:00
Xinchen Hui 8fff0e86d7 fix memory leak 2011-12-09 14:05:26 +00:00
Patrick Allaert ea25a9be03 Added tests contributions on spl_autoload and stream_context_set_option()
Thank you Jean-Marc Fontaine and Alter Way
2011-12-09 11:45:39 +00:00
Xinchen Hui 665ff3444a typo, sorry 2011-12-09 05:55:31 +00:00
Xinchen Hui 147c414279 Fixed bug #60477 (Segfault after two multipart/form-data POST requests) 2011-12-09 05:37:41 +00:00
Christopher Jones 726b31cfc9 Fix skipif 2011-12-08 20:43:23 +00:00
Pierrick Charron 4b860ccdad Fix curl_copy_handle_basic_008.phpt when display_errors is On
(Thanks Chris Jones)
2011-12-08 18:57:01 +00:00
Hannes Magnusson d0f7573b39 Uhh.. Can't believe noone noticed the gc option was missing from our ini files 2011-12-08 14:57:02 +00:00
Stanislav Malyshev 8559b09566 back to dev 2011-12-08 07:17:27 +00:00
Stanislav Malyshev 00f2a9b2ba 5.4.0rc3 2011-12-08 07:15:44 +00:00
Scott MacVicar 287e1917cf Make sure that we set the strong crypto result to false as well as returning false. 2011-12-07 20:50:33 +00:00
Derick Rethans 38eecffe0d Test cosmetics. 2011-12-07 19:42:44 +00:00
Derick Rethans 6c242d9dd7 Sorting out the tests *once* more.
Please keep them consistent and only change them if you are 110% certain what
you're doing. Otherwise -> please ask.
2011-12-07 19:24:58 +00:00
Pierrick Charron 2e87cd3399 Fix test 2011-12-07 16:46:48 +00:00
Pierrick Charron 572e36e2e4 Add new test for CURLOPT_POSTFIELDS 2011-12-07 16:32:50 +00:00
Pierre Joye d4ef7ab7df - tests require 64bit integer 2011-12-07 10:38:35 +00:00
Xinchen Hui 5aa1fb6074 Implemented FR #54514 (Get php binary path during script execution). 2011-12-07 10:33:13 +00:00
Pierre Joye 321172e479 - print_r seems to display 0 or nothing for days, let make that test works in both cases, that's not the purpose of this test to test print_r 2011-12-07 09:03:07 +00:00
Pierre Joye 93af22bbb9 - fix warning and fix buggy behavior of timelib_diff due to bad assumption of floor signature (fixes almost date_diff tests too) 2011-12-07 08:39:43 +00:00
Pierre Joye e6d945c181 - rename to correct bug # 2011-12-07 08:37:48 +00:00
Pierre Joye f3c1d7154c - set TZ 2011-12-07 08:33:41 +00:00
Pierre Joye 4e172842a2 - force LF 2011-12-06 13:42:08 +00:00
Pierre Joye c55364eb05 - add windows version of this test 2011-12-06 13:35:41 +00:00
Pierre Joye 65f0630552 - add windows version of this test 2011-12-06 13:34:45 +00:00
Pierre Joye bbeaed1cca - force LF 2011-12-06 13:16:40 +00:00
Pierre Joye 74cf85e19d - force LF 2011-12-06 13:07:08 +00:00
Xinchen Hui ded11f4258 Use zbacktrace_ex instead of zbacktrace(actullay is dump_bt)
Use %p instead of "0x08x" (IMO this is used for print pointer, which, unfortunately, don't work under x64)
If there is any wrong, plz revert this, thanks
2011-12-06 12:32:59 +00:00
Pierre Joye c6d72040bb - force LF as EOL as the code expects it.
however it sounds like a bug in the implementation
phar.c:720
	if (4 != php_stream_read(fp, buffer, 4)) {
		MAPPHAR_ALLOC_FAIL("internal corruption of phar \"%s\" (truncated manifest at manifest length)")
	}

that code will fail if non LF eol are used. Or does phar supports only LF?
2011-12-06 11:58:05 +00:00
Xinchen Hui 17f5bf2ed9 Add zbacktrace_ex to .gdbinit which will print extra argument info than zbacktrace
Implement FR #60448
2011-12-06 09:56:01 +00:00
Pierrick Charron 3f2bcb7723 Coding standard 2011-12-06 06:44:22 +00:00
Derick Rethans ac631dd580 - Fixed bug #53502 (strtotime with timezone memory leak).
- Fixed bug #52062 (large timestamps with DateTime::getTimestamp and
  DateTime::setTimestamp).
- Fixed bug #51994 (date_parse_from_format is parsing invalid date using 'yz'
  format).
- Fixed bug #51223 (Seg fault while creating (by unserialization)
  DatePeriod).
2011-12-06 06:21:08 +00:00
Derick Rethans 5087b0ee42 - Added a test case for #53437. 2011-12-06 06:07:41 +00:00
Derick Rethans 8889fcacc2 - Fixed bug #52062: large timestamps with DateTime::getTimestamp and DateTime::setTimestamp. 2011-12-06 06:04:24 +00:00
Derick Rethans 855ef08020 - Cosmetics for test case for #48678. 2011-12-06 06:00:45 +00:00
Derick Rethans 8698b73942 - Fixed test case for #54851.
- Make test case for #32555 the same for all branches.
2011-12-06 05:59:24 +00:00
Derick Rethans ac90e9c989 This changes adds the --EXTENSION-- section to .phpt files as
described in http://marc.info/?t=132248616300007&r=1&w=2.
2011-12-06 05:44:54 +00:00
Xinchen Hui 95784cf6c5 remove irrelevant codes in test 2011-12-05 12:46:38 +00:00
Xinchen Hui 2f8c502d22 Add xfaild test for a secluded issue 2011-12-05 12:44:12 +00:00
Xinchen Hui d18a61aefb Fix typo 2011-12-05 12:33:56 +00:00
Dmitry Stogov 1d6c98a136 Fixed bug #60444 (Segmentation fault with include & class extending) 2011-12-05 09:20:12 +00:00
Pierrick Charron b3ad0b7af7 Added myself as curl maintainer 2011-12-04 16:46:45 +00:00
Ilia Alshanetsky dfa08dc325 Fixed Bug #55478 (FILTER_VALIDATE_EMAIL fails with internationalized
domain name addresses containing >1 -).
2011-12-04 14:52:40 +00:00
Hannes Magnusson 1e6a82a1cf Fix test.. the errormessage is irrelevant, we are testing if we segfault and corrupt return value 2011-12-04 12:34:19 +00:00
Pierrick Charron 191835fd3d Fixed bug #60439curl_copy_handle segfault when used with CURLOPT_PROGRESSFUNCTION 2011-12-04 01:34:54 +00:00
Dmitry Stogov 6cfbcb2268 Expose zend_signal_handler_unblock() to DSO extensions to allow usage of HANDLE_UNBLOCK_INTERRUPTIONS macro 2011-12-02 12:14:16 +00:00
Michael Wallner d8ca919da1 Fixed bug #60240 (invalid read/writes when unserializing specially crafted strings) 2011-12-02 11:50:22 +00:00
Pierrick Charron a2d189883f Cleans up test file 2011-12-02 04:16:46 +00:00
Felipe Pena 37eba77f31 - Escape [ ] chars in the configure message
Patch by: Daniel Convissor
2011-12-01 16:40:07 +00:00
Felipe Pena ae667a95b0 - Replace possible esc char to <esc> in the XML output 2011-12-01 15:47:58 +00:00
Felipe Pena 032fb4ca9c - Fixed tests 2011-12-01 15:38:17 +00:00
Felipe Pena 60f338ef2c - Fixed tests 2011-12-01 14:15:22 +00:00
Dmitry Stogov f10b3bb556 Fixed icorrect key length after updating constant index 2011-12-01 13:58:29 +00:00
Felipe Pena bfb1d38b9c - Added tests for bug #60350
patch by: php@mickweiss.com
2011-11-30 21:04:07 +00:00
Felipe Pena a89f1d3cfa - Fixed bug #60350 (No string escape code for ESC (ascii 27), normally \e)
patch by: php at mickweiss dot com
2011-11-30 19:42:59 +00:00
Andrey Hristov 0905ff2fe5 Don't write more data than the protocol can grok or the server will
be confused. This comes without a test because the server needs to be
a non-community one with closed source PAM plugin loaded.
2011-11-30 17:20:25 +00:00
Christopher Jones 8171c1eeb4 Move entries that occurred after 5.4.0RC2 was branched (thanks salathe) 2011-11-29 23:17:07 +00:00
Christopher Jones e612e7a405 Miscellaneous: move misplaced entry; fix typos; note more precise OCI8 DLL dependency; remove session.entropy_file setting which was only in PHP_5_3 php.ini-development 2011-11-29 22:33:55 +00:00
Dmitry Stogov 66b38195d2 Fixed bug #54911 (Access to a undefined member in inherit SoapClient may cause Segmentation Fault) 2011-11-28 14:20:35 +00:00
Dmitry Stogov 878ada77a0 Added implicit type casting to allow reusage of macros in C++ extensions (Yoram) 2011-11-28 13:01:28 +00:00
Felipe Pena ddcc975d1a - Added JUnit output format option
patch by: Ferenc Kovacs (tyrael at php.net)
2011-11-26 20:18:03 +00:00
Ferenc Kovacs 52ddf31284 adding some tests for string offsets 2011-11-26 18:41:45 +00:00
Felipe Pena 0143fc9371 - Fixed bug #55788 (test redirects should abide SHOW_ONLY_GROUPS in run-tests.php)
patch by: tyrael at php.net
2011-11-26 17:56:43 +00:00
Gustavo André dos Santos Lopes 5759a440f8 - Small ajustments to some multicast options. 2011-11-26 17:48:52 +00:00
Felipe Pena 1bd15bbd7d - Fix test 2011-11-26 17:35:19 +00:00
Felipe Pena 85a8056828 - Clean up 2011-11-26 17:30:03 +00:00
Derick Rethans dc6ecd21ee - Fixed bug #54851 (DateTime::createFromFormat() doesn't interpret "D"). 2011-11-26 16:44:21 +00:00
Gustavo André dos Santos Lopes 7c2946f80e - Fixed bug #60392 (U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR undeclared)
(fedora at famillecollet dot com)
2011-11-26 14:55:31 +00:00
Pierre Joye 8c66fc398f - FR #60390 2011-11-25 21:21:24 +00:00
Pierre Joye 653e68233a - implement FR #60390, SERVER_PORT missing 2011-11-25 21:18:40 +00:00
Derick Rethans c2ede9a00a - Fixed bug #54596 (incorrect years for DateTime objects created with 4-digit
years).
2011-11-25 15:51:37 +00:00
Derick Rethans 3b1ce022f1 - Force setting for tests. 2011-11-25 15:47:11 +00:00
Derick Rethans 0244e76c06 - Fixed bug #60373 (Startup errors with log_errors on cause segfault). 2011-11-25 14:06:55 +00:00
Dmitry Stogov 788be2c54a Fixed bug #60167 (Crash / memory corruption in ext/com_dotnet) (Timm Friebe). 2011-11-25 11:29:28 +00:00
Gustavo André dos Santos Lopes d06c4e90a7 - Updated UPGRADING, protos and attribution in ext/intl/idn/idn.c 2011-11-24 22:45:50 +00:00
Gustavo André dos Santos Lopes 5fa1cfbbe6 - Support for UTS #46. 2011-11-24 17:54:50 +00:00
Derick Rethans a02ca5c881 - Fixed bug #60236 (TLA timezone dates are not converted properly from
timestamp).
- Fixed bug #55253 (DateTime::add() and sub() result -1 hour on objects with
  time zone type 2).

And fixed some test cases.
2011-11-24 17:13:47 +00:00
Pierre Joye d4406ad0a4 - add crt warning ini 2011-11-24 12:51:28 +00:00
Pierre Joye 36e4c600c3 - merge crt warning change (r216594) and rename the ini to windows.show_crt_warning 2011-11-24 12:46:45 +00:00
Xinchen Hui 3db55c8233 Fixed bug #60367 (Reflection and Late Static Binding) 2011-11-24 09:16:11 +00:00
Stanislav Malyshev c05614fb6d back to dev 2011-11-24 05:04:25 +00:00
Stanislav Malyshev 953016b6b9 5.4.0RC2 2011-11-24 05:03:22 +00:00
Stefan Marr db0888dfc1 Fixed Bug #60369 Crash with static property in trait 2011-11-23 21:24:34 +00:00
Stanislav Malyshev eca88d3064 Sorted engine changes by severity and added chained
string offset description.
2011-11-23 21:21:10 +00:00
Ulf Wendel 87a1c1bf47 Fix test 2011-11-23 16:47:22 +00:00
Ulf Wendel 9475362f99 Message can vary depending on server version 2011-11-23 16:38:50 +00:00
Dmitry Stogov 020cfc3d62 Fixed bug #48216 (PHP Fatal error: SOAP-ERROR: Parsing WSDL: Extra content at the end of the doc, when server uses chunked transfer encoding with spaces after chunk size) 2011-11-23 10:49:42 +00:00
Felipe Pena 90cd6482b3 - Fixed memory leak when calling the Finfo constructor twice 2011-11-23 01:20:49 +00:00
Felipe Pena e92204821a - Fix the fix (thanks Chris Jones!) 2011-11-22 19:18:34 +00:00
Pierrick Charron def84f16ad Fix test to remove dependancy over php.net 2011-11-22 18:50:57 +00:00
Ulf Wendel a6502de5d0 Skipping with libmysql. If a documentation points to more or less unmaintained wiki contents, I take it as a request to stop testing a feature. Can't tell if I get false positive, hit a bug or not. This is not libmysql testing. Its PHP MySQL API testing. 2011-11-22 16:52:42 +00:00
Andrey Hristov 842b7d6840 use the method in all builds. Thus it can be used for detection
of state transitioning in every case
2011-11-22 16:38:06 +00:00
Felipe Pena d881b055c8 - Fix the fix 2011-11-22 15:12:44 +00:00
Felipe Pena 39d0c5e202 - Fixed possible memory leak in finfo_open() 2011-11-22 15:04:19 +00:00
Pierrick Charron 38dd904a46 Revert last commit
Keep get_magic_quotes_gpc and get_magic_quotes_runtime as deprecated
even if it's not the case in the code
2011-11-22 13:20:50 +00:00
Pierrick Charron 1b07b8b3d3 Those functions are not deprecated (r319249 #55371) 2011-11-22 13:11:20 +00:00
Felipe Pena 375949781f - Fixed invalid free in call_user_method() function 2011-11-22 12:47:08 +00:00
Felipe Pena cc8c3a2d00 - Fixed memory leak in several Intl locale functions 2011-11-22 12:29:15 +00:00
Xinchen Hui b548293b99 Fixed bug #60357 (__toString() method triggers E_NOTICE "Array to string conversion") 2011-11-22 10:11:06 +00:00
Pierrick Charron ecc6c335c5 Fix this test to work with all version (even old) of libcurl 2011-11-22 08:29:26 +00:00
Pierrick Charron 20324d06da Fix memory leak when using libcurl < 7.17.0 2011-11-22 05:19:37 +00:00
Antony Dovgal e14819439c export zend_on_timeout handler from ZE 2011-11-22 03:39:12 +00:00
Felipe Pena 97659d4842 - Fixed possible crash in mb_ereg_search_init() using empty pattern 2011-11-21 19:15:18 +00:00
Xinchen Hui 034ba714cf Comparison between pointer and integer 2011-11-21 06:07:43 +00:00
Xinchen Hui ae05ae7e92 C++ style comment 2011-11-21 05:57:45 +00:00
Pierrick Charron 4dce729ca0 Fix memory leak 2011-11-21 02:44:28 +00:00
Pierrick Charron d69a1b09af Fix memory leak 2011-11-21 02:29:24 +00:00
Pierrick Charron e3557389bf Fix test to use PHP_CURL_HTTP_REMOTE_SERVER 2011-11-21 02:10:57 +00:00
Stanislav Malyshev 0f0ffd38c9 fix is_a reflection 2011-11-20 22:20:03 +00:00
Pierre Joye f330c8ab4e - restore correct window_size 2011-11-20 10:10:43 +00:00
Pierre Joye eeba0b5681 - fix build, ansi c requires constant value, no expresion, even constant var 2011-11-19 23:09:12 +00:00
Felipe Pena d3b20b4058 - Fixed bug #60339 (valgrind reports LEAK --with-mm)
patch by: yohgaki at ohgaki dot net
2011-11-19 18:50:49 +00:00
Felipe Pena ebd7dc5f88 - Fix tests 2011-11-19 18:01:26 +00:00
Felipe Pena bc810a443d - Fixed bug #43200 (Interface implementation / inheritence not possible in abstract classes) 2011-11-19 13:36:03 +00:00
Antony Dovgal 51a4ae6576 backport the line from trunk and fix uninitialized variables 2011-11-19 13:23:16 +00:00
Mateusz Kocielski b141fb1afb - Fixed bug #60337 bcscale related crashed on 64bits platforms 2011-11-19 12:46:43 +00:00
Felipe Pena 7439154ece - Removed C++ comment style 2011-11-19 12:16:47 +00:00
Stanislav Malyshev 22cbdd5cc5 fix bug #60164 (Stubs of a specific length break phar_open_from_fp scanning for __HALT_COMPILER) 2011-11-19 04:59:56 +00:00
Stanislav Malyshev 558fe2441a fix NEWS 2011-11-19 04:52:06 +00:00
Stanislav Malyshev 4c4185c117 fix test number 2011-11-19 04:49:59 +00:00
Stanislav Malyshev 5ebfe19ac6 Fix bug #60150 (Integer overflow during the parsing of invalid exif header) 2011-11-19 04:41:03 +00:00
Christopher Jones 1a30e9dd33 r319456 also fixed the OCI8 part of #55301 (multiple null pointer) 2011-11-18 18:14:15 +00:00
Felipe Pena cc8573e7a5 - CS 2011-11-18 13:56:41 +00:00
Stefan Marr 76772dc20d Fixes Bug #54441 (Handling of changing modifiers on a trait alias)
# this now results also in a compilation error, since it would open the door for inconsistencies, and violates the DRY principle.
2011-11-18 13:49:07 +00:00
Pierrick Charron 99fd5a1b71 ws in NEWS 2011-11-18 13:39:27 +00:00
Pierrick Charron 34bb8d8119 Added new SoapClient option "keep_alive". FR #60329 2011-11-18 13:24:35 +00:00
Dmitry Stogov a65abc12b6 Fixed bug #60138 (GC crash with referenced array in RecursiveArrayIterator) 2011-11-18 12:43:53 +00:00
Christopher Jones 28cfee291e Sync to 5.3 and check additional cases for #55748 2011-11-18 09:59:35 +00:00
Stanislav Malyshev 66877fbd15 fix typo 2011-11-18 09:15:15 +00:00
Xinchen Hui 5008390304 Fixed bug #60306 (Characters lost while converting from cp936 to utf8) 2011-11-18 08:50:29 +00:00
Stanislav Malyshev 77d0643b68 fixes for bug #55748 2011-11-18 07:11:19 +00:00
Pierrick Charron ced34c975e Remove unused variables in libmbfl 2011-11-18 06:27:27 +00:00
Pierrick Charron 3bfd03b6b6 Don't load php.ini file to test the built-in web server 2011-11-18 06:15:25 +00:00
Antony Dovgal ea97932279 fix bug #60082 (Crash in ArrayObject() when using recursive references)
--Tis line, and those below, will be ignored--

M    trunk/ext/spl/spl_array.c
M    branches/PHP_5_4/ext/spl/spl_array.c
M    branches/PHP_5_3/ext/spl/spl_array.c
M    branches/PHP_5_3/NEWS
2011-11-18 05:22:35 +00:00
Pierrick Charron 8e2dcfd8b6 Fixed bug #60321 (ob_get_status(true) no longer returns an array when buffer is empty). 2011-11-18 00:16:58 +00:00
Stanislav Malyshev 378c1ab12b add callable as reserved word 2011-11-17 21:13:45 +00:00
Felipe Pena c5ec9dd650 - Fix build 2011-11-17 21:07:52 +00:00
Stefan Marr c5ba229617 Fixed Bug #60165 (Aliasing unexisting trait should throw/trigger the exception/error)
- aliases that are not actually matching anything are treated as errors now. This
  will make sure that all methods that are expected to be in a class are actually
  there, or in case a trait changed for instance, that the code breaks already
  on composition
- Precedence declarations are also checked to ensure that the method
  which is supposed to take precedence actually exists, however,
  the other traits mentioned in the declaration are not regarded.
  We are more lenient here, since this avoids unnecessary fragility.
- fixed another seamingly unrelated test which broke in the progress
  but wasn't clear before either.
2011-11-17 21:04:15 +00:00
Lars Strojny c2ad166fd5 Reverting r319136 2011-11-17 09:24:15 +00:00
Xinchen Hui f2c6e116d2 revert my previous change, tests hangs on windows 2011-11-17 02:32:21 +00:00
Xinchen Hui 347876158c improve the test, let it say about errors 2011-11-17 02:22:06 +00:00
Felipe Pena 3c7a573a2c - Fixed bug #60099 (__halt_compiler() works in braced namespaces) 2011-11-16 17:41:40 +00:00
Rasmus Lerdorf 55acfdf7bd Had the wrong bug number there 2011-11-16 16:43:12 +00:00
Felipe Pena 8b9d42417f - Fixed bug #60267 (Compile failure with freetds 0.91) 2011-11-16 12:13:22 +00:00
George Wang 25ccd72217 keep code to be compatible with PHP4 2011-11-16 04:00:28 +00:00
George Wang dfd357db55 keep PHP_5_4 in sync with PHP_5_3 branch 2011-11-16 03:46:54 +00:00
Jérôme Loyet f8ef8946cc - Added .phar to default authorized extensions 2011-11-16 00:21:38 +00:00
Jérôme Loyet 117f3be895 typo 2011-11-16 00:19:43 +00:00
Jérôme Loyet d1312936cd - remove experimental flag on fpm 2011-11-15 22:40:10 +00:00
Jérôme Loyet 8bdf576a1f - FR #60199 (enhance FPM error log when the primary script can't be open) 2011-11-15 22:29:59 +00:00
Christopher Jones 7da9939ca6 Minor NEWS grammar fixes 2011-11-15 22:03:40 +00:00
Felipe Pena 8e6a9d469a - Fixed bug #55874 (GCC does not provide __sync_fetch_and_add on some archs)
patch by: klightspeed at netspace dot net dot au
2011-11-15 20:33:26 +00:00
Ilia Alshanetsky 4cf3c8c558 Fixed bug #60244 (pg_fetch_* functions do not validate that row param is >0). 2011-11-15 18:02:58 +00:00
Felipe Pena fb37f3b20d - Fixed bug #52624 (tempnam() by-pass open_basedir with inexistent directory) 2011-11-15 16:59:59 +00:00
Felipe Pena 236120d80e - Fixed bug #54682 (Tidy::diagnose() NULL pointer dereference) 2011-11-15 15:16:20 +00:00
David Soria Parra fa4f7411a3 Forgot the bug specific test. 2011-11-15 13:36:45 +00:00
David Soria Parra 13ba2da5f6 Fixed bug #55371 (get_magic_quotes_gpc() throws deprecation warning.)
Patch by David Zuelke <david dot zuelke at bitextender dot com>
2011-11-15 13:22:52 +00:00
Felipe Pena 2568672691 - We can constify in 5.4+ 2011-11-15 12:34:59 +00:00
Xinchen Hui f42ea8557c MFH, fix test 2011-11-15 03:19:54 +00:00
Xinchen Hui f8386e349f Fixed bug #60159 (Router returns false, but POST is not passed to requested
resource) and bug #55759 (mem leak when use built-in server)
2011-11-15 03:15:19 +00:00
Mateusz Kocielski 0f4ebd949e #- Added information about NPD bug fix in the OpenSSL extension. 2011-11-14 19:20:34 +00:00
Johannes Schlüter 6442fc5b4a - Add missing include. 2011-11-14 17:56:33 +00:00
Rasmus Lerdorf 3f930c10bf functor? Where did that come from? 2011-11-14 16:23:56 +00:00
Florian Anderiasch 99b501b64d Fixed a typo in README.SVN-RULES. 2011-11-14 15:39:35 +00:00
Dmitry Stogov 72660567f4 Fixed bug #44686 (SOAP-ERROR: Parsing WSDL with references) 2011-11-14 08:43:00 +00:00
Gustavo André dos Santos Lopes 8b5045fdcd - Fixed tests in ext/standard/tests/http by adding the INI setting value
allow_url_fopen=1
- Converted test file from dos line endings to unix line endings.
2011-11-14 01:12:23 +00:00
Lars Strojny 7d0fe66ebe Adjusting error messages 2011-11-14 00:26:37 +00:00
Xinchen Hui 9b091f8c34 add skipif 2011-11-13 14:31:30 +00:00
Xinchen Hui 89feaefce1 Fixed bug #60282 (Segfault when using ob_gzhandler() with open buffers) 2011-11-13 04:11:57 +00:00
Rasmus Lerdorf d391bbae17 Fix test 2011-11-12 19:12:39 +00:00
Rasmus Lerdorf aada9503fc Fix typo and don't use 'a' as an invalid filename since it is the default
gcc binary filename and is thus not unlikely to be left lying around in the
build dir which cause these tests to fail
2011-11-12 18:46:04 +00:00
David Soria Parra c4d5231a36 Fix #60218 (instantiating unknown class leads to memory leak in cli) 2011-11-12 17:05:08 +00:00
Mateusz Kocielski a9482367f8 - Fixed NULL pointer dereference in stream_socket_enable_crypto, case when
ssl_handle of session_stream is not initialized.
2011-11-12 10:36:55 +00:00
Felipe Pena c1e510aea8 - Fixed bug #60261 (phar dos null pointer) 2011-11-11 21:39:11 +00:00
Pierre Joye fcbfbea8d2 - fix bug #60272, typo 2011-11-11 18:50:52 +00:00
Rui Hirokawa 40a951ccad revert changes to fix bug #60116. 2011-11-11 14:52:56 +00:00
Arpad Ray d39dbdee24 Fix hash key length in register/remove_user_shutdown_function 2011-11-11 14:42:18 +00:00
Adam Harvey 9103413981 Note the change in ob_start() chunk size behaviour mentioned in doc bug #60243
(Add way to specify output buffering chunk size of 1).
2011-11-11 13:13:16 +00:00
Peter Cowburn 5c1c2d725f broaden php version wildcard in cli server tests (missed a few) 2011-11-11 11:33:23 +00:00
Peter Cowburn 9886e865a3 broaden php version wildcard in cli server tests 2011-11-11 11:26:51 +00:00
Rasmus Lerdorf 29cdc2cf46 Typo 2011-11-11 02:18:24 +00:00
Rasmus Lerdorf b27d604b28 Suppress lsof warnings here to avoid FUSE-related
warnings in certain environments. This doesn't
affect what is being tested.
2011-11-11 02:05:54 +00:00
Christopher Jones 4827f5c5d7 OCI8: Fixed bug #59985 (show normal warning text for OCI_NO_DATA). Sync NEWS. 2011-11-10 22:47:00 +00:00
Rui Hirokawa 27697a6a40 moved the new changes for RC2. 2011-11-10 21:45:36 +00:00
David Soria Parra 0dfd985fb2 It is not longer required to update php_version.php in php-bugs/
The bugtracker fetches the version list from the qa site, updating
php_version.php is not required anymore.
2011-11-10 21:42:04 +00:00
Hannes Magnusson 2d97e08d7e register the new shell escape constants 2011-11-10 18:23:20 +00:00
Hannes Magnusson f66d977c22 Fix build 2011-11-10 17:20:09 +00:00
Rui Hirokawa cc74264764 MFH: fixed bug #60227 (header() cannot detect the multi-line header with CR(0x0D).) 2011-11-10 14:24:31 +00:00
Rui Hirokawa db5d9c0b66 MFH: fixed bug #60116 (escapeshellcmd() cannot escape the characters which cause shell command injection). 2011-11-10 14:19:06 +00:00
Stanislav Malyshev 7f6c7422a8 back to dev 2011-11-10 06:27:37 +00:00
Stanislav Malyshev 07f2c01bd2 5.4.0 RC1 2011-11-10 06:26:25 +00:00
Felipe Pena 6781229e88 - Make valgrind happy with session_decode_error2.phpt 2011-11-09 23:50:01 +00:00
Felipe Pena cc8d433454 - Initialize BG(serialize_lock) to make valgrind happy 2011-11-09 22:16:31 +00:00
Stanislav Malyshev d752342cad no large changes for 5.4 anymore 2011-11-09 21:53:55 +00:00
Stanislav Malyshev 03f205990e add is_a change 2011-11-09 21:43:07 +00:00
Christopher Jones 8006a6723c Add tests for unsupported types 2011-11-09 06:19:07 +00:00
Stanislav Malyshev 3598185a74 fix bug #55475 - implement is_a BC solution 2011-11-09 05:27:45 +00:00
Rasmus Lerdorf c3e56a152c Here too 2011-11-08 20:37:09 +00:00
Rasmus Lerdorf 9597bc0801 This really shouldn't fail, but if it does, like on OSX under Valgrind,
let's just issue a warning.
2011-11-08 20:32:29 +00:00
Antony Dovgal 50f5c1e9b2 bail out if reading HTTP headers failed 2011-11-08 14:12:37 +00:00
Dmitry Stogov cacf363957 Fixed bug #60104 (Segmentation Fault in pdo_sqlite when using sqliteCreateFunction()) 2011-11-08 10:11:25 +00:00
Xinchen Hui 0ac9b9b0ae Fix tests 2011-11-08 06:35:07 +00:00
Stanislav Malyshev 5063a77128 Fixed bug #54084 (token_get_all with regards to __halt_compiler is not binary safe) 2011-11-08 04:59:17 +00:00
Stanislav Malyshev 6a42b41c3d fix typo 2011-11-08 04:34:18 +00:00
Christopher Jones 76d68f8dbd Improve OCI8 NLS env creation error messages (#58925) 2011-11-07 20:10:41 +00:00
Felipe Pena ff48763f4b - Added class member access on instantiation (e.g. (new foo)->bar()) support 2011-11-06 13:25:45 +00:00
Ferenc Kovacs 7888715e73 the mandatory __construct() for SPL classes was reverted in r318566 2011-11-05 16:49:56 +00:00
Rui Hirokawa d6015ff972 MFH: added japanese encoding to maintain compatibility with PHP 5.3. 2011-11-05 04:44:16 +00:00
Stefan Marr 5745f95372 Fixed inconsistent whitespace.
# Belongs to svn rev. 318793.
2011-11-05 02:05:28 +00:00
Stefan Marr 7334dfd7eb Fixed Bug #60217 (Requiring the same method from different traits)
- also added test to check for inconsistent abstract method definitions, they need to be compatible
2011-11-05 01:46:40 +00:00
Patrick Allaert 9da01ac6b6 Added test for #60104 2011-11-04 19:13:37 +00:00
Christopher Jones 0a2bf3ee32 Bump OCI8 version to 1.4.7 stable in preparation for PHP 5.3.9 2011-11-03 22:13:34 +00:00
Christopher Jones 623b4231b5 Replace custom "stress_test" setting with generic SKIP_SLOW_TESTS 2011-11-03 21:52:59 +00:00
Ulf Wendel 58f40c0345 Improving test to reflect latest API changes 2011-11-03 17:39:39 +00:00
Florian Anderiasch 8343d05e85 Redid the fix for #60192 with suggestions by Pierre and Kalle 2011-11-03 16:20:11 +00:00
Jérôme Loyet 10a1121a37 - Fixed bug #60179 (php_flag and php_value does not work properly) 2011-11-03 15:47:19 +00:00
Antony Dovgal 36103d1236 use jmp_addr only when it's initialized 2011-11-03 08:39:12 +00:00
Xinchen Hui d4b90b4788 Fixed bug #60206 (possible integer overflow in content_length) 2011-11-03 07:26:09 +00:00
Xinchen Hui cae2f1381f Fix bug #60169 Conjunction of ternary and list crashes PHP 2011-11-03 03:59:41 +00:00
Ferenc Kovacs 5bf6eaf3f4 adding memory check for FreeBSD also, TODO: refactor the free memory check into a function in an include file 2011-11-02 21:27:03 +00:00
Antony Dovgal ed276758f7 fix folding, ws and cs 2011-11-02 21:12:13 +00:00
Antony Dovgal 8d520d6296 initialize variable and fix segfaulting tests 2011-11-02 21:05:36 +00:00
Andrey Hristov de50e98a07 Add a middleman which can intercept the calls and can reroute them 2011-11-02 17:06:30 +00:00
Arpad Ray 11d6fcdba0 fix calling user close func when it isn't open 2011-11-02 16:53:22 +00:00
Johannes Schlüter 539a0f3bd3 - Fix bug #60155 (pdo_mysql.default_socket ignored). 2011-11-02 15:45:53 +00:00
Andrey Hristov 2627fafcbd - shift a bit of code around
- when cloning use the methods of the original object
2011-11-02 15:08:01 +00:00
Rui Hirokawa 77477945b3 MFH: fixed alias and encoding mapping for emoji logo. 2011-11-02 14:51:56 +00:00
Andrey Hristov 989f2fbc14 fix trace log messages 2011-11-02 14:20:35 +00:00
Peter Cowburn 9b86852d6e add 3rd parameter to arg info for splfileobject fgetcsv/setcsvcontrol (bug #60201) 2011-11-02 13:24:46 +00:00
Derick Rethans c1d520d19d - Updated to version 2011.14 (2011n) 2011-11-02 10:58:51 +00:00
Dmitry Stogov fd28dfc569 Prevent possible integer overflow 2011-11-02 08:07:12 +00:00
Florian Anderiasch 294c28f885 Fix #60192 SegFault when Collator not constructed properly 2011-11-02 07:36:52 +00:00
Dmitry Stogov e0f781f496 Fixed bug #60139 (Anonymous functions create cycles not detected by the GC) 2011-11-02 06:31:33 +00:00
Christopher Jones 735efbdd04 Update for new Oracle patchset variation 2011-11-01 21:30:57 +00:00
Ferenc Kovacs 8412709f37 allocating more than 2GB memory is slow. 2011-11-01 21:27:57 +00:00
Xinchen Hui 0cafc66331 typo 2011-11-01 15:25:30 +00:00
Stefan Marr 4591498df7 Fixed Bug #60153 (Interface method prototypes not enforced when implementd via traits.)
# Moved the freeing of overriden functions to a point after the check.
# The new check comes after the normal inheritance check to give the first check
# the opportunity to abort with a more detailed error.
# Also fixed a small type in an unrelated test.
2011-11-01 15:25:24 +00:00
Rasmus Lerdorf d2881adcbc Fix bug 60183 2011-11-01 15:15:51 +00:00
Stefan Marr 9b0d73af1d Added missing consistency check for abstract methods required by one trait and implemented by another. 2011-11-01 13:42:53 +00:00
Xinchen Hui ceac9dc490 Fixed bug #60189 (php logo can not be displayed) 2011-11-01 13:06:41 +00:00
Xinchen Hui ac789e0bb6 Fixed Bug #60180 ($_SERVER["PHP_SELF"] incorrect) 2011-11-01 12:24:02 +00:00
Florian Anderiasch 58a134fb48 Fixed #60160 and added a test for it 2011-11-01 11:51:53 +00:00
Stefan Marr b5f15ef561 Fixed Bug #60145 (Usage of trait's use statement inside interfaces not properly checked.) 2011-11-01 00:39:10 +00:00
Stefan Marr 2e5d5e5ac6 Fixed Bug #60173 (Wrong error message on reflective trait instantiation) 2011-10-31 22:59:00 +00:00
Christopher Jones c4eb5f2387 OCI8: improve initialization error message (See bug 60154) 2011-10-31 20:48:25 +00:00
Andrey Hristov 92ec40d8e4 Now really split the method tables and have different
methods for the handle and the data object.
Add auxiliary functions to work with the new methods.
Add possibility to clone a connection object - shadow copy.
2011-10-31 14:33:56 +00:00
Andrey Hristov 8fb6bdd5b8 Split struct MYSQLND in struct MYSQLND and struct MYSQLD_CONN_DATA.
A step in the direction of keeping internal data private
2011-10-31 11:46:24 +00:00
Xinchen Hui 63812d1849 Update tests 2011-10-31 06:52:45 +00:00
Xinchen Hui 378ad2f447 Test for #60174 (Notice when array in method prototype error) 2011-10-31 06:04:43 +00:00
Xinchen Hui 5921e73a37 Fixed bug #60174 (Notice when array in method prototype error)
this should also exists in ext/reflection. since the new warning of "array to string convert" is introduced in zend_make_printable_zval which is used in ext/reflection too
2011-10-31 03:47:11 +00:00
Rui Hirokawa c1a4a36c14 MFH: fixed alias of encoding. 2011-10-30 08:40:51 +00:00
Xinchen Hui 9d98b3e39a tests for 60169 2011-10-30 06:28:24 +00:00
Gustavo André dos Santos Lopes 32f7337bd4 - Reverted changes that required constructor overrides to invoke the parent
constructor in several SPL classes and applied 5.3 fixes instead.
  Related bugs: #54384, #55175 and #55300
2011-10-29 23:17:18 +00:00
Xinchen Hui 091f279eb0 Fixed bug #60146 (Last 2 lines of page not being output) 2011-10-29 02:14:04 +00:00
Rasmus Lerdorf 7002ec3723 typo 2011-10-28 16:37:41 +00:00
Rasmus Lerdorf a5eadee8b6 Spaces not TABS here 2011-10-28 16:21:04 +00:00
Pierre Joye 5c21ad7480 - ws 2011-10-26 12:33:57 +00:00
Andrey Hristov 7edb8a69b6 Bump internal version id after recent changes 2011-10-26 09:00:32 +00:00
Andrey Hristov f926a3c07d Move from directly referencing an aggregated structure to using a
pointer to a structure. The structure is still aggregated but we add
a level of indirection for possible plugins to overwrite the storage
2011-10-25 23:01:49 +00:00
Christopher Jones 8eb4386c87 oci8 - Increase Oracle error message length for 11.2.0.3+ 2011-10-25 22:01:42 +00:00
Andrey Hristov 3295415cce Add hooks for __call like functionality and also allow to
handle calls that spread over two internal functions. Let's call it
a local TX.
2011-10-25 19:04:36 +00:00
Xinchen Hui 69783165df force LF, fix test faild on windows 2011-10-25 11:04:57 +00:00
Xinchen Hui 6f0d8245a4 Fix test faild on windows due to DEFAULT_SLASH 2011-10-25 10:56:11 +00:00
Xinchen Hui 67ae60f4f5 Fix test, now can run on windows 2011-10-25 10:54:39 +00:00
Derick Rethans d74a8a6e3f - Updated to version 2011.13 (2011m) 2011-10-24 15:19:08 +00:00
Pierre Joye 97076fa68e - fixed bug #60120, proc_open's streams may hang with stdin/out/err when the data exceeds or is equal to 2048 bytes 2011-10-24 12:39:55 +00:00
Andrey Hristov 4321da0388 move plugin specific stuff to one file. create object factory
for similar objects
2011-10-24 12:34:44 +00:00
Pierre Joye 20422c2653 - win9x is not supported anymore since 5.3 2011-10-24 10:53:17 +00:00
Xinchen Hui 08d372716c A better fix, sorry for previous thoughtlessness commit. 2011-10-24 03:47:42 +00:00
Xinchen Hui d8911efbb6 Fixed PATH_INFO of /index.php/foo/bar 2011-10-24 03:28:59 +00:00
Ferenc Kovacs 8747d2245d using %s-dev instead of the exact version number 2011-10-23 20:38:53 +00:00
Xinchen Hui 7c1e64e2a6 add tests for PATH_INFO
update php_cli_server.inc to support no router server
2011-10-23 13:57:25 +00:00
Rui Hirokawa 5add615494 MFH: removed invalid two byte sequenct for utf-8. 2011-10-23 11:54:34 +00:00
Ferenc Kovacs 8066746c73 adding SKIP_SLOW_TESTS checks for the slow tests, and additionaly sync the domains used in the ext/standard/tests/network/getmxrr.phpt with the other branches 2011-10-23 10:09:29 +00:00
Stanislav Malyshev 5770c9a872 update UPGRADING 2011-10-23 06:38:42 +00:00
Stanislav Malyshev 26728676e2 typofixes 2011-10-23 05:24:25 +00:00
Xinchen Hui a6bc3f6c59 fix memory leak 2011-10-23 03:02:24 +00:00
Xinchen Hui 8d467563e2 Fixed bug #60112 If URI does not contain a file, index.php is not served
This is a windows Issue.
and after this fix, previously 404 request like "localhost/foo/bar"
now could server correctly with request_uri "index.php" and PATH_INFO "/foo/bar/"
2011-10-23 02:54:06 +00:00
Ferenc Kovacs b6aa3964d8 check the available memory on linux and skip if it is not enough 2011-10-23 00:07:01 +00:00
Ferenc Kovacs 9798694c03 shave off 900M memory from this test 2011-10-22 23:47:52 +00:00
Ferenc Kovacs 64ec41f7d4 stream_socket_server("unix://..." has a length limit, so it is better to use the tmp dir instead of the current test dir for the socket file. see https://bugs.php.net/bug.php?id=60106 2011-10-22 21:44:05 +00:00
Andrey Hristov e111b23dd7 fix the build 2011-10-21 15:36:36 +00:00
Andrey Hristov 652490d43a shift code around to two new files - mysqlnd_driver.c
and mysqlnd_ext_plugin.c (mysqlnd extension plugin)
2011-10-21 15:28:58 +00:00
Stanislav Malyshev d81ea16ef1 Changed silent conversion of array to string to produce a notice. (Patrick) 2011-10-21 06:08:47 +00:00
Moriyoshi Koizumi 2cf34bc9fc Add SERVER_PROTOCOL variable to $_SERVER. Patch by kuzuha. Thanks. 2011-10-21 05:24:30 +00:00
Ferenc Kovacs 465cb32c4c there is a length limit on the shebang line, ignore the tests for >= 127 2011-10-20 18:09:44 +00:00
Gustavo André dos Santos Lopes db2d36de3e Updating news with commit r308410. 2011-10-20 08:53:01 +00:00
Stanislav Malyshev 972f576994 Update UPGRADING
# more to come soon
2011-10-20 06:24:56 +00:00
Stanislav Malyshev 93f654e64f back to dev 2011-10-20 06:06:35 +00:00
Stanislav Malyshev 91a04638e6 5.4.0beta2 2011-10-20 06:05:30 +00:00
Xinchen Hui 380a1ea142 Fixed bug #60094 (C++ comment fails in c89) 2011-10-19 15:08:50 +00:00
Andrey Hristov efb68d9399 api_ext to reverse_api 2011-10-19 15:04:12 +00:00
Michael Wallner b6921369b5 Fix Bug #55801 Behavior of unserialize has changed:
(un)serialize in __wakeup/__sleep now use clean var_hashes
2011-10-19 10:09:24 +00:00
Daniel Convissor f2ce9b406b Tests for the DST RFC. 2011-10-18 21:45:07 +00:00
Arnaud Le Blanc 07b7ba8b40 Improved ternary operator performance when returning arrays 2011-10-18 19:42:42 +00:00
Rui Hirokawa 41ddca803d fixed maximum byte length of utf8mb4. 2011-10-18 14:28:21 +00:00
Rui Hirokawa 0d73145490 MFH: fixed byte length of utf-8. 2011-10-18 14:04:13 +00:00
Ilia Alshanetsky d4ae4e79db Fixed bug #55543 (json_encode() with JSON_NUMERIC_CHECK fails on objects with numeric string properties) 2011-10-17 23:51:25 +00:00
Xinchen Hui 1f78177e2b Fixed bug #60038 (SIGALRM cause segfault in php_error_cb) 2011-10-16 03:00:51 +00:00
Stanislav Malyshev 63b934b9c7 revert change, doesn't work 2011-10-16 02:43:50 +00:00
Stanislav Malyshev 05c5c8958e Bug #55754 - Only variables should be passed by reference for ZEND_SEND_PREFER_REF params 2011-10-16 00:34:01 +00:00
Stanislav Malyshev 0a1cc5f01c fix potential integer overflow 2011-10-15 23:57:33 +00:00
Stanislav Malyshev 1551cc62db fix openbasedir in test 2011-10-15 23:52:40 +00:00
Rui Hirokawa a1de339e17 added a missing emoji U+27BF. 2011-10-15 07:12:02 +00:00
Ilia Alshanetsky 136a9ca2cc Fixed bug #60019 (Function time_nanosleep() is undefined on OS X). 2011-10-14 12:43:27 +00:00
Felipe Pena 4168e0dfe4 - Fixed bug #60048 (sa_len a #define on IRIX)
patch by: china at thewrittenword dot com
2011-10-13 22:56:05 +00:00
Andrey Hristov bbf59ae4da export this existing function 2011-10-12 16:18:02 +00:00
Felipe Pena d080277d97 - Fixed bug #60033 (Incorrectly merged PDO dblib patches break uniqueidentifier column type) 2011-10-12 01:24:51 +00:00
Felipe Pena 71eaaf6567 - Fixed bug #60042 (spl_autoload_call may manipulate a dangling pointer)
patch by: tom at punkave dot com
2011-10-12 01:03:15 +00:00
Andrey Hristov b5f5770399 MYSQLND_NET refactored not to use any direct reference to MYSQLND (the connection)
QC will need an ifdef-layer to compile with this
2011-10-10 20:49:28 +00:00
Andrey Hristov 33eb2ab6f1 last stat fix 2011-10-10 15:45:56 +00:00
Andrey Hristov c75a4a408b fix test after stat change 2011-10-10 14:39:22 +00:00
Andrey Hristov d4e0ef5dc9 fix another test after stat change 2011-10-10 14:33:07 +00:00
Andrey Hristov 90ef61d587 fix test 2011-10-10 14:19:01 +00:00
Andrey Hristov 085c3de991 fix test 2011-10-10 13:25:45 +00:00
Andrey Hristov 236fb29289 fix test 2011-10-10 12:50:09 +00:00
Derick Rethans 6c1fe05d61 - Updated to version 2011.12 (2011l) 2011-10-10 08:05:55 +00:00
Christian Stocker eb039d5783 Added the xsl.security_prefs option to 5_4 and trunk and
mark it as deprecated for BC-reasons
Added tests for ini option and combination of both
2011-10-10 07:59:19 +00:00
Jérôme Loyet da110e2065 - ensure request_terminate_timeout >= request_slowlog_timeout 2011-10-09 15:21:06 +00:00
Jérôme Loyet 891ca5cae3 - Fixed bug #55526 (Heartbeat causes a lot of unnecessary events) 2011-10-09 15:12:26 +00:00
Jérôme Loyet 17cbee6ffe - Fixed bug #55533 (The -d parameter doesn't work) 2011-10-09 14:36:11 +00:00
Stefan Marr e14354af21 Fixed Bug #55554 (Legacy constructors not handled properly) [TRAITS] [DOC]
# The handling of legacy constructors defined by traits was corrected.
# They are now properly registered and used on instantiation.
# The situation for conflicting legacy and __construct constructors is
# mostly identical. If they are defined in the class, they override conflicts
# and do not collide. However, in case different styles are mixed, between
# class and trait definition, we assume a programmer's mistake and report
# a collision.
#
# BTW: +1 for all the fixed tests! `make test` is fun again.
2011-10-09 11:13:27 +00:00
Jérôme Loyet 62fd3369cb - fix r317922 (missing PHP_ADD_BUILD_DIR(sapi/fpm/fpm/events) in config.m4) 2011-10-09 09:22:36 +00:00
Stefan Marr 469fc0a341 Use ZEND_ constants instead of plain strings for names of magic methods.
# No functional changes.
2011-10-08 23:47:16 +00:00
Jérôme Loyet 1034cbc758 - Implemented FR #52569 (Add the "ondemand" process-manager to allow zero children) 2011-10-08 21:04:10 +00:00
Jérôme Loyet 12c1f0b0d9 - fix r317913 2011-10-08 20:43:12 +00:00
Jérôme Loyet fb88ef7231 - Fixed bug #55486 (status show BIG processes number) 2011-10-08 19:50:26 +00:00
Jérôme Loyet 81565fdf45 - Fixed bug #55577 (status.html does not install) 2011-10-08 19:31:32 +00:00
Andrey Hristov 1744885c62 null the value before usage 2011-10-08 14:48:14 +00:00
Xinchen Hui 4ffc16611d Remove unecessary codes 2011-10-07 04:14:31 +00:00
Andrey Hristov 5b1efc1d87 Add test case 2011-10-06 17:06:02 +00:00
Andrey Hristov eb0f361439 Be consistent, add mysqli::stat property, as equivalent of mysqli_stat().
Fix for Bug #55859 mysqli->stat property access gives error
2011-10-06 11:25:05 +00:00
Andrey Hristov c3019a16d5 try not to crash when closing persistent sockets, because EG(persistent_list)
is cleaned before the extensions' MSHUTDOWNs are called.
2011-10-06 00:45:58 +00:00
Andrey Hristov 3cddf1d7b5 Fix bad cast which leads to crashes! 2011-10-05 18:51:15 +00:00
Pierre Joye 2f3adeb083 - Revert r313616 (When we have a blocking SSL socket, respect the timeout
option, scottmac)

# This caused bug #55283 and #55848, we should investigate a proper solution without
# breaking anything.
2011-10-05 05:20:51 +00:00
Ilia Alshanetsky 567e2f1cf3 Fixed bug #55750 (memory copy issue in sysvshm extension). 2011-10-03 18:17:12 +00:00
Xinchen Hui 2e925f6f19 Fixed bug #55825, and add test script 2011-10-03 17:01:17 +00:00
Peter Cowburn 24cbd8f3fe typofix (procgress to progress) 2011-10-03 08:45:06 +00:00
Peter Cowburn 4750c3fbe1 Fix php.ini comment (#55834) 2011-10-03 08:40:26 +00:00
Felipe Pena 66d25f5266 - Improve void arg check
- Removed unused variable
- Added check for empty tag in enchant_broker_request_dict() (to avoid assert warning)
2011-10-01 13:01:12 +00:00
Xinchen Hui 50662f83ec A better fix for #55817 (thanks to bjori) 2011-09-30 15:08:32 +00:00
Hannes Magnusson 5fba3ba7c3 Fixed bug #55807 (Wrong value for splFileObject::SKIP_EMPTY) 2011-09-30 14:17:23 +00:00
Hannes Magnusson 3dabada846 Use the default stream context for FilesystemIterator, GlobIterator and (Recursive)DirectoryIterator 2011-09-30 14:12:26 +00:00
Xinchen Hui 0e6250fcff Fix wrong codes #55817 2011-09-30 13:34:07 +00:00
Gustavo André dos Santos Lopes ecfa660a82 - Fixed #55798: serialize followed by unserialize with numeric object prop.
gives integer prop.
2011-09-28 14:47:42 +00:00
Gustavo André dos Santos Lopes 736ada5931 - Oops missed return. Also improved the readability of a test. 2011-09-27 11:43:07 +00:00
Gustavo André dos Santos Lopes 5ae7564890 - Added tests and NEWS for r306475; see bug #55797.
- Removed now redundant previous overflow check, which relied on
  undefined behavior (wraparound) and was ignored in optimized builds.
2011-09-27 10:57:25 +00:00
Antony Dovgal 38d485ca41 fix bug #55768 (PDO_OCI can't resume Oracle session after it's been killed) 2011-09-27 09:12:13 +00:00
Ferenc Kovacs 3b4b1a79b6 split the ext/calendar/tests/bug53574.phpt into two test, as we expect different result on 32 and 64 bit 2011-09-27 00:53:41 +00:00
Ferenc Kovacs 9c2f27a380 fix #49599, the eol-style is important here, as this is a regression test for #36459 2011-09-26 23:28:24 +00:00
Gustavo André dos Santos Lopes 05389f7752 - Fixed bug in SdnToGregorian (see comments on #53574, though that bug is about
another function). NEWS & tests tomorrow.
2011-09-26 22:38:21 +00:00
Christopher Jones 4e4ad9aa26 Use TZ similar to easter_date.phpt else gcov et al give a diff for unixtojd(1000000000) 2011-09-26 19:13:06 +00:00
Derick Rethans 1cab3610de - Updated to version 2011.11 (2011k) 2011-09-26 17:23:00 +00:00
Pierre Joye 9f5f4d5401 - update news 2011-09-26 08:56:56 +00:00
Pierre Joye d435ddbe52 - be sure to check if the var ha not been removed between the two calls 2011-09-26 08:49:28 +00:00
Pierre Joye 60bf324ed5 - Fix bug #55622, better fix for this issue, old fix can break if sizeof(size_t) > sizeof(int) like on sparc 2011-09-26 08:36:33 +00:00
Stanislav Malyshev f50f54a6ea update proto 2011-09-26 03:57:22 +00:00
Johannes Schlüter 223e2ac106 - Fix folding 2011-09-25 13:06:09 +00:00
Johannes Schlüter 9da3e6c1a6 - Fix bug #55776 (PDORow to session bug) 2011-09-25 12:39:05 +00:00
Rui Hirokawa 96240fc3ed revert the previous patch. 2011-09-25 08:22:58 +00:00
Rui Hirokawa d050fa87d4 MFH: added mb_ereg_replace_callback(). 2011-09-25 08:15:50 +00:00
Xinchen Hui 3fd08b3bd4 Fix tests due to bison depened message format 2011-09-25 03:35:57 +00:00
Xinchen Hui 579408b897 Fix warning "implicit declaration of function `zend_fetch_debug_backtrace'" 2011-09-25 03:18:39 +00:00
Adam Harvey f11500df0c Fix bug #55769 (Make Fails with "Missing Separator" error) via s/ /^I/. 2011-09-24 19:16:33 +00:00
Rui Hirokawa a6a3bd010a MFH: fixed #40685: removed '&' in mb_decode_numericentity(). 2011-09-24 02:12:17 +00:00
Xinchen Hui bf2dfb5fff unused var 2011-09-24 01:05:43 +00:00
Rasmus Lerdorf 46f74e3523 Add a test and declare the local vars locally 2011-09-23 15:19:48 +00:00
Xinchen Hui c58f254354 Improve the warning message of incompatible arguments. (#55719)
And fix tests related.
2011-09-23 15:08:11 +00:00
Rasmus Lerdorf f5ec360df7 Fix for bug #55767 2011-09-23 13:16:37 +00:00
Rui Hirokawa d938844d8f MFH: fixed a bug in convertion table and added test script for emoji. 2011-09-23 11:11:38 +00:00
Xinchen Hui 88c52b0dac Add tests 2011-09-23 03:09:12 +00:00
Xinchen Hui 61c001b2e8 Update NEWS 2011-09-23 03:02:01 +00:00
Xinchen Hui ea74b9c212 Fixed bug #55758 (Digest Authenticate missed in 5.4)
the block I am removing should be removed along with the PG(saf_mod) condition.
 since it is inside the PG(saf_mod) condition block.
2011-09-23 02:56:25 +00:00
Ferenc Kovacs a52d3efe08 the TZ environment variable also needed to be set here, didn't dug up why date.timezone isn't sufficient 2011-09-22 22:29:28 +00:00
Ferenc Kovacs 75893abe89 skip the interbase tests if cannot connect to the server 2011-09-22 22:07:02 +00:00
Ferenc Kovacs f71b3cdd67 the julian date for timestamp 1000000000 is 2452161.5740741, which is rounded to 2452162 2011-09-22 21:50:45 +00:00
Ferenc Kovacs 0839aee404 it seems that easter_date doesn't use the date.timezone but the TZ environment variable, so it passing the return value of easter_date() to date() which uses the date.timezone will create wrong result. 2011-09-22 20:59:10 +00:00
Xinchen Hui 8933798d36 Add tests for bug #55755 2011-09-22 02:26:00 +00:00
Ilia Alshanetsky 172d037068 Removed unreachable code (stream == NULL check is done already) 2011-09-21 19:08:30 +00:00
Xinchen Hui d603d05398 Fixed bug #55755 (SegFault when outputting header WWW-Authenticate) 2011-09-21 16:00:09 +00:00
Johannes Schlüter 679c87e999 - Use the proper variable here. 2011-09-21 12:34:15 +00:00
Xinchen Hui 0203c31f78 change test, and added a test for post file 2011-09-21 07:51:31 +00:00
Xinchen Hui c83594cd7a Remove double checking, and use MAXPATHLEN instead of a fixed length 2011-09-21 06:59:47 +00:00
Xinchen Hui f3aa34a90d Change to a more appropriate name 2011-09-21 03:16:35 +00:00
Xinchen Hui 82be5fcc4f Fixed bug #55747 (request headers missed in $_SERVER) 2011-09-21 03:09:42 +00:00
Shein Alexey 3c365dc3ef Refactored and speeded up php_cli_server tests, also get rid of test hanging on ubuntu:
1) Prepended starting the server with "exec" so proc_terminate can correctly close it (see also this note http://www.php.net/manual/en/function.proc-get-status.php#93382 for details)
2) Moved putting down the server to the shutdown function to make it independent from tests (fatal) errors
3) Moved php cli executable into the function to make tests more readable 
4) changed sleep(1) to usleep(50000) (50 ms) to make tests faster - this needs more testing and if timeout is too small should be increased
2011-09-20 14:53:46 +00:00
Xinchen Hui 1b9fbe540e fix INI section 2011-09-20 08:13:55 +00:00
Xinchen Hui 0df4c5caea update NEWS 2011-09-20 07:14:36 +00:00
Xinchen Hui 00bab0493e Add tests for built-in webserver 2011-09-20 07:10:46 +00:00
Xinchen Hui 5dbf73a866 Fix Bug #55726 (Changing the working directory makes router script inaccessible) 2011-09-20 07:06:55 +00:00
Xinchen Hui 6bd693543b Fix folder 2011-09-20 05:07:15 +00:00
Michael Wallner 3e221129a7 fix r316992 2011-09-19 15:20:38 +00:00
Michael Wallner 85a62e9086 Fixed bug #55544 ob_gzhandler always conflicts with zlib.output_compression 2011-09-19 14:37:00 +00:00
Johannes Schlüter 2122879a7a - Fix folding 2011-09-19 12:31:06 +00:00
Xinchen Hui 3ac5593cda Fix wrong update 2011-09-17 14:24:15 +00:00
Pierre Joye 6c2b670e69 - fix build (macros mess) 2011-09-17 12:41:23 +00:00
Pierre Joye a68abe830d - fix TS build 2011-09-17 10:24:18 +00:00
Xinchen Hui 56f265075d Update NEWS 2011-09-17 03:23:38 +00:00
Xinchen Hui 26c1a62b34 Fix Bug #55703(PHP crash when calling mysqli_fetch_fields)
Since the catalog values always is "def" now, see http://dev.mysql.com/doc/refman/5.0/en/c-api-data-structures.html
2011-09-17 03:12:23 +00:00
Felipe Pena 5441cd1f0d - Fixed bug #55705 (Omitting a callable typehinted argument causes a segfault)
patch by: laruence@php
2011-09-17 00:16:11 +00:00
Felipe Pena 258c8de7fb - Fixed bug #55707 (undefined reference to `__sync_fetch_and_add_4' on Linux parisc) 2011-09-17 00:05:31 +00:00
Felipe Pena 39c6382b14 - Fixed bug #55231 (Unsatisfied symbols __sync_fetch_and_add_4) 2011-09-17 00:01:45 +00:00
Christopher Jones b5edcb56cb Test portability fix 2011-09-16 19:56:32 +00:00
Pierrick Charron 63293044f9 Fixed test bug #55713 (Christopher Jones) 2011-09-16 18:29:22 +00:00
Pierre Joye c6b74fe209 - add -win32 versions and skipif 2011-09-16 10:45:04 +00:00
Dmitry Stogov c3741ad973 Fixed bug #55644 (Math ops tests fail, diff min int value) 2011-09-16 07:59:34 +00:00
Dmitry Stogov d6ab6bc6ea Fixed Windows build 2011-09-16 06:55:43 +00:00
Stanislav Malyshev 56a161b619 next version header 2011-09-15 22:33:39 +00:00
Christopher Jones a0526b9452 Fix skipif for non zlib builds re message http://lxr.php.net/opengrok/xref/PHP_TRUNK/ext/phar/phar_object.c#351 2011-09-15 17:23:29 +00:00
Xinchen Hui 610fabf414 Update libmagic.patch (patch reversed base on -r296679) 2011-09-15 15:53:49 +00:00
Etienne Kneuss c2a92317f4 Fix folding 2011-09-15 14:50:38 +00:00
Dmitry Stogov a223328b52 Fixed bug #50982 (incorrect assumption of PAGE_SIZE size) 2011-09-15 11:30:17 +00:00
Pierre Joye 3620a91669 - force LF 2011-09-15 09:15:07 +00:00
Xinchen Hui c32aa35d58 Fix warning "implicit declaration of function `vasprintf'"
If There is a better fix, plz fixme.
2011-09-15 07:09:43 +00:00
Stanislav Malyshev f5b8a3b40e back to dev 2011-09-15 06:25:52 +00:00
Stanislav Malyshev fe85ca8737 5.4.0beta 2011-09-15 06:24:18 +00:00
Stanislav Malyshev 748003b349 update NEWS 2011-09-15 06:23:37 +00:00
Arpad Ray aaa86e2287 fix default session handler error message 2011-09-14 15:30:30 +00:00
Dmitry Stogov 93dd61659f Fixed bug #55552 (bad encoding not detected) 2011-09-14 15:00:28 +00:00
Dmitry Stogov 750e4e1011 Fixed bug #55578 (Segfault on implode/concat) 2011-09-14 13:18:19 +00:00
Gustavo André dos Santos Lopes 4de9123b85 - ext/openssl/tests/bug36732.phpt more portable. 2011-09-14 10:55:46 +00:00
Gustavo André dos Santos Lopes 428ef23067 - Fixed test ext/openssl/tests/004.phpt.
- Made ext/openssl/tests/bug55646.phpt more reproducible by giving it a custom
  openssl.cnf.
2011-09-14 09:56:59 +00:00
Xinchen Hui 7bd4924bf7 Fix test, Make warning message bison independed 2011-09-14 08:49:29 +00:00
Xinchen Hui 7e5307cc79 Fix tests 2011-09-14 06:48:26 +00:00
Xinchen Hui 5412b2885d Add test for bug #55688 2011-09-14 05:02:50 +00:00
Xinchen Hui ed4251860a Fix bug #55688 (Crash when calling SessionHandler::gc())
Need arpad to review this change
2011-09-14 04:10:45 +00:00
Xinchen Hui 17ff990ef0 Fix warning "implicit declaration of function `vasprintf'" 2011-09-14 02:19:22 +00:00
Felipe Pena b034032ae2 - Fixed memory leak when calling SessionHandler::open() several times 2011-09-14 01:45:57 +00:00
Arpad Ray 739151d388 fix session oo tests for windows 2011-09-14 01:16:19 +00:00
Arpad Ray f8a943cc19 fix zts break in r316688 2011-09-13 23:07:08 +00:00
Arpad Ray 47cfae87eb Implement object-oriented session handlers (https://wiki.php.net/rfc/session-oo) 2011-09-13 22:28:15 +00:00
Ferenc Kovacs 6e998b4d0f I don't see why would be this a win only test. it works for me on linux, checked the history, find no explanation. 2011-09-13 21:06:06 +00:00
Daniel Convissor 7987fde4c1 Separate test for %a is no longer needed. 2011-09-13 20:31:02 +00:00
Ferenc Kovacs e82139d2e0 fixing the tests, added the error_log= to the --INI-- so it should also pass for Stas 2011-09-13 19:56:42 +00:00
Ilia Alshanetsky 292c439ecf Improve parameter handling cod 2011-09-13 16:36:29 +00:00
Pierre Joye 4f50e84eae - test passes now (and VC6 is not supported anymore) 2011-09-13 16:21:24 +00:00
Derick Rethans a70889f8fd - Fixed compiler warnings (patch by Kalle Sommer Nielsen) 2011-09-13 15:17:11 +00:00
Xinchen Hui d4b0a38a12 Fix typo (as tyearl's ask) 2011-09-13 15:12:16 +00:00
Xinchen Hui a576f448cb Revert update, since this bug is not in a official release of 5.4 2011-09-13 14:58:37 +00:00
Derick Rethans b52082b309 - Document changes in upgrading. 2011-09-13 14:57:58 +00:00
Derick Rethans 4c8ee24563 And some formatting 2011-09-13 14:50:18 +00:00
Derick Rethans 66e3218fec - tabs to spaces 2011-09-13 14:49:44 +00:00
Derick Rethans 58daa3fd3a - Removed support for putenv("TZ=..") for setting the timezone.
- Removed the timezone guessing algorithm in case the timezone isn't set with
  date.timezone or date_default_timezone_set(). Instead of a guessed timezone,
  "UTC" is now used instead.
2011-09-13 14:48:13 +00:00
Kalle Sommer Nielsen e1068269f0 MFT: Fix build on Windows 2011-09-13 14:35:28 +00:00
Pierre Joye 631e896b34 - skip on win, runtime TZ via putenv is not supported with ext/date 2011-09-13 13:58:03 +00:00
Pierre Joye ad407423cb - skip on win, runtime TZ via putenv is not supported with ext/date 2011-09-13 13:51:47 +00:00
Pierre Joye ad2a280016 - TZ auto detection varies, not always UTC 2011-09-13 13:42:03 +00:00
Pierre Joye 3c61b48625 - TZ auto detection varies, not always UTC 2011-09-13 13:39:49 +00:00
Dmitry Stogov 1257328def Fixed ZE specific compile warnings (Bug #55629) 2011-09-13 13:30:18 +00:00
Dmitry Stogov 4a25a7740d Fixed ZE specific compile warnings (Bug #55629) 2011-09-13 13:29:35 +00:00
Pierre Joye 3a3c2942d2 - skip on win, runtime TZ via putenv is not supported with ext/date 2011-09-13 13:26:48 +00:00
Xinchen Hui 409941c2d1 update news 2011-09-13 13:11:42 +00:00
Xinchen Hui e29ee12223 MFH, fix test 2011-09-13 13:02:57 +00:00
Xinchen Hui 54d48bb31f Fixed Bug #55674 (fgetcsv & str_getcsv skip empty fields in some tab-separated records) which was introduced by r311543 2011-09-13 12:44:13 +00:00
Pierre Joye b108db222e - fix test on win, putenv is not supported for TZ and ext/date 2011-09-13 12:04:57 +00:00
Pierre Joye ea09677718 - news for the crt warning 2011-09-13 10:39:59 +00:00
Pierre Joye c1db9d4a87 - do not display the crt warnings anymore by default. It is enough to simply fail from a user land pov as it is the case on posix platforms 2011-09-13 10:38:12 +00:00
Dmitry Stogov 75df0499f6 Fixed Bug #55649 (Undefined function Bug()). (Laruence) 2011-09-13 07:07:06 +00:00
Dmitry Stogov 19dd70518c Fixed bug #55509 (segfault on x86_64 using more than 2G memory). (Laruence) 2011-09-13 07:01:46 +00:00
Christopher Jones c8be5036be Fix same typo as UPGRADING 2011-09-13 01:07:48 +00:00
Christopher Jones e6f0456677 Fix typo and grammar 2011-09-13 01:00:45 +00:00
Pierre Joye 198bb6780a - skip on win, strftime uses system TZ 2011-09-12 23:31:22 +00:00
Gustavo André dos Santos Lopes b6aabaae59 - Test for bug #55646. 2011-09-12 20:05:07 +00:00
Gustavo André dos Santos Lopes 1d5028be3d - Fixed bug #55646: textual data is returned in UTF-8, but is input in
another encoding. 5.4 only as this implies a BC break.
2011-09-12 17:23:10 +00:00
Hannes Magnusson 76d9a3fa3d Test for non-string replacement, bug#54304 2011-09-12 17:20:44 +00:00
Ilia Alshanetsky 9915700fa1 Fixed bug #55273 (base64_decode() with strict rejects whitespace after pad) 2011-09-12 17:20:24 +00:00
Derick Rethans 8b39370878 - Updated to version 2011.10 (2011j) 2011-09-12 15:49:12 +00:00
Ulf Wendel c5523b5689 This should please gcov.php.net which hits error 1044 instead of 1049. 2011-09-12 15:05:10 +00:00
Tjerk Anne Meesters 828c07c500 Reverted changes in connect.inc based on Ulf's feedback
- Moved the ini_set() entries into a separate script 'setupdefault.inc'
- Let mysql_affected_rows and mysql_insert_id test cases use the newly created script

With the ini_set() statements inside connect.inc, some test cases would be forced to 'undo' them in order to test other scenarios.

Tested on all three dev lines with and without passing db credentials. No changes detected.
2011-09-12 14:35:45 +00:00
Ulf Wendel 078cbac1d2 Fix typo. 2011-09-12 13:55:28 +00:00
Popa Adrian Marius 13b1e46370 fix warning Warning: ibase_drop_db(): lock time-out on wait transaction object 2011-09-12 13:41:28 +00:00
Ulf Wendel 2472bf8898 Minor issue. Seems to fail the same way on various PHP + MySQL combinations. Setting XFAIL until we fix it. 2011-09-12 13:39:57 +00:00
Xinchen Hui a1ae0408de update news 2011-09-12 13:27:23 +00:00
Xinchen Hui 31938d05fb update news 2011-09-12 13:25:28 +00:00
Hannes Magnusson 2c5574b3d8 Allow replacement to be any scalar value 2011-09-12 13:21:57 +00:00
Rui Hirokawa 15fd9c288c MFH: fixed optional argument. 2011-09-12 13:20:27 +00:00
Ulf Wendel ca79494000 Hits libmysql/MySQL bug, works with mysqlnd 2011-09-12 13:14:16 +00:00
Pierre Joye 4ce7228b00 - revert incorrect fix introduced in r316528 2011-09-12 12:59:52 +00:00
Christian Stocker cc2fd64121 Added test for XSL bug 54446 2011-09-12 12:44:49 +00:00
Ulf Wendel 9bbb03391f Those will fail with MySQL 5.5. Running them because they have unveiled a crash, which has been fixed already. Setting to XFAIL, need to be decide if and/or how the functionality shall be supported. 2011-09-12 12:14:56 +00:00
Hannes Magnusson ee27f57095 Ensure we are working with strings here 2011-09-12 11:44:55 +00:00
Popa Adrian Marius ee1ed6743e fixes #55659 also the 006 firebird test 2011-09-12 09:36:37 +00:00
Pierre Joye 8bab4d155c - unused var 2011-09-12 09:27:03 +00:00
Pierre Joye 54716074ec - force LF 2011-09-12 09:16:19 +00:00
Hannes Magnusson 413f94913d Fixed issues when streams were closed before curl read/write from them, or cleaning
Closing a original handle after copying it now no longer cleans up all resources (fixes missing CURLOPT_POSTFIELDS values among others)
2011-09-12 09:16:04 +00:00
Popa Adrian Marius c845e06541 extension is not experimental anymore
see the status http://www.gn0s1s.nl/?p=108
2011-09-11 22:11:30 +00:00
Popa Adrian Marius 99d3297e8a fix test 003 from gconv test for firebird extension 2011-09-11 20:18:20 +00:00
Rui Hirokawa 6675883d81 MFH: fixed test failure on win32. 2011-09-11 13:15:48 +00:00
Rui Hirokawa 2d6ff8dc5c MFH: fixed test failure on win32. 2011-09-11 13:04:38 +00:00
Rui Hirokawa 5894909f01 MFH: fixed test case failures. 2011-09-11 12:29:15 +00:00
Rui Hirokawa 59b9ca51b0 MFH: fixed test case failures. 2011-09-11 12:12:48 +00:00
Rui Hirokawa b870f23396 revert previous commit. 2011-09-11 03:56:16 +00:00
Rui Hirokawa 1dd6fd0d4f revert previous commit. 2011-09-11 03:55:08 +00:00
Rui Hirokawa 9d86be5068 MFH: removed test script which depends on the removed register_globals. 2011-09-11 02:16:58 +00:00
Felipe Pena f6408176f6 - Fix test 2011-09-10 13:02:00 +00:00
Stanislav Malyshev 666d301ee3 Fix error message 2011-09-10 05:36:14 +00:00
Stanislav Malyshev 334636fefb revert bad test change 2011-09-10 05:29:29 +00:00
Xinchen Hui 6b57319cf4 Fixed Bug #55653(PS crash with libmysql when binding same variable as param and out)
Actually this caused by attempt to efree a INTERNED string
2011-09-10 03:51:16 +00:00
Ulf Wendel 61384510f1 Bug #55653 2011-09-09 12:12:08 +00:00
Hannes Magnusson a2c1d37d4f Being smart and cleanup/rename/modify tests seconds before committing isn't very smart. 2011-09-09 08:28:57 +00:00
Hannes Magnusson 7cbaf76ca1 Merge tests from trunk 2011-09-09 08:14:04 +00:00
Pierre Joye 4ba119f10c - force LF 2011-09-09 08:11:43 +00:00
Pierre Joye 7a3d89a9aa - nuke unused var 2011-09-09 07:57:29 +00:00
Pierre Joye 2d9f758435 - improve r316420, function must return a value 2011-09-09 07:56:42 +00:00
Etienne Kneuss 6698c9b0d0 Mention recent SPL changes on spl_directory.c and tests 2011-09-08 23:18:49 +00:00
Pierre Joye de12ac023c - improve r316420 (SplFileObject cannot and should not accept directories) 2011-09-08 23:12:32 +00:00
Etienne Kneuss 1e04e19a37 MFH: adapt check for __construct bypass 2011-09-08 23:10:40 +00:00
Pierre Joye 38c698c062 - improve r316420 (SplFileObject cannot and should not accept directories) 2011-09-08 23:07:48 +00:00
Christopher Jones e81fed3df5 Update SKIPIFs for test portability 2011-09-08 20:13:32 +00:00
Christopher Jones 8e23ee53bf Fix skipifs 2011-09-08 17:52:45 +00:00
Christopher Jones 0a8e670b15 Fix skipifs to match other tests for the case when connection fails 2011-09-08 17:40:15 +00:00
Pierre Joye bc8f7f4165 - force LF 2011-09-08 16:11:03 +00:00
Pierre Joye 376ba8c92e - force LF 2011-09-08 16:10:07 +00:00
Etienne Kneuss 5cc7663098 SplFileObject does not accept directories. It did not check for that and blindly opened the directory, which works on linux but fails on windows. Now SplFileObject uses a stat() call to make sure it isn't a directory, if it is, it fails with an exception. Tests have been changed accordingly. 2011-09-08 15:52:59 +00:00
Rui Hirokawa f79814360c 2nd arguments is necessary in mb_parse_str because register_globals was removed in PHP 5.4. 2011-09-08 15:19:18 +00:00
Hannes Magnusson 285ac82310 Fixed bug#54798 Segfault when CURLOPT_STDERR file pointer is closed before calling curl_exec 2011-09-08 14:37:18 +00:00
Pierre Joye 0507a433a3 - fix test, again... 2011-09-08 11:52:37 +00:00
Ferenc Kovacs b82f0659c6 skip these tests if can't connect to mysql 2011-09-08 11:30:58 +00:00
Pierre Joye 923c02bbdc - fix test 2011-09-08 11:24:33 +00:00
Pierre Joye 8e7f4358ca - force LF and fix... and blame me for not reading the code correctly, zlib tests pass now, linux/bsd/win 100% 2011-09-08 10:20:38 +00:00
Pierre Joye a1ea21eaac - force LF 2011-09-08 10:14:38 +00:00
Pierre Joye 567fb34eb3 - skip if no hash 2011-09-08 10:00:47 +00:00
Hannes Magnusson 7e986b2a46 Fix the path to the .pem 2011-09-08 09:27:47 +00:00
Pierre Joye f20e705760 - fix build when no zend signal support 2011-09-08 09:17:21 +00:00
Christopher Jones ff02132caf Use unique object names to reduce potential clashes when testing in parallel 2011-09-07 19:19:00 +00:00
Rasmus Lerdorf 2af36bd041 Make timeouts work again for shutdown functions.
Fixes the faling lang/045 test
2011-09-07 18:48:17 +00:00
Rasmus Lerdorf 6f03c9e38e This test was added to verify that bug 39322 was fixed, which the test
does test for and this works. However, it consistently failed because
it relied on a SIGHUP not terminating a sh -c /usr/bin/nohup sleep 50
process which doesn't work because the SIGHUP goes to the sh process
not the nohup'ed sleep process. So, I have sped up the test and removed
the nohup and instead of trying to SIGHUP I am just doing the equivalent
of a kill 0 on it to verify that the resource sticks around.
2011-09-07 18:09:34 +00:00
Hannes Magnusson 43fb787add Fixed bug #55504 (Content-Type header is not parsed correctly on HTTP POST request 2011-09-07 16:19:09 +00:00
Ilia Alshanetsky b6f512cae6 Fixed tests (skip when catch-all DNS such as openDNS is being used) 2011-09-07 15:31:48 +00:00
Gustavo André dos Santos Lopes 1ba2eb5a35 - Fixed doc bug #54657: Function parameters can no longer be named after
superglobal variables.
2011-09-07 15:28:12 +00:00
Hannes Magnusson 6dcf880e7d Remove entries already in 5.3 2011-09-07 14:44:31 +00:00
Rui Hirokawa 0d2aa8591b MFH: fixed invalid utf-8 check. 2011-09-07 14:30:38 +00:00
Hannes Magnusson e5553b210a Revert r316345 which fixes all the tests again 2011-09-07 13:50:18 +00:00
Hannes Magnusson c4039f6481 Fix errormessage 2011-09-07 13:47:31 +00:00
Johannes Schlüter 70561e9a6d - Use myslqnd by default when MySQL extensions are activated but no path given 2011-09-07 13:33:56 +00:00
Pierre Joye 59614b05c4 - reject paths with trainling spaces using the very good new zend arg 2011-09-07 12:33:22 +00:00
Hannes Magnusson 23ce7fe641 ignore another file generated by PHP_SETUP_ICONV php_iconv_aliased_libiconv.h 2011-09-07 12:32:56 +00:00
Hannes Magnusson 45e299129a wrap lines, use real names, and FR not Req 2011-09-07 12:30:31 +00:00
Hannes Magnusson 6021b9aff8 Add skip message 2011-09-07 12:06:21 +00:00
Hannes Magnusson 04044dd07e Fix cleanup routines 2011-09-07 12:05:19 +00:00
Pierre Joye a2252e527f - skip on win, diff TZ format 2011-09-07 11:26:59 +00:00
Hannes Magnusson ffe0c530af Remove bogus skipif and make adjust the tests 2011-09-07 10:44:32 +00:00
Hannes Magnusson a68943fc69 The error message is different when built with zts 2011-09-07 10:41:38 +00:00
Hannes Magnusson 45118176f5 Update skipif 2011-09-07 10:39:55 +00:00
Hannes Magnusson 3171c31bbc Sync tests between branches and fix the getcontent test 2011-09-07 10:38:53 +00:00
Hannes Magnusson 51d36f744a Update skipif message 2011-09-07 10:34:58 +00:00
Pierre Joye 828cf36a7f - force LF (svn prop and config) 2011-09-07 10:12:04 +00:00
Pierre Joye 93bc43c7ab - force LF 2011-09-07 09:41:54 +00:00
Pierre Joye 3e98c5908b - force LF 2011-09-07 09:37:56 +00:00
Pierre Joye 67d1b69429 - fix test for OS where dir sep is \ 2011-09-07 09:19:28 +00:00
Pierre Joye 6ee31df599 - fix test for OS where dir sep is \ 2011-09-07 09:03:07 +00:00
Pierre Joye 7810b4bdfb - force LF 2011-09-07 08:41:59 +00:00
Pierre Joye 6983344112 - force LF 2011-09-07 08:18:20 +00:00
Pierre Joye 8dc7e3d8c6 - add skipif for dom 2011-09-07 08:12:08 +00:00
Pierre Joye c5eddd74fe - force LF 2011-09-07 08:01:19 +00:00
Pierre Joye 40c5c48592 - force LF 2011-09-07 07:51:37 +00:00
Stanislav Malyshev 38ff70ef25 Commit Gustavo's closure rebinding patch as desided by vote 2011-09-07 06:46:27 +00:00
Xinchen Hui 27d960c585 update news 2011-09-07 05:19:12 +00:00
Xinchen Hui 66bcb34bf4 Fixed Bug #55423(cli-server could not output correctly in some case) 2011-09-07 05:14:54 +00:00
Xinchen Hui b1263c4363 fix skipif description 2011-09-07 00:59:10 +00:00
Xinchen Hui ab9db759b9 fixed typo 2011-09-07 00:56:52 +00:00
Andrey Hristov be89aa686a Fix problems with the unbuffered set detection, for libmysql, which resulted
in always true. Thanks Stas.
2011-09-06 19:52:19 +00:00
Stanislav Malyshev 6577512462 improve open_basedir handling 2011-09-06 19:51:35 +00:00
Pierre Joye 82b14d2f86 - fix #55622, mem corruption on large input 2011-09-06 17:41:08 +00:00
Ulf Wendel d73b285950 Fixing SKIPIF 2011-09-06 16:39:55 +00:00
Johannes Schlüter 7420cf22bc - Fix bug #55609 (mysqlnd cannot be built shared)
# This adds an option --enable-mysqlnd to explicitly built mysqlnd, like any
# other extension it can be used with =shared to build mysqlnd shared;
# mysqlnd will implicitly enabled when requested from another extension
2011-09-06 16:38:22 +00:00
Ulf Wendel b8ecb0c4af Fixing SKIPIF 2011-09-06 16:37:45 +00:00
Ulf Wendel cd0c221f82 Fixing SKIPIF fatal error. 6.0 is history, thus SKIPIF might need further updates? 2011-09-06 16:30:53 +00:00
Ulf Wendel 0f31db8d11 More parenthesis, credits to Nikita Popov 2011-09-06 16:13:03 +00:00
Pierre Joye 520e26718f - useless skipif 2011-09-06 15:49:28 +00:00
Pierre Joye 431db84bc9 - fix skipif 2011-09-06 15:40:12 +00:00
Hannes Magnusson 211806eb73 Add a constant, READLINE_LIB, to be able to differenciate which lib is being used 2011-09-06 15:09:15 +00:00
Hannes Magnusson b1dd2f4e68 Fixed bug#54450 (callback function when built against libedit) 2011-09-06 15:07:24 +00:00
Andrey Hristov 049a7c49cd add query information to the trace log 2011-09-06 14:48:43 +00:00
Ulf Wendel 257131c0e0 BORK hunting - Fixing SKIPIF 2011-09-06 14:47:57 +00:00
Ulf Wendel f5e4b5f1c5 Fix SKIPIF 2011-09-06 13:57:03 +00:00
Ulf Wendel 8bc4572b9e Fix SKIPIF 2011-09-06 13:50:45 +00:00
Ulf Wendel cfb4fa47ad Prevent Notice 2011-09-06 13:39:46 +00:00
Ulf Wendel faeae7ea47 Reverting to proper --INI-- section usage. Improve SKIPIF to skip test if open_basedir setting is too restrictive during test run for whatever reason. 2011-09-06 12:58:01 +00:00
Pierre Joye 48586679c6 - use only zlib function and reported the failure with base64 in #55620 2011-09-06 12:30:17 +00:00
Pierre Joye 4afc80e229 - force LF 2011-09-06 12:24:16 +00:00
Hannes Magnusson 1efe10a84b Mention which library php is using 2011-09-06 11:28:34 +00:00
Pierre Joye efc45f8b60 - use a more portable name for the filename 2011-09-06 11:24:21 +00:00
Florian Anderiasch 52124aa09c MFH: Fixed ext/sockets/tests/socket_strerror.phpt
So it seems a missing ) killed the test.
2011-09-06 11:15:23 +00:00
Xinchen Hui ddd98a9adc move it to right place 2011-09-06 09:45:21 +00:00
Xinchen Hui 42fd7352fb Add skipif 2011-09-06 09:29:04 +00:00
Pierre Joye 50fc27d119 - missing --SKIPIF-- 2011-09-06 09:28:23 +00:00
Pierre Joye fafe247265 - move it to the right place 2011-09-06 09:23:10 +00:00
Pierre Joye c21652d6e1 - fix skipif msg 2011-09-06 09:20:14 +00:00
Xinchen Hui 30718d0f14 Added skipif 2011-09-06 09:17:12 +00:00
Xinchen Hui 96ca3f1981 add skipif 2011-09-06 08:11:37 +00:00
Pierre Joye feaf544ee4 - add skipif 2011-09-06 07:49:31 +00:00
Pierre Joye 8995250ee5 - fix test 2011-09-06 07:47:20 +00:00
Pierre Joye c4c86324ec - fix test 2011-09-06 07:44:43 +00:00
Pierre Joye d8016e05f4 - skip on win 2011-09-06 07:32:37 +00:00
Pierre Joye 702a5de5ac - add skipif 2011-09-06 07:29:59 +00:00
Pierre Joye ce70e2b8fd - add skipif 2011-09-06 07:28:38 +00:00
Pierre Joye 71cda5ea0a - use something we know it exists... 2011-09-06 07:26:05 +00:00
Pierre Joye d29a253629 - skip on win, name.. name. are not valid names 2011-09-06 07:23:20 +00:00
Pierre Joye 6402150c91 - add skipif 2011-09-06 07:09:56 +00:00
Pierre Joye bb4f29c234 - don't test dir sep 2011-09-06 07:07:23 +00:00
Pierre Joye 50afa7cbec - force LF 2011-09-06 07:03:48 +00:00
Pierre Joye 269d0debfe - force LF 2011-09-06 07:00:05 +00:00
Pierre Joye 9a3da11206 - add skipif 2011-09-06 06:57:53 +00:00
Pierre Joye dd855aec8b - add skipif 2011-09-06 06:52:26 +00:00
Pierre Joye 0878034b62 - add skipif 2011-09-06 06:50:56 +00:00
Pierre Joye 09b6360c71 - add skipif 2011-09-06 06:47:12 +00:00
Pierre Joye 6be168b22d - add skipif 2011-09-06 06:44:59 +00:00
Pierre Joye 380aac7189 - add skipif 2011-09-06 06:42:11 +00:00
Stanislav Malyshev d7ba64b4cd unused variables 2011-09-06 05:31:08 +00:00
Stanislav Malyshev 7f56f7eb69 allow user streams to override ch* on windows too 2011-09-06 05:28:25 +00:00
Stanislav Malyshev 6280a6bdf9 fix redirect when test run from different places 2011-09-06 05:21:56 +00:00
Stanislav Malyshev 119601b0d3 fix test 2011-09-06 05:20:51 +00:00
Stanislav Malyshev fa5f7f61ba use DBUG_ON flag for checking debug
# Some libmysql builds don't define DBUG_OFF and non-debug builds are more frequent
2011-09-06 05:20:05 +00:00
Stanislav Malyshev cbbf6bda4c this tests looks mysqlnd only 2011-09-06 05:13:47 +00:00
Stanislav Malyshev 93b1c17364 report fix 2011-09-06 05:04:37 +00:00
Pierre Joye e403d5832a - add skipif 2011-09-05 19:59:42 +00:00
Ulf Wendel 797ac9ad3e No more test failure for libmysql, http://news.php.net/php.internals/55210 2011-09-05 16:24:40 +00:00
Andrey Hristov 5308ed60f3 Fix for Bug #55582 mysqli_num_rows() returns always 0 for unbuffered, when mysqlnd is used 2011-09-05 15:29:45 +00:00
Xinchen Hui f249361559 Fixed tests (due to error message changed) 2011-09-05 15:05:51 +00:00
Xinchen Hui 6a4153db0c Fixed compiler warning "incompatible pointer type" 2011-09-05 15:02:21 +00:00
Shein Alexey 27ffd82f38 Reduced timeout in this test to 1ms, no need to wait further. 2011-09-05 14:43:08 +00:00
Pierre Joye 493808af3d - add skipif 2011-09-05 13:52:24 +00:00
Pierre Joye 6b424c19ce - add skipif 2011-09-05 13:41:01 +00:00
Pierre Joye 830fce0c7c - use the same test on win 2011-09-05 13:37:30 +00:00
Pierre Joye 2e853f026a - close the stream before removing the file (win and other system may lock it) and use test dir for tmp data 2011-09-05 13:31:13 +00:00
Pierre Joye 7b75be20a7 - sync&fix test with 5.3 2011-09-05 13:23:25 +00:00
Pierre Joye e4337c0b27 - fix test, slash or back slash can be present 2011-09-05 13:13:37 +00:00
Pierre Joye ea6b874ef0 - stupid me. 2011-09-05 13:06:51 +00:00
Pierre Joye cd749225d5 - disable on win 2011-09-05 13:05:28 +00:00
Johannes Schlüter 2778bd3e11 Fix #ifdef for mixed builds (ext/mysql using myslqnd, mysqli using libmysql) 2011-09-05 13:05:15 +00:00
Pierre Joye 90237836f8 - disable on win 2011-09-05 13:04:12 +00:00
Pierre Joye b2eed23e0c - other hostname can be defined or returned first 2011-09-05 12:34:55 +00:00
Hannes Magnusson 37dc06ea83 typo 2011-09-05 12:00:24 +00:00
Pierre Joye 75195b9c11 - force LF 2011-09-05 11:46:05 +00:00
Hannes Magnusson 3d6fcf06d1 Fix the test in 5.4 and trunk.
older libraries will emmit error here, while new won't. So lets just suppress it rather then making the test uselessly fail for random people.
2011-09-05 11:07:38 +00:00
Pierre Joye 0f8594f753 - not used anymore, one version to rule them all 2011-09-05 11:00:52 +00:00
Shein Alexey 5f5b7175ea Make the test faster, what was done:
1) replaced multiple htmlentities calls with one call to get_html_translation table since they share the same code internally
2) reduced the upper range of the "for" loop to 0x2710 (10000), according to http://www.w3.org/TR/html4/sgml/entities.html it's enough
3) placed additional check to make sure all entities from get_html_translation_table were checked in the test
2011-09-05 11:00:14 +00:00
Pierre Joye 6ff887636a - force LF and enable it on windows now 2011-09-05 10:59:26 +00:00
Hannes Magnusson cb4cbc7c11 Fix test to use microtime() as time() doesn't always catchup fast enough :] 2011-09-05 10:55:07 +00:00
Pierre Joye 2281631b7f - force LF 2011-09-05 10:52:01 +00:00
Hannes Magnusson a16f0fc218 Fix test, one skipif is enough 2011-09-05 10:30:41 +00:00
Pierre Joye 2c2419623e - update test to the zeng arg path argument 2011-09-05 10:29:12 +00:00
Pierre Joye f3dc9b1bd1 - fix test 2011-09-05 10:13:46 +00:00
Christian Stocker 2e2eb5e137 Revert r316043, the tests are different on purpose 2011-09-05 08:27:47 +00:00
Stanislav Malyshev 6e8ebecf0e fix tests 2011-09-05 00:49:03 +00:00
Gustavo André dos Santos Lopes 22479239a8 - Fixed bad xor in signed types due to integer promotion.
- Replaced undefined signed overflow with char -> unsigned char conversion.
2011-09-05 00:39:39 +00:00
Gustavo André dos Santos Lopes 5aa6b7a294 - Fixed bug #55576: Cannot conditionally move uploaded file without race
condition.
2011-09-04 23:00:47 +00:00
Gustavo André dos Santos Lopes 2acbe4c93e - Fixed borked refactoring in r307437 (using SUCCESS/FAILURE return instead of
out parameter).
- Fixed signature of php_stream_copy_to_stream_ex to return int in 5.4/trunk
  instead of size_t, as the function only returns SUCCESS/FAILURE.
2011-09-04 22:36:33 +00:00
Pierre Joye 10f68a92ca - add skipif 2011-09-04 22:21:58 +00:00
Pierre Joye 94e495b9ef - force LF eol 2011-09-04 22:12:42 +00:00
Pierre Joye 93db5818b4 - skip on win, TZ cannot be set using putenv at runtime 2011-09-04 22:04:42 +00:00
Pierre Joye cb40d36edc - skip on win, TZs differ with strftime 2011-09-04 21:59:27 +00:00
Pierre Joye 7e5d92106b - unify warning between win and unix and enable test 2011-09-04 21:48:22 +00:00
Pierre Joye d1b156f1be - fix test on win, does not use putenv to set the TZ but date_default_timezone_set (should be the case on all platforms actually...) 2011-09-04 21:40:22 +00:00
Stanislav Malyshev 40217d0417 fix bug 55562 - make substr always return rest of the string if length is too long 2011-09-04 18:50:05 +00:00
Pierre Joye a948142d31 - wrong variable used (ended as non initiazed usage) 2011-09-04 16:33:31 +00:00
Ferenc Kovacs adb25ed261 passing an invalid session.upload_progress.freq always generates an additional startup error 2011-09-04 15:02:08 +00:00
Ferenc Kovacs 492daa5fa7 passing an invalid session.upload_progress.freq always generates an additional startup error 2011-09-04 14:28:52 +00:00
Tjerk Anne Meesters 9bea3822ac Patch to run two more mysql test cases that would usually be skipped.
Replaced skipifdefaultconnectionfailure.inc by three additional ini_set() statements in connect.inc for the default connection settings

Patch also includes a typo in connect.inc concerning mysql.default_socket
2011-09-04 14:21:27 +00:00
Stanislav Malyshev 8d4848f3d3 fix test 2011-09-04 05:00:30 +00:00
Stanislav Malyshev 7f6f4cc587 test fixes 2011-09-04 04:57:01 +00:00
Christopher Jones bfdd2c38d9 gcov test fixes 2011-09-02 22:19:03 +00:00
Ferenc Kovacs 7632d09a81 pass an absolute path for the php binary to proc_open, without this the test would fail if ran with a relative TEST_DEV_EXECUTABLE 2011-09-02 20:28:39 +00:00
Shein Alexey 2d52a6934a Synchronized fixed tests from 5.3 branch. 2011-09-02 18:01:20 +00:00
Shein Alexey 258591bdc6 Removed old (< 5.3) version of test and cleaned up the actual version. 2011-09-02 17:41:39 +00:00
Andrey Hristov cc697fa5bf Fix for Bug #54158 MYSQLND + PDO MySQL requires #define MYSQL_OPT_LOCAL_INFILE
and a bunch of other small preprocessor fixes
2011-09-02 13:53:41 +00:00
Ulf Wendel 748e8b9dec Coverage for bug#54704, of which I think it is bogus, thus no dedicated test. 2011-09-02 13:35:17 +00:00
Andrey Hristov 3d890c29fd fix message 2011-09-02 12:59:32 +00:00
Andrey Hristov 9f7ad10a63 function rename to comply with the schema of other callbacks 2011-09-02 11:22:41 +00:00
Ulf Wendel 6e3708cc59 Hopefully, this is an even better way to check for InnoDB support as of MySQL 5.6.1 2011-09-02 11:06:51 +00:00
Ulf Wendel 893c890d01 As of MySQL 5.6.1 the server variable have_innodb is no more. Updating InnoDB check... 2011-09-02 10:38:51 +00:00
Boris Lytochkin bc3d5d668f merge from trunk
added SNMPException class, enabling ability to throw exceptions
when a known SNMP error has occured
FR #55542
2011-09-02 10:13:30 +00:00
Ulf Wendel 280c4da0d1 MySQL 5.6 update 2011-09-02 09:27:23 +00:00
Boris Lytochkin 8c5fa2ba56 merge from trunk:
remove php_snmp_get_ce()
2011-09-02 08:09:23 +00:00
Gustavo André dos Santos Lopes dc32339c33 - Use our external entity loader only in the context of a PHP request. 2011-09-02 05:14:32 +00:00
Christopher Jones 7c63e28708 Unmatched %s was still diffing on Linux. Now it matches the whitespace at a minimum 2011-09-01 19:27:14 +00:00
Daniel Convissor d8a41ee031 Make test work with database other than "test". 2011-09-01 19:07:13 +00:00
Christopher Jones 83ee110360 Prevent the magic quotes fatal error causing a diff 2011-09-01 19:01:37 +00:00
Ulf Wendel 32d69a669e Check for LOAD DATA support during SKIPIF 2011-09-01 16:35:13 +00:00
Ulf Wendel c1370c2443 Fixing error handling. Skip if load data is not allowed 2011-09-01 15:45:47 +00:00
Ulf Wendel b32a8d7a4d Can't reproduce the server has gone away messages, Andrey. Please, have a look. I tried MySQL 5.1, 5.5 and 5.6. 2011-09-01 15:25:15 +00:00
Johannes Schlüter 8207e0bf3c Improve speed of finding tests (no more CVS, we're on svn now) 2011-09-01 14:52:55 +00:00
Ulf Wendel 83551a71c4 Fix test. First element within the parantheses is a SQL status code. Should please gcov 2011-09-01 14:04:52 +00:00
Christian Stocker cd3d326853 added a NEWS entry about the change in XSL 2011-09-01 13:43:38 +00:00
Ulf Wendel 25591bd73e Fixing tests debug output 2011-09-01 13:37:49 +00:00
Pierre Joye 85ba246966 - use %s, bad c/p 2011-09-01 13:28:00 +00:00
Ulf Wendel 80518dc2f4 Check if MySQL server supports SSL and, if using mysqlnd, check if PHP streams will support SSL 2011-09-01 13:17:16 +00:00
Hannes Magnusson f8ba9cca5a Move the XFAILED printout way up the list so we can actually notice the really failing ones 2011-09-01 13:06:12 +00:00
Pierre Joye f40b4350cd - fix test 2011-09-01 12:49:26 +00:00
Pierre Joye ca717e35d0 - win and nux work the same way 2011-09-01 12:42:54 +00:00
Pierre Joye 0ef9196d5d - force LF eol style as this test depends on it 2011-09-01 12:35:41 +00:00
Johannes Schlüter f90bead78a - Fix TSRM build 2011-09-01 12:04:54 +00:00
Ulf Wendel 5639fc846d Simplify mysqlnd debug trace marginally for debugging 2011-09-01 11:48:18 +00:00
Pierre Joye 91718bc589 - consider that bison 2.x is used. updated our ci boxes accordingly (windows too), which were using 1.4 2011-09-01 11:40:37 +00:00
Pierre Joye 486b0b2610 - consider that bison 2.x is used. updated our ci boxes accordingly (windows too), which were using 1.4 2011-09-01 11:40:23 +00:00
Ulf Wendel 9e79833943 Hack around http://bugs.mysql.com/62320 2011-09-01 11:27:14 +00:00
Hannes Magnusson 3814ee1e5d Seeing thousands of PASS tests flying by is meaningless.
Add an option to only print certain result groups.
2011-09-01 11:00:51 +00:00
Pierre Joye d579e9bf2d - force LF eol style as this test depends on it 2011-09-01 09:33:43 +00:00
Matteo Beccati d2621f92b9 Fixed test randomly failing due to different error messages. Also added a skip
section in case "fakeURL" resolves to an IP address, as some empty error
messages and HTML can be seen in the reports
2011-09-01 00:45:56 +00:00
Johannes Schlüter 7a39930796 - Change PDO_oci connection defaults to match Oracle XE defaults, higher chance
to work out of the box
2011-08-31 23:42:04 +00:00
Pierre Joye 081b15939e - error msg may vary (parser) 2011-08-31 23:12:35 +00:00
Matteo Beccati e9e2357436 Fixed test. Apparently it was already fixed on PHP_5_3 98% of the cases and
the fix wasn't ported to trunk/PHP_5_4. However the very same test was failing
on my FreeBSD 6.2 box, that appears to also decode the "ks_c_5601-1987" parts,
so I've made the test more generic.
2011-08-31 22:38:20 +00:00
Matteo Beccati c0e08c34df Fixed false positive failure on gcov 2011-08-31 22:12:53 +00:00
Johannes Schlüter 7d25510b1b - Register extensions using mysqlnd (mysql, myslqi, pdo_mysql) with mysqlnd 2011-08-31 20:30:08 +00:00
Boris Lytochkin 86b563ea0f tune text align 2011-08-31 20:16:56 +00:00
Pierre Joye 7e2f373f7e - error msg may vary (parser) 2011-08-31 20:16:11 +00:00
Pierre Joye b75434f0e9 - error msg may vary (parser) 2011-08-31 20:14:13 +00:00
Pierre Joye 6cf92139b3 - error msg may vary 2011-08-31 20:10:22 +00:00
Pierre Joye 638f3f25bf - typo 2011-08-31 20:07:44 +00:00
Boris Lytochkin d38cb4aa1e test coverage for SNMP::ERRNO_MULTIPLE_SET_QUERIES 2011-08-31 19:45:45 +00:00
Tjerk Anne Meesters bc7942adb5 Fixed expect format to ignore the textual error message from readlink().
Bug #55555
2011-08-31 18:26:23 +00:00
Andrey Hristov 12a4dcf5dc Fix valgrind error (sending of initialized bytes over the network).
When the compression was successful the compressed data + uninitialized data
at the end was sent to the server, because the length of the compressed payload
wasn't correctly calculated (actually the length of the uncompressed payload as assumed).
However, the uncompress() function has internally the length of the real payload and skips
the binary trash at the end - thus no data damage occurs!
2011-08-31 18:18:23 +00:00
Johannes Schlüter 878708994d - Update PDO_mysql error mapping 2011-08-31 15:46:07 +00:00
Pierre Joye ad717905a8 - force LF eol style as this test depends on it 2011-08-31 15:44:01 +00:00
Pierre Joye 6171204604 - force LF eol style as this test depends on it 2011-08-31 15:42:42 +00:00
Johannes Schlüter b3c3d35b9f - Be less restrictive on the SQL state, some server versions might fool us 2011-08-31 15:25:18 +00:00
Ulf Wendel 6e2664ee88 Please, whenever changing the mysqli API update the tests. Don't wait for me to catch up. 2011-08-31 13:59:28 +00:00
Ulf Wendel 9c7ad1b962 New utility function to check for '[1148] The used command is not allowed with this MySQL version' during SKIPIF 2011-08-31 13:50:58 +00:00
Rui Hirokawa 3826549770 MFH: added alias for *-mobile encodings. 2011-08-31 13:19:03 +00:00
Ulf Wendel d36c1e5e9b Check if server supports LOAD DATA LOCAL INFILE to catch [1148] The used command is not allowed with this MySQL version during SKIPIF 2011-08-31 12:58:25 +00:00
Pierre Joye a7b56bf73e - force LF eol style as this test depends on it (size) 2011-08-31 12:27:11 +00:00
Christian Stocker 13fa5542f7 simplexml->query returns empty array if no nodes were found
and false if libxml thinks the xpath-expression was invalid.
Behaves now the same like DomXPath and fixes Bug #48601
Adjusted a test to reflect that change
2011-08-31 11:44:22 +00:00
Pierre Joye 69c84fde82 - force LF eol style as this test depends on it (size) 2011-08-31 11:26:27 +00:00
Pierre Joye ad1bcee590 - force LF eol style as this test depends on it (size) 2011-08-31 11:25:09 +00:00
Pierre Joye 43e8a06cac - parser version independent 2011-08-31 11:18:13 +00:00
Pierre Joye cbcb66f63a - parser version independent 2011-08-31 11:16:25 +00:00
Johannes Schlüter 0d0e6cdb17 - Fix Bug #55550 mysql.trace_mode miscounts result sets,
fixes ext/mysql/tests/mysql_deprecated_api.phpt
2011-08-31 11:11:08 +00:00
Pierre Joye 9250c721c9 - use only the test name 2011-08-31 10:46:20 +00:00
Pierre Joye fdeb68b565 - use only the test name 2011-08-31 10:43:39 +00:00
Pierre Joye 138bff32e7 - use only the test name 2011-08-31 10:30:39 +00:00
Pierre Joye 5c6e57264e - use only test name 2011-08-31 10:22:18 +00:00
Hannes Magnusson 033717470e Remove annoying extra newline on XFAIL summaries
and sync text to trunk
2011-08-31 10:09:54 +00:00
Pierre Joye 2ef35451a5 - force LF eol style as this test depends on it (size) 2011-08-31 10:08:55 +00:00
Pierre Joye b1582cdc65 - make it parser version independent 2011-08-31 10:05:54 +00:00
Christian Stocker 6873ef7055 - Set an empty string and avoid warnings and stopping of the transformation process
when a php function can't be called.
- Fixed tests.
2011-08-31 09:14:08 +00:00
Christian Stocker c1d92d7925 fixed libxml tests 2011-08-31 08:58:12 +00:00
Boris Lytochkin 3aa6f31abd more tuning based on discussion in FR #40816:
* parse all OIDs earlier, detect all wrong OIDs before any query
   is made (GET-operations)
 * introduce ERRNO_MULTIPLE_SET_QUERIES:
    warn if request contains more OIDs than max_oids and SET operation
    (and type&value checks) will be done in chunks.
fix set method when request contains more OIDs than max_oids (2nd and
 subsequent chunk were ignored)
2011-08-31 08:36:22 +00:00
Pierre Joye b1ad990589 - force LF eol style as this test depends on it (size) 2011-08-31 08:35:57 +00:00
Rasmus Lerdorf 595f2e71ec Since we are creating this csv file locally this should obviously
be a a LOCAL infile here for this to work reliably. For robustness
this should probably have a check for the local-infile server 
setting as well.
2011-08-31 07:43:58 +00:00
Stanislav Malyshev c268811b01 fix strptime tests for mac 2011-08-31 07:34:07 +00:00
Rasmus Lerdorf 8b4ac6bb8f Fix test. I have no idea why the test author didn't expect to get back
latin2 when the test is setting it to latin2 here. Both PHP and MySQL
are doing the right thing here.
2011-08-31 07:19:20 +00:00
Stanislav Malyshev 9d52e9b15f test fixes on Darwin 2011-08-31 07:10:17 +00:00
Gustavo André dos Santos Lopes 49323ad447 - Fixed test htmlentities15.phpt. 2011-08-31 06:32:05 +00:00
Gustavo André dos Santos Lopes 5b544394c4 - Fixed tests when run from outside their directory. 2011-08-31 06:23:24 +00:00
Gustavo André dos Santos Lopes 72e35ba476 - html_tables.h regeneration. 2011-08-31 05:47:19 +00:00
Gustavo André dos Santos Lopes 79bb42548d - Less GCC warnings; code less readable, yay!
- Fixed html_tables.h generaration in 64-bit archs.
- Closes bug #55394 - Patch to suppress initialization warnings in html.c
#signed/unsigned mismatches for another day
#regenerated tables on another commit
2011-08-31 05:45:02 +00:00
Stanislav Malyshev cd8202694c fix tests 2011-08-31 04:24:48 +00:00
Boris Lytochkin 1c88dcf39f merge from trunk:
set ERRNO_OID_PARSING_ERROR on OID parse error
2011-08-30 14:24:00 +00:00
Arpad Ray 979fd935c4 fix news entries 2011-08-30 14:01:35 +00:00
Matteo Beccati 238a51ec6e Fixed a few false positives on gcov for ext/pgsql 2011-08-30 14:01:03 +00:00
Hannes Magnusson d972f636c9 Add skipifs for bug#54971 (patch by datibbaw@) 2011-08-30 13:46:24 +00:00
Hannes Magnusson a6e5d309db Fixed bug#48476 2011-08-30 13:41:57 +00:00
Hannes Magnusson 2db05d6f41 Fixed bug#55430, introduce the session.upload_progress family to the world 2011-08-30 11:13:22 +00:00
Pierre Joye 4bd71a6c4f - ws 2011-08-30 05:44:37 +00:00
Felipe Pena 895a10caf1 - Fixed ZTS build 2011-08-30 01:33:42 +00:00
Gustavo André dos Santos Lopes 7bd505021c - Turns out the external entity loader is not a per-thread global but a true
global. Changed code accordingly; however, applications that embed PHP and
  also use libxml2 may be affected negatively.
2011-08-30 01:08:22 +00:00
Arpad Ray 8590f2587a add friendly log messages (req #55109) 2011-08-29 21:59:27 +00:00
Arpad Ray c8de01fef8 Expose session status via new function, session_status (Req #52982) 2011-08-29 21:29:26 +00:00
Hannes Magnusson 7746cf83d9 fixed bug #55267 - session_regenerate_id fails after header sent even if session.use_cookies = 0 2011-08-29 21:20:41 +00:00
Hannes Magnusson 2594143683 Add missing session ini options "skeletons" until they become atleast documented 2011-08-29 20:50:33 +00:00
Arpad Ray 0e3b5b137c Fixed bug #55366: keys lost when using substr_replace an array 2011-08-29 20:38:52 +00:00
Derick Rethans 56a87c2806 - Zend engine part for bug #55158: Add SORT_NATURAL type to array_multisort
(patch by Arpad Ray).
2011-08-29 20:24:09 +00:00
Arpad Ray b52256c5be add support for SORT_NATURAL and SORT_FLAG_CASE in array sort functions 2011-08-29 20:23:34 +00:00
Derick Rethans 6edfc470fa - Updated to version 2011.9 (2011i) 2011-08-29 16:37:56 +00:00
Gwynne Raskind aba5ceab21 Correct NEWS entry attribution. Apologies to all for the confusion. 2011-08-29 16:17:46 +00:00
Hannes Magnusson 25352ba350 Fixed bug#53872 (internal corruption of phar) 2011-08-29 16:05:45 +00:00
Stefan Marr 117e072941 Fixed bug #55524 Traits should not be able to extend a class
# also used the Z_STRVAL where it seemed appropriate
2011-08-29 15:53:46 +00:00
Gwynne Raskind bf78161b94 Added NEWS note for #53946 2011-08-29 15:09:08 +00:00
Gwynne Raskind 81ee8a6c7b Add test for #53946 to 5.4 (missed it when committing revision 315707) 2011-08-29 14:57:53 +00:00
Gwynne Raskind 06292974b1 Add unescaped Unicode encoding to json_encode(). Closes bug #53946. Patch by Irker and Gwynne. 2011-08-29 14:56:19 +00:00
Hannes Magnusson 58747dff3a Changed error messages 2011-08-29 14:29:40 +00:00
Hannes Magnusson 8a83fee12a Fixed bug#52013 (Unable to decompress files in a compressed phar) 2011-08-29 14:19:54 +00:00
Hannes Magnusson 5519b2ebe1 The Phar class extends RecursiveDirectoryIterator, which has changed the way it ensures its ctor is called 2011-08-29 14:17:41 +00:00
Christian Stocker 4297b67aee fix xsl date tests 2011-08-29 11:44:30 +00:00
Pierre Joye 7246759277 - fix build, TSRMLS_FETCH must be the last declaration statement and init using TSRM cannot be done before either 2011-08-29 10:10:05 +00:00
Rasmus Lerdorf 9382deede2 Let's do more than hope (as per the comment in the test code) that we
don't hit the memory limit, let's disable the limit for this test
since the limit is getting hit by many people
2011-08-29 08:21:42 +00:00
Rasmus Lerdorf f34ee8a1bd The link error on an out-of-sync command doesn't start with 0
uwe/andrey please double-check
2011-08-29 06:47:07 +00:00
Rasmus Lerdorf 7c7aa30322 Fix another broken test. root can read 0200 files. 2011-08-29 06:19:40 +00:00
Gustavo André dos Santos Lopes 0d7e6a73d6 - Added libxml_set_external_entity_loader(). 2011-08-29 05:00:26 +00:00
Rui Hirokawa 402c8cb70e MFH: reduced footprint for sjis-mac 2011-08-28 04:32:33 +00:00
Rasmus Lerdorf 207e67923f <?= is always enabled now 2011-08-27 19:00:59 +00:00
Boris Lytochkin d28ae7654d merge from trunk:
export ERRNO_OID_PARSING_ERROR constant:
raise it evry time OID parsing has failed
2011-08-27 08:29:19 +00:00
Boris Lytochkin 4f1005035a merge from trunk:
reformat OID parsing procedure,
fail whole SNMP query on single OID parsing failure
2011-08-27 07:33:27 +00:00
Rui Hirokawa 4a53bdab0b MFH: corrected valid unicode area. 2011-08-27 01:25:24 +00:00
Rui Hirokawa d19bfc5d82 MFH: update pua conversion tables. 2011-08-27 00:08:02 +00:00
Andrey Hristov da2839f71d fix valgrind warnings in debug builds 2011-08-26 12:14:31 +00:00
Sebastian Bergmann b04a052f70 Close #55490. 2011-08-26 07:40:31 +00:00
Boris Lytochkin d7d90c403f tune test's README more per FR #55474 2011-08-25 06:00:11 +00:00
Rui Hirokawa 942dd584d3 MFH: added iso2022jp-mobile and emoji unsuppoted in unicode 6.0. 2011-08-24 15:29:17 +00:00
Xinchen Hui d4a50542ea Eliminated compile warning "comparison is always false due to limited range of data type"
Fixed test failed due to mysql_pconnect throw warning
Fixed test failed when host mysql server doesn't listen on 3306
2011-08-24 10:15:47 +00:00
Scott MacVicar 3d5385dda5 Fix typo in tests for ldap bug #42060 2011-08-24 06:50:39 +00:00
Christopher Jones ab704eb9f6 Update log, marking 5.4 and trunk as XFAIL due to bug #55496 2011-08-23 20:59:10 +00:00
Boris Lytochkin 1cd8b8c80b apply docs fixes suggested in BR #55474 2011-08-23 19:15:58 +00:00
Pierre Joye 687e310a46 - ws 2011-08-23 18:32:53 +00:00
Daniel Convissor ad3ecfc8c1 Fix differences in some sub() results that were causing tests to fail. 2011-08-23 16:40:19 +00:00
Hannes Magnusson 88c4f560d0 Sync -development with -production 2011-08-23 10:00:18 +00:00
Xinchen Hui 11957ebdfb update NEWS 2011-08-23 02:48:28 +00:00
Christopher Jones 9e830aa505 Sync date with actual PECL release date for correctness 2011-08-22 23:56:34 +00:00
Christopher Jones 5ef712fd46 Remove duplicated test 2011-08-22 18:05:11 +00:00
Xinchen Hui bbf96ebeb1 Added _SERVER[SERVER_SOFTWARE] for built-in server 2011-08-22 15:51:49 +00:00
Daniel Convissor 41403b704c Fix spring tests for dst/st transition second. 2011-08-22 14:47:12 +00:00
Xinchen Hui ef0e483bb3 Fixed #55463 (cli-server missing _SERVER[REMOTE_ADDR]) 2011-08-22 11:55:41 +00:00
Andrey Hristov ee96b2df8f Don't run the test on windows, Unix specific 2011-08-22 11:07:35 +00:00
Andrey Hristov 0aa6354a2d Fix Bug #55473 mysql_pconnect leaks file descriptors on reconnect
The fix is for now in 5_4 and trunk, to be merged into 5_3 after 5.3.8
is packaged (expected today). The test case goes to all branches
2011-08-22 10:42:43 +00:00
Pierre Joye 1d4f05bb31 - fix typo & build 2011-08-22 07:39:09 +00:00
Rasmus Lerdorf 809ece9385 Debian/Ubuntu don't have any special CFLAGS listed here for
gssapi which shouldn't break the build.
2011-08-21 22:57:13 +00:00
Xinchen Hui db218ee768 update NEWS. 2011-08-21 12:24:19 +00:00
Pierre Joye 7480c7d4e0 - Fix bug #55471, fix zts build with dtrace (Laruense) 2011-08-21 11:51:00 +00:00
Rui Hirokawa 84ee3a19db MFH: cleanup jisx0213 table. 2011-08-21 05:02:33 +00:00
Rui Hirokawa 80c431e00c MFH: speed improvement of jisx0213 conversion. 2011-08-21 02:23:33 +00:00
Boris Lytochkin 82fa8f7a30 IPv6 Support for SNMP. (FR #42918) 2011-08-20 20:56:02 +00:00
Boris Lytochkin cbcf729a30 merge from trunk two commits:
Adding IPv6 support (FR #42918)
more code coverage
2011-08-20 16:10:48 +00:00
Rui Hirokawa e2ccaeb9a6 MFH: removed SJIS-Mobile#*PUA. 2011-08-20 08:28:40 +00:00
Rui Hirokawa e42dba31c3 update NEWS. 2011-08-20 07:29:59 +00:00
Rui Hirokawa d6303c7962 MFH: updated limbfl to 1.3.2 2011-08-20 07:29:21 +00:00
Stanislav Malyshev 51af64acf6 Unbreak crypt() (fix bug #55439)
# If you want to remove static analyser messages, be my guest,
# but please run unit tests after
2011-08-19 22:49:18 +00:00
Pierre Joye 29cb4d8a09 - undefine CALLBACK (btw, generic names like that should be avoided, w/o prefix :) 2011-08-19 11:35:37 +00:00
Pierre Joye 6a0910075d - fix build 2011-08-19 11:33:59 +00:00
Pierre Joye 5f429c57e9 - Fixed bug #52461 (Incomplete doctype and missing xmlns) 2011-08-19 09:59:47 +00:00
Xinchen Hui dad2c33838 News for bug #55450 2011-08-19 08:52:29 +00:00
Xinchen Hui 36bfb46ce6 Fixed typo when syncing changes to branch 2011-08-19 08:35:43 +00:00
Xinchen Hui c296c9148f Fixed #55450 (Built in web server not accepting file uploads), which might break #55121 fixing(r313677)
Reopened #55121 to let somebody redone the fixing(as I can't reproduce 55121 in redhat 64-bit).
2011-08-19 08:30:26 +00:00
Xinchen Hui 9cdb9a80a7 Fixed #55457 for 5.4 branch
Use ssize_t instead of long (as pierre suggestion)
2011-08-19 07:40:51 +00:00
Pierre Joye 0fd3f882cd - do not use 64bit integer instead of size_t (can't be alloc'ed), or when the actual possible values are 32bit or lower only 2011-08-18 09:16:04 +00:00
Christopher Jones 8e0c2e1cb9 Use php.ini parameter instead of GC() entry 2011-08-17 23:55:25 +00:00
Etienne Kneuss f6c2b4776c Fix bug #55445 (Incomplete implementation of <?= being independant of short_open_tag) 2011-08-17 23:50:04 +00:00
Hannes Magnusson db37076fc0 Once is generally enough 2011-08-17 12:26:43 +00:00
Pierre Joye bae911f41b - WS 2011-08-17 11:59:39 +00:00
Pierre Joye cef071fd80 - use provided stdint.h and avoid double definitions 2011-08-17 11:56:04 +00:00
Andrey Hristov 34019766b6 compile out when PHP_DEBUG is not present 2011-08-17 11:15:55 +00:00
Hannes Magnusson 38c06b124a docref_root is now required for html_errors to do anything 2011-08-16 14:52:54 +00:00
Hannes Magnusson 8fb47cbd48 Fix news entry to look&feel like all others 2011-08-16 13:30:31 +00:00
Felipe Pena 17abf879ed - Drop T_SCALAR_CAST 2011-08-16 12:13:35 +00:00
Felipe Pena 074c7e6a3a - Fixed ZTS build 2011-08-16 12:01:36 +00:00
Hannes Magnusson 133596b6f7 Improve errormessage on wrong use statements 2011-08-16 10:46:49 +00:00
Hannes Magnusson 550980cfe5 Callable typehint following the rules of is_callable($arg, false); 2011-08-16 10:44:47 +00:00
Stefan Marr 4a51ea4b81 Bug #55424 Fatal error when calling a method from a trait that is defined in parent class and required by using an abstract method in the trait.
# The method got unconditionally deleted from the class, since it was assumed that we override it, but we did not in case of abstract methods coming from a trait. Thus, dont delete when we try to merge in an abstract method.
2011-08-15 22:16:58 +00:00
Stefan Marr 0500cffb2e Fixed Bug #55355: Inheritance chain was not regarded when checking whether the abstract method of a trait is satisfied. 2011-08-15 11:16:18 +00:00
Stefan Marr f2ed1242d6 Fixed Bug #55372 Incorrect handling of literals led to memory corruption.
# Dmitry you might want to review this patch, since I split up zend_add_literal
# and added a version for post-pass_two() usage.
2011-08-15 09:54:06 +00:00
Stefan Marr c312e60280 Addendum for patch to bug #55214: Class name was freed before method literal referring to it.
# Thanks to Felipe for catching this.
# The fix duplicates the name into the literal to avoid the dependency
2011-08-15 08:29:48 +00:00
Rui Hirokawa 1fdc718e9b MFH: NEWS update for mbstring. 2011-08-14 14:11:49 +00:00
Rui Hirokawa bbdf05c1ed MFH: added gb18030 encoding to mbstring/libmbfl.~ 2011-08-14 14:11:29 +00:00
Rui Hirokawa 780d4996f6 MFH: 2011-08-13 13:19:18 +00:00
Christopher Jones b53451b99e More test portability fixes mostly for gcov.php.net 2011-08-13 00:43:34 +00:00
Etienne Kneuss b03860a935 Fix CID 593 Mark the missing break by an explicit comment, we DO intend to fall through here 2011-08-12 22:20:35 +00:00
Etienne Kneuss bb7a93081e Fix CID 538/539, explicitely check for something that should never occur 2011-08-12 22:05:10 +00:00
Etienne Kneuss cf2db20123 Fix CID 547, make static analyzer happy 2011-08-12 21:57:54 +00:00
Etienne Kneuss 32e67db84c Fix CID 1211, unused intern variable 2011-08-12 21:46:40 +00:00
Andrey Hristov d803c2f827 prevent a crash if cs is NULL, which can happen with MS and lazy connections 2011-08-12 14:55:00 +00:00
Ulf Wendel 6e54341273 MySQL 5.6 fractional seconds and PS 2011-08-12 11:51:44 +00:00
Ulf Wendel 4bb63cb7a0 Andrey, please have a look. Not sure if the test is correct, e.g. MySQL 5.5.3+ really needed? 2011-08-12 11:23:36 +00:00
Ulf Wendel ae89daff6f Andrey, please have a look. This should not cause errors. 2011-08-12 11:23:16 +00:00
Xinchen Hui ba9546b8e5 Omitted GCC warning "comparison is always false" 2011-08-12 07:47:03 +00:00
Uwe Schindler acec8201a1 Bug #55403: Don't set $_SERVER['HTTPS'] on unsecure connection 2011-08-11 20:25:24 +00:00
Ilia Alshanetsky 9e9d2a9ce6 Missing file relating to previous commit 2011-08-11 13:02:16 +00:00
Ilia Alshanetsky 46513c07dc Fixed bug #55399 (parse_url() incorrectly treats ':' as a valid path) 2011-08-11 13:01:52 +00:00
Pierre Joye a6a81e29d5 - fix build (introduce by r314641) 2011-08-11 07:11:39 +00:00
Dmitry Stogov a5d3c2972e Fixed possible memory leak 2011-08-11 06:38:42 +00:00
Rasmus Lerdorf 14948624af Use HOST_NAME_MAX constant here instead for the gethostname() func 2011-08-10 17:40:56 +00:00
Derick Rethans f4198394f4 - Getting rid of the BOM. 2011-08-10 16:34:39 +00:00
Derick Rethans 7b84e7ea1c - Turn on html_errors by default again in php.ini-production like it was in
PHP 5.3, but only generate docref links when the docref_root INI setting is
  not empty.
2011-08-10 16:31:29 +00:00
Ilia Alshanetsky e4a64006ab Fix win32 build 2011-08-10 15:59:32 +00:00
Ilia Alshanetsky 38f05cc775 Fixed memset usage (identified by coverity) 2011-08-10 15:30:07 +00:00
Andrey Hristov d627115800 relax constraint 2011-08-10 14:12:24 +00:00
Dmitry Stogov 5cb244aad2 Fixed bug #55323 (SoapClient segmentation fault when XSD_TYPEKIND_EXTENSION contains itself) 2011-08-10 13:44:48 +00:00
Xinchen Hui 5540b64a3d Eliminated compiler's warnings 2011-08-10 11:59:11 +00:00
Michael Wallner daccb503b2 fix coverity issue 1054: missing break/return 2011-08-10 11:01:09 +00:00
Pierrick Charron 2603ceb0b1 Remove unused variable 2011-08-10 01:12:52 +00:00
Nuno Lopes 719334f1b8 terminate timeouting processes with SIGKILL (9) 2011-08-09 21:53:44 +00:00
Scott MacVicar b8b9ed2421 Fix building of pure C++ extensions as static 2011-08-09 18:12:06 +00:00
Scott MacVicar f922818dad Fix typos in UPGRADING 2011-08-09 15:27:25 +00:00
Rui Hirokawa 219a3b90ce MFH: update the news. 2011-08-09 15:11:51 +00:00
Ilia Alshanetsky 47632aa725 Make static analyzers happy 2011-08-09 14:11:56 +00:00
Ilia Alshanetsky 8c846a6f74 Minimize stack usage and added missing dtors 2011-08-09 13:10:57 +00:00
Xinchen Hui 64fc565765 Avoiding strcpy, strcat, sprintf usage to make static analyzer happy 2011-08-09 12:16:58 +00:00
Xinchen Hui c109640b1a Avoiding strcpy usage, Make static analyzer happy 2011-08-09 09:35:42 +00:00
Scott MacVicar 27d50d6470 Update SQLite3 to the latest version 2011-08-09 07:31:34 +00:00
Xinchen Hui d09d0c83cb Eliminated compiler's warnings and make static analyzer silent 2011-08-09 05:11:19 +00:00
Pierrick Charron 97ac5d3f53 Remove unused variable 2011-08-09 02:42:25 +00:00
Pierrick Charron cb1cd0b3ab Remove unused variable 2011-08-09 02:37:02 +00:00
Gustavo André dos Santos Lopes a61534eab8 - Elided unused argument in internal linkage function. 2011-08-09 00:40:45 +00:00
Xinchen Hui e21e854bc4 Remove unnecessary(no sense) memset and making the static analyzer silent 2011-08-08 16:57:46 +00:00
Ilia Alshanetsky 9c297247ef Another build fix relating to previous DOM commit 2011-08-08 16:49:43 +00:00
Rui Hirokawa ee0bb4d413 MFH: reduced memory footprint for codepages. 2011-08-08 16:15:39 +00:00
Ilia Alshanetsky 0b3cb3f220 Fixed build 2011-08-08 16:06:40 +00:00
Etienne Kneuss 6b5d5b8d12 Fix typo 2011-08-08 14:54:50 +00:00
Ilia Alshanetsky 3726c5c67a Removal of deadcode identified by coverity 2011-08-08 13:45:18 +00:00
Ilia Alshanetsky ca739da423 Removed deadcode 2011-08-08 12:14:58 +00:00
Ilia Alshanetsky 4122a1dd9a Make static analyzers happy 2011-08-08 12:10:27 +00:00
Pierrick Charron e17b5f7e1d Fix typo 2011-08-08 11:30:56 +00:00
Pierrick Charron d0a4c01099 Use snprintf to make the static analyzers happy 2011-08-08 11:19:49 +00:00
Xinchen Hui a8a0a6c3f1 Sizeof mismatch 2011-08-08 08:49:55 +00:00
Derick Rethans 4a73e35168 - Document the new ZEND_DONT_UNLOAD_MODULES environment variable. 2011-08-08 07:42:58 +00:00
Xinchen Hui 43301dae9b Prevented the warning about truncate int to char 2011-08-08 07:12:12 +00:00
Xinchen Hui a7852bcb00 Make codes more clearly, and make the static analyzer silent.. 2011-08-08 06:49:17 +00:00
Pierrick Charron ed7b3e703e Use snprintf and strncat to make the static analyzers happy 2011-08-08 03:08:59 +00:00
Xinchen Hui dbd405a001 Wrong sizeof 2011-08-08 02:33:03 +00:00
Xinchen Hui fb617c33d4 Remove no sense statements 2011-08-08 00:47:40 +00:00
Ilia Alshanetsky 1271828ee4 Avoid strcpy() usage 2011-08-08 00:07:54 +00:00
Ilia Alshanetsky 9db1c59325 Fixes for variety of issues identified by coverity scan 2011-08-07 23:46:00 +00:00
Gwynne Raskind 265367e816 possible use without init fixed 2011-08-07 18:12:52 +00:00
Derick Rethans 3ed828a892 - Fixed bug #55378: binary number literal returns float number though its value
is enough small
2011-08-07 17:36:31 +00:00
Gwynne Raskind ef0e34580b For 5.4, fix C++-style comments. For trunk, forward-port build fix. 2011-08-07 16:31:21 +00:00
Rasmus Lerdorf d4a716b19d Fix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for these
static string copies
2011-08-07 16:10:34 +00:00
Rasmus Lerdorf 46a484e739 Signed 1-bit bitfields make no sense 2011-08-07 15:52:46 +00:00
Rasmus Lerdorf ee729585b3 Not an issue here, but a good habit to follow consistently. Never use strcpy/strcat. 2011-08-07 15:45:18 +00:00
Rasmus Lerdorf cc19cc8b18 Make static analyzers happy 2011-08-07 15:38:36 +00:00
Gwynne Raskind e8281417fd Fixes build issues with ext/intl. This appears to be related to bug #55019, but since the functions in question are used elsewhere, the solution is to de-inline rather than to make them static inline. 2011-08-07 15:12:34 +00:00
Gwynne Raskind a1d6eaf6d6 fix for bug #55019 2011-08-07 15:09:42 +00:00
Gwynne Raskind 1607c8901d Add missing php.h include 2011-08-07 15:07:53 +00:00
Xinchen Hui 376a04e14f revert -r314422
No need to check erealloc's return
2011-08-07 14:25:30 +00:00
Xinchen Hui 59b7b2701c Fixed bug that may dereferenced NULL pointer before checking 2011-08-07 13:19:04 +00:00
Felipe Pena 619cfeef46 - Revert r314387
(property_info.name has the mangled name)
2011-08-07 13:04:02 +00:00
Xinchen Hui cc42ac9d9b Initialize variable with fixed value for avoiding compile warnings 2011-08-07 11:13:27 +00:00
Pierrick Charron e03d19a00e Remove unused variables 2011-08-07 06:37:22 +00:00
Pierrick Charron b90059120d function_name cannot be false 2011-08-07 06:19:43 +00:00
Pierrick Charron a8ed880c64 class entry is never used 2011-08-07 06:04:11 +00:00
Pierrick Charron 4f0c7670ea Pointer returned is never used 2011-08-07 05:46:31 +00:00
Gwynne Raskind 0af1e412a4 Fix build under Clang 2.9 - see LLVM bug #9164 (http://llvm.org/bugs/show_bug.cgi?id=9164). Tested with GCC and Clang on Darwin and Ubuntu. 2011-08-07 05:20:49 +00:00
Rasmus Lerdorf 1c3d13e65f Good catch Coverity 2011-08-07 03:25:19 +00:00
Rasmus Lerdorf 80931fee0c Since we have fci_cache = &fci_cache_local inside that block
and fci_cache is then later used outside the block, fci_cache_local
can't be block-scoped here
2011-08-07 00:50:46 +00:00
Rasmus Lerdorf b7a92c9709 I'm pretty sure you didn't mean to multiple by the size of a char* there
since that makes no sense. output is an array of char, not an array of
char*
Pierre, please review
2011-08-07 00:36:26 +00:00
Rasmus Lerdorf 99cb211c6c Use snprintf here instead to make the static analyzers happy. 2011-08-07 00:25:22 +00:00
Rasmus Lerdorf 5a448d23b2 These naked strcpy()s scare me 2011-08-07 00:18:38 +00:00
Rasmus Lerdorf e2315d295a Use property_info.name here instead since *name might be free'ed at this point
@dmitry please review
2011-08-07 00:01:17 +00:00
Rasmus Lerdorf 9eb19ae2bf Avoid a potential double-free here 2011-08-06 23:42:52 +00:00
Rasmus Lerdorf d03961b23b Not our issue, but fixing here for now and reporting upstream 2011-08-06 23:34:13 +00:00
Rasmus Lerdorf 6379f87b31 Fix another Coverity warning by initializing this to NULL prior to the strtok_r call 2011-08-06 21:10:29 +00:00
Felipe Pena 75a54edf5a - Added change to UPGRADING 2011-08-06 15:57:36 +00:00
Rui Hirokawa 274799678f MFH: changed mapping of 0xa5 for SJIS-mac to prevent XSS. 2011-08-06 15:24:31 +00:00
Felipe Pena 707a8f70b8 - Added ZEND_MOD_END macro to use in the end of zend_module_dep[] 2011-08-06 14:47:44 +00:00
Rui Hirokawa 786d8e7bc2 MFH: fixed encoding conversion when http_input=auto. 2011-08-06 12:19:33 +00:00
Rui Hirokawa 5709c83d93 MFH: improved error handling for ill-formed utf-8 based on the Unicode recommendation. 2011-08-06 04:28:26 +00:00
Rui Hirokawa d322b26fb4 MFH: added ill-formed utf-8 check for 0xEDXXXX. 2011-08-06 02:22:38 +00:00
Rui Hirokawa 7bc77208f3 MFH (updated libmbfl version to 1.3.1). 2011-08-06 01:49:10 +00:00
Felipe Pena 783b05326a - Added missing PHP_FE_END/ZEND_FE_END 2011-08-06 01:22:27 +00:00
Felipe Pena 7c1cb26937 - Fixed bug #55313 (Number of retries not set when params specified)
patch by: kevin at kevinlocke dot name
2011-08-06 00:59:21 +00:00
Rasmus Lerdorf f7e07ae69b efree match_sets on an error here - found by Coverity 2011-08-05 22:39:40 +00:00
Rasmus Lerdorf c1c2e18cb5 Another potential missing va_end() found by Coverity 2011-08-05 22:26:16 +00:00
Christopher Jones 1970c23d86 Improve test portabilty 2011-08-05 22:18:50 +00:00
Rasmus Lerdorf 22a5e73861 Fix missing va_end() found by Coverity 2011-08-05 22:18:42 +00:00
Andrey Hristov 534de60284 Fix for bug #55283 SSL options set by mysqli_ssl_set ignored for MySQLi persistent connections 2011-08-05 13:39:30 +00:00
Rui Hirokawa 1be5479980 MFH (added check for invalid utf-8 encoding). 2011-08-05 04:34:16 +00:00
Rui Hirokawa 7819bb79c7 MFH (removed obsolete/invalid 5,6 byte encoding of UTF-8 from mbstring/libmbfl based on Unicode 5.2. 2011-08-04 12:51:40 +00:00
Felipe Pena 20dc806810 - Added missing check (thanks neweracracker at gmail dot com) 2011-08-04 10:56:59 +00:00
Andrey Hristov c9e7716cfd Add mysqli_error_list() that returns an array with errors. Typically only
one and just one for libmysql. mysqlnd can return generate more than one error
during its work and with mysqli_error() only the last error is being reported.
In the array returned by mysqli_error_list() / $mysqli->error_list, all errors will be found.
The list is reset when the next command is executed
2011-08-04 09:51:26 +00:00
Felipe Pena d8f08192ef - Fixed possible efree(NULL) (bug #55296) 2011-08-04 00:59:43 +00:00
Stanislav Malyshev 3e7ce20a5b back to dev 2011-08-03 17:14:26 +00:00
Stanislav Malyshev 7c289f7f8e 5.4.0alpha3 2011-08-03 17:12:44 +00:00
Stanislav Malyshev 5956ba851a update NEWS 2011-08-03 16:50:27 +00:00
Pierre Joye ab38726a59 - update libcurl to 7.21.7 2011-08-03 13:19:03 +00:00
Rui Hirokawa bf6827697b fixed error handling on SJIS_Mobile (for SB/KDDI). 2011-08-03 11:55:43 +00:00
Rui Hirokawa 1735305f34 fixed error handling on SJIS_Mobile. 2011-08-03 11:51:08 +00:00
Andrey Hristov 1a5b1da9c1 Remove a warning by explicitly compiling out a non-used variable 2011-08-02 15:30:58 +00:00
Andrey Hristov a7fd79b948 completely compile out a currently non-needed function 2011-08-02 14:18:56 +00:00
Andrey Hristov a884bbf1e9 compile out both parts of the code that are currently unused - fixes a compilation warning 2011-08-02 14:02:21 +00:00
Andrey Hristov c99e0d9314 fix warnings due to change in zend_property_info (structure extended in the middle!!) 2011-08-02 13:41:20 +00:00
Dmitry Stogov a550566ce9 Fixed bug #55339 (Segfault with allow_call_time_pass_reference = Off) 2011-08-02 07:38:23 +00:00
Rui Hirokawa c5a650e815 MFH (updated libmbfl for 1.3.0.). 2011-08-02 03:50:10 +00:00
Jérôme Loyet eb180ac30b - Fixed bug #55340 (segfault when using some arguments -- bug introduced by commit r313351) 2011-08-02 00:58:51 +00:00
Dmitry Stogov 5e923d23b4 Fixed bug #55305 (ref lost: 1st ref instantiated in class def, 2nd ref made w/o instantiating) 2011-08-01 15:23:16 +00:00
Dmitry Stogov ad4d6d1ce3 Added support for Class::{expr}() syntax (Pierrick) 2011-08-01 12:08:44 +00:00
Dmitry Stogov 2edd90100c Fixed bug #50816 (Using class constants in array definition fails). 2011-08-01 11:21:23 +00:00
Stanislav Malyshev 83039b8fee fix params parsing 2011-08-01 04:29:37 +00:00
Stanislav Malyshev 1c83f5e04c fix tests 2011-08-01 03:42:02 +00:00
Stanislav Malyshev 3b7cdd0227 fix failing tests 2011-08-01 01:00:57 +00:00
Stanislav Malyshev 5b5c393f82 fix termination in sha-512 too 2011-07-31 23:14:04 +00:00
Stanislav Malyshev fa78f7a4c0 retore open_basedir check for unlink 2011-07-31 22:43:21 +00:00
Stanislav Malyshev 0c5dd2c360 fix salt truncation bug in sha256 2011-07-31 21:47:03 +00:00
Pierre Joye a7e1a71bad - blowfish 1.2 update, 2nd part 2011-07-31 20:50:09 +00:00
Felipe Pena 9ffc8b739f - Fixed tests 2011-07-31 18:51:15 +00:00
Stefan Marr 65cbcb3be9 Fixed Bug #55214 use of __CLASS__ within trait returns trait name not class name [TRAITS] [DOC] 2011-07-31 18:18:56 +00:00
Stefan Marr 0158804a15 Added __TRAIT__ magic constant [TRAITS] [DOC]
# __TRAIT__ behaves like __CLASS__ more or less but is constraint to traits.
# Since traits are not types, there are not many valid use cases, and trying
# to use __TRAIT__ to make traits more like classes is discouraged.
2011-07-31 17:39:30 +00:00
Stefan Marr 7e5a214251 Added: SKIP when tokenizer extension is not available 2011-07-31 16:35:09 +00:00
Stefan Marr 858164624d Fixed test which was assuming that E_STRICT is not on by default. 2011-07-31 16:15:40 +00:00
Felipe Pena f52197815a - Fixed bug #55326 (Trait method copying misindentifies serialization callbacks)
patch by: Gustavo Lopes (cataphract@php)
2011-07-31 12:27:47 +00:00
Pierre Joye 0b619f4f0b - Fix #55301 (sybase part, take #2) check if malloc succeded 2011-07-28 21:16:51 +00:00
Dmitry Stogov 2b606e0a39 Reverted Gopal's patch that allowed plugable interned string check
1. It introduced a significant slowdown
2. It didn't fix the real problem in APC (I'm goint to commit the fix)
2011-07-28 12:01:42 +00:00
Pierre Joye 9c88553456 - Fix #55301 (mssql part) check if malloc succeded 2011-07-28 11:01:04 +00:00
Pierre Joye 61780c3dbc - Fix #55301 (sybase part) check if malloc succeded 2011-07-28 10:57:31 +00:00
Pierre Joye 74de7dd66d - Fix #55301 (url scanner part) check if malloc succeded 2011-07-28 10:52:45 +00:00
Pierre Joye 618b480d91 - Fix #55301 (readline part) check if malloc succeded 2011-07-28 10:42:45 +00:00
Pierre Joye bc165d3a65 - Fix #55301 (interbase part) check if malloc succeded 2011-07-28 10:39:08 +00:00
Pierre Joye 3f28c4eb11 - Fix #55301 (pdo_odbc part) check if malloc succeded 2011-07-28 10:37:04 +00:00
Pierre Joye 582c2fa868 - Fix #55301 (com_dotnet part) check if malloc succeded 2011-07-28 10:34:16 +00:00
Pierre Joye 103d475021 - Fix #55301 (curl part) check if malloc succeded 2011-07-28 10:31:34 +00:00
Gopal Vijayaraghavan be217d08a4 Allow zend_is_interned_string to be pluggable 2011-07-27 23:34:49 +00:00
Pierre Joye 15383e046e - do safemode/open basedir checks 1st, and use only expand not realpath (it is done by the safemode/openbasedir check already) 2011-07-27 14:58:30 +00:00
Pierre Joye ef7229ed17 - Fix #55295, check if malloc failed 2011-07-27 14:23:06 +00:00
David Soria Parra fa7c07b10c Check if given string is long enough in zend_*_strtod 2011-07-27 14:17:45 +00:00
Pierre Joye e7d106f11d - do not resolve the link if all we want is to open that file 2011-07-27 12:20:32 +00:00
Pierre Joye 7e0b627b02 - WS 2011-07-27 11:58:39 +00:00
Pierre Joye bbd6fe7011 - do not resolve the link if all we want is to open that file 2011-07-27 11:57:44 +00:00
Andrey Hristov 11e4f1e39a longer error messages, don't cut them 2011-07-27 10:26:59 +00:00
Peter Cowburn 9159e3d246 added (recursive)callbackfilteriterator to spl_classes() (bug #55287) 2011-07-27 08:48:08 +00:00
Pierre Joye 741abeb20f - upgrading entry for binary number format 2011-07-27 00:18:35 +00:00
Pierre Joye 1ffcbc5b73 - correct 1st name 2011-07-27 00:16:53 +00:00
Pierre Joye 6e4435d628 - add binary suport, FR #50638, as defined in RFC https://wiki.php.net/rfc/binnotation4ints, patch by Jonah Harris 2011-07-27 00:14:02 +00:00
Christopher Jones 57536d31eb Add explicit casts to remove some of Pierre's snapshot build warnings 2011-07-27 00:04:47 +00:00
Pierre Joye b95187fa29 - news for bug #55124 2011-07-26 23:58:18 +00:00
David Soria Parra ec0b5ffca9 Fix #55269 (--enable-dtrace fail on FreeBSD) 2011-07-26 23:49:37 +00:00
Pierre Joye db25201ffb - Fixed bug 55124, recursive mkdir fails with current (dot) directory in path 2011-07-26 17:44:20 +00:00
Ulf Wendel 5d4d7837fa Double check if line is sill usable and connected to last successfully selected db. 2011-07-26 16:14:59 +00:00
Ulf Wendel 62b3c85b05 Check what happens if switching DB via API fails. Expected: no change of current DB/schema. 2011-07-26 15:37:59 +00:00
Ulf Wendel 48d47da8af Would be nice if tests get updated whenever a feature is added by the person adding the feature... 2011-07-26 09:33:01 +00:00
Ulf Wendel 41c94d26a4 Fix mysqlnd detection 2011-07-26 09:30:49 +00:00
Pierre Joye 3b6ad85fa9 - simplify 2011-07-26 09:27:53 +00:00
Pierre Joye 5107df2d04 - use cwd_expand now 2011-07-26 07:30:41 +00:00
Christopher Jones e2f5272dac Fix cast warning seen on some platforms 2011-07-25 23:40:57 +00:00
Christopher Jones f330e9fc08 Patch r313663 and r313665 to allow PECL builds to work with earlier releases 2011-07-25 17:30:09 +00:00
Christopher Jones a746dbb579 Remove old testname. This file now diverges from PHP_5_3 2011-07-25 17:25:47 +00:00
Christopher Jones 6effbcb140 Update skipif 2011-07-25 17:22:48 +00:00
Pierre Joye a02d8cfa33 - add expand_filepath_with_mode (not used anywhere yet but will be used for file ops (fopen&co) to avoid extra links resolution and other non required ops on open 2011-07-25 16:50:07 +00:00
Florian Anderiasch 48ec4ace5f Fix #55121 Segfault with multipart/form-data POST 2011-07-25 16:45:39 +00:00
Ulf Wendel bd07868280 Test update. 5.4+ is more verbose. 2011-07-25 15:07:54 +00:00
Ulf Wendel 93b501ed61 Test update. 5.4+ throws a catchable fatal error, 5.3 does not. 2011-07-25 14:53:01 +00:00
Felipe Pena 68e5e29850 - Fix compiler warning 2011-07-25 11:51:43 +00:00
Felipe Pena 468d13513c - Use ZEND_FE_END macro here 2011-07-25 11:50:10 +00:00
Felipe Pena 4b30846b50 - Make usage of new PHP_FE_END macro 2011-07-25 11:35:02 +00:00
Felipe Pena f1f2a649e2 - Added new macro to be used in the end of zend_function_entry declaration (Gwynne) 2011-07-25 11:30:53 +00:00
Rasmus Lerdorf c2663588e1 When you add something that changes the phpinfo output, please
update this test.
2011-07-25 05:32:08 +00:00
Stefan Marr dca6f950a9 Added forgotten tests cases for class_uses() from commit rev. 313640 2011-07-24 10:20:08 +00:00
Stanislav Malyshev 24392c37d9 No E_STRICT in production 2011-07-24 05:42:29 +00:00
Stanislav Malyshev 4d926b1fa3 Change E_ALL to include E_STRICT 2011-07-23 22:07:22 +00:00
Pierre Joye e72a3ea450 - MQ section 2011-07-23 20:45:18 +00:00
Pierre Joye 51d3680306 - add short array syntax, missing files and info 2011-07-23 20:27:08 +00:00
Pierre Joye 80496c9dc4 - add short array syntax as defined in https://wiki.php.net/rfc/shortsyntaxforarrays, 2nd solution using => only 2011-07-23 20:23:21 +00:00
Stefan Marr 1fc4bc1d56 Added missing class_uses(..) function to SPL to mirror class_implements(..).
# Was pointed out as missing in bug #55266.
2011-07-23 19:08:43 +00:00
Stefan Marr 9a483afa5b Fixed incorrect initialization when copied op_array.vars was NULL (TRAITS) 2011-07-23 18:12:31 +00:00
Stefan Marr 9f66085649 Fixed bug in the handling of conflicting property initializers for traits.
# Bug was uncovered by discussion in http://news.php.net/php.internals/54129
# Forgot to check the actual value of the initializer comparison, only checked
# whether comparison was successful which is not enough.
2011-07-23 13:48:07 +00:00
Stefan Marr 52b81b8566 Added test case which was only added to trunk, bug seems to be fixed already. 2011-07-23 13:42:58 +00:00
Moriyoshi Koizumi 8355230480 - Give index.php a precedence over index.html. Patch by davidc. 2011-07-23 11:29:26 +00:00
Scott MacVicar ebbb2b1df1 When we have a blocking SSL socket, respect the timeout option.
reading from SSL sockets could block indefinitely due to the lack
of timeout
2011-07-23 01:29:44 +00:00
Felipe Pena a6eaf353c0 - Disable __sync_fetch_and_add for HPUX for now, gcc seems not provide __sync_fetch_and_add_4 for all targets 2011-07-23 01:08:24 +00:00
Pierrick Charron 824726073b Delete empty test files (old MQ tests) 2011-07-22 12:12:05 +00:00
Pierre Joye 45420bb669 - remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ, missing tests changes in 5.4 2011-07-22 11:56:20 +00:00
Pierre Joye 7c90a9daa8 - WS 2011-07-22 11:26:23 +00:00
Pierre Joye 9805e1674a - remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ 2011-07-22 11:25:30 +00:00
Daniel Convissor 8bfb9bcd01 Fix spelling error. 2011-07-21 19:56:54 +00:00
Daniel Convissor d108429f82 Have test for add/sub/diff one second during ST/DST transition in spring. 2011-07-21 15:35:06 +00:00
Boris Lytochkin 02bf16db03 s/noOIDIncreasingCheck/oid_increasing_check/ 2011-07-21 12:48:47 +00:00
Moriyoshi Koizumi 56c563dff7 - Show PHP_VERSION in the banner. Suggested by Chris and others. 2011-07-21 07:31:29 +00:00
Ryan Biesemeyer 530311f4ba removing openssl test for bug #55169 per Scott MacVicar's request; duplicate coverage of opensssl_random_pseudo_bytes.phpt 2011-07-20 21:25:39 +00:00
Ryan Biesemeyer 386abb9f5a update test for bug #55169, fix skipif 2011-07-20 21:13:03 +00:00
Ryan Biesemeyer 08cab10dc9 update test for bug #55169, don't require the extension in INI 2011-07-20 20:57:17 +00:00
Ryan Biesemeyer cd6f4bcf8d tests for bug #55169 (mcrypt and openssl) 2011-07-20 18:59:05 +00:00
Daniel Convissor f7c269b119 Rename and enhance test for bug 55253 now that bugs web is up. 2011-07-20 18:24:14 +00:00
Moriyoshi Koizumi 7907f66e4b Fixed bug #55071. Maybe a bit overkill? 2011-07-20 09:00:20 +00:00
Moriyoshi Koizumi b0683007c9 - Better error handling. 2011-07-20 08:43:12 +00:00
Moriyoshi Koizumi a07a4af30b - Fixed bug #55073 (PHP-CLI-webserver does not listen on ipv6 interfaces), letting getaddrinfo(3) validate IPv6 addresses. 2011-07-20 04:34:01 +00:00
Pierre Joye b03817afb5 - re apply the rng change specific to windows, long term it should be a std function but as this function was badly introduced in the 1st place, we have to fix the bad things here instead, pls do not revert again, bad idea. 2011-07-19 23:01:41 +00:00
Jérôme Loyet 8a2736fd77 - Dropped restriction of not setting the same value multiple times, the last one holds (giovanni at giacobbi dot net) 2011-07-19 22:38:04 +00:00
Scott MacVicar 591e0e446f Revert change to use a special Windows version of openssl_random_pseudo_bytes().
Lets discuss this on internals first. We're advertising something from the OpenSSL library 
and then subverting it with another Windows OS call.

What are the implications of this? Should we make this available in ext/standard/ instead?
2011-07-19 22:29:55 +00:00
Jérôme Loyet 3afe772423 - enhanced log messages
- code cosmetic
2011-07-19 22:18:08 +00:00
Scott MacVicar 64a0c79a07 openssl_encrypt() / openssl_decrypt() were flawed and truncated the key to the default size for the case of a variable key length cipher.
The result is a key of 448 bits being passed to the blowfish algorithm would be truncated to 128 bit.

Also fixed an error in the zend_parse_parameters() having an invalid character being used.
2011-07-19 22:15:56 +00:00
Felipe Pena 81e8615cc3 - Fixed bug #55231 (Unsatisfied symbols __sync_fetch_and_add_4) 2011-07-19 22:12:13 +00:00
Popa Adrian Marius 90737c19e2 Fix for bug http://bugs.php.net/54426
Checks for NULL are wrong as the values can be provided by the triggers
2011-07-19 20:23:26 +00:00
Moriyoshi Koizumi dacd564031 - Fixed bug #55107 (Null bytes in URL cause insecure behavior (code execution / code disclosure)). 2011-07-19 18:17:25 +00:00
Moriyoshi Koizumi 6b48551c93 - Buffers are local to the blocks where they belong. 2011-07-19 18:00:16 +00:00
Moriyoshi Koizumi 29745da338 - Print HTTP method as well in the log.
- Print response code also when the request is processed by a script.
- Those changes partly closes #55109.
2011-07-19 17:47:34 +00:00
Pierre Joye ecfc54c5e6 - cleanup 2011-07-19 12:02:22 +00:00
Pierre Joye eccc017ab5 - update libpng to 1.2.46 2011-07-19 10:22:42 +00:00
Jérôme Loyet f577f22de0 order fpm configuration items the same way in php-fpm.conf.in, fpm_conf.h and fpm_conf.c 2011-07-18 21:49:38 +00:00
Pierre Joye 264e5c0567 - update blowfish to 1.2 (Solar Designer) 2011-07-18 21:26:29 +00:00
Jérôme Loyet b7bee05d46 fix a segfault when passing an empty value to a ini parameter from the web server (php_(admin_)?value) 2011-07-18 21:03:44 +00:00
Pierre Joye 58b7766aec - not a good idea after all and did not do what I thought it should do 2011-07-18 12:00:08 +00:00
Pierre Joye 801d140782 - fix bug #54204, Can't set a value with a PATH section in php.ini 2011-07-18 10:25:36 +00:00
Rui Hirokawa f191ecaa9c added numeric entities encode/decode in hex format. 2011-07-18 08:21:48 +00:00
Jérôme Loyet bbce374565 - don't write directly to stderr, use the internal logger instead (zlog) 2011-07-18 00:53:13 +00:00
Jérôme Loyet d70bddb02d remove unused variable 2011-07-18 00:19:22 +00:00
Jérôme Loyet 0b71f4f58b - remove is_fastcgi because FPM is always fastcgi 2011-07-18 00:09:30 +00:00
Jérôme Loyet e615a86cf0 - get rid of FPM_AUTOCONFIG_H which has never existed since FPM integration into core 2011-07-17 23:33:22 +00:00
Boris Lytochkin 85edf25143 new propery noOIDIncreasingCheck allowing to skip
OID increasing check (userful for bogus SNMP agents)
2011-07-17 19:47:24 +00:00
Boris Lytochkin 06c20347ae swap non_repeaters and max_repetitions in walk query, max_repetitions whould be used more frequently 2011-07-17 18:14:38 +00:00
Boris Lytochkin cf7724d5a3 fix FR #54502: allow user to change OID value output mode when SNMP_VALUE_OBJECT is used. 2011-07-17 17:18:31 +00:00
Jérôme Loyet 66dd371c43 fix revision r313323 2011-07-17 14:28:31 +00:00
Boris Lytochkin cc1ccefc0d backport r313324 2011-07-17 14:06:05 +00:00
Jérôme Loyet 7cdef345d5 - Implemented FR #55166 (Added process.max to control the number of process FPM can fork) 2011-07-17 11:41:57 +00:00
Philip Olson e89370d4dc Updated is_a() and is_subclass_of() tests as per the removed E_WARNING from r313162 which was inspired by discussion after r312904 and PHP Bug #53727 2011-07-15 19:17:22 +00:00
David Soria Parra fa79f2f46b Fix #55212. Only declare STREAM_PF_INET6 if PHP is compiled with IPv6 support 2011-07-15 15:25:24 +00:00
Scott MacVicar 1bc1d3572f Fix prototypes for ldap_control_paged_result and fix function name in tests 2011-07-14 18:49:12 +00:00
Derick Rethans 4e5960ed88 - Added a check for an enviroment variable (ZEND_DONT_UNLOAD_MODULES) that, if
set, prevents PHP from dl_closing() modules on shutdown.
- This makes it possible to spot memory leaks with valgrind in shared modules.
2011-07-14 12:21:15 +00:00
Pierre Joye 894a746a80 - fix build 2011-07-14 11:12:33 +00:00
Pierre Joye cf9aaf22ce - fix decl 2011-07-14 10:54:39 +00:00
Stanislav Malyshev 11a096c3cc Back to -dev 2011-07-14 05:39:29 +00:00
Stanislav Malyshev 6f0c93da8e 5.4.0 alpha2 2011-07-14 05:37:40 +00:00
Jérôme Loyet a93fd42b6f find option '-not' is not POSIX compliant 2011-07-13 23:28:48 +00:00
Stanislav Malyshev 61940e4a6a integrate 5.3 NEWS 2011-07-13 20:12:14 +00:00
Daniel Convissor 12ceab222e Have test for add/sub/diff one second during DST/ST transition. 2011-07-13 16:22:58 +00:00
Daniel Convissor 8ae7586e87 Add test for constructing times during the dst/st conversion. 2011-07-13 16:21:10 +00:00
Daniel Convissor 292a7936c5 Use datetime examine diff file from 5.3 in 5.4 and trunk. 2011-07-13 16:08:03 +00:00
Pierre Joye 29b47bbff4 - bind to the available crt version 2011-07-13 06:42:39 +00:00
Jérôme Loyet 2f0a379c03 - Implemented FR #55181 (Enhance security by limiting access to user defined extensions) 2011-07-12 23:00:42 +00:00
Etienne Kneuss 0909cafc7d Fix crash 2011-07-12 21:57:14 +00:00
Etienne Kneuss fdce66dfd2 Fix #48860 Implement Serialization for DLL 2011-07-12 21:43:17 +00:00
Pierre Joye dd1a0be3c0 - Fixed bug #55187, readlink returns weird characters when false result 2011-07-12 15:15:17 +00:00
Pierre Joye 76285595b4 - Bug #55169, improve fix, allow non interactive user, hash-like ops only usage 2011-07-12 11:46:41 +00:00
Christian Stocker a10a6135db Added credentials to XSL NEWS entry 2011-07-12 06:56:11 +00:00
Stanislav Malyshev c6076da77c remove warning for is_a() BC 2011-07-12 05:20:40 +00:00
Stanislav Malyshev 4a5959d113 MF53 2011-07-12 04:58:55 +00:00
Christian Stocker 6be6c2d62d Added XsltProcessor::setSecurityPrefs($options) and getSecurityPrefs()
to define forbidden operations within XSLT stylesheets, default is not to
enable any write operations from XSLT anymore. Bug #54446

(second iteration of the code for trunk, first commit for 5.4 branch)
2011-07-12 04:58:38 +00:00
Stanislav Malyshev c4197dc35e MFH 2011-07-12 04:50:24 +00:00
Stanislav Malyshev 46407e6f5e MF53 2011-07-12 04:45:38 +00:00
Kalle Sommer Nielsen 9f782a73e8 Changed http_response_code() to be able to set a response code 2011-07-12 03:56:32 +00:00
Stanislav Malyshev d5cab148b3 split changes between alphas 2011-07-11 22:49:34 +00:00
Ilia Alshanetsky e80c55448c Fixed bug #55014 (Compile failure due to improper use of ctime_r()). 2011-07-11 17:01:23 +00:00
Christian Stocker 8806c371c8 Added the ability to pass options to loadHTML (Chregu, fxmulder at gmail dot com)
(MFT - Merged from Trunk)
2011-07-11 15:18:46 +00:00
Dmitry Stogov a0974f2d59 Fixed bug #54305 (Crash in gc_remove_zval_from_buffer) 2011-07-11 10:31:49 +00:00
Dmitry Stogov adb87c8d06 Fixed bug #54332 (Crash in zend_mm_check_ptr // Heap corruption) 2011-07-11 09:47:59 +00:00
Gustavo André dos Santos Lopes b9b749b704 - Further fix for bug #55111 (compilation failure of ext/sockets in Mac OS X). 2011-07-11 08:29:39 +00:00
Dmitry Stogov f214fd4f7d Fixed bug #55150 (php -a segfaults) 2011-07-11 07:10:30 +00:00
Felipe Pena c5901b64a7 - Added zend_is_auto_global_quick function 2011-07-10 15:03:38 +00:00
Pierre Joye c70eeb731a - rng change 2011-07-10 15:00:49 +00:00
Pierre Joye 5fb2570742 - use php_win32_get_random_bytes instead of over slow and partially wrong openssl's version 2011-07-10 14:59:33 +00:00
Pierre Joye 4276fd63b5 - fix bug #55169, mcrypt_create_iv always fails to gather sufficient random data 2011-07-10 14:36:32 +00:00
Pierre Joye 8a18b29d23 - use warning here to match unix behavior 2011-07-10 14:19:51 +00:00
Felipe Pena 327a9d45c9 - Year++ 2011-07-10 13:05:32 +00:00
Felipe Pena 9aa25d0938 - Minor optimization taking the computed hash of interned strings 2011-07-10 12:37:42 +00:00
Pierre Joye c6396dd9de - update libpng to 1.2.45 2011-07-10 02:20:34 +00:00
Felipe Pena ce211cf5e6 - Minor optimization, use the computed hash when available 2011-07-10 02:00:00 +00:00
Felipe Pena 70cacfd3a8 - Changed zend_resolve_class_name() prototype
# No needed to pass fetch_type as pointer here
2011-07-09 17:27:59 +00:00
Felipe Pena 644b5fdec0 - WS 2011-07-09 14:35:37 +00:00
Felipe Pena 32a4d68013 - Minor optimization and clean up 2011-07-09 12:06:11 +00:00
Felipe Pena 32f47f5c41 - CS and WS 2011-07-08 19:52:21 +00:00
Felipe Pena 09842e83ba - Fixed bug #55156 (ReflectionClass::getDocComment() returns comment even though the class has none) 2011-07-07 23:07:14 +00:00
Hannes Magnusson 5ddd67d90b Fixed bug#55084 (Function registered by header_register_callback is
called only once per process). (Hannes)

also fixed an issue when header()s are sent from the callback function
2011-07-06 20:38:58 +00:00
Dmitry Stogov b7e124004f Fixed bug #55135 (Array keys are no longer type casted in unset()) 2011-07-06 12:04:02 +00:00
Pierre Joye fdd4aa7073 - add apache 2.3 (upcoming 2.4) handler 2011-07-06 11:13:38 +00:00
Felipe Pena 93776977d8 - Fixed bug #55076 (requires() fails in a subdirectory with the in-built webserver) 2011-07-06 01:54:54 +00:00
Felipe Pena 8953916314 - Fixed bug #55137 (Changing trait static method visibility) 2011-07-06 00:33:38 +00:00
Jérôme Loyet 505537274d - Implemented FR #54098 (Lowered default value for Process Manager) 2011-07-05 21:03:26 +00:00
Andrey Hristov e77b49bfd3 free data in case of failure in the callee not in the caller 2011-07-05 20:31:53 +00:00
Ilia Alshanetsky 1a4456bb76 Fixed bug relating to un-initialized memory access 2011-07-05 20:10:45 +00:00
Jérôme Loyet 5842a4147f - FR #52052: Added partial syslog support (on error_log only) 2011-07-05 19:22:45 +00:00
Jérôme Loyet 81579a352a - Fixed wrong value of log_level when invoking fpm with -tt 2011-07-05 18:09:07 +00:00
Gustavo André dos Santos Lopes afe4570cda - Fixed bug #52935 (call exit in user_error_handler cause stream relate core). 2011-07-05 16:09:06 +00:00
Jérôme Loyet 0494615b3c - ws and cosmetics 2011-07-05 02:42:40 +00:00
Jérôme Loyet 4afe3eb3f3 Fixed memory leak 2011-07-05 01:43:50 +00:00
Jérôme Loyet 3fd5fc9cd7 - moved STR2STR, BOOL2STR and PM2STR from fpm_conf.h to fpm_conf.c (Giovanni Giacobbi) 2011-07-05 01:24:10 +00:00
Stanislav Malyshev 01249bb40b fix crypt() issue with overlong salt 2011-07-04 23:38:09 +00:00
Dmitry Stogov adabdede5e Fixed bug #53727 (Inconsistent behavior of is_subclass_of with interfaces) 2011-07-04 14:55:39 +00:00
Jérôme Loyet aba5ecbad9 fix comment syntax 2011-07-04 12:49:46 +00:00
Felipe Pena 7711da059e - Fixed bug #55118 (Imcomplete start message) 2011-07-03 14:45:41 +00:00
Felipe Pena 3e6b211935 - Removed accidental offsetof definition 2011-07-03 01:29:23 +00:00
Felipe Pena 3923d02332 - Fixed crash when using -e option 2011-07-03 01:06:20 +00:00
Jérôme Loyet b7e5a7f206 - Implemented FR #54172 (Overriding the pid file location of php-fpm) 2011-07-02 23:41:01 +00:00
Felipe Pena d8e8e68f07 - Fixed bug #55086 (Namespace alias does not work inside trait's use block)
patch by: Pierrick
2011-07-02 17:12:20 +00:00
Jérôme Loyet 440727f4ed - Fix php_escape_html_entities_ex call (int * has been changed to size_t *) 2011-07-02 16:40:59 +00:00
Jérôme Loyet d7897c2c2a - Implemented FR #54499 (FPM ping and status_path should handle HEAD request) 2011-07-02 16:34:39 +00:00
Jérôme Loyet 1e0cb5fec5 - Implemented FR #54577 (Enhanced status page with full status and details about each processes
- Added a web page (status.html) for real-time FPM status
- Fixed missing Expires and Cache-Control headers for ping and status pages
2011-07-02 16:10:18 +00:00
Gustavo André dos Santos Lopes 7a402242bc - Fixed bug #55111 (sockets extension fails to compile on Mac OSX). 2011-07-02 12:03:32 +00:00
Felipe Pena d3b1d5b531 - Fixed bug #55080 (Deprecated call in run--test.php)
patch by: fedora at famillecollet dot com
2011-07-01 23:13:53 +00:00
Felipe Pena 71e52a5ccd - Reverted php_printf -> printf change 2011-07-01 17:18:50 +00:00
Philip Olson 18e0f8a489 Updated name to 'PHP Development Server', and CTRL-C to Ctrl-C, as per PHP bug #55071 2011-06-30 23:50:56 +00:00
Gustavo André dos Santos Lopes 404686447b - Fixed bug #55082 (var_export() doesn't escape properties properly). 2011-06-30 09:26:35 +00:00
Adam Harvey 3f3ae34fc2 Fix bug #55066 (Missing linebreak in NEWS). 2011-06-30 06:14:41 +00:00
David Soria Parra c1abc8938d correct error message for a missing document root in the cli webserver
the document root is always a directory.
2011-06-29 23:44:02 +00:00
David Soria Parra 54b84f832a fix #55072 in-built web server needs to check -t option is a directory 2011-06-29 23:29:01 +00:00
Peter Cowburn 9115712263 Fix NEWS 2011-06-29 09:00:37 +00:00
Ilia Alshanetsky b9ffb87960 Fixed test 2011-06-28 23:47:05 +00:00
Knut Urdalen c1c3fada7a working on test coverage for ext/dom, here's 17 more tests 2011-06-28 20:17:15 +00:00
Christopher Jones 3c4bafc45a clarify sqlite deprecation 2011-06-28 18:58:07 +00:00
Pierrick Charron a814063804 Fixed bug #54971 (Wrong result when using iterator_to_array with use_keys on true) 2011-06-28 11:09:06 +00:00
Gustavo André dos Santos Lopes f99938c6ee - Fixed socket_import_stream returning NULL on some errors and FALSE on others 2011-06-28 10:27:29 +00:00
Felipe Pena 6cc66ef964 - Fixed crash on invalid addr:port (Chris Jones, Felipe) 2011-06-27 23:18:26 +00:00
Christopher Jones eb9093160f Keep the DBA DB4 test status quo after Berkeley DB 5.2 introduced error message prefixes 2011-06-27 22:58:59 +00:00
Hannes Magnusson 2310029923 Fix 5.1 detection on ubuntu natty 2011-06-27 20:28:30 +00:00
Derick Rethans 7c1bdf2c45 - Updated to version 2011.8 (2011h) 2011-06-27 11:47:43 +00:00
Jérôme Loyet 89c9a8ef44 - fixed request_timeout and slowlog_timeout from last FPM commit (r312496)
- typo
2011-06-27 11:33:03 +00:00
Felipe Pena 4f21d3132e - Fixed data type usage in 64bit
Reported by: Leonildo Costa
2011-06-27 01:36:39 +00:00
Stanislav Malyshev 3acd5811ae Fix crypt_blowfish 8-bit chars problem (CVE-2011-2483), add tests
# See details at http://www.openwall.com/lists/announce/2011/06/21/1
2011-06-26 21:34:39 +00:00
Jérôme Loyet 849d4e0357 - Replaced shm_slots with a real scoreboard
- Added several improvements to the status page
2011-06-26 15:48:11 +00:00
Knut Urdalen c5a4e11bab small fix in disk_total_space() tests (PHP_5_3 already includes this) 2011-06-25 21:22:42 +00:00
Felipe Pena 5304004cc7 - Fixed crash when using -e option 2011-06-25 20:40:03 +00:00
Felipe Pena 29588a6fa3 - Fixed crash when calling sapi_shutdown() and sapi hasn't been started
Reported by: David Tajchreber
2011-06-25 14:17:17 +00:00
Felipe Pena dc467a70d3 - Fixed crash when zend_eval_string bailouts (-r 'a();')
Reported by: David Tajchreber
2011-06-25 13:15:24 +00:00
Pierre Joye 213e1f4456 - reflection is always enabled 2011-06-25 10:47:54 +00:00
Derick Rethans 8e30050416 - Fixed layout. Tabs on the terminal don't align nicely in most cases. 2011-06-25 10:16:46 +00:00
Knut Urdalen db34dc0a8b fixed temp directory names in spl tests 2011-06-25 07:45:41 +00:00
Knut Urdalen fe724baa4d fixed/refactored some spl tests related to owner/group retrieval 2011-06-25 04:50:42 +00:00
Christopher Jones 918e9f852a Add http_proxy env var support to run-tests.php result submission 2011-06-24 23:10:37 +00:00
Felipe Pena 12cc948688 - Fixed tests 2011-06-24 19:23:25 +00:00
Felipe Pena b632c3ac06 - Added SKIPIF 2011-06-24 19:18:06 +00:00
Derick Rethans 09607226d4 - Added a new PHPAPI function to return module_initialized:
php_get_module_initialized().
2011-06-24 11:19:34 +00:00
Felipe Pena e9ce400f8b - Fixed build on Windows 2011-06-24 00:38:53 +00:00
Felipe Pena 0372e6ad80 - Improved parse error messages 2011-06-23 23:00:53 +00:00
Felipe Pena f9f298cc0b - Missing valid path check 2011-06-23 21:53:25 +00:00
Hannes Magnusson ffc6da20a0 These are annoyingly slow 2011-06-23 21:27:42 +00:00
Nuno Lopes ddac85a947 properly regen file to fix coverage data 2011-06-23 14:58:02 +00:00
Ilia Alshanetsky 86c44e119f Fixed a bug with calculation of REQUEST_TIME in apache2 2011-06-23 14:12:50 +00:00
Jérôme Loyet 73b6310098 - Added custom access log (also added per request %CPU and memory mesurement) 2011-06-23 08:03:52 +00:00
Felipe Pena 34ef66d7a4 - Fix crash on cgi 2011-06-23 02:28:04 +00:00
Felipe Pena 7b91a9778a - Fixed crash (take 2) 2011-06-23 00:40:31 +00:00
Felipe Pena 10bea32e8d - Fixed crash on startup 2011-06-23 00:25:54 +00:00
Felipe Pena 5121f10926 - Fix ZTS build 2011-06-22 15:12:47 +00:00
Ilia Alshanetsky 34d93f0c06 Zend Signal Handling 2011-06-22 14:23:21 +00:00
Shein Alexey 512be854e5 Fixed dom tests. 2011-06-22 09:28:14 +00:00
Pierre Joye f027884ca1 - fix build 2011-06-21 11:43:19 +00:00
Felipe Pena 8480b7f4be - Fix memleak on `php -v' 2011-06-21 01:47:05 +00:00
Felipe Pena b83af94c2b - Fixed hardcoded INI 2011-06-20 23:36:25 +00:00
Felipe Pena dcccfc2267 - Fix broken code in 64bit 2011-06-20 22:59:55 +00:00
Patrick Allaert b4a83a3eef Fixed typo 2011-06-20 20:42:02 +00:00
Moriyoshi Koizumi 2c6b2f64df - Forgot to commit these. 2011-06-20 20:30:36 +00:00
Moriyoshi Koizumi 5b921a87a1 - Add built-in web server to CLI SAPI. See the RFC for detail. 2011-06-20 20:27:39 +00:00
Felipe Pena b3a063643b - Optimize property finding by zend_hash_quick_find 2011-06-20 02:04:13 +00:00
Felipe Pena 8a956399fe - Simplify function code 2011-06-20 01:36:23 +00:00
Felipe Pena 864caa2de1 - Avoid re-hash here too 2011-06-20 01:21:47 +00:00
Jérôme Loyet 0f19777b7a Removed pid in debug logs written by chrildren processes 2011-06-20 00:03:39 +00:00
Felipe Pena d6f5f3782b - Minor optimization (avoid to re-hash already computed var name hash) 2011-06-19 21:56:09 +00:00
Felipe Pena 335cf2fc23 - Removed unnecessary TSRMLS_FETCH 2011-06-19 20:16:08 +00:00
Stanislav Malyshev 603252546b Back to -dev 2011-06-19 20:15:33 +00:00
Stanislav Malyshev ed87dbab91 5.4.0 alpha11 2011-06-19 20:11:54 +00:00
Stanislav Malyshev de5254743e Integrate NEWS 2011-06-19 19:03:13 +00:00
Stanislav Malyshev bbf1904f3d fix error reporting on missing data - don't produce double errors 2011-06-19 18:55:48 +00:00
Stanislav Malyshev 4b0e699051 fix test with floats - make it not produce different result
on 32 and 64 bit
2011-06-19 18:52:58 +00:00
Stanislav Malyshev 177612ca4d re-generate credits 2011-06-19 17:56:09 +00:00
Daniel Convissor 7f04d85d31 Provide test for DateTime::add() issue (for discussion on internals, bugs.php.net is down). 2011-06-19 16:59:58 +00:00
Daniel Convissor 90789cf0a7 Split DateTime diff/add/sub tests into separate files to make things easier to see, test and (one hopes) fix. 2011-06-19 16:55:11 +00:00
Felipe Pena f417c732a9 - Fix tests 2011-06-19 15:43:16 +00:00
Felipe Pena 868b808f4c - Opss, restore old behavior 2011-06-19 14:50:44 +00:00
Felipe Pena d8782ddaeb - Added missing void param check in sys_get_temp_dir
- Fixed param check of umask()
2011-06-19 14:27:33 +00:00
Felipe Pena b9746b0ba6 - Missing usage of 'p' parameter specifier 2011-06-19 13:20:12 +00:00
Felipe Pena 6765a19d23 - Fix test 2011-06-19 12:58:56 +00:00
Felipe Pena fbb5aae32c - New tests (code coverage++) 2011-06-19 12:33:49 +00:00
Felipe Pena 772768f41c - Fix test 2011-06-19 00:18:17 +00:00
Felipe Pena 8c3335b96b - Added missing void param checks, and fix arginfo 2011-06-18 22:48:31 +00:00
Felipe Pena 72c4e72570 - Fixed compiler warning (redefinition of offsetof) 2011-06-18 18:11:27 +00:00
Felipe Pena 63db6d1435 - Missing change 2011-06-18 17:46:16 +00:00
Felipe Pena 94cd08457b - Fixed ZTS build 2011-06-18 17:41:56 +00:00
Jérôme Loyet 886cf1a318 Added master rlimit_files and rlimit_core in the global configuration settings 2011-06-18 16:27:48 +00:00
Jérôme Loyet eefbc4398a Fixed exit at FPM startup on fpm_resources_prepare 2011-06-18 16:15:15 +00:00
Felipe Pena ebf9db550f - Added missing arginfos for void params and void param checks 2011-06-18 15:56:14 +00:00
Jérôme Loyet e63f59191d Remove timestamp in logs written by children process 2011-06-18 15:33:07 +00:00
Boris Lytochkin 2a852af8f7 take over mantainership on snmp extension 2011-06-18 07:12:35 +00:00
Pierre Joye a8068a676b - fix build 2011-06-18 02:24:01 +00:00
Jérôme Loyet dec96a12fa missing doc in the conf file 2011-06-17 23:35:47 +00:00
Jérôme Loyet 3a5d2b2129 - added xml format to the status page
- clean fpm_status.c code
2011-06-17 23:19:54 +00:00
Christopher Jones 444289e03e Fix skipif to resolve the common reason this test fails 2011-06-17 18:28:34 +00:00
Boris Lytochkin 68c8c34a77 expand SNMP section 2011-06-17 18:26:54 +00:00
Derick Rethans 9437d4cea4 - Fixed bug where the DateTime object got changed while using date_diff(). 2011-06-17 16:38:23 +00:00
Johannes Schlüter 740285307d - Minor NEWS cleanup
# entrys are sentences and end with a full stop.
# PCRE and SQLite updates will hopefully released w/ 5.3 first (and the listed
# version numbers are outdated already)
2011-06-17 16:33:54 +00:00
Felipe Pena 0a7292087c - Fixed two "jump or move depends on uninitialised value" 2011-06-17 02:00:20 +00:00
Pierre Joye 104cd28e95 - did I not kill that already? (do not use rand_screen, pointless on server and not TS) 2011-06-16 13:06:41 +00:00
Pierre Joye 25849ab967 - fix nts build 2011-06-16 10:20:25 +00:00
Pierre Joye 358316b2ed - init win32 rng context once per process 2011-06-16 01:31:10 +00:00
Pierre Joye 1717764476 - install extra headers 2011-06-16 01:21:01 +00:00
Stanislav Malyshev 240653bad7 update the branches list 2011-06-15 23:19:30 +00:00
Christopher Jones af482a4fc8 Improve cross version compat 2011-06-14 20:04:18 +00:00
Scott MacVicar 08e7b84b7b Upgrade SQLite to 3.7.6.3 2011-06-14 17:00:49 +00:00
Felipe Pena a5974fdba8 - New tests for new feature 2011-06-14 02:05:37 +00:00
Felipe Pena a96426874a - Fix build on Windows 2011-06-13 17:52:23 +00:00
Timm Friebe fcff17524a - MFH suppression of compiler warning noted in bug #55009 2011-06-13 08:45:56 +00:00
Felipe Pena 5670174b66 - Fixed bug #54624 (class_alias and type hint) 2011-06-12 21:10:31 +00:00
Rasmus Lerdorf c9e41e8901 These regexes don't fail under the new backtrack limit, so lower it
just for the test to check the failure.
2011-06-12 18:38:26 +00:00
Felipe Pena 0333b86f2d - Added Bison 2.5 to bison_version_list 2011-06-12 17:26:45 +00:00
Felipe Pena 907fd926e5 - Restore basename in filename on non Windows OS 2011-06-12 15:15:44 +00:00
Rasmus Lerdorf fb2ce0bb00 Don't expect a path for tidy_repair_string() and fix the tests 2011-06-12 14:49:10 +00:00
Boris Lytochkin 7a0bd8b967 remove PHP_VERSION_ID ifdef's, limiting to 5.4 branch 2011-06-12 12:26:51 +00:00
Boris Lytochkin 2b8026cfff merging from trunk (r312088...r312092):
move SNMP VERSION constants into SNMP class itself
fix typo in comment
no more method open
fix method names in header
2011-06-12 12:10:01 +00:00
Felipe Pena bc6cb0c70d - Fixed bug #54680 (missing TRACK_VARS_SERVER check) 2011-06-12 02:47:48 +00:00
Felipe Pena 80d432ca62 - Avoid zend_do_ticks() call for each statement in parsing 2011-06-12 01:43:10 +00:00
Gustavo André dos Santos Lopes 8d52500d41 - Reverted r301991, which is a (partial) fix to bug #52550, addressing an
overflow in a signed subtraction. This fixes the overflow without
  changing the algorithm.
2011-06-12 00:56:18 +00:00
Felipe Pena f277d8a22f - Fixed tests 2011-06-12 00:31:13 +00:00
Gustavo André dos Santos Lopes bc9c089f3a - Fixed ext/sockets build on Mac OS X (hopefully).
- Improvements in the multicast tests.
- Very light refactoring in sockets.c.
2011-06-11 20:20:50 +00:00
Timm Friebe e2a48862f7 - MFH Bugfix for bug #53540 2011-06-11 18:55:41 +00:00
Felipe Pena d2c47040f5 - Missing fix for bug #54347 2011-06-11 15:11:49 +00:00
Felipe Pena f641cf8b2c - Possible fix for bug #55022 (memory_limit exhausted when set charset in sybase_connect) 2011-06-11 01:15:14 +00:00
Christopher Jones ea2cad7e76 Fix TSRMLS for Windows build 2011-06-11 00:24:26 +00:00
Felipe Pena 191df85605 - Drop C++ style comments 2011-06-10 23:14:15 +00:00
Felipe Pena 15f5dd5cb3 - Fixed bug #55028 (// is abad comment) 2011-06-10 22:48:36 +00:00
Christopher Jones 7bc6fbc448 Bump OCI8 version to stable in preparation for 5.3.7 RC 2011-06-10 20:01:46 +00:00
Christopher Jones a643bda32d Add new OCI8 tests. Refactor skipifs. Sync 5.3/5.4/trunk branches 2011-06-10 19:16:35 +00:00
Christopher Jones 199510ef07 Add oci_client_version() returning the runtime Oracle client library version - predominantly useful for the test suite 2011-06-10 17:38:07 +00:00
Rasmus Lerdorf 02023fc8fe Fix Apache1 build 2011-06-10 11:46:35 +00:00
Felipe Pena cee9b6603c - Fixed bug #54347 (reflection_extension does not lowercase module function name)
patch by: laruence at yahoo dot com dot cn
2011-06-09 22:45:35 +00:00
Shein Alexey 4cd96965fb Removed tests checking old/removed functionality (session_register/session_unregister/session_is_registered/register_globals) 2011-06-09 08:54:47 +00:00
Shein Alexey b99e1ba2d8 Changed session.save_path to /tmp to make test run. 2011-06-09 08:24:12 +00:00
Shein Alexey 060ceea06e Skip reason is now printed if session.save_path is not writable. 2011-06-09 08:18:49 +00:00
Shein Alexey efb6757e16 Fixed session test breakage due to serialize precision issue. 2011-06-09 07:44:10 +00:00
Felipe Pena 0a0443f07c - Missing fixes for grammar fix 's/valid path/a valid path/' 2011-06-09 00:23:43 +00:00
Ilia Alshanetsky 6e668453ac Fixed test 2011-06-08 23:30:02 +00:00
Ilia Alshanetsky 80f46ca2c5 Fixed test to account for smaller default floating point # precision 2011-06-08 02:03:14 +00:00
Christopher Jones 9622d0050d Relax autoconf support from 2.60 to 2.59. This is the version available on Centos/RHEL/Oracle Linux 5.6 2011-06-08 01:25:35 +00:00
Felipe Pena ddaddf6c2a s/valid path/a valid path/ 2011-06-08 00:53:55 +00:00
Gustavo André dos Santos Lopes c27079d9e0 - Fixed bug #54992: Stream not closed and error not returned when SSL CN_match
fails.
2011-06-08 00:23:02 +00:00
Christopher Jones 707e6dac61 Sync OCI8 branches. Allow 'pecl install' to work on both PHP 5.3 & 5.4 2011-06-07 23:53:02 +00:00
Felipe Pena 08b3d76cbf - Fixed bug #55007 (compiler fail after previous fail) 2011-06-07 22:58:38 +00:00
Felipe Pena af43d306c0 - Added 'p' type specifier 2011-06-07 22:22:01 +00:00
Christopher Jones a3ddc02e8e Update tests to match Felipe's null byte arg parsing change 2011-06-07 20:58:08 +00:00
Felipe Pena a641ccb774 - Test fixes 2011-06-07 02:29:03 +00:00
Ilia Alshanetsky de2291689c Fixed test 008 2011-06-07 01:40:54 +00:00
Felipe Pena d86b3633cf - Test fixes 2011-06-06 22:36:54 +00:00
Felipe Pena 66ac89a00b - Added indirect method call through array variable (FR Bug #47160) 2011-06-06 21:42:05 +00:00
Felipe Pena 32b5f8a1a3 - Added new parameter parsing option (p - for valid path (string without null byte in the middle))
# The tests will be fixed in the next commits
2011-06-06 21:28:16 +00:00
Ilia Alshanetsky a311dc2443 Fixed bug #51997 (SEEK_CUR with 0 value, returns a warning). 2011-06-05 21:57:01 +00:00
Hannes Magnusson 6f56bf1cfc Fixed bug#51819 (Case discrepancy in timezone names cause Uncaught exception and fatal error) 2011-06-05 13:30:01 +00:00
Hannes Magnusson eed6bdb5c7 When you write to a symlink - you access the file itself, not the symlink, so we need to compare the atime to the orignal file 2011-06-05 12:08:14 +00:00
Hannes Magnusson 513faa54bb Make sure we are writing more data then the block size 2011-06-05 12:07:11 +00:00
Hannes Magnusson 8f3e6433b2 No need to fetch external files and endless amount of DTDs for this test 2011-06-05 11:31:18 +00:00
Hannes Magnusson 86209a3919 touch() no longer attempts to create files on empty strings 2011-06-05 09:42:10 +00:00
Hannes Magnusson 148120e1e9 Fix tests when running without mbstring 2011-06-05 09:35:49 +00:00
Stanislav Malyshev 2da7edbc8d This method doesn't seem to be very useful without scalar types, so reverting it too 2011-06-05 08:59:24 +00:00
Hannes Magnusson 5fac6a938f This isn't less then 5.4.. but these still fail though. 2011-06-05 08:56:52 +00:00
Philip Olson 45f4c5dd7e Updated the note maintainers credits 2011-06-05 06:57:13 +00:00
Felipe Pena f57cbfcaa1 - Possible fix for bug #54609 (Certain implementation(s) of SplFixedArray cause hard crash) 2011-06-05 01:38:12 +00:00
Felipe Pena e1a5443f97 - Fixed bug #54929 (Parse error with single quote in sql comment) 2011-06-04 22:54:40 +00:00
Ilia Alshanetsky 31b91d7cdb Show ICU Data version inside phpinfo() 2011-06-03 18:14:36 +00:00
Hannes Magnusson a1ae8af54c Fix tests
#Note to self; do not rename tests just before committing
2011-06-03 17:38:37 +00:00
Hannes Magnusson 3837f1205b Add tests for broken function arguments 2011-06-03 17:12:59 +00:00
Stanislav Malyshev aea69cb06a and clean the tokenizer too 2011-06-03 01:16:01 +00:00
Stanislav Malyshev e18618905c scalar types cleanup 2011-06-03 01:09:32 +00:00
Scott MacVicar 0c107d3bf3 Fix Bug #54918 - Crash when there is a failure to read the browscap file 2011-06-03 00:42:07 +00:00
Scott MacVicar 76cbcc7f66 Added fabled hex2bin() function 2011-06-03 00:12:22 +00:00
Gustavo André dos Santos Lopes ce966baaa4 - Fixed double registering of browscap ini directive. See bug #54896. 2011-06-02 08:46:40 +00:00
Felipe Pena 767f924665 - Fixed bug #54970 (SplFixedArray::setSize() isn't resizing) 2011-06-02 00:40:27 +00:00
Ilia Alshanetsky 329eae2a7a More tests 2011-06-01 16:59:23 +00:00
Ilia Alshanetsky b8ffccb3ab Implemented FR #54561 (Expose ICU Version & ICU Data Version info). 2011-06-01 16:26:21 +00:00
Ilia Alshanetsky a8b8fe1f7f Fixed bug #52104 (bindColumn creates Warning regardless of ATTR_ERRMODE settings). 2011-06-01 13:23:25 +00:00
Ilia Alshanetsky a7dfb31557 Fixed bug #54484 (Empty string in json_decode doesn't reset json_last_error()). 2011-06-01 09:44:38 +00:00
Rafael Machado Dohms 6406521a44 Adding testcases to validate imageloadfont input parameter validation, tests were developed at #tek11 testfest 2011-05-31 21:38:23 +00:00
Andrey Hristov ce816cb883 reuse code 2011-05-31 20:42:44 +00:00
Shein Alexey 11f667e82d Fixed notice breaking the test. 2011-05-31 12:57:40 +00:00
Shein Alexey f848423608 Removed test since there's no more safe_mode in PHP >= 5.4. 2011-05-31 12:45:00 +00:00
Dmitry Stogov c270347c0b MFH: Arithmetic speedup. Inlined most probable code-paths for arithmetic operations directly into executor. 2011-05-31 12:05:25 +00:00
Dmitry Stogov 6fca028fc5 MFH: Fixed bug #54957 (Memleak in alloc_globals_ctor) 2011-05-31 11:38:31 +00:00
Dmitry Stogov eaeb4537ec MFH: Fixed bug #54910 (Crash when calling call_user_func with unknown function name) 2011-05-31 11:36:57 +00:00
Andrey Hristov 0de3cd84a5 fix macros 2011-05-31 10:35:07 +00:00
Ilia Alshanetsky 3300cc8e38 Removed unnecessary rinit/rshutdown 2011-05-31 08:59:32 +00:00
Philip Olson c76af7c041 Updated qa-release.php notes as per the new qa-release.php syntax 2011-05-30 23:26:33 +00:00
Ilia Alshanetsky f5779d5e16 Fixed bug #52496 (Zero exit code on option parsing failure). 2011-05-30 15:57:50 +00:00
Hannes Magnusson 9392b9cd73 Fixed bug #54946 (stream_get_contents infinite loop) 2011-05-29 12:29:19 +00:00
Hannes Magnusson 2c03acef35 Fixed bug #54601 (Removing the doctype node segfaults) 2011-05-29 11:39:49 +00:00
Ilia Alshanetsky 34de2c30c5 Fixed bug #53848 (fgetcsv() ignores spaces at beginnings of fields). 2011-05-29 10:23:06 +00:00
Ilia Alshanetsky d2b11712ff Fixed bug #54137 (file_get_contents POST request sends additional line break). 2011-05-29 09:23:08 +00:00
Felipe Pena 8199f8dcfc - Fixed bug #54934 (Unresolved symbol strtoull in HP-UX 11.11) 2011-05-27 23:31:30 +00:00
Stanislav Malyshev 845d0805a8 MFH: Fixes for broken tests. 2011-05-27 19:27:05 +00:00
Stanislav Malyshev c16bfe403f MFH: Fixed comilation on x86_64 2011-05-27 19:24:09 +00:00
Stanislav Malyshev c2f796c58b MFH: Fix for failing test. 2011-05-27 19:21:21 +00:00
Stanislav Malyshev a2390fca5d MFH: Fixed crash on recursive error handler invocation 2011-05-27 19:14:36 +00:00
Ilia Alshanetsky 28edcb949d Fixed bug #54924 (assert.* is not being reset upon request shutdown). 2011-05-26 18:17:43 +00:00
Pierre Joye d1ea827f27 -fix bug 54935, php_win_err can lead to crash 2011-05-26 14:37:13 +00:00
Felipe Pena 565d4bc695 - Fixed ZTS build and removed unused vars 2011-05-25 22:23:48 +00:00
Stanislav Malyshev 5c9080d3a6 implement streams metadata API per RFC 2011-05-25 21:03:55 +00:00
Rasmus Lerdorf 378cf70c81 This isn't in 2011-05-25 19:58:41 +00:00
Philip Olson f5b67e09b9 Fixed test, as per r311323 2011-05-25 00:02:05 +00:00
Felipe Pena ad0666eb94 - Fixed bug #50363 (Invalid parsing in convert.quoted-printable-decode filter)
Patch by: slusarz at curecanti dot org
2011-05-24 23:49:26 +00:00
Philip Olson 07e9cfe6a5 Fixed test 2011-05-24 23:49:04 +00:00
Philip Olson 76ec6924cb Updated test. touch() emits E_WARNING for bogus values. Updated 5.3 test to look the same. 2011-05-24 23:27:49 +00:00
Felipe Pena 708017dd3f - Fix logic, it must check for both flags (as says the comment in the code) (bug #54912) 2011-05-24 22:34:07 +00:00
Felipe Pena 04d0210c8e - Fixed bug #54912 (filter/logical_filters.c:685:32: warning: use of logical || with constant op)
Initial patch by: crrodriguez at opensuse dot org
2011-05-24 22:24:06 +00:00
Pierre Joye 59c102bf51 - Fix #54721, different Hashes on Windows, BSD and Linux on wrong Salt size 2011-05-24 13:48:04 +00:00
Pierre Joye 6f594fc5ea - fix tests, keep EOL as unix style as the str len is used in expect 2011-05-24 10:47:35 +00:00
Michael Wallner 1056c57fa9 MFH: Fix Bug #54727, a re-incarnation of #26862 2011-05-24 05:06:53 +00:00
Felipe Pena b60f6774dc - Fix the fix
# Arghh, copy and paste error :(
2011-05-24 00:10:00 +00:00
Felipe Pena 70f4069138 - Fixed stack buffer overflow in socket_connect().
Found by: Mateusz Kocielski, Marek Kroemeke and Filip Palian
2011-05-24 00:05:50 +00:00
Philip Olson 388fa176be Fixed test for decoupled <?= as of r311260 2011-05-23 23:51:28 +00:00
Stanislav Malyshev 9eb5cb6571 fix some failing tests 2011-05-23 07:06:04 +00:00
Felipe Pena a95a021509 - Fixed bug #54529 (SAPI crashes on apache_config.c:197)
patch by: hebergement at riastudio dot fr
2011-05-23 01:47:06 +00:00
Felipe Pena a6acb1f09e - Fixed bug #54269 (Short exception message buffer causes crash) 2011-05-22 19:06:21 +00:00
Rasmus Lerdorf f5a9e17f9c Increase the overly conservative pcre backtrack limit from 100000 to 1000000 2011-05-21 19:48:37 +00:00
Felipe Pena 964f44a280 - Fixed bug #54895 (Fix compiling with older gcc version without need for membar_producer macro)
patch by: mhei at heimpold dot de
2011-05-20 21:24:51 +00:00
Scott MacVicar 30f19bd524 Allow management of your own padding in openssl_encrypt/decrypt.
For using mcrypt / openssl interchangeabley managing your own padding is the only solution.
2011-05-20 18:56:13 +00:00
Felipe Pena 1101293b3f - Fixed bug #54804 (__halt_compiler and imported namespaces) (Pierrick) 2011-05-19 23:20:47 +00:00
Rasmus Lerdorf 4ad9f1970c Fix CS 2011-05-19 23:18:55 +00:00
Rasmus Lerdorf 01a6840bbd Fix bug 54866 2011-05-19 23:09:58 +00:00
Scott MacVicar 3012b74e96 Move LDAP to its own section 2011-05-19 22:49:47 +00:00
Scott MacVicar fe790643ca Add new functions to UPGRADING 2011-05-19 21:39:01 +00:00
Rasmus Lerdorf fceeb296e6 Should probably have a note on the autoconf 2.60+ requirement here 2011-05-19 20:07:02 +00:00
Scott MacVicar 3cb4de03dc Tidy up ldap paging code and rename the API as discussed in #42060 2011-05-19 17:41:21 +00:00
Rasmus Lerdorf c24ef71e63 Decouple <?= from the short_tags setting and make it always enabled 2011-05-19 16:26:29 +00:00
Pierre Joye 1e2aa4416c - initial import, will add all libs later 2011-05-19 13:36:29 +00:00
Scott MacVicar 6fad717299 Revert part of the fix for #53339
On OSX we need ssl AND crypto

The patch that was applied didn't even match what was in the bug
2011-05-19 05:43:48 +00:00
Johannes Schlüter 0a17fe52fb - handle out of memory 2011-05-18 11:49:49 +00:00
Johannes Schlüter 4b450a0f85 - Keep the old arginfo for now
# This change we would E_RECOVERABLE instead of E_WARNING
# and needs some more review, as well fixing ~80 tests
2011-05-18 10:21:28 +00:00
Andrew Curioso 1e3b32c777 Commiting r311138 into the 5.3 branch - fix to SimpleXML get properties hash 2011-05-18 04:43:21 +00:00
Scott MacVicar cfdd25d5c0 ZEND_THREAD_SAFE and ZEND_DEBUG_BUILD are not meant to be case insensitive 2011-05-17 22:24:44 +00:00
Pierre Joye e6368659a7 - WS 2011-05-17 10:39:18 +00:00
Andrey Hristov 778273291d exchange a "trap" with an error 2011-05-17 09:44:11 +00:00
Johannes Schlüter 85eb08885b - Move the field access behind the check
# Only called from one place where the connection is checked, but
# playing safe, again (parfait)
2011-05-17 00:16:57 +00:00
Ferenc Kovacs 469b6d2b9e adding an XFAIL, as we have an open bug for this test 2011-05-16 23:43:12 +00:00
Ferenc Kovacs 5d10bb6231 adding an XFAIL, as we have an open bug for this test 2011-05-16 23:39:16 +00:00
Ferenc Kovacs 52c1db4b7d set the timezone to UTC as suggested by Alexey Shein, and adding an SKIPIF as this test was originaly intended to be windows only 2011-05-16 23:35:23 +00:00
Ferenc Kovacs 41533cdee1 fix the test with the removal of the unnecessary newline 2011-05-16 23:33:05 +00:00
Ferenc Kovacs 6b593349cb adding the serialize_precision=100 for the tests, credits to Mats Lindh for reporting it 2011-05-16 23:31:14 +00:00
Ferenc Kovacs a93c3ddbb7 removing XFAIL as #39863 has already been fixed 2011-05-16 23:28:46 +00:00
Johannes Schlüter ac96bcdc90 - Handle error if tempfile can't be opened, found by parfait 2011-05-16 22:24:41 +00:00
Johannes Schlüter 0f7d022eea - Fix a few more memleaks found by parfait 2011-05-16 21:29:45 +00:00
Johannes Schlüter db6a29e533 - Fix possible memory leak
# Found by parfait - http://labs.oracle.com/projects/parfait/
2011-05-16 19:46:32 +00:00
Rasmus Lerdorf a546b3207f oops, can't use that macro here 2011-05-16 17:26:10 +00:00
Rasmus Lerdorf a5eeecb13f Suppress a dozen unused return value warnings in places where the return
value is really not useful to us.
2011-05-16 17:22:41 +00:00
Rasmus Lerdorf 75ec1fedc7 Add php_ignore_value() macro to suppress unused return value warnings
from gcc. There are times when we really don't care about the return
value and this will cleanly tell gcc.
2011-05-16 16:58:02 +00:00
Rasmus Lerdorf 27dd44db95 Fix a couple of warnings. Use %zu to printf a time_t and get_request_time
actually returns a double, not a time_t.
2011-05-16 15:52:31 +00:00
Johannes Schlüter a90b7da435 - Fix Bug #53782 (foreach throws irrelevant exception) 2011-05-16 15:37:39 +00:00
Johannes Schlüter 8ab4c89d0b - Move the access behind the check.
# I can't find an unsafe call, but let's play safe
2011-05-16 10:15:28 +00:00
Rasmus Lerdorf 353077d234 Get rid of autoconf warnings 2011-05-16 00:14:47 +00:00
Pierre Joye c0748c7856 - version 2011-05-15 20:07:33 +00:00
Rasmus Lerdorf 6f9d0a25fd Make the version match the branch 2011-05-15 06:16:37 +00:00
Rasmus Lerdorf 245d15fdc6 Drop support for autoconf < 2.60 in trunk and the
new PHP_5_4 branch. autoconf >= 2.60 should finally
be working now.
2011-05-15 06:09:21 +00:00
Rasmus Lerdorf 8e256774b0 Cache the PDO include path 2011-05-15 05:24:34 +00:00
Rasmus Lerdorf d19c366c4a Missed merging this into the new PHP_5_4 branch 2011-05-15 05:21:01 +00:00
Stanislav Malyshev 654aa838cd forgot tokenizer... 2011-05-15 00:48:05 +00:00
Stanislav Malyshev 0f29950d9c initiate 5.4 branch 2011-05-15 00:40:12 +00:00
Stanislav Malyshev 516c2f5920 removing scalar types in trunk 2011-05-15 00:36:13 +00:00
Martin Jansen 41dbe39471 MFB: Fixed two failing tests that were caused by arbitrarily chosen
but apparently bogus upper resp. lower limits for mt_rand().
2011-05-14 20:38:47 +00:00
Johannes Schlüter f536be81c1 - Fix svn command 2011-05-14 18:02:59 +00:00
Rasmus Lerdorf a0ae7e5828 en_US locale preferred output has AM/PM and also the timezone 2011-05-14 17:51:38 +00:00
Johannes Schlüter 17c61886c0 - cvs2svn changes for the RELEASE_PROCESS 2011-05-14 17:48:36 +00:00
Rasmus Lerdorf 0e07aeee7e Fix the require in these tests 2011-05-14 17:34:18 +00:00
Felipe Pena f1967befc8 - Fix test 2011-05-14 01:00:59 +00:00
Rasmus Lerdorf 2a927b5d7f Make sure 'E' is included in the variables_order, otherwise
this test won't work.
2011-05-13 21:54:25 +00:00
Stefan Marr 8ba00176f1 Fixed a inconsitent condition for aliasing traits.
- missed a failing Traits test, but is now fixed, and the bug covered by a dedicated test
# Should always comment conditions that go over more than two lines :-/
2011-05-13 20:28:34 +00:00
Scott MacVicar db0c957f02 Fix Windows build, this really should be in a patch file / README.
I'll fix this up later.
2011-05-13 13:51:07 +00:00
Scott MacVicar 6ec23faa99 Update bundled PCRE to 8.12 2011-05-13 07:00:45 +00:00
Scott MacVicar 735b3423a9 Update bundled SQLite to 3.7.6.2 2011-05-13 06:11:06 +00:00
Scott MacVicar 2c7fb35b83 Fix use after free() in XMLReader::xml() 2011-05-13 05:54:34 +00:00
Scott MacVicar 194b48088c Fixed bug #54723 - getimagesize() doesn't check the full ico signature and misreports mpg files 2011-05-13 05:06:48 +00:00
Rasmus Lerdorf 155972b117 Check headers first and let the CHECK_LIBRARY macro
handle checking for the library. This makes it 
correctly handle non-standard system paths as long
as gcc knows about them. Should fix the build on
Ubuntu natty.
2011-05-12 08:19:37 +00:00
Philip Olson c6ea819db4 Added missing date_default_timezone_set('UTC'); to the appropriate tests. A few now pass by not showing the timezone warning. 2011-05-12 06:51:46 +00:00
Boris Lytochkin dbed284039 fixed typos in tests
ucd-snmp epoch is over, drop legacy memory allocation (non e*)
tune 'buggy snmp_snprint_value' detection on some systems
2011-05-10 20:04:26 +00:00
Scott MacVicar b966897a0d Turns out that more than 1% of users clocks are more than a year out of date, this causes cookies to never get deleted since the date is in the future.
I can only guess its due to batteries on the motherboard being dead.
2011-05-10 19:09:24 +00:00
Boris Lytochkin 97930e9170 method renaming:
SNMP::get_errno() -> SNMP::getErrno()
SNMP::get_error() -> SNMP::getError()
2011-05-10 11:48:10 +00:00
Adam Harvey a642b52295 Fix bug #54692 (SQLite3::open() Return Value) by correcting the SQLite3::open()
prototype.
2011-05-10 08:14:55 +00:00
Andrey Hristov 9a197618b4 Fix range
(thanks again nihen)
2011-05-10 07:15:22 +00:00
Boris Lytochkin 9d2f7c1e3e remove method open, __construct is enough 2011-05-09 19:34:07 +00:00
Andrey Hristov d4ae5bd995 Fix for bug 54674..typo in the check of SJIS 2011-05-09 16:20:35 +00:00
Johannes Schlüter 410a781063 - Fix bug #54644 (wrong pathes in php_pdo_mysql_int.h) 2011-05-09 11:34:17 +00:00
Boris Lytochkin ee0d7f3207 * new option for SNMP::get: force keys of return array be as in request array
* new option for SNMP::walk: use suffix of OID for keys in return array, not full OID
2011-05-08 13:58:37 +00:00
Boris Lytochkin 1dc02ac2de fix error reporting on OID not increasing
calling arguments markup
2011-05-08 09:20:58 +00:00
Felipe Pena 1c24911a46 - Fixed bug #54681 (addGlob() crashes on invalid flags) 2011-05-07 01:58:26 +00:00
Pierrick Charron 1bf6d03020 # Fix phpt 2011-05-05 18:30:14 +00:00
Dmitry Stogov 6eedfb9b3a Fixed direct threaded executor (php zend_vm_gen.php --with-vm-kind=GOTO) 2011-05-05 16:02:11 +00:00
Andrey Hristov 91bddbe26e add the BLOCK_LEAVE macro for non-gcc and non-win 2011-05-04 19:09:12 +00:00
Andrey Hristov 84a309f87b reorganize the DBG_ macros, add DBG_BLOCK_XXX 2011-05-04 19:05:19 +00:00
Andrey Hristov 2d5e51db05 fix valgrind warning 2011-05-04 10:35:04 +00:00
Antony Dovgal bb2ccc96d3 fix tests 2011-05-04 08:44:14 +00:00
Antony Dovgal 968d49ae65 fix test 2011-05-04 08:28:31 +00:00
Antony Dovgal 829d08e50c fix CLI tests failing because of new OB API 2011-05-04 08:24:16 +00:00
Dmitry Stogov fbe8cf9a40 Fixed crash when passing invalid timestamp (negative integer on win32) 2011-05-04 07:53:22 +00:00
Antony Dovgal 354cb67597 fix tests 2011-05-03 11:15:30 +00:00
Felipe Pena 48cb3447bb - Fixed ZTS build 2011-05-01 19:22:24 +00:00
Gustavo André dos Santos Lopes 6d9d7af86f - Fixed bug #54580 (get_browser() segmentation fault when the browscap ini
directive is set in activation time). This commit fixes this by adding a per
  request parsing of the browscap file that's when get_browser is called the
  first time and the directive is set on activation time.w
2011-05-01 18:37:20 +00:00
Gustavo André dos Santos Lopes 8dfe15a12e - Fixed accidental change. 2011-05-01 04:16:28 +00:00
Gustavo André dos Santos Lopes 93f65cdeac - Fixed bug #54623 (Segfault when when writing to a persistent socket after
closing a copy of the socket).
2011-05-01 03:57:01 +00:00
Derick Rethans 9c285fddbb - Updated to version 2011.7 (2011g) 2011-04-30 20:18:51 +00:00
Gustavo André dos Santos Lopes c2d392e934 - Fixed build on Solaris. 2011-04-30 15:56:07 +00:00
Gustavo André dos Santos Lopes a6c9737749 - Fixed SKIPIF section missing a semicolon. 2011-04-30 15:54:44 +00:00
Peter Cowburn e77bd31f3f fix method name in JsonSerializable exception message 2011-04-30 12:57:23 +00:00
Ilia Alshanetsky 118695a4ea #doc
Added 3rd parameter to filter_var_array() and filter_input_array() 
functions that allows disabling addition of empty elements
2011-04-28 12:32:47 +00:00
Rasmus Lerdorf 53204a26d2 Fix test by pointing this at a smaller file that is less likely to break the test 2011-04-27 21:27:31 +00:00
Rasmus Lerdorf c09f0822fd Fix broken test 2011-04-27 15:08:44 +00:00
Hannes Magnusson 1f3771ef68 Regenerate from the doc sources 2011-04-27 09:29:10 +00:00
Martin Jansen 0c8438462c The project calls itself OpenSSL and not openSSL, so let's keep it
that way in our code as well.
2011-04-25 16:50:30 +00:00
Pierre Joye b948b7d8ea - keep node creation check 2011-04-25 09:31:00 +00:00
Pierre Joye c8542ceac6 - keep inode creation check 2011-04-25 09:28:08 +00:00
Dmitry Stogov 9fb4cd1a91 Fixed bug #54585 (track_errors causes segfault) 2011-04-25 07:50:07 +00:00
Rasmus Lerdorf 380c3e5127 SSLV2 patch cleanup 2011-04-24 23:27:48 +00:00
Pierre Joye 6336b28019 - fix use of unitiliazed var 2011-04-24 22:08:11 +00:00
Rasmus Lerdorf f1806e67e6 Support for openssl without SSLv2 supprot compiled in. Distros are starting to
remove support now and this wasn't compiling anymore on my Debian dev box.
2011-04-24 20:47:22 +00:00
Hannes Magnusson 999790a842 2011 2011-04-23 21:14:10 +00:00
Hannes Magnusson cc8ac4ec00 its force-quit, not -exit (yawk) 2011-04-23 21:12:25 +00:00
Dmitry Stogov 821d7169d9 Fixed bug #54367 (Use of closure causes problem in ArrayAccess). 2011-04-20 12:59:18 +00:00
Pierre Joye 11941b3fd2 - not desired yt 2011-04-19 21:57:01 +00:00
Pierre Joye 600c9498f9 - fix build >(btw, has novell man pages too?) 2011-04-19 21:43:22 +00:00
Hannes Magnusson 988b8a9cbe Add an --man-dir to php-config too 2011-04-18 11:13:37 +00:00
Hannes Magnusson e9bc36522a Expose PHP_MANDIR
Useful for apps (like the pear installer, phd, .. etc) to install their manpages into the same dir as php did :]
2011-04-18 09:50:32 +00:00
Felipe Pena b57d9f41cf - Fixed ZTS build 2011-04-17 22:06:27 +00:00
Stanislav Malyshev 3440d853c7 implement FR #54540 - Allow loading of arbitrary resource bundles when fallback is disabled 2011-04-17 21:56:26 +00:00
Rob Richards 944a2b0c80 Implement FR #48587 (MySQL PDO driver doesn't support SSL connections) 2011-04-15 14:24:40 +00:00
Dmitry Stogov 50ce16deff Fixed bug #54268 (Double free when destroy_zend_class fails) 2011-04-15 12:43:20 +00:00
Dmitry Stogov 8fe3ea75cb Changed initialization order to workaround against crashes after memory overflow 2011-04-15 09:59:42 +00:00
Dmitry Stogov e623543452 Improved GC to avaid reconstruction of HashTables for object properties 2011-04-15 09:57:43 +00:00
Felipe Pena 07f60310b2 - Remove undesired line (reported by Gökhan Özbulak) 2011-04-13 13:38:52 +00:00
Stanislav Malyshev c4a8866abb fix bug #54238 (use-after-free in substr_replace()) 2011-04-13 06:32:41 +00:00
Ilia Alshanetsky 465ffa7fa2 Fixed bug #54121 (error message format string typo). 2011-04-12 18:33:08 +00:00
Boris Lytochkin b1d9284901 fix typo 2011-04-12 08:00:14 +00:00
Gustavo André dos Santos Lopes 09b990f499 - Fixed bug #54440: libxml extension ignores default context. 2011-04-09 18:32:55 +00:00
Gustavo André dos Santos Lopes db01e840c2 - Fixed bug #54494: mb_substr() mishandles UTF-32LE and UCS-2LE. 2011-04-09 16:59:36 +00:00
Sebastian Bergmann 6f3148db81 Add optional argument to debug_backtrace() and debug_print_backtrace() to limit the amount of stack frames returned. 2011-04-09 09:52:24 +00:00
Dmitry Stogov efcb9a71cd - Fixed bug #54358 (Closure, use and reference)
- Fixed bug #54039 (use() of static variables in lambda functions can break staticness)
2011-04-08 10:02:07 +00:00
Dmitry Stogov 77ed819430 Fixed bug #54323 (Accessing unset()'ed ArrayObject's property causes crash) 2011-04-07 14:52:30 +00:00
Dmitry Stogov d3274b7f20 Missed tests 2011-04-07 14:34:07 +00:00
Dmitry Stogov 2e25ec9eb7 Fixed bug #54372 (Crash accessing global object itself returned from its __get() handle) 2011-04-07 13:35:27 +00:00
Adam Harvey 187eb235fe Implement FR #54459 (Range function accuracy) by changing the way range()
calculates values when used with floating point bounds/step.
2011-04-06 10:23:06 +00:00
Gustavo André dos Santos Lopes 18d71a6f59 - Updated UPGRADING now that multicast support was decided
trunk only.
2011-04-06 10:17:52 +00:00
Boris Lytochkin bbb4f679ae * Net-SNMP version detection and proper processing
* more UCD-SNMP-related code removal
2011-04-06 06:58:25 +00:00
Boris Lytochkin cab643f615 * added detection and walkaround for net-snmp library bug (net-snmp BUGid 2027834)
* drop UCD-SNMP support, R.I.P.
2011-04-05 12:20:35 +00:00
Pierrick Charron 1368364469 Fix common typos in the source code (Reported in Bug #54065)
# External libraries were excluded
# Thanks eitan at eitanadler dot com for the first patch :)
2011-04-03 21:46:52 +00:00
Felipe Pena 9e05a9ad13 - Removed unused variable (Pierrick) 2011-04-03 17:20:34 +00:00
Ilia Alshanetsky 063aba2e65 Fixed bug #53037 (FILTER_FLAG_EMPTY_STRING_NULL is not implemented). 2011-04-03 16:30:31 +00:00
Pierrick Charron 5a8c917c37 Fixed bug #54454 (substr_compare incorrectly reports equality in some cases) 2011-04-03 07:18:27 +00:00
Felipe Pena 70075bc84c - Improved message and version checking 2011-04-02 01:24:53 +00:00
Pierre Joye 599d9134fc - add CURLINFO_REDIRECT_URL 2011-04-01 17:19:08 +00:00
Pierre Joye 4aac903e61 - [doc] add ini option to set the default cainfo file, in case none was set at compile time 2011-04-01 17:10:52 +00:00
Derick Rethans fee45b7a5f - Updated to version 2011.5 (2011e) 2011-04-01 11:24:49 +00:00
Pierre Joye 6aed81764e - fix bug #54423, fix build in trunk, introduce by previous related commit 2011-03-31 23:58:06 +00:00
Antony Dovgal 6e7a3015e5 fix bug #54423 (classes from dl()'ed extensions are not destroyed) 2011-03-31 11:59:34 +00:00
Pierre Joye 27c0221dc9 - not used on win 2011-03-30 09:46:56 +00:00
Pierre Joye f7249e7c5c - fix build, should fix that code too on non win (wondering if that part was working at all) 2011-03-30 09:46:20 +00:00
Pierre Joye 38bbbe3417 - attempt to fix build, 1st error 2011-03-30 09:42:21 +00:00
Pierre Joye b7a99bbbb8 - fix build 2011-03-30 09:25:09 +00:00
Christopher Jones 92ecff668f Refactor OCI8 config.m4: improve messages and merge similar conditionals 2011-03-29 21:37:45 +00:00
Felipe Pena 5def890d4d - Fixed bug #44989 (64bit Oracle RPMs still not supported by pdo-oci)
patch by: jbnance at tresgeek dot net
2011-03-29 18:40:20 +00:00
Pierre Joye 264d2b3480 - Fixed bug #48465 (sys_get_temp_dir() possibly inconsistent, windows fix 2011-03-28 16:43:49 +00:00
Pierre Joye 0625b3882d - re enable static analyzer, crash fixed with snapshot builds 2011-03-28 10:55:34 +00:00
Nuno Lopes 301eda5b6d MFB (r309775): fix last commit 2011-03-28 09:11:28 +00:00
Gustavo André dos Santos Lopes f7b7b6aa9e - Improved upon r309729.
- Extented strategy to remaining the classes on spl_directory.c, even those that don't crash.
- UPGRADING.
- Better bug54384.phpt, with all the classes covered.
2011-03-27 22:44:34 +00:00
Arnaud Le Blanc 11efb7295e UPGRADING 2011-03-27 20:24:40 +00:00
Arnaud Le Blanc b83e243c23 Added CallbackFilterIterator and RecursiveCallbackFilterIterator classes
[DOC] This is a concrete FilterIterator which takes a callback as
constructor parameter, and uses this callback for filtering. This allows
to use FilterIterator without extending it.

CallbackFilterIterator Example:

$it = new ArrayIterator(range(1,100));
$it = new CallbackFilterIterator($it, function($value) {
	return $value % 2;
});
foreach($it as $value) // ...

RecursiveCallbackFilterIterator Example:

$it = new RecursiveDirectoryIterator("/");
$it = new RecursiveCallbackFilterIterator($it, function($file, $k, $it) {
	return $it->hasChildren() || $file->getSize() > 1024;
});
foreach(new RecursiveIteratorIterator($it) as $file) // ...

The callback takes the current value, the current key and the inner
iterator as parameters.
2011-03-27 20:13:27 +00:00
Felipe Pena 2191af9546 - Fixed compiler warnings 2011-03-27 18:14:58 +00:00
Boris Lytochkin 907244a822 added info about changes in SNMP extension 2011-03-27 09:44:38 +00:00
Gustavo André dos Santos Lopes c2fe893985 - Fixed bug #54384: Several SPL classes crash when parent constructor is
not called.
#Merge to 5.3 pending (slight BC break on AppendIterator, as it's no
#longer possible to defer the call to the parent constructor until
#after the constructor is performed).
#Bugs fixed in an atypical way for SPL. The parent constructor call
#check is performed at construction time by using a wrapper constructor
#instead of a check on the beginning of each instance method.
#Perhaps this should be uniformized in trunk; this method was mainly
#applied only to the ones crashing, except a few iterators (at least
#AppendIterator and RecursiveIteratorIterator).
2011-03-27 04:21:06 +00:00
Felipe Pena 3acdca4703 - Fixed bug #54395 (Phar::mount() crashes when calling with wrong parameters) 2011-03-26 17:02:34 +00:00
Ulf Wendel 8138f7de40 Update of mysqlnd version. This has been forgotten when introducing set_autocommit, tx_commit, tx_rollback calls (http://svn.php.net/viewvc?view=revision&revision=308669). 2011-03-25 10:45:28 +00:00
Andrey Hristov 133ba9b5dd fix buffer overflow - overwriting with 0x0, due to
unchecked buffer size. This can be easily workarouned on 
existing unpatched systems by increasing
mysqlnd.net_cmd_buffer_size ini variable to more than 8k
2011-03-24 16:12:18 +00:00
Ulf Wendel 38fd7f48d0 Limit test with 65k params, should crash mysqlnd 2011-03-24 13:40:06 +00:00
Ilia Alshanetsky e42662039f Fixed a crash inside dtor for error handling. 2011-03-24 12:57:38 +00:00
Felipe Pena 39e0aa4dc6 - Fixed bug #54292 (Wrong parameter causes crash in SplFileObject::__construct()) 2011-03-23 22:46:04 +00:00
Christopher Jones 0a4d7e88c9 Fixed bug #54084 (Fix apxs Apache version test to work with Oracle HTTP Server) (Chris Jones) 2011-03-23 18:56:47 +00:00
Andrey Hristov e7a5fb405e Fix compressed build, make it easier 2011-03-23 17:14:28 +00:00
Adam Harvey 72d740f8fa Implement request #54355 (Test for de_DE doesn't use UTF-8 locales). Patch by
Ondřej Surý.
2011-03-23 08:59:11 +00:00
Ulf Wendel 1eb3bdd802 Coverage for a 'silent server protocol change' from the past for which both mysqlnd and libmysql have workarounds. 2011-03-23 08:57:52 +00:00
Adam Harvey b2d384355d Bah, these should have been in the last commit too. Update expected output for
further tests that now generate warnings after r306931.
2011-03-23 08:48:32 +00:00
Adam Harvey f9b8088349 Update test that now generates a warning after r306931, which increased the
error you get when silently casting an empty variable to an object to an
E_WARNING from E_STRICT.
2011-03-23 08:43:36 +00:00
Felipe Pena 2adf58cfcf - Fixed bug #54283 (new DatePeriod(NULL) causes crash) 2011-03-23 01:22:18 +00:00
Gustavo André dos Santos Lopes 63673a533f - Updating UPGRADING for r309516 and modest merge to 5.3. 2011-03-23 00:51:22 +00:00
Felipe Pena 11c4a5b96a - Fixed bug #54281 (Crash in non-initialized RecursiveIteratorIterator) 2011-03-22 22:41:16 +00:00
Andrey Hristov 3ffac762b0 palloc is long dead, use more appropriate name 2011-03-22 14:39:58 +00:00
Andrey Hristov a6d4f047d4 Fix message 2011-03-22 14:39:36 +00:00
Andrey Hristov cfb01aab63 remove more unneeded includes 2011-03-22 12:54:02 +00:00
Andrey Hristov 15fd9c4f58 remove unneeded includes 2011-03-22 12:22:16 +00:00
Adam Harvey 9de1ad4cd2 Fix bug #54318 (Non-portable grep option used in PDO pgsql configuration).
Patch by Ben Walton <bwalton at artsci dot utoronto dot ca>.
2011-03-22 09:12:01 +00:00
Adam Harvey 991ba13174 Fix bug #54340 (DateTime::add() method bug). 2011-03-22 08:33:22 +00:00
Gustavo André dos Santos Lopes 0de2e61cab - Added socket_import_stream().
- Fixed socket_strerror.phpt
- Made php_set_sock_blocking return FAILURE on fcntl error.
- Made socket_set_block()/socket_set_nonblock() emit warning on error.
2011-03-22 00:44:23 +00:00
Andrey Hristov 3afdf62df0 throw out legacy code, that never was used for something
useful. Was added for QC but QC is now a plugin, not part of
the core.
2011-03-21 13:58:11 +00:00
Adam Harvey e1c16f119c Fix bug #54316 (DateTime::createFromFormat does not handle trailing '|'
correctly).
2011-03-21 09:40:52 +00:00
Gustavo André dos Santos Lopes 7f2937223d - Make fclose() actually close stream, even when the resource refcount is > 1.
This reverts the fix for bug #24557.
- Make php_stream_free delete the stream from the resources list, not merely
  decrease its refcount, as a single call to zend_list_delete does.           
#Not worth the risk merging to 5.3. While change #2 may prevent some segfaults,
#a quick and dirty survey to the codebase only showed calls to php_stream_close
#or php_stream_free on streams allocated in the same function, which would have
#refcount == 1. May be reconsidered.
2011-03-21 02:58:54 +00:00
Gustavo André dos Santos Lopes 2034e14341 - Fixed SKIPIF section of bug52820.phpt. 2011-03-20 22:15:43 +00:00
Gustavo André dos Santos Lopes bc13636bfe - Fixed SKIPIF section of bug51958.phpt. 2011-03-20 22:12:11 +00:00
Boris Lytochkin 14eaa5ac58 follow CS:
- method set_security should be named as setSecurity
 - SNMP_VERSION_2C constant
2011-03-20 20:07:33 +00:00
Gustavo André dos Santos Lopes 547a96090f - Fixed bug #54332 (trunk only, null pointer deref due to information loss on long to int conversion)
- Fixed some int* pointers being passed as size_t*.
2011-03-20 15:15:08 +00:00
Gustavo André dos Santos Lopes 2ddfe19120 - Normalized line endings, added native eol-style. 2011-03-20 02:05:41 +00:00
Gustavo André dos Santos Lopes c9d397d59f - Adding copyright headers to the new files, gotta do something about the
windows line endings too, but I'm separating the commits.
2011-03-20 02:03:29 +00:00
Gustavo André dos Santos Lopes 8deb11c0c3 - Fixed bug #54291 (Crash iterating DirectoryIterator for dir name starting
with \0).
2011-03-19 23:15:04 +00:00
Boris Lytochkin 5d0c948296 revert r309111 (name_len was not a typo) 2011-03-19 20:50:39 +00:00
Felipe Pena 179b9d0f63 - Fixed bug #54312 (soap_version logic bug)
Patch by: tom at samplonius dot org
2011-03-19 17:36:01 +00:00
Raphael Geissert a286fa3523 Add the libraries we actually test and need for LDAP and OpenSSL, fixes bug #53339
Patch by Clint Byrum
2011-03-18 18:47:09 +00:00
Andrey Hristov f06443593e add a proxy for sppintf and vspprintf 2011-03-18 14:56:20 +00:00
Andrey Hristov c90df5850b WS 2011-03-18 13:55:25 +00:00
Andrey Hristov 2d2d1c7335 new function/methods - mysqlnd_stmt_flush. Removing
code duplication
2011-03-18 13:35:33 +00:00
Andrey Hristov ca5df2a8bb less trace info 2011-03-18 12:33:17 +00:00
Andrey Hristov 8c14436f73 split mysqlnd_debug.c in 3 files 2011-03-18 11:58:46 +00:00
Gustavo André dos Santos Lopes ff0fe17725 - Replaced calls to getprotobyname by constants to avoid
unnecessarily hitting /etc/protocols on MINIT.
2011-03-17 22:21:59 +00:00
Ulf Wendel afdcb5ecb4 Test coverage for some of the cases where LAST_INSERT_ID() and API *_insert_id() differ as documented in the MySQL manual in particular the C API reference section 2011-03-17 15:18:22 +00:00
Andrey Hristov d903915f93 Fix for bug #54221 mysqli::get_warnings segfault when used in multi queries 2011-03-17 10:28:53 +00:00
Dmitry Stogov b60e4fe4f0 Fixed bug #54265 (crash when variable gets reassigned in error handler) 2011-03-16 15:21:38 +00:00
Andrey Hristov 34846cff4d Remove unused macros 2011-03-16 14:10:59 +00:00
Andrey Hristov 5d9b15feb1 allocate persistently 2011-03-16 12:42:59 +00:00
Andrey Hristov 4a38256394 compiler warnings fixed 2011-03-16 11:51:56 +00:00
Dmitry Stogov 8c06867e11 Fixed bug #54262 (Crash when assigning value to a dimension in a non-array) 2011-03-16 11:14:33 +00:00
Stanislav Malyshev a5b9eda06a fix UMR when setting forward string offset 2011-03-16 05:41:50 +00:00
Stanislav Malyshev 8efa208e0b fix UMR when variable name is an object and __toString is used
# zend_call_function checks IS_REF on This
2011-03-16 05:25:02 +00:00
Pierre Joye 406dd6e8ca - windows only 2011-03-15 17:14:32 +00:00
Pierre Joye 9319359dc9 - make setlocale thread only, drastically reduce TS related crashes in error mgt and other parts like pcre, and actually a good thing (tm) 2011-03-15 17:13:44 +00:00
Gustavo André dos Santos Lopes 76dd2d8e2c - Fixed bug #51958: socket_accept() fails on IPv6 sockets.
#On hold for 5.3
2011-03-14 22:59:05 +00:00
Derick Rethans 8553a94476 - Updated to version 2011.4 (2011d) 2011-03-14 18:56:02 +00:00
Dmitry Stogov 4c7c9df815 Fixed multibyte related issues 2011-03-14 16:02:04 +00:00
Dmitry Stogov bbc879b587 Fixed multibyte related issues 2011-03-14 16:00:59 +00:00
Felipe Pena 0be5ca5b3c - Missing fixes for bug #54247 2011-03-14 14:12:42 +00:00
Felipe Pena fe91aeaaac - Fixed bug #54247 (format-string vulnerability on Phar) 2011-03-14 13:54:41 +00:00
Gustavo André dos Santos Lopes e4298bf0fb - Added multicast support to the sockets extension (bug #40510). 2011-03-14 00:08:29 +00:00
Felipe Pena cedd0a7224 - Fix infile return on duplicated key (related to bug #54242) 2011-03-13 14:57:19 +00:00
Felipe Pena 5500c1cc17 - Fixed bug #54242 (dba_insert returns true if key already exists) 2011-03-13 14:21:58 +00:00
Felipe Pena 03b63d57be - Fixed ZTS build 2011-03-13 14:19:31 +00:00
Pierrick Charron 4a0831743d Remove unused variable 2011-03-13 05:25:45 +00:00
Pierrick Charron 6e74d95f34 Fixed bug #54180 (parse_url() incorrectly parses path when ? in fragment) 2011-03-13 04:02:56 +00:00
Boris Lytochkin d890ece3fc fix typo in SNMP_SNPRINT_VALUE usage: use val_len, not name_length 2011-03-11 07:21:13 +00:00
Sebastian Bergmann 2a94e04aeb Fix prototype of zend_fetch_debug_backtrace(). 2011-03-11 03:52:39 +00:00
Eyal Teutsch adecc80459 fixed tests to match the new float precision of 53, as described in bug 47168 2011-03-10 13:25:19 +00:00
Scott MacVicar a5339945c6 Add a version number to timelib for other projects that use it.
This has the same version scheme as timezonedb.

<year><release-padded-to-two>
2011-03-09 20:06:52 +00:00
Jim Jagielski 24126fa2df Close [PHP-BUG] Req #54152...
Apache 2.3.12 (and later) will now work correctly with PHP's fcgi
impl with this patch.
2011-03-09 18:53:22 +00:00
Felipe Pena 67fa13a3ca - Fixed bug #49608 (Using CachingIterator on DirectoryIterator instance segfaults) 2011-03-08 19:56:29 +00:00
Felipe Pena 9c61d0a6dd - Version++ 2011-03-08 18:24:04 +00:00
Antony Dovgal d3843846f3 fix typppo 2011-03-08 14:53:38 +00:00
Felipe Pena 4fcffb5443 - Fixed bug #54193 (Integer overflow in shmop_read()) 2011-03-08 13:11:14 +00:00
Derick Rethans a37cf682d8 - Updated to version 2011.3 (2011c) 2011-03-07 14:55:28 +00:00
Sebastian Bergmann 5c8d76680c Fix speling. 2011-03-06 21:47:46 +00:00
Moriyoshi Koizumi b2ddc6de23 Fix ZTS build. 2011-03-06 07:06:55 +00:00
Moriyoshi Koizumi cdb9ee0d1a Fix zend.multibyte oddities. Hope this will address all the known problems. 2011-03-06 07:00:30 +00:00
Felipe Pena 6ba343aeff - Fixed bug #54167 (PDO_DBLIB returns null on SQLUNIQUE field)
# initial patch by: mjh at hodginsmedia dot com (5.3)
# trunk version by me
2011-03-05 23:07:45 +00:00
Boris Lytochkin 8e600b817e * tune snmp2_walk.phpt
* more net-snmp v5.3 compatibility (OPAQUE_SPECIAL_TYPES)
2011-03-04 19:23:25 +00:00
Boris Lytochkin 3c0f1d5b95 * fix warning about redefining REGISTER_PDO_CLASS_CONST_LONG (damn copy'n'paste)
* tuned two unit test that failed at gcov.php.net/PHP_HEAD
2011-03-04 18:58:01 +00:00
Johannes Schlüter 50c2dff89d - Be more consistent in these instructions 2011-03-03 13:23:05 +00:00
Boris Lytochkin 661b552938 fix warnings mentioned in 'Parameter Parsing Report' 2011-03-02 22:12:02 +00:00
Moriyoshi Koizumi f093c7db8d - Enable windows build system to accept paths containing spaces. 2011-03-02 05:22:22 +00:00
Felipe Pena 18097605b7 - Fixed SplObjectStorage::offsetSet arginfo, reported in bug #54118 2011-03-01 00:13:23 +00:00
Ilia Alshanetsky 1d984a7ffd Fixed bug #54089 (token_get_all() does not stop after __halt_compiler). 2011-02-28 15:18:27 +00:00
Gustavo André dos Santos Lopes e65d361fde - Fixed bug #54092 (Segmentation fault when using HTTP proxy with the FTP
wrapper).
#php_stream->wrapperdata should hold an array zval (like its zval* type
#indicates...), it's not a place where the wrapper can drop an arbitrary
#pointer. For that, .wrapperthis should be used.
#Also, since the ftp dir wrapper defines its own stream type, it's more
#appropriate to use .abstract to store the stream instance specific data.
2011-02-27 20:23:54 +00:00
Felipe Pena 474dc5675c - Possible fix for Bug #54108 (valgrind can not be found if located outside of system's default PATH) 2011-02-27 17:55:39 +00:00
Boris Lytochkin e9920cce1c remove compiler warnings
fix various memory leaks seen with --enable-debug
2011-02-26 19:08:55 +00:00
Boris Lytochkin 1c65920819 * new methods get_errno, get_error to get errno and error string
of last SNMP-related error
* formatting markup
* some fixes in max_oids logic: NULL will set it to default value,
    do not allow non-positive user-supplied values
* unit tests for changes
2011-02-26 08:27:26 +00:00
Boris Lytochkin 3ab69c4cff fix parse errors for non_repeaters & max_repetitions: aligment errors 2011-02-25 19:22:15 +00:00
Andrey Hristov 2a9e82d020 even better fix 2011-02-25 16:55:27 +00:00
Andrey Hristov 5373a3949c fix plugin counting, this is trunk only 2011-02-25 16:44:39 +00:00
Andrey Hristov 59c5875f83 move from macros to functions, which can be overwritten, if needed 2011-02-25 12:25:36 +00:00
Pierre Joye 12bdec05a4 - fix regression (carsten_sttgt@gmx.de) 2011-02-25 11:28:33 +00:00
Nuno Lopes 8d2d7255ec MFB: fix lcov build (r308657) 2011-02-25 09:37:33 +00:00
Felipe Pena accc8eeefe - Fixed possible off-by-one overflow in ibase_gen_id() 2011-02-24 02:42:38 +00:00
Johannes Schlüter 7d0a6c3f8b - Fix tests. temp dir might be something other than /tmp 2011-02-22 14:49:32 +00:00
Pierre Joye 1dc32a24ce -not needed, buildconf helps... 2011-02-22 13:09:15 +00:00
Pierre Joye cb8d9f9c19 - missing files 2011-02-22 12:59:50 +00:00
Johannes Schlüter 960e265b6c Declare vars first. Fix Windows build. 2011-02-22 12:51:43 +00:00
Andrey Hristov 2e30412f20 fix invalid memory read. Thank you, valgrind 2011-02-21 16:24:37 +00:00
Pierre Joye 32c4a3a061 - fix bug #54061, memory leak in openssl_decrypt 2011-02-21 12:50:26 +00:00
Pierre Joye f922e31129 - fix bug #54061, memory leak in openssl_decrypt 2011-02-21 12:47:38 +00:00
Pierre Joye b526a6ef44 - fix bug #54060, memory leak in openssl_encrypt 2011-02-21 10:07:31 +00:00
Scott MacVicar ecb9d8019c Fix Bug #54058, invalid utf-8 doesn't set json_encode() in all cases 2011-02-21 08:09:02 +00:00
Gustavo André dos Santos Lopes 2a6968e43a - Fixed bug #54055 (buffer overrun with high values for precision ini
setting).
#This fix (for g/G/k/H modes) is done at a different level than that for the
#modes e/E/f/F, at a bit higher level and therefore with less coverage. I
#chose this because it addresses the problem where it is -- the calling function
#that passes a buffer too small to php_gcvt.
2011-02-21 06:53:24 +00:00
Gustavo André dos Santos Lopes b21f62eb2d - Removed dead defines. 2011-02-21 05:33:16 +00:00
Felipe Pena a47eb9a4d6 - Fixed memory leak in DirectoryIterator::getExtension() and SplFileInfo::getExtension() 2011-02-20 16:33:53 +00:00
Felipe Pena c4850dbf88 - Fixed bug #54040 (Logical && where & probably needed in spl_iterators) 2011-02-20 16:09:50 +00:00
Felipe Pena b98ceb5e40 - Fixed build 2011-02-19 16:32:00 +00:00
Johannes Schlüter 6c734a6b4c - Implement FR#53878 Interactive shell should work with shared readline extension
# This is useful w/ distributors who like to build all things shared or don't
# provide the readline extension. Or if a user pefers readline's behavior over
# libedit which might be used by the  distributor.
2011-02-19 16:04:30 +00:00
Boris Lytochkin 430af9a0ab push most of SNMP query options into objid_query structure 2011-02-19 11:13:10 +00:00
Gustavo André dos Santos Lopes a3a5157286 - PHP_STREAM_OPTION_WRITE_BUFFER no longer disables the read buffer of a plain
stream when 0 is given as the value.
- PHP_STREAM_OPTION_WRITE_BUFFER no longer changes the chunk size in socket
  streams.
- Added stream_set_chunk_size() function.
- Some signedness fixes.
- Test for commit r308474, now that it's possible to actually test it.
2011-02-19 01:28:37 +00:00
Gustavo André dos Santos Lopes 356b619487 - Fixed test to work in systems with different line endings. 2011-02-19 00:48:48 +00:00
Gustavo André dos Santos Lopes 3759331276 - Changed return value in userspace stream set_option to "not implemented",
instead of failure.
#Currently, there's no way to test this, because the only operations that have
#a default implementation, set_chunk_size and set_read_buffer are either not
#exposed or, in the 2nd case, completely delegated to the user implementation,
#which can only return true/false, not "not implemented" (and not implementing
#the set_option method in the userspace stream results in error).
2011-02-18 17:53:26 +00:00
Felipe Pena 3510be42b7 - Fixed bug #43512 (same parameter name can be used multiple times in method/function definition) 2011-02-17 23:24:50 +00:00
Boris Lytochkin 73f5ee551c enable HAVE_SHUTDOWN_SNMP_LOGGING 2011-02-17 12:12:22 +00:00
Boris Lytochkin 6b81a9ac2e * Fix memory leak on concurrent new, open
* change comments to ANSI-C style
* added compatibility with net-snmp prior 5.4
2011-02-17 12:02:16 +00:00
Johannes Schlüter 9cd4eb31d1 Some updates for the release process, mostly cvs->svn things 2011-02-17 10:06:31 +00:00
Gustavo André dos Santos Lopes 9bbc114b59 - Classes that implement stream wrappers can define a method called
stream_truncate that will respond to truncation, e.g. through ftruncate.
  Closes feature request #53888.
2011-02-17 00:25:32 +00:00
Andrey Hristov eb0dd2b8ab fixed a problem in mysqlnd. 0 was always as num_rows returned for
unbuffered sets (text protocol and PS).
2011-02-16 16:36:33 +00:00
Derick Rethans ef95075cdc - Updated to version 2011.2 (2011b) 2011-02-15 16:26:42 +00:00
Pierre Joye 2a7acc3f4d - fix the fix (Dmitry) and ensure that it builds everywhere, can someone test on solaris&co pls? 2011-02-15 14:02:26 +00:00
Pierre Joye 36671fe781 - unused var 2011-02-15 09:07:34 +00:00
Pierre Joye 6f6d60821e - fix intl build with ICU < 4.2, windows part 2011-02-15 08:48:24 +00:00
Pierre Joye 71f5af6c70 - fix build with ICU < 4.2, add ICU_VERSION for m4 checks 2011-02-15 08:28:03 +00:00
Felipe Pena b58c6f5ede - Fixed crash on unserialize(serialize(new SNMP)) 2011-02-15 00:07:26 +00:00
Felipe Pena aef9557333 - Fixed memory leak on serialize(new SNMP) 2011-02-14 23:58:52 +00:00
Felipe Pena be2bfd1bcf - Fixed memory leak 2011-02-14 23:43:22 +00:00
Hannes Magnusson d1d61ce612 Bug#54016 (finfo_file() Cannot determine filetype in archives) 2011-02-14 15:32:02 +00:00
Ilia Alshanetsky 86efc8e55e Fixed variable re-declarations 2011-02-14 14:05:46 +00:00
Dmitry Stogov 64351b7add Fixed Bug #53958 (Closures can't 'use' shared variables by value and by reference) 2011-02-14 10:52:16 +00:00
Pierre Joye 409c5a9c7b -Bug #54002, fix windows build, use the relevant values in the warnings 2011-02-14 09:40:10 +00:00
Pierre Joye dbccc8c112 - fix bug #54002, exif_read_data crashes on crafted tags 2011-02-14 09:08:44 +00:00
Dmitry Stogov b84967d3e2 Fixed Bug #53971 (isset() and empty() produce apparently spurious runtime error) 2011-02-14 08:46:53 +00:00
Felipe Pena f912a2d087 - Fixed bug #53991 (SimpleXMLElement::__construct shows no params via ReflectionMethod) 2011-02-11 21:10:48 +00:00
Christopher Jones 6e7e5dcde9 Show XFAIL reasons (Daniel Convissor) 2011-02-11 01:37:06 +00:00
Christopher Jones f0bc6f849b rm trailing whitespace 2011-02-11 01:34:03 +00:00
Daniel Convissor e718cfd09d Add DateInterval format() tests. 2011-02-11 01:33:45 +00:00
Daniel Convissor 07afcb59f6 Add extensive tests for DateTime::diff(), add() and sub(). 2011-02-10 22:57:41 +00:00
Pierre Joye afb36bb4eb - missing 2011-02-10 21:42:13 +00:00
Pierre Joye 628e946411 - missing 2011-02-10 21:40:50 +00:00
Scott MacVicar 18b7f018e3 Fix Bug #53963, error code isn't always set in certain error cases. 2011-02-09 08:05:00 +00:00
Gustavo André dos Santos Lopes efa9a8ee53 - Changed php.ini files to match the hard-coded default for serialize_precision. 2011-02-09 00:25:44 +00:00
Gustavo André dos Santos Lopes 257b994fdc - Changed default serialize_precision from 100 to 17, as discussed in internals. 2011-02-08 21:40:51 +00:00
Gustavo André dos Santos Lopes 077ee3a879 - Fixed bug #53959 (reflection data for fgetcsv out-of-date). 2011-02-08 16:29:34 +00:00
Antony Dovgal 09ee5944ab fix compile warning 2011-02-08 08:40:39 +00:00
Pierre Joye 169c5dc2b7 - Fixed bug #53893 (Wrong return value for ZipArchive::extractTo()) 2011-02-07 16:20:16 +00:00
Pierre Joye a0a603d16b - null deref fix 2011-02-07 10:25:34 +00:00
Pierre Joye 312235cdac - disable realloc warning about not checking its return value, 100% valid but way too many of them for now, reduce noises 2011-02-07 10:17:14 +00:00
Ilia Alshanetsky 6186c16449 Fixed parse_url() tests to account for port validation 2011-02-06 17:23:57 +00:00
Gustavo André dos Santos Lopes 426f31e790 - Changed port validation introduced in commit #308035 to consider
negative ports and ports > 65535 as invalid.
  The tests that fail due to #308035 in the standard ext were not
  fixed. If the behavior in those tests turns out to be the
  desirable one, both this commit and #308035 ought to be reverted
  or at least adapted.
2011-02-05 22:37:00 +00:00
Boris Lytochkin c50b3d7add fix crash caused by incorrect offset altering 2011-02-05 13:22:38 +00:00
Boris Lytochkin f69e1100ce added r/o info property with basic session info,
fix crash in _get_properties in trunk
2011-02-05 00:29:31 +00:00
Ilia Alshanetsky 109b8e99e0 Fixed bug #53924 (FILTER_VALIDATE_URL doesn't validate port number). 2011-02-04 21:41:15 +00:00
Adam Harvey 793cfe1376 Change the way HAVE_GLOB is dealt with in ext/zip per IRC conversation with
Pierre.
2011-02-04 11:51:29 +00:00
Adam Harvey fcc7922ff1 Fix bug #53923 (Zip functions assume HAVE_GLOB is defined). 2011-02-04 10:50:42 +00:00
Adam Harvey 6bc25ca285 Fix bug #53914 (SPL assumes HAVE_GLOB is defined). Original patch by Chris
Jones; test updates by myself.
2011-02-04 10:49:49 +00:00
Adam Harvey 2b4fb94e8e Fix bug #53913 (Streams functions assume HAVE_GLOB is defined). Patch by Chris
Jones.
2011-02-04 10:47:41 +00:00
Kalle Sommer Nielsen c5e86e5a8e Fix ZTS build 2011-02-03 23:57:59 +00:00
Scott MacVicar 0413cf5b48 XFAIL these for the moment, Kalle totally broke these in 298241
when removing register_globals
2011-02-03 17:07:48 +00:00
Scott MacVicar ca378eefa0 Add header_register_callback(), allows a userland function
to be called as all the headers are being sent and after all
of the default headers have been merged.

headers_list(), header_remove() and header() can all be used
inside the callback.

<?php

header('Content-Type: text/plain');
header('X-Test: foo');

function foo() {
  foreach (headers_list() as $header) {
    if (strpos($header, 'X-Powered') !== false) {
      header_remove('X-Powered-By');
    }
    header_remove('X-Test');
  }
}

$result = header_register_callback('foo');
echo "a";
2011-02-03 16:47:28 +00:00
Scott MacVicar ee9af39c90 Fix docblocks on SpoofChecker and remove exceptions after discussion with Stas. 2011-02-03 16:29:23 +00:00
Ilia Alshanetsky 7a23458c8e Fixed compiler warnings caused by var re-declaration 2011-02-03 13:33:10 +00:00
Gustavo André dos Santos Lopes 9e71bff701 - Simpler fix for bug #53915. 2011-02-03 12:45:30 +00:00
Gustavo André dos Santos Lopes f2329f1f4b - Fixed bug #53915: ReflectionClass::getConstant(s) emits fatal error on
constants with self::.
- Reflown some NEWS entries to have lines no longer than 80 chars.
2011-02-03 12:38:25 +00:00
Gustavo André dos Santos Lopes 1f49902999 - Fixed bug #53903 (userspace stream stat callback does not separate the
elements of the returned array before converting them).
2011-02-01 22:55:17 +00:00
Andrey Hristov 01745fa657 Fix more warnings about size_t 2011-02-01 19:30:22 +00:00
Gustavo André dos Santos Lopes c6ccc43285 - Fixed several comparisons that always result in true of false
due to signedness of one of the operands, either by removing
  dead code or fixing it.
- Thrown some comments around in php_stream_get_record.
- See http://www.mail-archive.com/internals@lists.php.net/msg49525.html
2011-02-01 18:11:16 +00:00
Andrey Hristov 44cd358f04 fix warnings. These checks are not needed because
param_no is unsigned, it wasn't in the beginning.
2011-02-01 16:55:20 +00:00
Gustavo André dos Santos Lopes 28cd40919d - Fixed bug #49072 (feof never returns true for damaged file in zip). 2011-02-01 14:43:52 +00:00
Ilia Alshanetsky 0927309852 Fixed bug #53898 (PHAR reports invalid error message, when the directory does not exist). 2011-02-01 14:01:00 +00:00
Pierre Joye fefe9fc5c7 - fix build, wrong version id 2011-02-01 13:57:06 +00:00
Pierre Joye fcdc76be21 - WS 2011-02-01 10:57:51 +00:00
Boris Lytochkin 2bc31f8027 preprocessed changes made in rev.307894:
keeping ext/snmp backwards compatible
2011-02-01 08:20:13 +00:00
Boris Lytochkin dc781e2520 - Improved SNMP extension:
. Allow ~infinite OIDs in GET/GETNEXT/SET queries. Autochunk them to max_oids
    upon request.
2011-02-01 07:45:30 +00:00
Felipe Pena ca9b3511f8 - Fixed build 2011-02-01 01:02:00 +00:00
Derick Rethans 73035c04af - Don't lower case setting names; some of them actually have upper case
characters.
2011-01-31 23:11:42 +00:00
Andrey Hristov 423000075f Add two new enums constants from the server 2011-01-31 13:52:21 +00:00
Andrey Hristov d82b05a64b Don't lose this data anymore. It worked without the fix,
but it with it is just correct (trunk only).
2011-01-31 13:29:18 +00:00
Kalle Sommer Nielsen ddcac10dd1 Fixed bug #53795 (Connect Error from MySqli (mysqlnd) when using SSL) 2011-01-31 12:47:28 +00:00
Kalle Sommer Nielsen c8a25b87f1 Use our own zend_strndup() implementation of strndup() -- Fixes build on platforms without strndup(), like Windows 2011-01-31 12:32:32 +00:00
Boris Lytochkin 5e82e334dd Improved SNMP extension. FR #53594 2011-01-31 11:41:33 +00:00
Stanislav Malyshev f0d42e74a9 fix bug 53885 (ZipArchive segfault with FL_UNCHANGED on empty archive) 2011-01-30 22:28:57 +00:00
Jérôme Loyet d7e9fdc199 - remove cpystrn from FPM and use strlcpy instead. 2011-01-30 13:51:20 +00:00
Stanislav Malyshev 1e91069eb4 Fix bug #52290 (setDate, setISODate, setTime works wrong when DateTime created from timestamp) 2011-01-30 10:18:12 +00:00
Stanislav Malyshev 5bb0a44e06 Fix bug #52808 (Segfault when specifying interval as two dates) 2011-01-30 08:54:53 +00:00
Jérôme Loyet 147382033a - Fixed bug #53434 (php-fpm slowlog now also logs the original request).
- Fixed the missing peace of code on revision 307842
2011-01-29 11:41:45 +00:00
Jérôme Loyet 4aa36e8914 - Fixed bug #53434 (php-fpm slowlog now also logs the original request). 2011-01-29 11:38:19 +00:00
Jérôme Loyet ca3126f1cc - Fixed bug #53777 (php-fpm log format now match php_error log format). 2011-01-29 10:13:24 +00:00
Adam Harvey 7c1a05917d Revert the UPGRADING change in r307807, since it's actually completely pointless, as Johannes pointed out. 2011-01-29 05:26:45 +00:00
Felipe Pena f6a3cd6f57 - Fixed bug #53748 (Using traits lead to a segmentation fault) 2011-01-28 21:19:09 +00:00
Felipe Pena 0e7c00f3a6 - Fixed bug #53867 (Test failure)
patch by: rquadling at php.net
2011-01-28 20:41:54 +00:00
Andrey Hristov 2e3e86b996 clear error before doing anything, because we can get
trapped by previous error :
php -r '$link = mysqli_init();
var_dump($link->real_connect("127.0.0.1", "unknown", "unknown"));
var_dump($link->real_connect("127.0.0.1", "known", "password"));'

shows the problem. The second connect did not work, as it should be.
2011-01-28 17:33:14 +00:00
Ulf Wendel 267bf9b31b Don't expect a certain server reply, it is undefined what happens. 2011-01-28 13:41:02 +00:00
Dmitry Stogov aa5055ba0f Added ability to connect to HTTPS sites through proxy with basic authentication using stream_context/http/header/Proxy-Authorization 2011-01-28 10:33:47 +00:00
Adam Harvey c5f06eff15 Fixed bug #53854 (Missing constants for compression type). Patch by Richard
Quadling.
2011-01-28 04:19:40 +00:00
Adam Harvey 6bf5a8593b Fix zip test. 2011-01-28 03:55:34 +00:00
Andrey Hristov c2887dd8f5 a better habitat 2011-01-27 18:51:12 +00:00
Andrey Hristov 942ea00eea fix a crash in new code 2011-01-27 17:30:29 +00:00
Ilia Alshanetsky 46ff954ca7 Added support for "extra" parameter for PGNotify(). 2011-01-27 16:02:30 +00:00
Scott MacVicar c10b7e3ac2 Fix crash with mbstring, this probably isn't the correct behaviour but 272/276 of the tests pass after this.
When mbstring.language is unset, it ends up being mbfl_no_language_neutral and there is no default when setting the encoding.

internal_encoding and current_internal_encoding then end up being null.
2011-01-27 11:47:31 +00:00
Pierre Joye 36854c3cad - Fix bug #53166, missing parameters in reflections/docs 2011-01-27 11:47:24 +00:00
Ulf Wendel b961a26705 Check PAM auth plugin build in to mysqlnd. I am afraid one cant do much better testing without making many assumptions on the server setup. 2011-01-25 17:00:30 +00:00
Derick Rethans e1a4b5439d - Let's keep this consistent in the whole file. 2011-01-25 15:08:19 +00:00
Ulf Wendel e5e8ca7f43 Handle deprecation messages differently in tests to reduce test differences between 5.3 and trunk: suppress warnings by default, check warnings in a dedicated test 2011-01-25 14:01:00 +00:00
Ulf Wendel 1d6d0f8aaf Always bail about deprecation, make warning visible. It is documented to be deprecated in the 5.3 manual but the deprecation warning was tied to trace_mode=1 (as of 2002 or the like). 2011-01-25 12:51:29 +00:00
Gustavo André dos Santos Lopes 4a946a91e5 - Fixed CHARSET_UNICODE_COMPAT (ISO-8859-1 is compatible in the relevant sense).
- Fixed usage of zend_multibyte_get_internal_encoding (its return cannot be
  cast to char*).
- Change tests to reflect that charset detection now relies on
  internal_encoding, not on current_internal_encoding.
  NOTE: This fixes the changes in rev 306077, but it remains that that change
  introduced a BC break. I assumed it was intentional
2011-01-25 10:57:07 +00:00
Ilia Alshanetsky 05b2d22a00 removed un-used variable 2011-01-24 20:58:09 +00:00
Derick Rethans 334c7417fb - Updated to version 2011.1 (2011a) 2011-01-24 16:45:56 +00:00
Andrey Hristov 2cdc51e580 fix typos 2011-01-24 13:59:28 +00:00
Andrey Hristov 4439bde560 small cleanups 2011-01-24 13:58:18 +00:00
Andrey Hristov ce4e6f4db5 Handle MySQL 5.5 authentication features.
Authentication protocol can be changed, a new raw
packet is introduced, which includes only the "encrypted"
data for the auth plugin, sent after change protocol (0xFE)
is sent to the client.
2011-01-24 12:34:47 +00:00
Stanislav Malyshev e7a2c9a85c Add imap_fetchmime 2011-01-24 03:52:00 +00:00
Stanislav Malyshev 68512f85c4 fix tests 2011-01-24 02:48:15 +00:00
Stanislav Malyshev 1a8b87d2c5 Fixed bug #5273 (Can't use new properties in class extended from DateInterval) 2011-01-24 02:31:48 +00:00
Stanislav Malyshev a6c0a4e474 Fixed Bug #52063 (DateTime constructor's second argument doesn't have a null default value) 2011-01-24 01:15:41 +00:00
Felipe Pena bc049ccb62 - Fix missing mkdir for bindir (patch by David Tajchreber) 2011-01-23 22:40:35 +00:00
Ilia Alshanetsky 9c29975e4d Fixed compiler warning 2011-01-23 16:44:58 +00:00
Pierre Joye 88a1f3988c - local redeclaration 2011-01-23 10:02:06 +00:00
Pierre Joye fc4853f34b - kill local redeclaration by using a less common name 2011-01-23 09:46:06 +00:00
Ilia Alshanetsky e3d1ab787f Fixed variable overloading 2011-01-20 19:32:36 +00:00
Felipe Pena 96996ec557 - Removed accidental changes 2011-01-20 12:32:41 +00:00
Pierre Joye 5c38e6cc40 - should not have been applied 2011-01-20 12:23:30 +00:00
Pierre Joye 657c934513 - don't continue if no valid option value 2011-01-20 07:38:00 +00:00
Pierre Joye e0af377bd8 - be sure that we got tzid by adding a default case 2011-01-20 07:05:34 +00:00
Pierre Joye 739a870b0d - fail when no known op are given 2011-01-20 06:58:04 +00:00
Pierre Joye 4ff753b99b - unused var 2011-01-20 06:55:11 +00:00
Pierre Joye 1e9faabe8e - fail when no known op are given 2011-01-20 06:54:28 +00:00
Pierre Joye eddf7586db - kill local redeclaration 2011-01-20 06:49:17 +00:00
Pierre Joye 3292399d27 - init err (and simplify) 2011-01-20 06:45:52 +00:00
Pierre Joye aac73eb84a - init err 2011-01-20 06:44:16 +00:00
Pierre Joye 966a82c776 - no need of assert here 2011-01-20 06:32:59 +00:00
Pierre Joye af0c734f4f - check if strdup succeeds 2011-01-20 06:23:35 +00:00
Philip Olson 2e3e65c5b7 Fixed a couple of trivial typos 2011-01-19 22:41:01 +00:00
Pierre Joye 9885f30873 - fix warning about undefined zend_multibyte_set_filter and zend_multibyte_yyinput_again, why are they not in zend_multibyte.h btw? 2011-01-19 21:40:15 +00:00
Pierre Joye a2a62aeb5f - force static, can't be built yet shared anyway 2011-01-19 21:19:45 +00:00
Pierre Joye 0297128ace - xp sp3 does not have them 2011-01-19 19:48:28 +00:00
Andrey Hristov 87a2104c1a fix ZTS build 2011-01-19 17:51:02 +00:00
Pierre Joye a27baa7161 - WS 2011-01-19 17:17:52 +00:00
Pierre Joye 3584bbee3b - avoid local redeclaration 2011-01-19 17:06:50 +00:00
Pierre Joye f47405315d - malloc may fail 2011-01-19 15:23:07 +00:00
Pierre Joye 458ce08ab3 - path len check and fix buffer overrun 2011-01-19 14:21:46 +00:00
Ilia Alshanetsky 86550a9fed Win32 build fix 2011-01-19 13:09:05 +00:00
Dmitry Stogov 10cfbb814f Added checks for malformated FastCGI requests (Edgar Frank) 2011-01-19 08:38:25 +00:00
Gustavo André dos Santos Lopes b9b1fb1827 - Hopefully finally fixed the mess in rev 307562 and rev 307563. 2011-01-19 00:22:06 +00:00
Pierre Joye 95388b7cda - fix regression introduced in 5.3.4 in open_basedir on windows/novell with trailing fwd slash 2011-01-18 22:20:09 +00:00
Gustavo André dos Santos Lopes f455f85e6c - Fixed wrong function call in original commit to FR #39771. 2011-01-18 19:56:09 +00:00
Gustavo André dos Santos Lopes 163b3bcec9 - Implemented FR #39771 (Made DOMDocument::saveHTML accept an optional
DOMNode like DOMDocument::saveXML).
2011-01-18 19:45:38 +00:00
Ilia Alshanetsky b5e12bd4da Fixed variable re-declaration 2011-01-18 13:17:23 +00:00
Pierre Joye 0c665f0996 - fix the fix (wrong test) 2011-01-18 10:29:26 +00:00
Jérôme Loyet 970fe5b71e - Enforce security in the fastcgi protocol parsing. 2011-01-17 22:22:39 +00:00
Pierre Joye 52aa5735f1 - path len sanity check 2011-01-17 14:29:16 +00:00
Pierre Joye a1b2df31d6 - don't try to access if calloc fails (quick review of its usage: seems that the stats member is validated in other places, to be confirmed) 2011-01-17 14:07:40 +00:00
Pierre Joye 59dc221530 - fix NULL derefencing 2011-01-17 14:01:01 +00:00
Ilia Alshanetsky 78b60fcc97 Fixed compiler warning 2011-01-17 13:44:54 +00:00
Ulf Wendel a55e03aaff Fix tests: don't expect people to use a certain db/schema for testing 2011-01-17 13:06:44 +00:00
Kalle Sommer Nielsen 5ba90aefb0 Added 'catalog' to the field fetching functions in mysqli (Thanks to Johannes for the headsup) 2011-01-17 10:43:53 +00:00
Kalle Sommer Nielsen dc8da85778 Remove this void comment (c/p mistake) 2011-01-17 09:59:07 +00:00
Kalle Sommer Nielsen 5d23cdd695 MFT: Implemented FR #47802 (Support for setting character sets in DSN strings) 2011-01-17 09:54:22 +00:00
Stanislav Malyshev 0c1ba13d3b Fix bug #47143, bug #51458 - provide more useful info in bad exception cases 2011-01-16 21:24:43 +00:00
Stanislav Malyshev b4dba12d34 Add options to debug_backtrace functions 2011-01-16 20:39:22 +00:00
Kalle Sommer Nielsen 2d9325ec2c Fix mysqlnd build 2011-01-16 15:44:48 +00:00
Andrey Hristov 16c6ce94d2 Update on the mysqlnd auth plugins, changed the plugin
structure and where they load themselves.
0xFE packets (method switch) needs to be done, additional
wire-level packet to be created to be parsed and the packet
doesn't fit the PACKET_OK structure anymore.
2011-01-14 20:04:17 +00:00
Andrey Hristov a3391dce9f merge from branch 2011-01-14 20:02:49 +00:00
Johannes Schlüter fc49f76caa - Fix #53551 (PDOStatement execute segfaults for pdo_mysql driver) 2011-01-14 14:57:57 +00:00
Antony Dovgal a89c446488 add missing dl() function to FPM SAPI 2011-01-14 13:53:59 +00:00
Andrey Hristov 5ca5c2bf43 Change things to allow passing of the password length
to mysqlnd. This is needed as a password might include
a \0 and thus we need to be binary safe.
2011-01-14 13:00:42 +00:00
Andrey Hristov 0048446fdd gcc barks about these, so clean it 2011-01-14 12:32:27 +00:00
Ilia Alshanetsky 93fd1bf53f Fixed variable re-declaration 2011-01-13 12:56:28 +00:00
Scott MacVicar b2c4503fbe intl: Add Spoofchecker cloning, fix typo in prototype, rename some variables and tidy syntax. 2011-01-13 07:46:59 +00:00
Scott MacVicar d90394851c Add Spoofchecker to intl extension.
Implements part of Unicode TR36 and TR39
2011-01-13 06:53:09 +00:00
Felipe Pena c6544fad1a - Fixed bug #53717 (checking the number of arguments is wrong in zend_parse_method_parameters_ex())
patch by: klaus at triendl dot eu
2011-01-12 22:17:10 +00:00
Andrey Hristov 429e07bba2 grok the MySQL 5.5 extended handshake.
Move the authentication routines, the native ones, to
separate file and encapsulate them in a plugin.
Depending on the server version and what the server
requests (or doesn't in old versions) load the authentication
plugin to handle it.
Currently only the 4.1+ authentication is supported. More to come
2011-01-12 21:40:05 +00:00
Derick Rethans 8e73b70806 - Fixed bug #53729 (DatePeriod fails to initialize recurrences on 64bit
big-endian systems). (Patch by rein@basefarm.no)
2011-01-12 19:50:09 +00:00
Ilia Alshanetsky a6a4751a88 Fixed variable re-declaration 2011-01-12 13:21:27 +00:00
Felipe Pena 189b042a01 - Fixed compiler warnings 2011-01-12 00:29:59 +00:00
Andrey Hristov ddbbcdce49 Use common code to handle initial authentication and
COM_CHANGE_USER
2011-01-11 13:02:57 +00:00
Ilia Alshanetsky d5af830385 Added missing success check around chmod() for windows during temp file creation 2011-01-11 12:57:19 +00:00
Pierre Joye f9c61024a5 - do not enable analyzer for snapshot 2011-01-10 21:04:50 +00:00
Ilia Alshanetsky 934e8d134c Fixed bug #53630 (Fixed parameter handling inside readline() function). 2011-01-10 18:19:02 +00:00
Andrey Hristov 00eaff1528 plug a leak 2011-01-10 15:28:52 +00:00
Andrey Hristov 61d49db1f3 new flag 2011-01-10 15:14:56 +00:00
Pierre Joye 80e5f0f774 - remove local redeclaration 2011-01-10 08:28:47 +00:00
Pierre Joye f25ab1bf9c - possible NULL deref 2011-01-10 08:07:38 +00:00
Pierre Joye f45b9c4a0b - local redeclaration 2011-01-10 01:04:36 +00:00
Pierre Joye 366e7170fa - WS 2011-01-10 00:59:19 +00:00
Pierre Joye 9a0771d846 - some more possible NULL deref 2011-01-10 00:43:08 +00:00
Pierre Joye 26bb38e68b - fix possible NULL deref 2011-01-10 00:30:07 +00:00
Pierre Joye eda798fd7a - add configure option to enable the builtin static analyzer (will be enabled for snaps' log) 2011-01-09 21:38:46 +00:00
Stefan Marr 478e5d1dd0 Added trait_exists() [TRAITS] [DOC]
- also changed class_exists() to return false for traits
- added related tests, and get_declared_traits() tests in ext/s/t/co
2011-01-09 19:57:41 +00:00
Pierre Joye 7c6310852e - let try to fix pecl header install so we can do the same than unix, install them in ext/<extname> instead of pecl<extname> 2011-01-09 14:01:21 +00:00
Rui Hirokawa b374b41c6f added an option to http_build_query for RFC-3986
based url-encoding.
2011-01-08 02:21:44 +00:00
Pierre Joye f3a4bfee8f - enable ASLR and NXCOMPAT by default 2011-01-07 20:50:33 +00:00
Kalle Sommer Nielsen 69a3575b38 Implemented FR #39847 (mysqli_fetch_[field|fields|field_direct] need to return db) 2011-01-07 18:25:55 +00:00
Kalle Sommer Nielsen ee62a1a747 Added test case for #47802 and fixed macro name after the move to mysql_options() 2011-01-07 17:18:30 +00:00
Pierre Joye cc6bb66dcd - define the php*.lib/dll names 2011-01-07 15:51:36 +00:00
Kalle Sommer Nielsen 1351c2e2c6 Update to use mysql_options() instead of mysql_set_character_set() (As suggested by Andrey) 2011-01-07 14:58:23 +00:00
Pierre Joye 7b330e0e96 - missing add header 2011-01-07 14:57:51 +00:00
Kalle Sommer Nielsen e4c36b054c Implemented FR #47802, support for character sets in DSN strings for PDO_MYSQL 2011-01-07 14:39:56 +00:00
Andrey Hristov 5549e066f2 Proper fix for
Bug #53503      mysqli::query returns false after successful LOAD DATA query
which fixes als #56349, same behavior but in ext/mysql. Both due to a bug
in mysqlnd. Never was a problem with libmysql.
Also fixed the 53503's test case as it always reported PASS, even when there
should have been a failure.
2011-01-07 14:22:30 +00:00
Adam Harvey abf0ea0110 Implement request #53684 (Deprecated HTML in sample php.ini). 2011-01-07 03:43:20 +00:00
Felipe Pena d3e6f27a76 - Fixed memory leak on SQLite3Result and SQLite3Stmt when assigning to a reference. 2011-01-07 01:11:16 +00:00
Rasmus Lerdorf dc444e8a37 Fix bug #53682 2011-01-06 22:48:20 +00:00
Adam Harvey 3571c955b5 Implement request #53659 (Implementing RegexIterator::getRegex() method). Patch
by Joshua Thijssen.
2011-01-06 02:32:02 +00:00
Adam Harvey e7a1d5004e Remove empty files left when r306542 was reverted in r306552. 2011-01-06 02:24:49 +00:00
Scott MacVicar ef0a793fdd Implemented FR #53466 (SQLite3Result::columnType() should return false after all of the rows have been fetched). 2011-01-06 00:08:59 +00:00
Etienne Kneuss 78728e33fa Implement SplObjectStorage::removeAllExcept (Patch by Matthey Turland) 2011-01-05 15:01:18 +00:00
Ilia Alshanetsky 92ce32032d Added test 2011-01-05 14:41:50 +00:00
Ilia Alshanetsky cd32d5792e Optimize unix timestamp to date-string conversion for very high year values 2011-01-05 04:13:23 +00:00
Pierre Joye 84b854a603 - revert rev. 307044 2011-01-05 00:59:31 +00:00
Scott MacVicar 8634d8ca2b Add test for bug #53632 2011-01-04 23:36:56 +00:00
Scott MacVicar bb08994d71 Fix bug #53632 with x87 fpu 2011-01-04 22:36:23 +00:00
Felipe Pena 8d8f6552ca - Fixed tests 2011-01-04 22:01:09 +00:00
Stanislav Malyshev 66f38ebac6 fix unit tests for intl in accordance with new ICU releases 2011-01-04 03:24:38 +00:00
Kalle Sommer Nielsen 79b997d7ba Fixed linking of extensions that would use a static .lib file (libname_a.lib rather than libname.lib)
# This fixes `configure --with-mcrypt=shared' to properly find and 
# link against libmcrypt.lib rather than libmcrypt_a.lib
2011-01-03 23:08:47 +00:00
Pierre Joye 2171932624 - useless commented code 2011-01-03 20:38:21 +00:00
Scott MacVicar 4212e4e90c Change DEBUG() to TIMELIB_DEBUG(), there are potential conflicts with other libraries that also use this. 2011-01-03 19:24:04 +00:00
Scott MacVicar aff978c223 Fix error with initialisation flag being set too early. If encryption is enabled and fails to decrypt a crash can occur.
Also fix a WS error.
2011-01-03 19:15:36 +00:00
Pierre Joye 95dbc9d3f0 - slightly cleaner 2011-01-03 15:36:39 +00:00
Pierre Joye 0ebbe5e450 - fix crash when argc > 1 and to_zval is NULL (thx tony for the headup) 2011-01-03 15:35:01 +00:00
Ilia Alshanetsky 7a2157cf37 Fixed Bug #53629 (memory leak inside highlight_string()). 2011-01-03 14:39:48 +00:00
Pierre Joye 0df43f2803 - kill c++ comment 2011-01-03 09:33:27 +00:00
Pierre Joye 63aae8a69b - stream output support for image outputs functions 2011-01-03 09:22:58 +00:00
Stanislav Malyshev 28584c233e Imlement clone for formatters that support it
# also some test fixes, more to follow
2011-01-03 03:58:57 +00:00
Pierre Joye e9bb7bbbd1 - missing file 2011-01-03 01:22:00 +00:00
Pierre Joye 7444576047 - we need the core config.w32 only once 2011-01-03 01:08:21 +00:00
Pierre Joye f7176f9cf0 - silent copy 2011-01-03 01:07:28 +00:00
Pierre Joye 17d05d0d57 - use the ext deps list for phpize's ADD_EXTENSION_DEP function 2011-01-02 18:29:56 +00:00
Pierre Joye 6008152caa - typo 2011-01-02 18:13:20 +00:00
Pierre Joye 163780af56 - generate a list of ext and how they are built, should be updated by phpize'd make (un)install as well, later 2011-01-02 18:03:00 +00:00
Pierre Joye 97c5d74d78 - missing file 2011-01-01 20:00:10 +00:00
Felipe Pena 7ae96bcf35 - Year++ 2011-01-01 02:51:18 +00:00
Felipe Pena d90a33d51c - Year++ 2011-01-01 02:46:03 +00:00
Felipe Pena 0203cc3d44 - Year++ 2011-01-01 02:17:06 +00:00
Scott MacVicar 6144da7e35 Silently casting an empty string, null or false into an object by adding a property
is pretty non-intuitive. If the same value was 1 or true you get a warning and it halts.

Since we can't break BC completely (yet) lets bump this from E_STRICT.

Also added a new section to UPGRADING for engine changes.

<?php
$x = '';
// $x = null;
// $x = false;
$x->baz = 1;
var_dump($x);

$y = 1;
$y->baz = 1;
var_dump($y);
2010-12-31 16:57:45 +00:00
Scott MacVicar c9c0de49a8 Add SQLite3_Stmt::readOnly for checking if a statement is read only 2010-12-31 16:37:12 +00:00
Gustavo André dos Santos Lopes c6af7fc7f4 - Do not violate php_stream abstraction and use php_stream_tell instead of accessing the field .position.
#Should have no behavior changes.
2010-12-30 19:00:19 +00:00
Hannes Magnusson a0ca628aa3 New test for stream_meta_data($zipstream) 2010-12-30 17:41:36 +00:00
Eyal Teutsch 6f8b1ce7c7 removed extra ?> from the FILE section 2010-12-30 14:36:01 +00:00
Pierre Joye 05be26d13a - WS 2010-12-28 17:20:10 +00:00
Andrey Hristov d8774af125 C89 fix 2010-12-28 16:41:39 +00:00
Andrey Hristov cfac5f5b67 extending the API interface - plugins can register
themselves with a structure and can be searched.
Every plugin can have statistics and they are shown
under the statistics of mysqlnd in MINFO.
2010-12-28 15:16:21 +00:00
Antony Dovgal 874954ed97 fix segfault when node is NULL 2010-12-27 21:47:52 +00:00
Antony Dovgal ae0e5a0c8c initialize script_encoding_list (reported by Gustavo Lopes) 2010-12-27 20:25:34 +00:00
Rob Richards 8029a7563c typo 2010-12-27 19:00:13 +00:00
Rob Richards 8bd6c63f66 fix crash with entity declarations 2010-12-27 18:57:49 +00:00
Gustavo André dos Santos Lopes 610bb96036 - Fixed bug #53612 (Segmentation fault when using several cloned intl
objects).
2010-12-27 01:10:08 +00:00
Eyal Teutsch 83ef8850a0 SplFileObject_fgetcsv files: SplFileObject__fgetcsv.csv used instead of SplFileObject::fgetcsv.csv, as to make this naming convetion windows legitimate 2010-12-26 13:29:29 +00:00
Eyal Teutsch f21100b7f9 fixed 6 tests to pass on non-linux os, by removing the generic linux error string from the exp result. on socket_strerror on the other hand, added to the SKIPIF a condition to run on linux only, as the test checks specifically various error strings 2010-12-26 13:10:23 +00:00
Eyal Teutsch 8533e37d0c using PWD which is supported by run-tests.php, rather than $cwd 2010-12-26 09:47:50 +00:00
Felipe Pena d88a9a3f80 - Fixed INI test section 2010-12-25 01:42:45 +00:00
Gustavo André dos Santos Lopes 44d0082823 - Fixed bug #53603 (ZipArchive should quiet stat errors).
#It is unclear if url_stat handlers should emit a warning in case
#PHP_STREAM_URL_STAT_QUIET is not specified and the resource does
#not exist. Most url_stat handlers never emit messages; the plain
#one does only so in the extraordinary event of an open_basedir
#restriction.
#But in case, php_stat uses PHP_STREAM_URL_STAT_QUIET for the
#FS_EXISTS, which suggests that mere checks on file existence are
#supposed to use this flag (arguably).
#The downside is that important diagnostic messages might be
#omitted.
2010-12-24 22:38:36 +00:00
Gustavo André dos Santos Lopes 3143828eb3 - Fix PCRE build on Windows; closes bug #53606. 2010-12-24 19:01:25 +00:00
Ilia Alshanetsky 15b7a4476a Upgraded\ bundled\ PCRE\ to\ version\ 8.11. 2010-12-24 15:03:29 +00:00
Moriyoshi Koizumi e540cb0c45 - Fix startup warnings. 2010-12-24 08:42:21 +00:00
Peter Cowburn 25f42c09b8 NEWS for FR #48767 (SplFileInfo::getExtension()) 2010-12-24 07:28:59 +00:00
Peter Cowburn 064a254483 Implemented FR #48767 (SplFileInfo::getExtension()) 2010-12-23 22:32:52 +00:00
Ilia Alshanetsky 73c49036ce Fixed compiler warning 2010-12-23 14:38:15 +00:00
Gustavo André dos Santos Lopes 063393f29b - Fixed bug #53592 (stream_socket_enable_crypto() busy-waits in client mode).
- Fixed stream_socket_enable_crypto() not honoring the socket timeout in
  server mode.
2010-12-23 01:44:54 +00:00
Ilia Alshanetsky 1d7294f73c Fixed bug #52209 (INPUT_ENV returns NULL for set variables (CLI)). 2010-12-22 16:18:59 +00:00
Moriyoshi Koizumi e8b1590667 - Fix build. 2010-12-22 10:25:33 +00:00
Gustavo André dos Santos Lopes 9b698dbcea - Revert of revision 306542, turns out the semantics of compare() are
different in SplMinHeap and SplMaxHeap.
2010-12-21 19:52:17 +00:00
Gustavo André dos Santos Lopes 4a11d76a75 - Fixed bug #53588 (SplMinHeap bad sorting with custom compare
function).
2010-12-21 17:29:14 +00:00
Moriyoshi Koizumi b0f8ac5299 - Update ini descriptions. It is still possible that zend.multibyte will be removed in the near future as it is confirmed to not impose any significant overhead with the standard configuration even when it is enabled. 2010-12-21 06:57:46 +00:00
Ilia Alshanetsky c9459ed7e7 Fixed compiler warnings 2010-12-20 23:00:11 +00:00
Rui Hirokawa 7f055f54a2 fixed compile error with VS2008. 2010-12-20 14:38:08 +00:00
Felipe Pena 7c9fb17d00 - Fix build 2010-12-20 12:41:35 +00:00
Hannes Magnusson bbd23afa98 Fixed bug#53579 (stream_get_contents() segfaults on ziparchive streams)
Also added the filename being access to the stream_get_meta_data() array
2010-12-20 11:00:27 +00:00
Stefan Marr d6ac811e5d Removed dead code.
# should not have been commited in the first place.
2010-12-20 08:49:59 +00:00
Moriyoshi Koizumi a304a0fc04 - Avoid allocating extra buffers. This makes parsing with zend.multibyte enabled as fast as with it disabled. 2010-12-20 03:16:09 +00:00
Moriyoshi Koizumi b09bb21292 - Fix a bug that the script gets wrongly converted into UTF-8 when the script encoding is not GL-safe. 2010-12-20 03:11:41 +00:00
Felipe Pena 3e3d7c52f0 - Fix build 2010-12-20 01:42:25 +00:00
Stefan Marr 7357867bac Added strict handling of properties in traits.
# This is the first attempt to implement the properties as discussed on the mailinglist.
# RFC is not updated to reflect this changes, yet.
2010-12-20 00:52:40 +00:00
Gustavo André dos Santos Lopes 433dff36d7 - Fixed bug #53574 (Integer overflow in SdnToJulian, sometimes leading to
segfault).
2010-12-19 23:47:00 +00:00
Stefan Marr d88515e1b8 Fixed naming of parameters, was inconsistent with implementation. 2010-12-19 22:13:41 +00:00
Moriyoshi Koizumi a57e59ed6c WS 2010-12-19 17:29:21 +00:00
Moriyoshi Koizumi 7cbe5f164a WS 2010-12-19 17:28:57 +00:00
Moriyoshi Koizumi bbf3d43c1e * Refactor zend_multibyte facility.
Now mbstring.script_encoding is superseded by zend.script_encoding.
2010-12-19 16:36:37 +00:00
Stanislav Malyshev c28cac404d Fix bad args to grapheme_extract(), reported by Maksymilian Arciemowicz 2010-12-19 05:07:31 +00:00
Jérôme Loyet e1dee992ee - Fixed bug #53527 (php-fpm --test doesn't set a valuable return value). 2010-12-18 11:22:11 +00:00
Gustavo André dos Santos Lopes 9a52c2f370 - Fixed bug #53568 (swapped memset arguments in struct initialization). 2010-12-17 23:05:26 +00:00
Jani Taskinen ddf42dde2f - Update credits 2010-12-17 10:48:47 +00:00
Jani Taskinen 116e097287 - Revert 2010-12-17 10:43:52 +00:00
Hannes Magnusson fc146c7352 Throw some credit around 2010-12-17 10:15:21 +00:00
Andrey Hristov b51abfb35f fix a small bug about affected_rows in the text protocol 2010-12-16 12:56:19 +00:00
Jani Taskinen dfb0e70844 - Typos, WS, CS 2010-12-16 12:25:27 +00:00
Andrey Hristov 47bb667a64 Fix sprintf modifier to be right, wrong data reported in the log 2010-12-16 12:18:54 +00:00
Gustavo André dos Santos Lopes c8622a07f5 - Adding enable_post_data_reading to php.ini-* 2010-12-16 11:27:17 +00:00
Derick Rethans 3a03c53dbd - Fixed a bug in DateTime->modify() where absolute date/time statements had no
effect.
2010-12-15 21:45:25 +00:00
Andrey Hristov 69894eaf80 count preciser in case of error 2010-12-15 14:14:58 +00:00
Pierre Joye 18deebed4b - we don't bundled fbclient, system version is used 2010-12-15 02:01:21 +00:00
Pierre Joye b25ded66ea - sync with 5.3 2010-12-14 23:21:53 +00:00
Ilia Alshanetsky 844a58dc3c Fixed compiler warning 2010-12-14 17:01:54 +00:00
Ilia Alshanetsky 9c30a3398a Fixed bug #53541 (format string bug in ext/phar). 2010-12-14 17:00:36 +00:00
Jani Taskinen ab80d4e4b7 - $_REQUEST is also JIT global now 2010-12-14 15:42:22 +00:00
Pierre Joye 52563ea0a3 - fix header install 2010-12-14 13:10:25 +00:00
Pierre Joye e79ed6359d - add nmake install-sdk (create the devel package) and related sub rules 2010-12-14 02:55:26 +00:00
Pierre Joye 269a6b09a3 -add a link to snmp install doc about the MIBS data, remove static or removed exts 2010-12-13 21:07:13 +00:00
Pierre Joye 31f97e2440 - no need to diplay that 2010-12-13 20:56:44 +00:00
Pierre Joye 4df03c1ded - phpize support merge from 5.3 2010-12-13 20:55:13 +00:00
Kalle Sommer Nielsen 15ee70e8e0 * Don't print the shared headers table after enabling each extension (cleaner configure output)
* Fix double slashes for directory targets in PHP_INSTALL_HEADERS()
2010-12-13 20:46:57 +00:00
Ilia Alshanetsky 1f13d55895 Fixed bug #48607 (fwrite() doesn't check reply from ftp server before exiting) 2010-12-13 16:53:26 +00:00
Kalle Sommer Nielsen d4b95b8bd6 Revert fix for bug #53493 to be compliant with the XML specification 2010-12-13 14:29:42 +00:00
Kalle Sommer Nielsen 1081bd1528 Fixed bug #53493 (xmlrpc_decode should not be sensitive to leading whitespace) 2010-12-13 09:52:05 +00:00
Stanislav Malyshev 91ad5e7369 add & fix tests for lenient parsing 2010-12-12 22:38:05 +00:00
Gustavo André dos Santos Lopes 52ea9da401 - Fixed bug #53530 (php_crypt tests gcc version incorrectly due to
typo) (vapier at gmail dot com)
2010-12-12 22:27:02 +00:00
Ilia Alshanetsky e90265ac97 Fixed bug #47435 (FILTER_FLAG_NO_RES_RANGE don't work with ipv6). 2010-12-12 19:54:21 +00:00
Ilia Alshanetsky 9696faa790 Fixed bug 48484 (array_product() always returns 0 for an empty array). 2010-12-12 19:27:04 +00:00
Ilia Alshanetsky c6bbf9ee57 Fixed bug #53150 (FILTER_FLAG_NO_RES_RANGE is missing some IP ranges) 2010-12-12 18:36:21 +00:00
Ilia Alshanetsky a7d8c0e2a5 sqlite3 lib news 2010-12-12 18:01:46 +00:00
Kalle Sommer Nielsen b016c7ded7 Fixed bug #53425 (mysqli_real_connect() ignores client flags when built to call libmysql)
# Based on patch by tre-php-net at crushedhat dot com
2010-12-12 18:00:25 +00:00
Derick Rethans 8ece8ad314 - Added the + modifier to parseFromFormat to allow trailing text in the
string to parse without throwing an error.
#- Patch by Stas, test case by me.
2010-12-12 17:17:16 +00:00
Stefan Marr d7c3c627e8 Changed E_ERROR to E_COMPILE_ERROR for Trait compilation errors.
#Thanks for catching this Kalle.
2010-12-12 17:12:29 +00:00
Derick Rethans bbc898e3fd - Keep extension order alphabetically
#- I guess that's what was intended?
2010-12-12 17:07:40 +00:00
Stefan Marr 1d2a63da5f Changed collision warning for Traits to fatal error.
#This change is made to have all possible cases of collisions consistently handled as fatal errors.
#The reason to have it fatal is that most likely something changed unexpectedly and needs urgent attention by the developer, since it will fail eventually anyway for instance because the expected method is missing in the class.
#Discussed in this thread: http://marc.info/?l=php-internals&m=129155790226876
2010-12-12 16:48:02 +00:00
Kalle Sommer Nielsen 7456f1d8f8 Fixed bug #53503 (mysqli::query returns false after successful LOAD DATA query) 2010-12-12 16:17:50 +00:00
Derick Rethans 457aba4460 - Fixed a few test cases
- Updated timezone mapping table; to remove unparsable timezones.
2010-12-12 16:06:41 +00:00
Eyal Teutsch 8e2475a787 moved the second unlink() to the CLEAN section in the SplFileObject_fwrite_variation* tests 2010-12-12 07:24:51 +00:00
Pierre Joye a7ffa09e18 - add PHP_INSTALL_HEADERS to all parts (core&exts) exposing headers, generate the install-headers cmd 2010-12-11 22:18:10 +00:00
Martin Jansen 02ff4766c9 * Fixed parameter check introduced with the recent fix for bug #53492.
* Improved the error message along the way.
2010-12-11 20:09:39 +00:00
Pierre Joye d94744649f - add install-lib(s), remove header for now, will be genarated 2010-12-11 16:36:27 +00:00
Ilia Alshanetsky 19f6577720 Upgraded bundled Sqlite3 to version 3.7.4. 2010-12-11 14:57:34 +00:00
Gustavo André dos Santos Lopes 4fe751e8e4 - Tests and small parsing correction for php://fd wrapper 2010-12-11 02:08:02 +00:00
Gustavo André dos Santos Lopes f73258223d - Implemented request #26158/bug #53465 (open arbitrary file descriptor with fopen) 2010-12-11 01:52:13 +00:00
Felipe Pena 13c99651fc - Fixed bug #53515 (property_exists incorrect on ArrayObject null and 0 values) 2010-12-10 23:58:33 +00:00
Felipe Pena 3c8bc996df - Fixed bug #53517 (segfault in pgsql_stmt_execute() when postgres is down)
patch by: gyp at balabit dot hu
2010-12-10 17:50:26 +00:00
Pierre Joye 6f3cad91d0 - install headers, missed that one 2010-12-10 17:11:58 +00:00
Pierre Joye ff60a98755 - add initial PHP_INSTALL_HEADERS, one step closer to phpize 2010-12-10 16:10:08 +00:00
Gustavo André dos Santos Lopes 8398646d0a - I had forgotten to commit UPGRADING (for enable_post_data_processing). 2010-12-10 07:59:34 +00:00
Christopher Jones 1894d8df0b Update for PECL upload that is synced with PHP 5.3.4 2010-12-10 04:36:29 +00:00
Scott MacVicar ec4cbe70fa Add more constants to curl_getinfo(), dependent on cURL version installed so wrapped in ifdefs 2010-12-10 01:45:55 +00:00
Felipe Pena 7f69592f11 - Added test for bug #53512 2010-12-10 00:59:50 +00:00
Felipe Pena 43cfda93eb - Fixed bug #53512 (NumberFormatter::setSymbol crash on bogus $attr values) 2010-12-10 00:47:51 +00:00
Felipe Pena 127a878fc9 - Fixed bug #39199 (Cannot load Lob data with more than 4000 bytes on ORACLE 10)
patch by: spatar at mail dot nnov dot ru
2010-12-10 00:33:48 +00:00
Gustavo André dos Santos Lopes 6654a4ade5 - Added enable_post_data_reading ini option to allow inhibiting POST data consumption. 2010-12-09 20:35:59 +00:00
Dmitry Stogov c35fc78890 Fixed bug #53511 (Exceptions are lost in case an exception is thrown in catch operator) 2010-12-09 16:38:37 +00:00
Eyal Teutsch f69051602a test bug42364 included a superfluous ?> 2010-12-09 12:39:21 +00:00
Eyal Teutsch 4e37118801 pdo_025 expected a certain extra character that is not part of windows output. changed to optional char: %a -> %A 2010-12-09 12:04:18 +00:00
Dmitry Stogov 5f8ff99a05 Fixed startup errors if ext/exif is loaded without ext/mbstring 2010-12-08 14:49:26 +00:00
Eyal Teutsch fa404f71f5 curl_setopt() arg: using DIRECTORY_SEPARATOR rather then "/" to make windows tests pass too 2010-12-08 14:16:17 +00:00
Antony Dovgal e89362b846 fix ZTS build 2010-12-08 12:35:25 +00:00
Dmitry Stogov 755c2cd0d8 Removed compile time dependency from ext/mbstring 2010-12-08 11:27:34 +00:00
Pierre Joye 088a6ad7b5 - Fix #53492, fix crash if aa steps are invalid 2010-12-08 08:45:56 +00:00
Andrey Hristov 27ecaa7901 Skip additional result sets sent by MySQL 5.5 servers
which break the Protocol API 
(see http://bugs.mysql.com/bug.php?id=58700)
2010-12-06 13:59:14 +00:00
Andrey Hristov e183ea0495 don't crash if the API is used incorrectly 2010-12-06 13:50:51 +00:00
Antony Dovgal 3722811395 make sure the stream context is present before looking for any options
and fix segfault
2010-12-04 21:54:20 +00:00
Felipe Pena 74484db1aa - Fixed test (Eyal Teutsch) 2010-12-04 15:57:08 +00:00
Felipe Pena 75d8fd8d42 - Fixed test 2010-12-04 15:48:45 +00:00
Felipe Pena 57fc653c05 - Fixed tests 2010-12-04 12:28:23 +00:00
Felipe Pena 11a3a52fc8 - Fixed test 2010-12-03 23:25:27 +00:00
Felipe Pena 955ebdf10c - Fixed test 2010-12-03 22:58:21 +00:00
Felipe Pena 26d7aafb1a - Fixed bug #53463 (sqlite3 columnName() segfaults on bad column_number) 2010-12-03 21:05:44 +00:00
Jani Taskinen 17d1b1310e - Fix test 2010-12-03 16:02:47 +00:00
Jani Taskinen 72ae65bc9d - CS and "de-facto" style of returning NULL for failing parse-params, sync partially with PHP_5_3 too (reordering part :) 2010-12-03 15:34:24 +00:00
Jani Taskinen 07535b7986 - Fix test 2010-12-03 15:30:54 +00:00
Jani Taskinen 41a1de45fe - Add test for the ob_start($foo); leak/crash bug 2010-12-03 15:29:53 +00:00
Adam Harvey d2263d482d Implement FR #53457 (number_format must support more than one character for
thousands separator).
2010-12-03 10:10:08 +00:00
Adam Harvey 18ec6dae2c Implemented FR #53447 (Cannot disable SessionTicket extension for servers that
do not support it).

I haven't written a test due to the need for such a test to have a HTTPS server
available which mishandles SessionTicket requests; it's likely that server
administrators will gradually fix this either intentionally or through OpenSSL
upgrades. That said, if there's a great clamoring for a test, I'll work one up.
2010-12-03 09:34:35 +00:00
Pierre Joye d687186b58 - Fix #29085, bad default include_path on Windows 2010-12-02 23:23:14 +00:00
Andrey Hristov 7ff7f9780e fix test after newly introduced constant 2010-12-02 19:11:41 +00:00
Andrey Hristov 18424910d3 and export the new constant 2010-12-02 14:21:23 +00:00
Andrey Hristov ee15ed307e new server constant as of 5.5 2010-12-02 13:59:56 +00:00
Pierre Joye 3fd615cc8d - not TS and useless on server, also not required anymore with the supported windows versions 2010-12-02 11:37:43 +00:00
Dmitry Stogov dcb65e76da WS and cosmethic changes 2010-12-02 09:40:53 +00:00
Adam Harvey cab5fc9c1a Minimal fix for bug #53440 (INSTALL file refers to php.ini-dist, should refer
to php.ini-production). There are a lot more issues with the INSTALL file,
though, which I'll file another bug for.
2010-12-02 03:26:37 +00:00
Christopher Jones 0f217b0c93 Remove OCI8 devel status in preparation for PHP 5.3.4 release 2010-12-01 23:30:28 +00:00
Christopher Jones 17b31ae362 Add Berkeley DB 5.1 support to the DBA extension 2010-12-01 19:20:16 +00:00
Pierre Joye e72e27eecc - fix ts build 2010-12-01 16:48:53 +00:00
Stefan Marr d0c144d732 Removed old commented function prototypes.
# Was referring to old trait-related code that is long gone
2010-12-01 15:20:11 +00:00
Ilia Alshanetsky 19a0263e65 Fixed bug #51250 (iconv_mime_decode() does not ignore malformed Q-encoded words) 2010-12-01 14:03:36 +00:00
Dmitry Stogov a45631d966 Allowed indirect $this access (Scott) 2010-12-01 13:33:49 +00:00
Jérôme Loyet 8e65f50698 - Fixed bug #53412 (segfault when using -y) 2010-11-30 19:37:10 +00:00
Gustavo André dos Santos Lopes 22d461df62 - Implemented bug/request #53427 - stream_select doesn't preserve the
keys. This cannot be backported to PHP 5.3 due to a BC break. See
  UPGRADING for more information.
2010-11-30 16:22:48 +00:00
Ilia Alshanetsky c579738b94 Same as before 2010-11-30 16:12:45 +00:00
Ilia Alshanetsky 94ca4a4d09 Fixed bug #52202 (CURLOPT_PRIVATE gets corrupted). 2010-11-30 13:40:02 +00:00
David Soria Parra 76a8811c5d C comments instead of C++ comments 2010-11-30 12:51:57 +00:00
Pierre Joye e8817ab0a6 Fixed crash in zip extract method (possible CWE-170) 2010-11-30 11:04:06 +00:00
Ilia Alshanetsky 20f5f21a40 Fixed bug #52656 (DOMCdataSection does not work with splitText). 2010-11-29 14:48:53 +00:00
Ilia Alshanetsky 08441f8848 Fixed bug #52828 (curl_setopt does not accept persistent streams). 2010-11-29 14:40:59 +00:00
Dmitry Stogov 67e8d44aa4 Removed unnecessary dependencies 2010-11-29 08:56:21 +00:00
Adam Harvey 07ea326cda Update INI files per doc bug #53420 (mail.log is poorly documented). 2010-11-29 03:44:56 +00:00
Derick Rethans 0ca25d5406 - Fixed two more test cases. 2010-11-28 16:27:49 +00:00
Derick Rethans 8658cfe423 - Fixed a few test cases. 2010-11-28 13:41:06 +00:00
Ilia Alshanetsky 4bc5cac317 Fixed bug #52327 (base64_decode() improper handling of leading padding in strict mode) 2010-11-26 20:59:13 +00:00
Pierre Joye 722457594b - Fixed #53409, sleep() return NULL on Windows 2010-11-26 18:25:13 +00:00
Jérôme Loyet f7cd7afd33 - Fixed bug #52501 (libevent made FPM crashed when forking -- libevent has been removed) 2010-11-26 13:46:15 +00:00
Johannes Schlüter 7ffc4cb2aa - Remove outdated, unmaintained, misleading ChangeLog files 2010-11-26 13:21:25 +00:00
Adam Harvey 9a1568c113 Implemented FR #53407 (make scandir()'s directory sorting optional). 2010-11-26 09:52:28 +00:00
Pierre Joye 4574844c52 - cleanup broken double definition of php_win_err and rename it while being there 2010-11-25 23:06:12 +00:00
Ilia Alshanetsky 8f85ff3dd6 Fixed bug #53304 (quot_print_decode does not handle lower-case hex digits) 2010-11-25 21:38:06 +00:00
Gustavo André dos Santos Lopes 1d5eff07f3 - Fixed bug #53403 (use of unitialized values). Fixes the fix for bug #46587.
- Added test for bug #46587.
2010-11-25 16:44:20 +00:00
Felipe Pena 965c30dc2e - Removed unused variable 2010-11-24 20:50:07 +00:00
Dmitry Stogov c9e54156d8 Removed support for break/continue $var syntax 2010-11-24 16:26:49 +00:00
Dmitry Stogov 7628da98c4 Removed support for break/continue $var syntax 2010-11-24 12:19:56 +00:00
Dmitry Stogov bf05cc7490 Fixed test 2010-11-24 10:54:35 +00:00
Dmitry Stogov ac71f49344 Added multibyte suppport by default. Previosly php had to be compiled with --enable-zend-multibyte. Now it can be enabled or disabled throug zend.multibyte directive in php.ini (regenerated scanner) 2010-11-24 05:42:52 +00:00
Dmitry Stogov ab93d8c621 Added multibyte suppport by default. Previosly php had to be compiled with --enable-zend-multibyte. Now it can be enabled or disabled throug zend.multibyte directive in php.ini 2010-11-24 05:41:23 +00:00
Andi Gutmans 011fd8059d - Fix typo 2010-11-24 04:31:45 +00:00
Pierre Joye 1f454695a4 - fixed #53352 2010-11-23 22:14:54 +00:00
Felipe Pena 7c541356f3 - Fixed compile warnings 2010-11-23 21:49:18 +00:00
Felipe Pena 201ab8bb8c - Fixed test 2010-11-23 21:45:22 +00:00
Ilia Alshanetsky 09b69ee8ad Fixed bug #46587 (mt_rand() does not check that max is greater than min). 2010-11-23 13:09:15 +00:00
Adam Harvey f93b470fd4 Fix bug #53377 (imap_mime_header_decode() doesn't ignore \t during long MIME
header unfolding).
2010-11-23 10:34:44 +00:00
Dmitry Stogov d72ac0771d Fixed bug #35547 (Segfault accessing static method) 2010-11-23 10:22:34 +00:00
Johannes Schlüter ebb978df61 Set svn properties 2010-11-22 22:27:06 +00:00
Johannes Schlüter a876e54196 - Update tokenizer data 2010-11-22 21:56:18 +00:00
Kalle Sommer Nielsen 547691766a Fixed gettimeofday() usage for Ilia's REQUEST_TIME improvement on Windows 2010-11-22 15:43:46 +00:00
Ilia Alshanetsky 50e6d20d3c Fixed bug #51003 (unaligned memory access in ext/hash/hash_tiger.c). 2010-11-22 13:12:28 +00:00
Gustavo André dos Santos Lopes 8d82e96103 - Fix tests for \0 patch in PHP 5.3.
- Fix constants_error_004.phpt (closes bug #51901)
2010-11-22 05:10:14 +00:00
Felipe Pena f327f13204 - Fixed ZTS build 2010-11-21 17:41:33 +00:00
Johannes Schlüter dabb79bf3d - Improve test 2010-11-21 12:28:10 +00:00
Johannes Schlüter 5a1e9d1d6b - Fix #52854 (ReflectionClass::newInstanceArgs does not work for classes without constructors 2010-11-21 12:24:09 +00:00
Felipe Pena 224bfb38f7 - Fixed bug #53366 (Reflection doesnt get dynamic property value from getProperty()) 2010-11-20 22:53:55 +00:00
Kalle Sommer Nielsen 701bfaa2fa Added second fix from #50987 that wasn't apart of Ilia's commit 2010-11-20 20:59:28 +00:00
Ilia Alshanetsky 3016ad46ae Fixed bug #50987 (unaligned memory access in phar.c) 2010-11-20 19:27:31 +00:00
Stanislav Malyshev 0ba1cd1bd2 Add support for DateTime in datefmt_format 2010-11-20 02:09:04 +00:00
Gustavo André dos Santos Lopes 5a1b77422a - Reverted unintended change. 2010-11-19 23:42:44 +00:00
Stanislav Malyshev 0fa76d2407 Fix invalid args bugs by Maksymilian Arciemowicz 2010-11-19 23:22:55 +00:00
Felipe Pena 897f0b4c27 - Fixed extract() to do not overwrite $GLOBALS and $this when using EXTR_OVERWRITE.
patch by: jorto at redhat dot com
2010-11-19 22:06:44 +00:00
Felipe Pena 9608da9443 - Fixed bug #53362 (Segmentation fault when extending SplFixedArray) 2010-11-19 20:07:32 +00:00
Johannes Schlüter e245652b63 - commit missing upgrading note (sqlite removed) 2010-11-19 17:22:05 +00:00
Ilia Alshanetsky 5bdb47791a Fixed bug #47168 (printf of floating point variable prints maximum of 40 decimal places). 2010-11-19 16:36:10 +00:00
Kalle Sommer Nielsen 1fed0e5a84 Kill some more constness warnings in com_dotnet/phar/standard 2010-11-19 16:03:00 +00:00
Kalle Sommer Nielsen 063b213e9e Kill warnings about constness 2010-11-19 15:48:11 +00:00
Johannes Schlüter a8a9314130 Add entry for sqlite 2010-11-19 10:00:10 +00:00
Johannes Schlüter 6c76f3606c - Move the old sqlite extension to PECL
# discussed in http://www.mail-archive.com/internals@lists.php.net/msg47463.html
2010-11-19 09:55:48 +00:00
Stefan Marr 4cc45507da Fixed problem reported by Patrick ALLAERT. Trait method was not applied properly when fully qualified. 2010-11-18 17:59:04 +00:00
Jani Taskinen 15c9da1149 - One more fix for bug #53338 (when copying stuff from other macros, do it all the way.. :) 2010-11-18 16:02:37 +00:00
Jani Taskinen 6791197b31 - Added section for build system changes in UPGRADING.INTERNALS 2010-11-18 10:43:01 +00:00
Patrick Allaert 9ef050ca64 Reviewing php.ini-* configurations files:
* Making both files as similar as possible
* Removed trailing whitespaces
* Fixed some spelling mistakes
* Section [PostgresSQL] -> [PostgreSQL]
* Introducing missing mysqli.allow_{local_infile,persistent} entries in -development
2010-11-18 10:13:58 +00:00
Jani Taskinen 7c76059c1f - Fixed DTrace support in MacOSX (bug #53338) 2010-11-18 10:11:36 +00:00
Felipe Pena 932408b413 - Fixed bug #53335 (pdo_firebird did not implement rowCount())
patch by: preeves at ibphoenix dot com
2010-11-18 01:24:00 +00:00
Stefan Marr 6ad5c889a1 Added tests to for static support of traits.
# This was not tested and documented yet.
# Updated documentation in the RFC http://wiki.php.net/rfc/horizontalreuse
2010-11-17 23:05:20 +00:00
Felipe Pena 45189fa803 - Fixed bug #53306 (php crashes with segfault when DTrace "exception-thrown" probe fires)
patch by: mike at harschsystems dot com
2010-11-17 21:41:30 +00:00
Christopher Jones 46ef2edf8d Some grammar tweaks 2010-11-17 17:59:41 +00:00
Pierrick Charron 71dfe80e05 Remove unused variables 2010-11-17 17:55:18 +00:00
Pierre Joye d6723d57c0 - test for NULL deref fix 2010-11-17 17:26:33 +00:00
Jani Taskinen 55bb6fd757 - NEWS cleanup, please do not mess it anymore :) 2010-11-17 16:56:21 +00:00
Pierre Joye 1d04f413cf - NULL deref fix, patch by Gustavo 2010-11-17 16:46:19 +00:00
Jani Taskinen f6fcf2e3a4 - Fix test: register_globals is gone 2010-11-17 15:00:51 +00:00
Jani Taskinen 6d7fa61843 - Fix test 2010-11-17 14:54:37 +00:00
Felipe Pena a4fb1ff6a5 - Fixed typo (reported by eyal.t at zend dot com) 2010-11-17 14:49:26 +00:00
Jani Taskinen ab88e60310 - Fix possible crashes in 64bit builds caused by usage of int instead of size_t 2010-11-17 14:09:46 +00:00
Jani Taskinen c9581c1b1f typo 2010-11-17 14:08:39 +00:00
Jani Taskinen d310d10224 - Added comment about binary SAPIs 2010-11-17 14:07:54 +00:00
Jani Taskinen c3dd89eeb7 - Fix building SAPI module 2010-11-17 13:01:53 +00:00
Jani Taskinen 4d13e04ae2 - Fixed wrong type causing crash (in php-cgi -i and phpinfo(); when doing HTML output) 2010-11-17 11:56:48 +00:00
Jani Taskinen 2f27a0b1b8 - Cleanup 2010-11-17 11:55:37 +00:00
Felipe Pena 0c7c01a480 - Updated QA and User note maintainers credits 2010-11-16 23:02:00 +00:00
Jérôme Loyet ac08cb6492 - fix (log with level < WARNING before daemonizing were not written to /dev/stderr) 2010-11-16 22:53:47 +00:00
Felipe Pena 2e42d64007 - Fixed bug #53319 (strip_tags() may strip '<br />' incorrectly) 2010-11-16 22:16:44 +00:00
Jérôme Loyet cb2bb12de5 - Fixed #53310 (sparc < v9 won't is not supported) 2010-11-16 22:02:36 +00:00
Felipe Pena f774e7dbed - Fixed bug #53323 (pdo_firebird getAttribute() crash)
patch by: preeves at ibphoenix dot com
2010-11-16 21:02:14 +00:00
Christopher Jones 1cf06684f5 Improve test cross- DB version portability 2010-11-16 20:50:29 +00:00
Christopher Jones 314c9b9233 Protect against null bytes in LOB filenames (rasmus) 2010-11-16 19:33:31 +00:00
Pierre Joye 87fd3737b4 -fix build 2010-11-15 23:53:13 +00:00
Felipe Pena 3cace9cbcc - Fix wrong argument to read_property call 2010-11-15 18:48:48 +00:00
Felipe Pena 43206c8c68 - Added missing test 2010-11-15 18:46:59 +00:00
Gustavo André dos Santos Lopes e10454ded8 - Fixed bug #52820 (writes to fopencookie FILE* not commited when seeking the
stream).
2010-11-15 18:22:52 +00:00
Felipe Pena 565c484222 - Moved leak_variable() to zend_builtin_functions.c (Gustavo) 2010-11-15 17:06:27 +00:00
Gustavo André dos Santos Lopes c3727cc862 - Added test relative to the fix in rev #305346. 2010-11-15 14:51:26 +00:00
Gustavo André dos Santos Lopes dc8bc65fe6 - Fixed incorrection in UPGRADING.INTERNALS. 2010-11-15 03:22:26 +00:00
Gustavo André dos Santos Lopes 3a02cfb675 - Added leak_variable() function.
- Added mechanism to force outer streams to be closed before their inner ones.
- Fixed temp:// streams only handling correctly (through an ad hoc mechanism)  reverse closing order
  when the  inner stream is of type memory.
2010-11-15 03:05:32 +00:00
Gustavo André dos Santos Lopes 24636a7e1c - Altered htmlentities19.phpt (now htmlentities24.phpt) to reflect new default encoding
being UTF-8.
- Moved ext/standard/tests/file/htmlentities19.phpt and htmlspecialchars.phpt to the
  proper directory (tests/strings instead of tests/file). htmlentities19.phpt had to
  be renamed in order not to clash with an existing file.
2010-11-15 01:57:16 +00:00
Pierre Joye 0af01dc7a5 - allow firebird header to be in the normal deps directory and restore firebird support on win (5.3.4+) 2010-11-14 22:40:30 +00:00
Jérôme Loyet 69ba9c82af - extend the 'i-t' fpm argument to dump configuration file when called twice (-tt) 2010-11-14 22:22:07 +00:00
Jérôme Loyet ae01a576b3 - Fixed #52691 (allow multiple instance of FPM using a custom prefix) 2010-11-14 22:01:34 +00:00
Felipe Pena 8192f0f771 - Added missing void arg checks 2010-11-14 18:40:08 +00:00
Felipe Pena 5f31c44509 - Add missing check 2010-11-14 01:38:52 +00:00
Jani Taskinen 25aee9cad9 - Implemented FR #53271, FR #52410 (Building multiple PHP binary SAPIs and one SAPI module the same time)
# Bug #53271, Bug #52410
2010-11-13 23:13:07 +00:00
Jani Taskinen 200dcee22d - Simplified the DTrace configure macros, one is enough 2010-11-13 22:22:51 +00:00
Felipe Pena c95e919e3e - Fix the constant detection 2010-11-13 19:50:55 +00:00
Felipe Pena b5b0599398 - Fixed bug #53305 (E_NOTICE when defining a constant starts with __COMPILER_HALT_OFFSET__)
- Fixed a part of bug #53260 (the __COMPILER_HALT_OFFSET__ name is not shown in the E_NOTICE)
2010-11-13 18:46:11 +00:00
Derick Rethans d475703660 - Copied test cases (that all fail?!) from 5.3 to trunk. 2010-11-13 16:30:22 +00:00
Derick Rethans 8ca9251c8b - MFH: Added support for the ( and ) delimiters/separators to
DateTime::createFromFormat().
- Regenerated the parsers for HEAD and PHP_5_3.
2010-11-13 15:01:48 +00:00
Derick Rethans 3c8e64f962 - Don't show timezone if it wasn't found while parsing. 2010-11-13 14:57:47 +00:00
Derick Rethans d763e535cc - Added support for the ( and ) delimiters/separators to
DateTime::createFromFormat().
#- There are a few more things to come, once ready, I'll regenerate the .c file
#  and merge.
2010-11-13 12:56:21 +00:00
Jani Taskinen f017a9c93a - WS + cleanup
# Note:
# Considering DTrace support: Why does it really need any configure time stuff?
# 3 macros for static stuff that could be made much cleaner with simple Makefile.dtrace
# addition. The only thing required in configure is that --enable flag part..
#
2010-11-13 11:12:07 +00:00
Felipe Pena 6e8c2ba690 - Fixed bug #53136 (Invalid read on openssl_csr_new()) 2010-11-12 23:34:03 +00:00
Gustavo André dos Santos Lopes ae5704272e - Fixed bug #53297 (gettimeofday implementation in php/win32/time.c can return
1 million microsecs). (ped at 7gods dot org)
- Moved line out of order in NEWS.
2010-11-12 18:37:02 +00:00
Ulf Wendel 1891feac44 Testing for the two new statistics 'bytes_received_real_data_normal' and 'bytes_received_real_data_ps' 2010-11-12 12:21:35 +00:00
Jérôme Loyet e3b4bf5685 - Fixed #52660 (custom process title for FPM) 2010-11-12 00:30:35 +00:00
Jérôme Loyet b772fae900 - Fixed #52692 (Added '-t/--test' to php-fpm to check and validate FPM conf file) 2010-11-11 23:27:15 +00:00
Jérôme Loyet b72460a42f - Fixed bug #52693 (configuration file errors are not logged to stderr) 2010-11-11 22:48:46 +00:00
Jérôme Loyet 306d08a0f5 - get rid of ZLOG_STUFF code redundancy 2010-11-11 21:38:18 +00:00
Jérôme Loyet 7eb3062619 - comment out fpm_php_set_fcgi_mgmt_vars to remove compilation warning 2010-11-11 21:30:55 +00:00
Jérôme Loyet e1b87cce1f - Fixed #52045 (FPM tries to open php.ini from the current dir)
- Add php_ini_ignore_cwd to _sapi_module_struct
2010-11-11 17:24:27 +00:00
Jérôme Loyet b896c87bb5 - remove useless check 2010-11-11 12:56:44 +00:00
Jérôme Loyet 9f1ad0a2e2 - add missing timer* macros (for solaris)
- ws
2010-11-11 12:55:05 +00:00
Jérôme Loyet b38d57249e - add "listen queue len" stat (thx to Andrei Nigmatulin) 2010-11-11 02:34:47 +00:00
Kalle Sommer Nielsen 584ddb0c6e Added new constant; ZEND_MULTIBYTE to check whether PHP was compiled using --enable-zend-multibyte or not instead of sniffing phpinfo() (FR #52348) 2010-11-11 01:43:53 +00:00
Jérôme Loyet 469746fa03 - syntax and minor optimizations 2010-11-11 01:01:56 +00:00
Jérôme Loyet a2c55a138d - don't call shutdown functions after child ends softly, let the master process call them 2010-11-10 23:54:14 +00:00
Christopher Jones 29280516e2 Prepare for PECL OCI8 1.4.4 2010-11-10 19:08:13 +00:00
Christopher Jones eba1db126c Improve startup failure error messages 2010-11-10 18:59:56 +00:00
Christopher Jones b2b1a53031 Fixed bug #53284 (Valgrind warnings in oci_set_* functions) 2010-11-10 18:49:55 +00:00
Christopher Jones d21b028281 Improve test portability 2010-11-10 18:46:05 +00:00
Andrey Hristov 332b953865 Fix bad types, because zend_parse_xxx expect signed integers
for lengths, no matter how stupid this is :)
2010-11-10 13:57:09 +00:00
Adam Harvey 6cb7ea4089 Implemented FR #53264 (Add fputcsv method to SplFileObject). 2010-11-09 15:07:50 +00:00
Adam Harvey 150a741fee Fix bug #53279 (SplFileObject doesn't initialise default CSV escape character). 2010-11-09 14:53:23 +00:00
Moriyoshi Koizumi aef6ac02f5 - Fix bug #53273 (mb_strcut() returns garbage with the excessive length parameter). 2010-11-09 03:23:04 +00:00
Felipe Pena 590ad22361 - Fix the fix (wrong behavior) 2010-11-08 20:26:14 +00:00
Dmitry Stogov aa3d81686f Fixed WSDL loading using https through proxy 2010-11-08 11:34:32 +00:00
Adam Harvey 18096f4b68 Implemented FR #53213 (Adler32 algorithm is very slow). Patch by zavasek at
yandex dot ru.
2010-11-08 09:35:33 +00:00
Patrick Allaert e2e76d40e3 - Fixed tests not passing under windows because of the directory separator
difference (thanks Eyal Teutsch for reporting)
2010-11-08 09:29:15 +00:00
Adam Harvey c2b525eef1 Update the tests committed in r305098 (as part of the fix for bug #53226) to
use the PHP_MAXPATHLEN constant, as recommended by Pierre.
2010-11-08 09:14:48 +00:00
Gustavo André dos Santos Lopes 33af99cbcf - Fixed the filter extension accepting IPv4 octets with a leading 0 as that
belongs to the unsupported "dotted octal" representation.
- Fixed bug #53236 (problems in the validation of IPv6 addresses with leading
  and trailing :: in the filter extension).
- Fixed bug #50117 (problems in the validation of IPv6 addresses with IPv4
  addresses and ::).
2010-11-08 04:36:15 +00:00
Jérôme Loyet f0621d39cd - correct time comparison for determining the last idle child 2010-11-07 21:47:14 +00:00
Pierre Joye cd26f63009 - typo 2010-11-07 19:55:08 +00:00
Jérôme Loyet b41d13ba98 - change signal from SIGTERM to SIGQUIT for killing a child process by the dynamic process manager 2010-11-07 19:45:51 +00:00
Ilia Alshanetsky 12167194b5 REQUEST_TIME notes 2010-11-07 19:27:08 +00:00
Felipe Pena d73d4e486c - Fixed bug #52512 (Broken error handling in odbc_execute)
patch by: mkoegler at auto dot tuwien dot ac dot at
2010-11-07 18:13:53 +00:00
Felipe Pena 83ebbc36a1 - Fixed bug #53248 (rawurlencode RFC 3986 EBCDIC support misses tilde char).
patch by: Justin Martin (frozenfire@php)
2010-11-07 12:59:22 +00:00
Felipe Pena 1c556f2030 - Coding standards 2010-11-06 18:35:38 +00:00
Felipe Pena 03cbbf4348 - Fixed bug #52732 (Docs say preg_match() returns FALSE on error, but it returns int(0))
patch by: slugonamission at gmail dot com
2010-11-06 18:32:10 +00:00
Felipe Pena ccfe9c30aa - Fixed bug #47199 (pg_delete() fails on NULL)
patch by: ewgraf at gmail dot com
2010-11-06 17:43:25 +00:00
Ilia Alshanetsky f89effd2a8 Updated _SERVER['REQUEST_TIME'] to include microsecond precision. 2010-11-06 17:14:21 +00:00
Felipe Pena d31e4e7f8e - Fixed bug #50579 (RegexIterator::REPLACE doesn't work) 2010-11-06 00:09:50 +00:00
Andrey Hristov bcb4c8427e two new stats 2010-11-05 20:07:34 +00:00
Gustavo André dos Santos Lopes d37e1ea243 - Renamed php_stream_rep_nonstand_mode to
php_stream_mode_sanitize_fdopen_fopencookie, made it not
  exported and movied it from php_streams.h to
  php_streams_int.h.
2010-11-05 18:53:48 +00:00
Adam Harvey 6bc20667c7 Fix bracket in prototype comment. 2010-11-05 18:12:30 +00:00
Adam Harvey 7f0d3f7d70 Fix bug #53226 (file_exists fails on big filenames). 2010-11-05 05:28:07 +00:00
Adam Harvey 8365739663 Implemented FR #53238 (Make third parameter of preg_match_all optional). 2010-11-05 04:37:27 +00:00
Gustavo André dos Santos Lopes b7d69a4952 - Added CLEAN section to recently committed test. 2010-11-05 01:56:28 +00:00
Gustavo André dos Santos Lopes 0a35133524 - Fixed bug #53241 (stream casting that relies on fdopen/fopencookie fails
with streams opened with, inter alia, the 'xb' mode).
2010-11-05 01:29:08 +00:00
Pierre Joye 6f1cfe3e7f - fix type and silent warning 2010-11-03 21:50:03 +00:00
Pierre Joye 3b337020fa - add stat support for zip:// 2010-11-03 21:48:08 +00:00
Etienne Kneuss 105db96e78 Fixed covariance of return-by-ref constraints 2010-11-03 15:40:24 +00:00
Michael Wallner 823d7cb55f explicitness FTW; it should have been like that before, so it wouldn't have happened 2010-11-03 08:35:16 +00:00
Felipe Pena e3ced0b540 - Reverted fix for bug #51176 2010-11-03 01:35:26 +00:00
Felipe Pena f11535e2ee - Fixed config.m4 to complete the fix for bug #53141 (thanks Johannes) 2010-11-02 20:51:02 +00:00
Felipe Pena 477b8a6664 - Fixed bug #53141 (autoload misbehaves if called from closing session)
patch by: ladislav at marek dot su
2010-11-02 18:34:56 +00:00
Felipe Pena 4667771a5f - Fixed no bailout address error and posix tests 2010-11-02 18:06:39 +00:00
Ilia Alshanetsky 2bbcc005c7 Fixed a possible double free in imap extension (Identified by Mateusz Kocielski). 2010-11-02 17:50:39 +00:00
Jani Taskinen 309a56f3f7 - Fixed -g adding for gcc and g++ (former got it twice, latter not at all) 2010-11-02 09:58:08 +00:00
Gustavo André dos Santos Lopes 743f50927c - Fixed bug #53153 (memory leak with phpinfo() + output buffering + zlib compression). 2010-11-02 03:49:49 +00:00
Arnaud Le Blanc adaa31fff8 fix the fix 2010-11-01 22:40:29 +00:00
Arnaud Le Blanc 61e7730ee8 fixed bug #52784 (Race condition when handling many
concurrent signals)
2010-11-01 22:29:25 +00:00
Arnaud Le Blanc a9507474e3 Fix bug #52173 (ext/pcntl doesn't store/report errors) (patch
by nick dot telford at gmail dot com)
2010-11-01 20:10:17 +00:00
Derick Rethans 8f8b24866d - Updated to version 2010.15 (2010o) 2010-11-01 17:55:42 +00:00
Felipe Pena 5d584d4737 - Fixed bug #47643 (array_diff() takes over 3000 times longer than php 5.2.4) 2010-11-01 17:16:47 +00:00
Gustavo André dos Santos Lopes 5c09767d4b - Fixed bug #53198 (changing INI setting "from" with ini_set did not have any
effect)
#Made "from" a proper INI setting and bound it to a global variable.
#Previously, it was simply read from the hash table with the parsed ini file
#by using cfg_get_string (I wonder why this mechanism still exists...)
2010-10-29 15:29:15 +00:00
Andrey Hristov 769a3cf0c3 - More features for the profiling, create aggregates and dump them
on file close.
- Also add a trace modifier to switch on and off the profiling.
- With additional compiler switch the profiling can be completely omitted,
of course it makes sense only when --enable-debug. Because otherwise
there is no tracing, thus no profiling.
- Added a fix for Windows for handling trace files on different devices
 (special handing of ':' )
2010-10-29 15:02:39 +00:00
Andrey Hristov da633ed52e gettimeofday for windows 2010-10-28 14:14:06 +00:00
Andrey Hristov 9920be1a81 show tracing 2010-10-28 14:07:36 +00:00
Andrey Hristov 099a505f89 fix windows debug build
better zlib detection
2010-10-28 13:46:54 +00:00
Gustavo André dos Santos Lopes e69b1ff2c4 - Fixed bug #49687 (utf8_decode vulnerabilities and deficiencies in the number
of reported malformed sequences). (Gustavo)
#Made a public interface for get_next_char/utf-8 in trunk to use in utf8_decode.
#In PHP 5.3, trunk's get_next_char was copied to xml.c because 5.3's
#get_next_char is different and is not prepared to recover appropriately from
#errors.
2010-10-27 18:13:25 +00:00
Gustavo André dos Santos Lopes da400e7500 - Fixed bug #53180 (post_max_size=0 not disabling the limit when the content
type is application/x-www-form-urlencoded or is not registered with PHP).
2010-10-27 14:56:51 +00:00
Gustavo André dos Santos Lopes be77a48a71 - Fixed ReflectionProperty::isDefault() giving a wrong result for properties
obtained with ReflectionClass::getProperties().
2010-10-26 18:47:10 +00:00
Gustavo André dos Santos Lopes e5c7fae82c - Added ReflectionParameter::canBePassedByValue(). 2010-10-26 15:01:36 +00:00
Gustavo André dos Santos Lopes 1f191e4d2b - Implemented request #44164, zlib.output_compression is now implicitly
disabled when the header "Content-length" is set.
#One could argue that any output handler could change the size of the
#response, so this exception for zlib.output_compression is an
#inconsistency. However, zlib.output_compression is presented as a
#performance setting, whose value should have no effect on the
#correctness of the scripts. This was not the case. Setting the
#header "content-length" and enabling zlib.output_compression was
#a recipe for infringing section 4.4 of RFC 2616.
2010-10-26 02:16:21 +00:00
Ilia Alshanetsky 18fa045e75 Code cleanup & CS 2010-10-25 16:46:55 +00:00
Ilia Alshanetsky 051145f62a Removed unused variable 2010-10-25 16:38:19 +00:00
Andrey Hristov e70b2fcda4 rename and remove usage of inttypes.h, not needed 2010-10-25 13:44:11 +00:00
Gustavo André dos Santos Lopes 21d704063d - Small optimization of the fix of bug #53071. It's not necessary to destroy
the debug info as it's not holding references anymore (the fix removed
  the refcount increments).
2010-10-25 02:03:20 +00:00
Gustavo André dos Santos Lopes 7fcce35f9b - Fixed bug #53071 (SPLObjectStorage defeats gc_collect_cycles). 2010-10-25 01:41:54 +00:00
Gustavo André dos Santos Lopes d46efce418 - A BOM had slipped in a commit and broke the build under GCC. Fixed. 2010-10-24 23:51:40 +00:00
Pierre Joye 09bf995542 - fix Isotopp 2010-10-24 21:51:54 +00:00
Gustavo André dos Santos Lopes 20e2c5fc33 - Fixed uninitialized and 1 character short local variable. 2010-10-24 21:19:04 +00:00
Gustavo André dos Santos Lopes 03de44f23e - Removed out-of-date comments and one enum constant from html_tables.h and its generator.
- Other minor aesthetic improvements in the generator.
2010-10-24 19:05:21 +00:00
Gustavo André dos Santos Lopes 3f804701b5 - Added to UPGRADING(.INTERNALS) information about the changes on html.c.
- Added to UPGRADING information about the new class Transliteral, the new
  parameter in dns_get_record and the fact that call_user_func_array no longer
  allows call-time pass-by-reference.
2010-10-24 16:21:15 +00:00
Gustavo André dos Santos Lopes 91727cb844 - Completed rewrite of html.c. Except for determine_charset, almost nothing
remains.
- Fixed bug on determine_charset that was preventing correct detection in
  combination with internal mbstring encoding "none", "pass" or "auto".
- Added profiles for entity encode/decode for HTMl 4.01, XHTML 1.0, XML 1.0
  and HTML 5. Added the constants ENT_HTML401, ENT_XML1, ENT_XHTML and
  ENT_HTML5.
- htmlentities()/htmlspecialchars(), when told not to double encode, verify
  the correctness of the existenting entities more thoroughly.
  It is checked whether the numerical entity represents a valid unicode code
  point (number is between 0 and 0x10FFFF). If using the flag ENT_DISALLOWED,
  it is also checked whether that numerical entity is valid in selected
  document. In HTML 4.01, all the numerical entities that represent a Unicode
  code point (< U+10FFFFFF) are valid, but that's not the case with other
  document types. If the entity is not valid, & is encoded to &amp;.
  For named entities, the check is also more thorough. While before the only
  check would be to determine if the entity was constituted by alphanumeric
  characters, now it is checked whether that entity is necessarily defined for
  the target document type. Otherwise, & is encoded to &amp;.
- For html_entity_decode(), only valid numerical and named entities (as defined
  above for htmlentities()/htmlspecialchars() + !double_encode) are decoded.
  But there is in this case one additional check. Entities that represent
  non-SGML or otherwise invalid characters are not decoded. Note that, in
  HTML5, U+000D is a valid literal character, but the entity &#x0D is not
  valid and is therefore not decoded.
- The hash tables lazily created for decoding in html_entity_decode() that were
  added recently were substituted by static hash tables. Instead of 1 hash
  table per encoding, there's only one hash table per document type defined in
  terms of unicode code points. This means that for charsets other than UTF-8
  and ISO-8859-1, a conversion to unicode code points is necessary before
  decoding.
- On the encoding side, the ad hoc ranges of entities of the translation
  tables, which mapped (in general) non-unicode code points to HTML entities
  were replaced by three-stage tables for HTML 4 and HTML 5. This mapping
  tables are defined only in terms of unicode code points, so a conversion
  is necessary for charsets other than UTF-8 and ISO-8859-1. Even so, the
  multi-stage table is much faster than the previous method, by a factor
  of 5; the conversion to unicode is a small penalty because it's just a
  simple table lookup.
  XML 1.0/htmlspecialchars() uses a simple table instead of a three-stage
  table.
- Added the flag ENT_SUBSTITUTE, which makes htmlentities()/htmlspecialchars()
  replace the invalid multibyte sequences with U+FFFD (UTF-8) or &#FFFD;
  (other encodings).
- Added the flag ENT_DISALLOWED. Implements FR #52860. Characters that cannot
  appear literally are replaced by U+FFFD (UTF-8) or &#FFFD; (otherwise).
  An alternative implementation would be to encode those characters into
  numerical entities, but that would only work in HTML 4.01 due to limitations
  on the values of numerical entities in other document types. See also the
  effects on htmlentities()/htmlspecialchars() with !double_encode above.
2010-10-24 15:01:02 +00:00
Felipe Pena f0d2559d26 - Fixed bug #53144 (SplObjectStorage::removeAll()) 2010-10-24 14:03:07 +00:00
Andrey Hristov fe719c5e42 profiling in trace mode 2010-10-22 15:46:26 +00:00
Dmitry Stogov 68e154b1bf reduced size of temp_variariable 2010-10-22 14:51:07 +00:00
Andrey Hristov a25ce8c606 last piece to enable trace logging on windows 2010-10-22 14:34:33 +00:00
Andrey Hristov 76783dfeb5 enable debug logging on windows, in debug builds, of course 2010-10-22 14:12:45 +00:00
Dmitry Stogov 968bdc576c Simplified foreach() handling, we don't have to inctrement/decrement refcount twice 2010-10-22 13:59:23 +00:00
Dmitry Stogov d12098eeec Fixed crash on attempt to insert reference to string offset into an array 2010-10-22 11:05:22 +00:00
Dmitry Stogov 635f3aff75 Removed redundant check 2010-10-22 09:56:39 +00:00
Ilia Alshanetsky 96c769f602 Upgraded bundled sqlite to version 3.7.3 2010-10-20 19:27:34 +00:00
Derick Rethans 0e24a7c400 - Strip out the typehint *checks* only. They are still parsed, and they are
still accessible through the reflection API.
2010-10-19 10:42:38 +00:00
Pierre Joye defd00ab01 - fix Fixed NULL pointer dereference in ZipArchive::getArchiveComment, (CVE-2010-3709), report&patch from Maksymilian Arciemowicz 2010-10-19 09:56:11 +00:00
Adam Harvey baa6f7fc71 Fix bug #53089 (php.ini should use portable example of find) by using POSIX
compliant syntax in the suggested find command for cleaning up session files in
the shipped php.ini files.
2010-10-18 02:10:29 +00:00
Felipe Pena c88dbc2262 - Fixed bug #53070 (Calling enchant_broker_get_dict_path before set_path crashes php) 2010-10-16 17:52:01 +00:00
Derick Rethans e9dc8785a9 - Added the writing of .sh files so that we can run the tests (including all
INI settings) in one go.
2010-10-15 12:56:45 +00:00
Dmitry Stogov 3690ce39d9 zend_collect_module_handlers() has to be called after zend_extensions startup, because they can register additional 'hidden' extensions 2010-10-15 07:30:24 +00:00
Hartmut Holzgraefe aaa2f1c30b marked char pointer arguments as const in lots of
places where strings pointed to are not modified 
to prevent compiler warnings about discarded qualifiers ...
2010-10-14 21:33:10 +00:00
Gustavo André dos Santos Lopes 738be1a003 - Three tests were "broken" by rev #304404, not two. Commit the change
to remaining one.
2010-10-14 19:33:12 +00:00
Gustavo André dos Santos Lopes bfcb754eae - Fixed get_next_char(), used by htmlentities/htmlspecialchars, accepting
certain ill-formed UTF-8 sequences.
2010-10-14 19:14:06 +00:00
Gustavo André dos Santos Lopes 3943351e6a - [DOC] Reverted rev #304382 and rev #304380, as I figured out a way to
fix the erratic behavior without breaking backwards compatibility. Namely,
  $offset retains SEEK_SET behavior but actually SEEK_CUR is passed to
  _php_stream_seek, if possible, by moving the offset stream->position bytes.
- Addresses bug #53006.
2010-10-14 03:15:15 +00:00
Gustavo André dos Santos Lopes fbd3eb6439 - Ooops. Fixed tests for rev #304380 (stream_get_contents() related) and a small error. 2010-10-14 02:39:21 +00:00
Gustavo André dos Santos Lopes 1ee489f00e - [DOC] Changed stream_get_contents() so that the offset is relative to the
current position (seek with SEEK_CUR, not SEEK_SET). Only positive values are
  allowed. This breaking change is necessary to fix the erratic behavior in
  streams without a seek handlder. Addresses bug #53006.
#Note that the example on the doc page for stream_get_contents() may fail
#without this change.
#This change is also in the spirit of stream_get_contents(), whose description
#is "Reads all remaining bytes (or up to maxlen bytes) from a stream...".
#Previous behavior allowed setting the file pointer to positions before the
#current one, so they wouldn't be "remaining bytes". The previous behavior was
#also inconsistent in that it allowed an moving to offset 1, 2, ..., but not 0.
2010-10-14 02:03:18 +00:00
Adam Harvey 86944b47a6 Fix vim marker folds. 2010-10-13 09:23:39 +00:00
Dmitry Stogov f4173a8ece Fixed bug #52939 (zend_call_function does not respect ZEND_SEND_PREFER_REF) 2010-10-13 08:51:39 +00:00
Gustavo André dos Santos Lopes a1888f585c - Fixed forward stream seeking emulation in streams that don't support seeking
in situations where the read operation gives back less data than requested
  and when there was data in the buffer before the emulation started. Also made
  more consistent its behavior -- should return failure every time less data
  than was requested was skipped.
- Small performance improvement by correcting off-by-one error that generate an
  invalid call to the seek handler or read handler. in _php_stream_seek.
2010-10-13 03:13:29 +00:00
Kalle Sommer Nielsen 890d89fdb8 * Added version info for Windows XP Starter/Tablet PC/Media Center editions
* Fixed typo: "Unknow" -> "Unknown"
* Removed useless Win9x version info

# I will merge this to 5.3 once I have analyzed a possible bug
# (and hopefully fixed) why Server 2008 is reported as unknown
2010-10-12 17:34:25 +00:00
Dmitry Stogov bfe51842ab Added test 2010-10-12 07:38:36 +00:00
Gustavo André dos Santos Lopes 4de6c3a948 - Added a 3rd parameter to get_html_translation_table. It now takes a charset
hint, like htmlentities et al.
- Fixed bug #49407 (get_html_translation_table doesn't handle UTF-8).
- Fixed bug #25927 (get_html_translation_table calls the ' &#39; instead of
  &#039;).
- Fixed tests for get_html_translation_table and unified the Windows and
  non-Windows versions of the tests.
2010-10-12 02:51:11 +00:00
Gustavo André dos Santos Lopes f4a896c209 - PHP uses a big endian representation when it converts the
code unit sequences to integers so as to store the entity
  maps. Code in traverse_for_entities assumed little
  endian. Fixed.
  (in practice, due to the absence of unicode and entity
  mappings for multi-byte encodings -- except UTF-8 --, this
  doesn't matter, so the relevant code was commented out for
  performance reasons).
2010-10-11 22:26:10 +00:00
Gustavo André dos Santos Lopes 17dc181117 - Removed redundant local variable in dns_get_record.
- (5.3) Fixed bug in the Windows implementation of
  dns_get_record, where the two last parameters wouldn't be
  filled unless the type were DNS_ANY (Gustavo).
2010-10-11 03:07:03 +00:00
Gustavo André dos Santos Lopes 91f64706c2 - [DOC] Added a 5th parameter to dns_get_record, a boolean that tells whether to activate
"raw mode". In this mide, $type (2nd parameter) is the numeric type of the record, and
  the responses are not parsed -- the "type" element will be numeric and there will be
  a "data" element with the raw data of the response buffer, which the programmer will
  have to parse.
- Fixed bug in the Win32 implementation of dns_get_record, where the 3rd and 4th arguments
  would only be filled if the 2nd ($type) was DNS_ANY.
- [DOC] The 3rd and 4th parameters can now be NULL (changed their arginfo).
2010-10-11 02:48:23 +00:00
Gustavo André dos Santos Lopes 7aa43a8d83 - Revamp of the decoding portion of html.c.
- Dramatic improvements on the performance of html_entity_decode and htmlspecialchars_decode, as the
  string is now traversed only once. Speedups of 20 to 25 times with Windows release builds and a
  ~250 characters string (for 2nd and subsequent calls).
- Consistent behavior on html_entity_decode. For instance, the entity in "&&lt;" would be decoded,
  but not "&&#233;". Not anymore. The code path for "basic" and non-basic entities is now mostly
  shared.
- Code of html_entity_decode and htmlspecialchars_decode is now shared.
- [DOC] More consistent behavior of htmlspecialchars_decode. Instead of translating only &lt;, &gt;,
  &amp;, &quot;, &#039; and &#39;, now e.g. &#34;, &apos;, &#0039;, &#x27;, etc. are also decoded.
- [DOC] Previous translation of unicode code points in numerical entities was seriously broken. When
  the code points for some character were not the same in unicode and the target encoding, the
  behavior could be an erroneous translation (e.g. 0x80-0xA0 in win-1252) or no translation at all.
  Added unicode translation tables for all single-byte encodings. Entities are not translated for
  multi-byte entities, except for ASCII characters whose code points are shared. We could add
  the huge translation tables (several thousand elements) for those encodings in the future.
- Fixed numerical entities that after # had text accepted by strcol being accepted.
- Much more commented and well-structured code...
- Tests for get_html_translation_table()) are broken. I stared fixing the tests, but then I realized
  it was completely helpless because get_html_translation_table() is broken by not handling
  multi-byte characters correctly.
2010-10-10 19:04:59 +00:00
Gustavo André dos Santos Lopes b1d5cf7348 - Added numeric record type and raw data for unknown DNS
record types.
2010-10-08 23:02:37 +00:00
Gustavo André dos Santos Lopes dd5d1b2b66 - Fixed a typo in rev #304208 (24 instead of 34/'"').
- Improved the test bug53021.phpt to reflect other fixes in rev #304208.
- Updated NEWS to reflect other fixes in rev #304208.
2010-10-08 17:27:19 +00:00
Gustavo André dos Santos Lopes df42830468 - Fixed bug #53021 (In html_entity_decode, failure to convert numeric entities with ENT_NOQUOTES and ISO-8859-1). 2010-10-08 16:19:58 +00:00
Andrey Hristov 74ec58a045 new collations 2010-10-08 09:15:31 +00:00
Felipe Pena dbb6e0e9b0 - Added bison 2.4.3 version to the bison version list 2010-10-07 21:44:41 +00:00
Andrey Hristov 0e519d247e fix some uninitialized variables. also fix shadowing of global symbols 2010-10-07 13:49:00 +00:00
Ilia Alshanetsky 412d151681 Fixed extrenous warning inside openssl_encrypt() for cases where iv not provided, but algo does not require an iv 2010-10-07 12:32:00 +00:00
Gustavo André dos Santos Lopes e283f7a7fe - Added support for ICU Transformations (Transliterator).
- Changes request #52986 to "to be documented".
2010-10-06 18:53:27 +00:00
Gustavo André dos Santos Lopes da6366e74a - Fixed test for bug #50590 on systems with 64-bit longs. 2010-10-06 17:05:05 +00:00
Andrey Hristov 1f9cf93cac Fix for Bug #52686 mysql_stmt_attr_[gs]et arg. points to incorrect type 2010-10-06 11:11:02 +00:00
Andrey Hristov e38078bae9 fix broken merge, led to double define 2010-10-06 10:35:02 +00:00
Pierre Joye 76d273d455 - don't build if no libvpx available 2010-10-06 09:02:08 +00:00
Andrey Hristov 63d6892b56 more variable hiding fixes 2010-10-06 07:09:37 +00:00
Andrey Hristov b373ccd6fc fix shadowing of parameters 2010-10-06 06:08:55 +00:00
Kalle Sommer Nielsen b5831c05b3 Update copyright year for the license 2010-10-05 22:58:19 +00:00
Andrey Hristov 223832c501 rename parameter name - should not shadow the global symbol alloca 2010-10-05 17:20:00 +00:00
Andrey Hristov c7a09c682d two more compiler warnings fixed - size does matter 2010-10-05 17:10:47 +00:00
Andrey Hristov 396402fc97 Rename a method so it doesn't clash with a global symbol - a function
Fix compiler waring by extening the type of a variable
2010-10-05 17:03:50 +00:00
Andrey Hristov de69927b8e Fix compiler warnings - on 32bit size_t is smaller than uint64_t, although
we will never hit this the compiler should be happy.
2010-10-05 16:54:14 +00:00
Andrey Hristov 60bfedb1e6 rename parameter, should not conflict with global symbol -
the socket function
2010-10-05 16:27:49 +00:00
Andrey Hristov 07c08c1c93 remove trailing commas in enums 2010-10-05 14:56:49 +00:00
Ulf Wendel 8c319bf942 Fix test: third parameter can be false. 2010-10-05 14:41:08 +00:00
Antony Dovgal 444ea3c911 fix bug #50345 (nanosleep not detected properly on some solaris versions) 2010-10-05 13:43:35 +00:00
Ulf Wendel cda3b82d6d Greetings from SunCC.
ext/mysqli/mysqli_driver.c", line 127|128|129: warning: syntax error:  empty declaration
2010-10-05 12:42:53 +00:00
Ilia Alshanetsky 7b2a2eb326 Removed debug code 2010-10-05 12:27:00 +00:00
Dmitry Stogov 8dd1e05d6e Fixed bug #44248 (RFC2616 transgression while HTTPS request through proxy with SoapClient object). 2010-10-05 11:43:59 +00:00
Dmitry Stogov fa3f0bb63f Fixed bug #51008 (Zend/tests/bug45877.phpt fails) 2010-10-05 11:28:56 +00:00
Andrey Hristov a9da84800e add some safe casts 2010-10-05 11:08:21 +00:00
Patrick Allaert 0ef60a4544 Fixed typo in tests (thx Eyal) 2010-10-05 10:42:13 +00:00
Andrey Hristov 75ed0bbb3e fixing more types 2010-10-05 10:30:00 +00:00
Kalle Sommer Nielsen d6efd2fef4 Fixed constness compiler warning in pdo_mysql 2010-10-05 09:58:15 +00:00
Kalle Sommer Nielsen cc1eaba454 Fixed compiler warnings in mysqli
- mysqli.c: Fix unused variables, they are only used in non-mysqlnd mode
 - mysqli_api.c (PHP_5_3 only): Fix constness, add_property_string expects a char *, not a const char *
 - mysqli_prop.c: Cast to long, as its below the LONG_MAX and therefore safe
 - mysqli_result_iterator.c: Cast to ulong as the iterator member expects that rather than a my_longlong

# In trunk only warnings regarding the zend_property_info 
# structure is present and PHP_5_3 is warning free now
2010-10-05 09:40:36 +00:00
Andrey Hristov a3f2895e67 fix types 2010-10-05 08:56:21 +00:00
Ulf Wendel b3dfb56949 Fix warnings
ext\mysqlnd\mysqlnd_result_meta.c(57) : warning C4090: 'initializing' : different 'const' qualifiers
ext\mysqlnd\mysqlnd_result_meta.c(64) : warning C4090: 'initializing' : different 'const' qualifiers
ext\mysqli\mysqli_report.c(50) : warning C4013: 'php_mysqli_throw_sql_exception' undefined; assuming extern returning int
2010-10-05 08:29:54 +00:00
Andrey Hristov d4b1c1ec78 fix recent TSRM build break, with --enable-debug 2010-10-05 08:17:33 +00:00
Gustavo André dos Santos Lopes 99807e9a72 - Moved ucgendat.c to a separate directory and included the
OpenLDAP license there, as required by the license itself.
2010-10-05 02:34:35 +00:00
Gustavo André dos Santos Lopes 42dae97fd4 - Fixed bug #52981 (Unicode casing table was out-of-date).
Updated with UnicodeData-6.0.0d7.txt and included the
  source of the generator program with the distribution.
#The replaced tables, generated circa 2002, seem to reflect
#Unicode 3.2. I was unable to generate the same property
#offsets with Unicode 3.2 data, but all the tests I made
#indicate php_unicode_is_prop() is returning the correct
#values. The replaced file merely says it used a "modified
#version" of ucgendat, which is not very helpful. The results
#I got were not significantly different, only slightly higher
#offsets at two properties, which were carried over to the
#subsequent properties.
#I was, however, able to replicate precisely the casing table.
#The extent of the "modifications" besides omitting most of
#the tables, a slightly different layout and the casing table
#offsets having been multiplied by 3 is unclear.
#The test suite showed no regressions; however, it's very poor
#in testing the modified portion of the extension.
2010-10-05 01:54:17 +00:00
Felipe Pena f1d905a417 - Fix build 2010-10-04 23:05:32 +00:00
Pierre Joye 12f855b3be - missing file for webp 2010-10-04 22:34:02 +00:00
Pierre Joye dfb96b3b95 - initial webp support, rely on libpx, final version will be either w/o dep or using libwebp (to be released by g) 2010-10-04 22:33:07 +00:00
Pierre Joye cccc349aa5 - initial webp support, rely on libpx, final version will be either w/o dep or using libwebp (to be released by g) 2010-10-04 22:30:35 +00:00
Kalle Sommer Nielsen 304bc60e98 We do not need this TSRMLS_FETCH() call as we do not use any TSRM stuff in here, so we can get
a minor boost here in ZTS mode.
2010-10-04 21:04:25 +00:00
Kalle Sommer Nielsen 60f0599393 Skipped this one 2010-10-04 20:33:58 +00:00
Kalle Sommer Nielsen f2552322e7 Revert for now 2010-10-04 20:26:50 +00:00
Michael Maclean b30b0916bd Un-deprecate mt_rand and deprecate mt_getrandmax 2010-10-04 20:20:30 +00:00
Dmitry Stogov 656f1fb271 Bug #51155 (Unreasonable non-emalloc allocations of memory) 2010-10-04 15:50:47 +00:00
Andrey Hristov 026da7d4a0 fix two more warnings 2010-10-04 14:52:14 +00:00
Andrey Hristov 0a5c631488 add some safe casts - lower the number of warnings by 2 2010-10-04 14:12:31 +00:00
Andrey Hristov bf3b607f7a Fix const-ness 2010-10-04 13:54:30 +00:00
Ulf Wendel 926ba0d9c7 Trying to fix compiler warnings (on Windows). 2010-10-04 13:36:23 +00:00
Andrey Hristov d7b26d2987 Even better patch 2010-10-04 12:59:29 +00:00
Andrey Hristov 5f06ac5caf don't define twice the macro on some platforms 2010-10-04 12:41:12 +00:00
Ulf Wendel 500cd35c21 Fixing compiler warning. 2010-10-04 10:58:05 +00:00
Ulf Wendel 5d6f3fb908 Fixing "ext/mysqlnd/mysqlnd.h", line 287: warning: syntax error: empty declaration" 2010-10-04 10:51:44 +00:00
Ulf Wendel d73ea7c93e Next one... ext/mysqli/mysqli_fe.c", line [many]: warning: syntax error: empty declaration 2010-10-04 10:43:21 +00:00
Ulf Wendel ceb3b5cb22 Fixing compiler warning "ext/mysqli/mysqli_prop.c", line [...]: warning: syntax error: empty declaration" 2010-10-04 10:40:16 +00:00
Pierre Joye 8c0682f89f - Fix #52908, fix declaration 2010-10-04 10:35:32 +00:00
Ulf Wendel cbbd9e80bd Sorry again, nothing but removal of white space from the end of the lines.
- fix compile warning "ext/mysql/php_mysql.c:640:11: warning: extra tokens at end of #ifdef directive"
2010-10-04 10:08:10 +00:00
Ulf Wendel e20c62d3be Sorry for the commit but compiler warnings are annoying and so are white spaces at the end of a line, if one uses an editor which removes them on save and diff's get blown
up by white space changes...

Changes: 
- remove end of line white space
- fix compiler warning "ext/mysqli/mysqli_priv.h:156:27: warning: no newline at end of file"
- fix compiler warning "ext/mysqli/mysqli_fe.h:135:25: warning: no newline at end of file"
- fix compiler warning "ext/mysqli/mysqli.c:896:11: warning: extra tokens at end of #ifdef directive"
2010-10-04 10:02:58 +00:00
Dmitry Stogov e8c87c6d21 - Fixed bug #52773 (Proxy objects have an inadequate destroy_object store callback)
- Fixed bug #52774 (Proxy object's store free callback calls zval_ptor_dtor on already freed data)
2010-10-04 07:15:30 +00:00
Gustavo André dos Santos Lopes e1aa908468 - Implemented FR #50692, not uploaded files don't count towards
max_file_uploads limit.
- As a side improvement, temporary files are not opened for
  empty uploads and, in debug mode, 0-length uploads.
2010-10-04 01:27:33 +00:00
Felipe Pena 87a2373422 - Fixed bug #52971 (PCRE-Meta-Characters not working with utf-8)
#   In  PCRE,  by  default, \d, \D, \s, \S, \w, and \W recognize only ASCII
#       characters, even in UTF-8 mode. However, this can be changed by setting
#       the PCRE_UCP option.
2010-10-03 16:01:38 +00:00
Gustavo André dos Santos Lopes 00f75c79ca - Fixed a small mistake in the fix for bug #50953 that made connection timeouts not be detected as such. 2010-10-02 18:32:20 +00:00
Dmitry Stogov d3b6fbe39b Fixed bug #52940 (call_user_func_array still allows call-time pass-by-reference). (cataphract@php.net) 2010-10-01 11:53:04 +00:00
Dmitry Stogov f64e4bac49 Fixed bug #52879 (Objects unreferenced in __get, __set, __isset or __unset can be freed too early). (mail_ben_schmidt at yahoo dot com dot au, Dmitry) 2010-10-01 09:49:20 +00:00
Kalle Sommer Nielsen d252a45e82 * Added PHP_RAND_MAX and PHP_MT_RAND_MAX constants
* Deprecated getrandmax() and mt_getrandmax() in favour of the new constants

# We should promote constants for static data like such instead of function calls
# maybe this was just an old left-over
2010-10-01 09:18:44 +00:00
Ulf Wendel 1781aec59f Fix leak with persistent connections when using mysqli.default_host is used 2010-10-01 08:54:16 +00:00
Stanislav Malyshev d3b1ab9b20 Fix bug #52906 gmp_mod returns negative result when non-negative is expected 2010-10-01 00:12:23 +00:00
Andrey Hristov 77d73b814b Plug a leak in mysqli when in the same script
a pconn is reused.
Call end_psession earlier - so will mysqlnd and
the plugins free data earlier.
2010-09-30 18:10:03 +00:00
Dmitry Stogov 53d3320951 Prevented crash in GC because of incorrect reference counting 2010-09-30 14:11:51 +00:00
Adam Harvey 81faf213c3 Loosen the valgrind version check slightly in run-tests.php so that it works
with the packaged valgrind in Ubuntu 10.04.
2010-09-30 11:16:45 +00:00
Adam Harvey 750d835b70 Fixed bug #52941 (The 'iconv_mime_decode_headers' function is skipping
headers).
2010-09-30 11:04:21 +00:00
Gustavo André dos Santos Lopes 1c8e3c1b3e - Fixed bug #52944 (Invalid write on second and subsequent reads with an inflate filter fed invalid data). 2010-09-29 18:58:58 +00:00
Andrey Hristov d55566c7b8 Fix a problem that leads to leaks in plugins that
use stmt local data - no free is called for statements
that are over-prepared
2010-09-29 13:18:07 +00:00
Andrey Hristov 9d6fa31713 fix the test 2010-09-29 11:40:57 +00:00
Felipe Pena 2d8a4ea299 - Fixed bug #52947 (segfault when ssl stream option capture_peer_cert_chain used) 2010-09-29 01:25:35 +00:00
Stanley Sufficool 013725218a Remove non C90 quotes 2010-09-29 00:55:43 +00:00
Andrey Hristov 1762d63406 add another hook, maybe the last one, for MYSQLND_STMT, which
was missed before
2010-09-28 14:36:18 +00:00
Pierre Joye c8a717a2b1 - Fixed possible flaw in open_basedir (CVE-2010-3436) 2010-09-28 13:29:33 +00:00
Felipe Pena a9953ca3d4 - Fixed bug #52931 (strripos not overloaded with function overloading enabled) 2010-09-27 23:09:00 +00:00
Derick Rethans 5ff86a16d2 - Updated to version 2010.13 (2010m) 2010-09-27 13:57:42 +00:00
Andrey Hristov 6a43b14849 Fixed bug #45921 (Can't initialize character set hebrew)
sorry for committing it separated
2010-09-27 12:37:23 +00:00
Andrey Hristov c301c358ae Fix the value, it was bumped 2010-09-27 11:23:01 +00:00
Adam Harvey 1ac0c55897 Fix bug #52929 (Segfault in filter_var with FILTER_VALIDATE_EMAIL with large
amount of data).
2010-09-27 07:08:04 +00:00
Kalle Sommer Nielsen a3161aa091 Removed a TSRMLS_FETCH() call in php_idate() in favor of the TSRMLS macros 2010-09-27 01:19:57 +00:00
Pierre Joye a531b5f0d2 - fix bug #52926, zlib fopen wrapper does not use the context 2010-09-26 20:46:54 +00:00
Stanley Sufficool dc0736b3ed Update getColumnMeta native types for SQL Server 2008 2010-09-26 20:16:25 +00:00
Adam Harvey 42752c71d4 Fix failing phar tests. 2010-09-24 08:53:00 +00:00
Andrey Hristov 859a1404bf WS fixes 2010-09-23 16:03:22 +00:00
Ulf Wendel 1ab38567b9 Let's try not to have 'uft8'-only tests and avoid setting the charset upon connect. I've changed the tests to make no assumptions on the server charset setting. var_dump()/EXPECTF tests got replaced with dynamic tests which try to take the current charset into account. 2010-09-23 15:08:43 +00:00
Kalle Sommer Nielsen a6adb25d85 Eliminate a TSRMLS_FETCH() call in case of an error in one of the ereg functions 2010-09-23 04:51:02 +00:00
Kalle Sommer Nielsen 9c4a92cf51 There are a few cases where we can save a TSRMLS_FETCH() call here 2010-09-23 04:50:26 +00:00
Adam Harvey a89b97102e Fix up the vim folds in phar_object.c and add a note that the two prototypes
before Phar::__construct() are actually valid and not a mistake, per bug
#52909.
2010-09-23 04:41:14 +00:00
Kalle Sommer Nielsen 1ac15b2f8e Added TSRMLS macros into php_get_current_user() 2010-09-23 04:13:36 +00:00
Kalle Sommer Nielsen 68b1905702 Cast to char * here 2010-09-23 03:54:54 +00:00
Kalle Sommer Nielsen 06a9baf4d9 Missed to check this one in the last commit 2010-09-23 03:49:26 +00:00
Kalle Sommer Nielsen cb50011016 Fixed compiler warnings in the standard library 2010-09-23 03:45:36 +00:00
Kalle Sommer Nielsen 466c0b88d7 Fixed signedness compiler warning 2010-09-23 03:33:36 +00:00
Andrey Hristov 1af3e68880 Unify, force one charset at connect, thus fixing
test failures because different servers have different
system charsets.
2010-09-22 18:25:33 +00:00
Ulf Wendel 44fba4d934 Test update for sql_mode = ansi 2010-09-22 15:22:22 +00:00
Ulf Wendel 8236f62ce2 Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
Andrey Hristov c5fe8b72e3 here comes the news 2010-09-22 15:15:11 +00:00
Andrey Hristov 4c26112c88 Fix for
Request #48082 mysql_connect does not work with named pipes
2010-09-22 15:14:04 +00:00
Andrey Hristov 7346d8d590 small macro fix 2010-09-22 14:54:43 +00:00
Andrey Hristov 0b74eb2e96 fix for bug 52891 - optimize a bit 2010-09-22 14:26:43 +00:00
Andrey Hristov fbaed5476c Fix for
Bug #52891 Wrong data inserted with mysqli/mysqlnd when using bind_param,value>LONG_MAX
2010-09-22 11:38:49 +00:00
Andrey Hristov c0528261d7 update tests 2010-09-22 11:09:29 +00:00
Felipe Pena ee4f5ac1c0 - Fixed EG(saved_fpu_cw) initialization 2010-09-22 00:11:34 +00:00
Ulf Wendel 10974d77f4 Trying to pimp gcov.php.net code coverage tests.. trying to cover mysqlnd compress code with a standard test run 2010-09-20 19:01:13 +00:00
Ulf Wendel f7c54d0737 Align test to the style used in the other tests 2010-09-20 18:26:11 +00:00
Ulf Wendel 579b5f2d63 No reason not to run the tests with libmysql. Its long, long ago that pconnect has been a mysqlnd only feature 2010-09-20 17:26:39 +00:00
Ilia Alshanetsky 2f9da7fce0 Fixed a compiler warning 2010-09-20 12:48:27 +00:00
Dmitry Stogov c2a92f3d27 Fixed bug #52888 (Zend MM shutdown crash) 2010-09-20 12:12:42 +00:00
Dmitry Stogov bd8f3908c4 Reverted wrong patch 2010-09-20 10:45:22 +00:00
Ulf Wendel 70d231bf13 Dont be strict on error messages, they can vary by server version 2010-09-20 09:04:48 +00:00
Andrey Hristov e389303ef3 add test case for 52891 2010-09-20 09:02:31 +00:00
Kalle Sommer Nielsen 210fe80bd5 Fix incompatible types, we need to use a char here for recv() 2010-09-19 19:18:30 +00:00
Rui Hirokawa bd526e47f5 fixed compilation error. 2010-09-19 01:28:32 +00:00
Kalle Sommer Nielsen 208aa1025d Improved performance of unserialize(), original patch by galaxy dot mipt at gmail dot com 2010-09-18 16:09:28 +00:00
Ulf Wendel 1c9e784985 Skip if PDO_SQLITE is not available 2010-09-17 17:11:21 +00:00
Ulf Wendel d67c72668f Remove OS dependent directory separator from EXPECT 2010-09-17 16:40:02 +00:00
Pierre Joye c4334c7c38 - restore VOLUME_NAME_NT and VOLUME_NAME_DOS definition, thx Andrey for the headup 2010-09-17 11:34:49 +00:00
Pierre Joye 3bdac76cf1 - fix ts build (zend_list_insert change) 2010-09-17 10:51:53 +00:00
Pierre Joye c17f8ecd6a - use popen_ex directly, avoid the tsrm fetch 2010-09-17 10:04:28 +00:00
Pierre Joye b154864cc9 - drop tsrmls_fetch in popen_ex 2010-09-17 10:00:01 +00:00
Pierre Joye 83527d16a3 - drop tsrmls_fetch in tsrm_win32_access 2010-09-17 09:27:19 +00:00
Pierre Joye 79ee513903 - drop TSRMLS_FETCH in sapi_register_* (won't bring much at runtime :) ) and cleanup/group the upgrade guide, no need of twenty titles for the same change 2010-09-17 08:42:12 +00:00
Pierre Joye 05383a1072 - drop TSRMLS_FETCH in sapi_register_* (won't bring much at runtime :) ) and cleanup/group the upgrade guide, no need of twenty titles for the same change 2010-09-17 08:41:05 +00:00
Antony Dovgal 4bf895cb08 fix ZTS build 2010-09-17 07:07:52 +00:00
Felipe Pena ab3fc00983 - Added missing entries related to pdo_dblib 2010-09-16 21:49:48 +00:00
Pierre Joye 6699cfaa51 - WS 2010-09-16 19:15:26 +00:00
Adam Harvey cb9c8233fc Implement FR #44331 (Formatting option for json_encode). Bikeshedding about the
exact form of the JSON pretty printing and brace handling will only be accepted
in the form of patches. ;)
2010-09-16 16:21:15 +00:00
Adam Harvey d8b8d22a0d Rebalance the folds in json.c. 2010-09-16 14:15:19 +00:00
Adam Harvey 726fe638bb Implemented FR #49366 (Make slash escaping optional in json_encode()). 2010-09-16 13:53:27 +00:00
Pierre Joye aa297b60a3 - zend_list_insert TSRMLS fix (thx tony for the headup) 2010-09-16 13:34:51 +00:00
Pierre Joye 5a7bd45c1a - cleanup ze1/ze2 2010-09-16 10:01:51 +00:00
Pierre Joye ed58636f00 - use TSRMLS_D/C with php_stream_context_alloc 2010-09-16 09:33:42 +00:00
Pierre Joye daa90813fb - use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert, missing header 2010-09-16 09:18:46 +00:00
Pierre Joye aa0ed267a2 - use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert 2010-09-16 09:13:19 +00:00
Pierre Joye 14e77486e0 - unused, double declared 2010-09-15 22:25:44 +00:00
Pierre Joye b1fcb740a7 - not there anymore 2010-09-15 22:11:28 +00:00
Pierre Joye 4420a91bbd - macros--; ZEND_FAST_* are now gone 2010-09-15 17:27:43 +00:00
Pierre Joye c93631a137 - update and restore TOC 2010-09-15 17:04:22 +00:00
Pierre Joye ef53214b1c - not used anymore 2010-09-15 16:58:11 +00:00
Andrey Hristov f60bd23914 remove unneeded proxy function _mysqlnd_restart_psessoin 2010-09-15 12:23:45 +00:00
Andrey Hristov d5f1517cd6 Remove unneeded proxy function _mysqlnd_end_psession 2010-09-15 12:11:33 +00:00
Adam Harvey 767bc20ed5 Fix bug #52849 (GNU MP invalid version match). 2010-09-15 10:51:55 +00:00
Dmitry Stogov e3bb93480a Regenerated 2010-09-15 07:39:57 +00:00
Dmitry Stogov f2df6a4a3e - Improved memory usage
. zend_function.pass_rest_by_reference is replaced by
    ZEND_ACC_PASS_REST_BY_REFERENCE in zend_function.fn_flags
  . zend_function.return_reference is replaced by ZEND_ACC_RETURN_REFERENCE
    in zend_function.fn_flags
  . zend_arg_info.required_num_args removed. it was needed only for internal
    functions. Now the first arg_info for internal function (which has special
    meaning) is represented by zend_internal_function_info structure.
  . zend_op_array.size, size_var, size_literal, current_brk_cont,
    backpatch_count moved into CG(context), because they are used only during
    compilation.
  . zend_op_array.start_op is moved into EG(start_op), because it's used
    only for 'interactive' execution of single top-level op-array.
  . zend_op_array.done_pass_two is replaced by ZEND_ACC_DONE_PASS_TWO in
    zend_op_array.fn_flags.
  . op_array.vars array is trimmed (reallocated) during pass_two.
  . zend_class_entry.constants_updated is replaced by
     ZEND_ACC_CONSTANTS_UPDATED in zend_class_entry.ce_flags
  . the size of zend_class_entry is reduced by sharing the same memory space
    by different information for internal and user classes.
    See zend_class_inttry.info union.
2010-09-15 07:38:52 +00:00
Felipe Pena 3e92b20434 - Fixed bug #52843 (Segfault when optional parameters are not passed in to mssql_connect) 2010-09-15 02:12:46 +00:00
Jérôme Loyet 8b9ed0d369 - remove a memory leak (missing efree()) 2010-09-14 15:33:43 +00:00
Johannes Schlüter 1e1e70dc55 - Don't be silent on bailout 2010-09-14 14:26:37 +00:00
Adam Harvey 56ea98734c Fix bug #52827 (cURL leaks handle and causes assertion error (CURLOPT_STDERR)).
Patch by Gustavo.
2010-09-14 10:58:59 +00:00
Pierre Joye b6d8462ab2 - fix #48831 php -i has different output to php --ini 2010-09-14 10:36:21 +00:00
Adam Harvey 3c93eab5a3 Fix English in the error message emitted when json_decode() is called with
depth <= 0.
2010-09-14 03:46:28 +00:00
Pierre Joye 2b1e18f81b - fix build introduced by fix for #52772 2010-09-13 21:54:47 +00:00
Kalle Sommer Nielsen 67b4af3e6a Fixed bug #52772 (var_dump() doesn't check for the existence of get_class_name before calling it) 2010-09-13 20:14:18 +00:00
Pierre Joye e5e089950b - use php_sys_sat 2010-09-13 11:17:40 +00:00
Pierre Joye 196e45aa5c - ws 2010-09-13 11:06:18 +00:00
Pierre Joye 2beb341374 - sanity check for the path length and don't treat UNC as local path (no functional change, only less ops) 2010-09-13 10:58:18 +00:00
Pierre Joye da4d4cef5e - silent warning 2010-09-13 10:28:45 +00:00
Pierre Joye 8a18e0b716 - use php_sys_lstat 2010-09-13 10:27:55 +00:00
Pierre Joye d5ca12b03e - use php_sys_readlink 2010-09-13 09:30:07 +00:00
Pierre Joye ba5b4afc32 - WS 2010-09-13 09:08:42 +00:00
Adam Harvey a53f43d7b5 Fix bug #52826 (phpinfo is incorrect for bzip2 stream wrapper). 2010-09-13 07:41:39 +00:00
Pierre Joye f25cbae9b1 - remove dummy wrapper for readfile 2010-09-11 19:07:43 +00:00
Felipe Pena feda017cce - Fixed bug #49215 (make fails on glob_wrapper) 2010-09-10 21:33:50 +00:00
Pierre Joye e62a10c4d0 - use OPENBASEDIR_CHECKPATH macro (does safe mode too in 5.3) so trunk and branches are the same 2010-09-10 19:27:39 +00:00
Pierre Joye dd902c7161 - use php_sys_readlink 2010-09-10 19:25:56 +00:00
Pierre Joye e0591d0ea1 - remove 'UNC' from the target 2010-09-10 19:21:02 +00:00
Pierre Joye 4d8d26d0db - open_basedir symlink support for Windows 2010-09-10 17:45:13 +00:00
Pierre Joye b4368a76cd - Implement bug #51804, splFileInfo::getLinkTarget() on Windows 2010-09-10 14:17:40 +00:00
Pierre Joye ae50441266 - WS 2010-09-10 14:02:19 +00:00
Pierre Joye bf0a5ea745 - add php_sys_readlink 2010-09-10 14:01:44 +00:00
Adam Harvey 2441ddf10e Fix bug #52802 (Out-of-date comment for
file_get_contents/php_stream_copy_to_mem) by updating the relevant comments.
2010-09-10 03:08:05 +00:00
Felipe Pena 264d65bd6e - Fixed test 2010-09-09 21:46:29 +00:00
Adam Harvey c2f2f68692 Fixed bug #52744 (cal_days_in_month incorrect for December 1 BCE). Original
patch by gpap at internet dot gr.
2010-09-09 06:41:23 +00:00
Adam Harvey 02b2a28882 Fix bug #52786 (PHP should reset section to [PHP] after ini sections). Patch by
Fedora at famillecollet dot com.
2010-09-09 05:11:05 +00:00
Pierre Joye 6b72fef134 - fix the fix for bug #52323 2010-09-08 11:51:11 +00:00
Pierre Joye 123ab59b9c - WS 2010-09-08 10:26:59 +00:00
Pierre Joye 487746cf39 - Fix bug #52323, return value of php_network_connect_socket should be set even if the caller does not care about the error_string 2010-09-08 10:25:40 +00:00
Pierre Joye c57bf4a4d9 - WS 2010-09-08 09:11:18 +00:00
Pierre Joye 367bd11d6f - Fix #50524, proc_open should respect cwd as it does on other platforms 2010-09-08 08:34:57 +00:00
Dmitry Stogov 411f9fbe4d We don't need to preallocate a memory segment in case we don't use zend memory manager 2010-09-08 07:52:49 +00:00
Felipe Pena 7f9527bb22 - Fixed wrong type 2010-09-08 01:46:23 +00:00
Jérôme Loyet a7e18ea855 - remove FPM specific version which is irrelevant since FPM integration into core. 2010-09-07 22:03:43 +00:00
Jérôme Loyet 75891691ed - Fixed bug #52498 (libevent was not only linked to php-fpm) 2010-09-07 21:12:28 +00:00
Pierre Joye 7ce4f4955d - fix bug #50953, socket will not connect to IPv4 address when the host has both ipv4 and ipv6 addresses 2010-09-07 09:47:36 +00:00
Pierre Joye 2110655d4d - WS 2010-09-06 14:43:44 +00:00
Dmitry Stogov c290767ed7 Fixed bug #46723 (FastCGI persistent connection is incredibly slow due to TCP ack delay). 2010-09-06 11:11:40 +00:00
Pierre Joye abf4853145 - fix bug #52260, catch all DNS not found error 2010-09-06 10:57:42 +00:00
Pierre Joye 8648b1beff - timeval element are always 32bit long on Windows 2010-09-06 10:39:26 +00:00
Pierre Joye 75df1719be - kill warning 2010-09-06 10:28:04 +00:00
Pierre Joye 84d1c12b92 - restore credits, fix 5.3 as well, aka do it right /cc Deric 2010-09-05 14:38:35 +00:00
Derick Rethans 0c19577c28 - Clean up the generated tmp-php.ini after make test has run. 2010-09-05 12:29:47 +00:00
Derick Rethans edfc45507a - Turn test-description into on line. 2010-09-05 08:46:41 +00:00
Rasmus Lerdorf 8790a4918c This incorrect contraction started to get on my eyes after I saw it for the
87th time while struggling with an annoying SOAP service.
2010-09-03 22:24:08 +00:00
Dmitry Stogov 88bf6d2e16 Fixed GC bug 2010-09-03 09:27:47 +00:00
Ulf Wendel d1f40f7439 Fix test failure. Add new test for MYSQLI_OPT_INT_AND_FLOAT_NATIVE mysqlnd feature. 2010-09-02 14:57:38 +00:00
Pierre Joye 9b6d0f222e - typo/clarity 2010-09-02 10:30:34 +00:00
Felipe Pena 7396657fc1 - Fixed compiler warning (missing return statement) 2010-09-01 23:21:03 +00:00
Stanislav Malyshev 68eb876351 Fix bug #50590 - IntlDateFormatter::parse result is limited to the integer range 2010-09-01 20:34:59 +00:00
Andrey Hristov 383d7d005a fix build on windows, seems this macro is not defined 2010-09-01 16:54:20 +00:00
Dmitry Stogov 6bc16cce8f Reduced overhead of FastCGI using near-perfect hash function and predcalculated hash values. 2010-09-01 15:34:48 +00:00
Andrey Hristov b2bcf3ae48 OPT_COMPRESS support for mysqlnd_conn::set_client_option
To be used by mysqli_options
2010-09-01 14:47:36 +00:00
Dmitry Stogov 001d83dc47 invalid length 2010-09-01 14:42:43 +00:00
Pierre Joye f22c9a67f9 - is_link note 2010-09-01 10:23:58 +00:00
Pierre Joye b1e0e9ea5a - fix index 2010-09-01 10:22:29 +00:00
Pierre Joye ada5423308 - WS 2010-09-01 10:16:48 +00:00
Pierre Joye 6d6645b3f8 - upgrading addition about stat/lstat 2010-09-01 09:54:45 +00:00
Pierre Joye dec8593fac - add lstat support for Windows 2010-09-01 09:49:53 +00:00
Jérôme Loyet 70d7d86505 - Fixed bug #52725 (gcc builtin atomic functions were sometimes used when they were not available). 2010-09-01 08:17:18 +00:00
Jérôme Loyet 4d62c8c501 - add 'max children reached' to the FPM status page. It shows how many times
a pool has reached the max_children parameter.
2010-08-31 14:49:16 +00:00
Ulf Wendel d3670280f0 PHP has changed (undefined) behaviour from 5.3.2 to 5.3.3: ->{} = , which seems to have been never an officially supported syntax and have never been a valid property name, is no longer allowed and PHP bails. 2010-08-31 14:43:02 +00:00
Timm Friebe 45a2e5d447 - Add ".so" suffix to checks on libsybct[64] bundles
# See patch by royanee at yahoo dot com @ bug #45357
2010-08-31 12:27:29 +00:00
Jérôme Loyet b212312a93 - Add libevent version to the startup debug log in FPM. 2010-08-31 09:41:04 +00:00
Jérôme Loyet bf28d740e3 - Changed listen.backlog in the FPM configuration file to default to 128
instead of -1 (except on FreeBSD and OpenBSD). This is the same value 
  as the one used in the cgi sapi. This patch completes revision 302725.
2010-08-31 09:33:53 +00:00
Felipe Pena 1fc65cbf03 - Fixed crash on non-Windows build 2010-08-30 21:34:54 +00:00
Andrey Hristov 2ab9513ff4 Fix for MySQL Bug #49406
Binding params doesn't work when selecting a date inside a CASE-WHEN
(http://bugs.mysql.com/bug.php?id=49406)
The MySQL server sends MYSQL_TYPE_NEWDATE values as clear text, even
when PS are used and thus the binary protocol are used. Changing the
handler for the type.
2010-08-30 18:10:23 +00:00
Pierre Joye 2721bbfcf9 - fix possible leak and error while fetching PHPRC 2010-08-30 17:05:56 +00:00
Ulf Wendel 42fea46887 Adding MYSQLI_OPT_SSL_VERIFY_SERVER_CERT for use with mysqli_options(). 2010-08-30 16:59:10 +00:00
Pierre Joye 1cd82c9db2 - WS 2010-08-30 16:52:48 +00:00
Derick Rethans 9146218e2e - Keep 5.3 and trunk in sync. 2010-08-30 16:50:10 +00:00
Derick Rethans 12491aaefa - Tests for bug #52342 (DateTime setIsoDate results in wrong timestamp). 2010-08-30 16:48:21 +00:00
Derick Rethans 1fc5e47fb6 - Fixed bug #52430 (date_parse parse 24:xx:xx as valid time). (Derick) 2010-08-30 16:40:29 +00:00
Derick Rethans fcc22c6af3 - Fixed bug #52454 (Relative dates and getTimestamp increments by one day) 2010-08-30 16:25:52 +00:00
Derick Rethans 974f1ff2e9 - Test for (non-)bug #52577. 2010-08-30 15:40:36 +00:00
Derick Rethans 8defb90006 - Added test for bug #46874 (same as #52668). 2010-08-30 15:35:41 +00:00
Derick Rethans ab6789a0ef - Fixed bug #52668 (Iterating over a dateperiod twice is broken). 2010-08-30 15:32:09 +00:00
Jérôme Loyet d5a12aef12 - only one process (for all pools) could be killed by the 'dynamic' process manager. Now it's one process per pool which can be killed by the 'dynamic' process manager.
- rename nonsense variable (i)
2010-08-30 15:21:31 +00:00
Pierre Joye 648f3829fd - remove internals stuff, moved to the INTERNALS guide 2010-08-30 10:27:03 +00:00
Pierre Joye b01d74f7f9 - initial import, internals upgrade guide 2010-08-30 10:26:31 +00:00
Pierre Joye 100228aae1 - use TSRMLS_CC instead of TSRMLS_FETCH in virtual_file_ex 2010-08-30 09:38:47 +00:00
Ulf Wendel b12d435b14 If you add functions to the PDO core, take care not to break other PDO drivers tests, document the function and provide a function test for the PDO core to check your default/fallback implementation. 2010-08-30 09:20:48 +00:00
Ilia Alshanetsky 9cad594085 Fixed a compiler warning 2010-08-27 19:43:08 +00:00
Pierre Joye cde759600b - WS 2010-08-27 10:09:52 +00:00
Dmitry Stogov d4c2c6c6ba Don't check FCGI_WEB_SERVER_ADDRS for UNIX sockets 2010-08-27 08:50:32 +00:00
Dmitry Stogov a95dd97752 Added apache compatible functions (apache_child_terminate, getallheaders, apache_request_headers, apache_response_headers) to FastCGI SAPI 2010-08-27 08:34:44 +00:00
Dmitry Stogov d8bddb9665 In some SAPI (e.g. FastCGI) we don't need to setup and reset libxml callbacks on each request, we con do it only once. Probably the list of such SAPI may be extended. 2010-08-27 06:12:37 +00:00
Dmitry Stogov caffc1c972 Preallocate zend_hash instead of allocation/deallocation it on each request 2010-08-27 06:09:18 +00:00
Adam Harvey f33837ff97 Implemented request #34857 (Change array_combine behaviour when called with
empty arrays). Patch by Joel Perras <joel.perras@gmail.com>.
2010-08-27 03:54:10 +00:00
Pierre Joye 0f34683304 - WS 2010-08-26 14:23:48 +00:00
Pierre Joye b777280933 - Symlink resolution fails when target is a DFS path 2010-08-26 14:23:17 +00:00
Ulf Wendel db9667d2a5 Test for http://bugs.mysql.com/bug.php?id=49406, Binding params doesn't work when selecting a date inside a CASE-WHEN 2010-08-26 13:35:20 +00:00
Dmitry Stogov c0cf4ef129 Removed useless copying 2010-08-26 12:21:06 +00:00
Dmitry Stogov ab6ce922e2 Use stack instead of heap 2010-08-26 12:20:35 +00:00
Felipe Pena cbe9f57a17 - Fixed bug #52699 (PDO bindValue writes long int 32bit enum) 2010-08-25 22:03:03 +00:00
Andrey Hristov 721f6dae57 fix the build. two mysqli functions were missing after
recent commit - set_charset and get_charset
2010-08-25 15:02:02 +00:00
Dmitry Stogov d663b9cc77 Don't try to read the rest of malformed FCGI requests, close immediately. It saves one recv() call for proper FCGI request. 2010-08-25 13:48:16 +00:00
Dmitry Stogov 7fc86e5cb4 ws 2010-08-25 11:44:15 +00:00
Dmitry Stogov 2188f26c45 Fixed bug #52614 (Memory leak when writing on uninitialized variable returned from method call) 2010-08-25 09:14:36 +00:00
Adam Harvey 45960c9030 Fixed bug #52681 (mb_send_mail() appends an extra MIME-Version header). 2010-08-25 06:07:22 +00:00
Jérôme Loyet 266e369184 - Changed listen.backlog in the FPM configuration file to default to 128
instead of -1. This is the same value as the one used in the cgi sapi.
2010-08-23 23:22:36 +00:00
Jérôme Loyet f5e38e30b6 - Fixed bug #52674 (FPM Status page returns inconsistent Content-Type headers). 2010-08-23 20:40:44 +00:00
Pierre Joye 4cda8a7797 -fix logic (and BC break) 2010-08-23 18:05:05 +00:00
Pierre Joye d8d014be78 - revert fix for #52655, rev. 302614 2010-08-23 17:01:44 +00:00
Pierre Joye a0e223b8ba - add follow_location support for http stream, enabled by default to keep BC. Allows one to ignore the location header, w/o having to ignore errors or other tricks, the location data is however still available (meta) 2010-08-23 16:54:57 +00:00
Ilia Alshanetsky a532eefe29 Fixed bogus char 2010-08-22 18:17:19 +00:00
Scott MacVicar 1e48c71b96 Fix a bug where two doubles are equal but the maths operation makes it appear false.
Best example with INF where equals and identical produce different results.

<?php
var_dump(INF==INF);
var_dump(INF===INF);
2010-08-22 08:01:34 +00:00
Kalle Sommer Nielsen 77755af9b6 Fixed bug #52655 (SimpleXMLIterator supports ArrayAccess without implementing the interface) 2010-08-21 16:22:46 +00:00
Felipe Pena 76862dfd0c - Added missing void parameter checks 2010-08-21 16:09:18 +00:00
Jérôme Loyet 6b8f3c0c59 - Fix #52407 (use __sync_bool_compare_and_swap in fpm_atomic.h if gcc >= 4.1 is used - credit to geissert) 2010-08-21 06:46:18 +00:00
Jérôme Loyet 06228b2cab - typo (thx to sixd) 2010-08-20 17:00:57 +00:00
Pierre Joye 511b547342 - fix string validation, MOPS-2010-24 2010-08-20 16:37:33 +00:00
Andrey Hristov 67ef72018f Fix for bug #52654 mysqli doesn't install headers with structures it uses 2010-08-20 12:25:17 +00:00
Jérôme Loyet 99a4506787 Fix #52609 (INI scanner did not use ZEND_INI_SCANNER_NORMAL) 2010-08-20 08:33:57 +00:00
Ilia Alshanetsky e9735b92a4 Fixed bug #52599 (iconv output handler outputs incorrect content type when flags are used). 2010-08-19 12:27:13 +00:00
Felipe Pena 37c39519bc - Reverted unintended modification 2010-08-18 22:08:36 +00:00
Kalle Sommer Nielsen faac456bde Fixed possible crash in php_mssql_get_column_content_without_type()
# Also fix NEWS entry in PHP_5_2 for previous commit
2010-08-18 20:16:05 +00:00
Kalle Sommer Nielsen 20f4bdc399 Fixed bug #52636 (php_mysql_fetch_hash writes long value into int)
# Tested by rein at basefarm dot no
2010-08-18 20:00:18 +00:00
Kalle Sommer Nielsen 250fcf9317 Nuke compiler warning, wrong fix that shouldn't have been in the previously commit 2010-08-18 18:00:33 +00:00
Dmitry Stogov 8a6d73b084 improved performance of @ (silence) operator 2010-08-18 13:58:13 +00:00
Kalle Sommer Nielsen 34b631f679 Pass the TSRMS pointers to sapi_module_struct.log_message, this saves some TSRMLS_FETCH() calls in a few of our SAPI's 2010-08-18 13:34:40 +00:00
Kalle Sommer Nielsen 65d031d3da Use the TSRMLS_DC/TSRMLS_CC macros instead of TSRMLS_FETCH() 2010-08-18 12:59:52 +00:00
Dmitry Stogov d6e772a1d0 Fixed ZTS build 2010-08-18 11:59:30 +00:00
Dmitry Stogov 42289228ff Revert unintended modification 2010-08-18 09:45:52 +00:00
Dmitry Stogov bfbfd15a2a improved performance of FastCGI request parsing 2010-08-18 08:22:41 +00:00
Felipe Pena f3028b9226 - Improved fix for bug #52573 2010-08-18 01:59:37 +00:00
Andrey Hristov 9c0439e4bc Fix for Bug #52613 crash in mysqlnd 2010-08-17 18:08:25 +00:00
Andrey Hristov 00825de6a2 Use PHP_DEP_FE - good for reflection 2010-08-17 17:40:31 +00:00
Andrey Hristov 18aadba237 here comes the news 2010-08-17 15:39:26 +00:00
Andrey Hristov 8600c1b4da Deprecate mysql_list_dbs, as mysql_list_tables is already deprecated.
As well as mysql_list
2010-08-17 15:37:44 +00:00
Kalle Sommer Nielsen 0655d34070 Fixed compiler warning 2010-08-17 12:57:04 +00:00
Kalle Sommer Nielsen 159cd6916d Fixed compiler warnings in main/ 2010-08-17 12:49:19 +00:00
Kalle Sommer Nielsen a12f6d9312 Fixed the $context parameter on copy() to have an effect (approved for 5.3 by Johannes)
# To not change a PHPAPI in a point release, a new function have been added to support contexts:
# php_copy_file_ctx(), php_copy_file_ex() now simply wraps to that
2010-08-17 12:17:28 +00:00
Sascha Schumann 0cbc4a08a1 align declaration with definition
(patch by kalle)
2010-08-17 12:14:52 +00:00
Kalle Sommer Nielsen ac73c9d8b4 Fixed the context parameter on copy() to actually have an effect
# After looking at the logs, Jani did a bad merge into 5.3, so that 
# the context parameter sent to copy() actually isn't used at all. This 
# relatively simple patch fixes that for trunk.
#
# See FR #42965

# internals:
# This changes the php_copy_*() decls to contain an additional parameter for stream contexts
2010-08-16 21:56:35 +00:00
Kalle Sommer Nielsen 0cc294687e Fixed bug #50836 (run_tests.php alerts syntax errors while testing session) 2010-08-16 20:56:00 +00:00
Andrey Hristov 277c7d4dea Added utf16 and utf32 support, as in MySQL 5.5, in mysqlnd.
Fixed tests, so they don't try to use SET NAMES utf16|utf32,
as character_set_client can't be set to those (the lexer can't
read ucs2, utf16 and utf32).
Added support for 4-byte utf8, as found in MySQL 5.5
2010-08-16 17:44:50 +00:00
Andrey Hristov 5d54d79e04 Fix test, so it doesn't fail with MySQL 5.5, where InnoDB
is the default engine
2010-08-16 16:15:15 +00:00
Andrey Hristov 3ed9d8fd85 detect easily which charset doesn't work 2010-08-16 16:13:55 +00:00
Derick Rethans 1bae298a07 - Updated to version 2010.12 (2010l) 2010-08-16 12:48:53 +00:00
Pierre Joye 7bd81da0b5 - WS 2010-08-16 10:29:01 +00:00
Derick Rethans dcfa7ee212 - Updated to version 2010.11 (2010k) 2010-08-16 09:32:51 +00:00
Dmitry Stogov d93cf2a2d0 Bug #52361 (Throwing an exception in a destructor causes invalid catching) 2010-08-16 09:20:46 +00:00
Dmitry Stogov e461c22ea9 Fixed memory leaks (related to bug #52361) 2010-08-16 08:11:08 +00:00
Kalle Sommer Nielsen 0ff6f90446 Fixed bug #52593 (exif is placed before mbstring in php.ini) 2010-08-16 00:26:39 +00:00
Pierre Joye 7dd694ec15 - #52607, fix ENV conflit with win SDK 7.1 2010-08-15 13:54:03 +00:00
Ilia Alshanetsky fe07ed4b42 Upgraded bundled Sqlite3 to version 3.7.0.1 2010-08-14 14:44:39 +00:00
Felipe Pena fdb6077fda - Missing traits data initialization for internal classes (causing Reflection to crash) 2010-08-14 01:12:43 +00:00
Kalle Sommer Nielsen 9806c21259 Changed mysqli_report() to be per-request specific rather than per-process specific (Fixes #52390) 2010-08-13 10:43:15 +00:00
Andrey Hristov aff34b2133 Fix for bug #52413 MySQLi build failure on OS X 2010-08-13 09:57:04 +00:00
Andrey Hristov d7b72a0494 Fix for bug #52433 Call to undefined method mysqli::poll() 2010-08-13 09:18:06 +00:00
Andrey Hristov c803b0024a Make this function static, as it is used only in this file.
Add additional comment about how it works.
2010-08-12 14:17:31 +00:00
Andrey Hristov 9da177f8d5 Allocate memory in a burst mode, and later use it. Increases
locality of the data.
Also use MYSQLND_INC_CONN_STATISTIC in one place, instead of
two, thus removing code duplication from macro expansion - less
code to fit in the instruction cache.
2010-08-12 13:23:16 +00:00
Andrey Hristov c974313aed Switch from using PHP_MAJOR_VERSION to separate define for
unicode. Unicode is no more, but these are "bookmarks" where
to change mysqlnd, if Unicode becomes trendy again.
2010-08-12 12:02:02 +00:00
Andrey Hristov d27983e781 ws + cs 2010-08-12 11:38:08 +00:00
Kalle Sommer Nielsen aae13b29a9 Fixed bug #50804 (Document configure.js --enable-crt-debug) 2010-08-11 22:38:15 +00:00
Kalle Sommer Nielsen e1ba73d3d9 Ignore the x64 directory for Windows x64 builds 2010-08-11 21:47:49 +00:00
Kalle Sommer Nielsen a448b6a72b MFB53: Changed deprecated ini options on startup from E_WARNING to E_DEPRECATED (Fixes #52570)
# Some of the updated tests were to make them sync with 5.3 although they don't run on trunk anymore
2010-08-11 21:41:30 +00:00
Dmitry Stogov f48999ca3b Optimization of ASSIGN instruction 2010-08-11 15:34:06 +00:00
Dmitry Stogov 931c2d104d In ZTS mode default properties and constants of internal classes can't be modified in place and have to be separated 2010-08-11 09:38:41 +00:00
Dmitry Stogov 7566ff38a1 Fixed support for static properties of internal classes 2010-08-11 08:34:54 +00:00
Felipe Pena c10bb27254 - Fixed bug #52573 (SplFileObject::fscanf Segmentation fault) 2010-08-10 22:37:24 +00:00
Dmitry Stogov e0b728597b Optimization (IS_TMP_VARs don't need reference counting) 2010-08-10 15:24:19 +00:00
Dmitry Stogov 523b965cd4 Prevent generation of long strings 2010-08-10 14:44:50 +00:00
Dmitry Stogov 808fd3f1f7 Optimization 2010-08-10 14:43:17 +00:00
Ilia Alshanetsky 57ff563262 Make http_response_code() return FALSE where data is not available (Ex. cli sapi) 2010-08-10 00:19:51 +00:00
Andrey Hristov da42d146ab Fix Request #52302 mysqli_fetch_all does not work with MYSQLI_USE_RESULT 2010-08-09 17:29:30 +00:00
Andrey Hristov ebaee8a4d0 Lay foundations for named pipe support in mysqlnd 2010-08-09 17:01:57 +00:00
Kalle Sommer Nielsen a7fb65f9fd Update UPGRADING 2010-08-09 13:27:13 +00:00
Kalle Sommer Nielsen 4281addcb7 Implemented FR #52555 (Ability to get HTTP response code)
- Patch by Paul Dragoonis
2010-08-09 13:10:32 +00:00
Pierre Joye c2ea73542f - #52523, fix logic (0 is perfectly valid as part of the data, bin data) 2010-08-09 08:14:14 +00:00
Pierre Joye ab8e74a0c8 - WS 2010-08-09 07:32:21 +00:00
Felipe Pena 84bc1c8593 - Fixed bug #50481 (Storing many SPLFixedArray in an array crashes) 2010-08-08 23:56:29 +00:00
Felipe Pena 30470999fe - Back the free() call for __iterator_wrapper to free the ce->name, as it is a fake class 2010-08-08 22:43:14 +00:00
Felipe Pena c6c97db78f - Fix warning because the comparsion with literal (e.g. INIT_CLASS_ENTRY(..., "Foo", ...)) 2010-08-08 20:07:23 +00:00
Felipe Pena ef1270e5d0 - Fix test 2010-08-08 16:48:32 +00:00
Ilia Alshanetsky d9af17b839 Additional fix for bug #52550 & fix test & warning from previous fixes 2010-08-08 15:45:02 +00:00
Felipe Pena e10d33fe5a - Fixed bug #52539 (Calling function from rebound Closure causes crash) 2010-08-08 15:06:14 +00:00
Christopher Jones 4f5ef36ce3 Fixed bug #51610 (Using oci_connect causes PHP to take a long time to exit). Do PECL OCI8 1.4.3 release 2010-08-07 00:24:26 +00:00
Felipe Pena 13d42b168f - Added missing SKIPIF 2010-08-06 23:05:39 +00:00
Felipe Pena cd2f66cd61 - Fix test 2010-08-06 23:01:32 +00:00
Felipe Pena 06c185214a - Fixed bug #52533 (ext/curl/tests/curl_multi_getcontent_basic3.phpt broken due php.net/robots.txt)
patch by: glen at delfi dot ee
2010-08-06 22:57:41 +00:00
Felipe Pena 9adda6199b - Updated generated file 2010-08-06 22:23:39 +00:00
Felipe Pena 232ae3df01 - Fix build 2010-08-06 22:21:13 +00:00
Johannes Schlüter 5b8a974886 - ext_skelshould create a .svnignore not .cvsignore these days 2010-08-06 22:19:47 +00:00
Ilia Alshanetsky a8ddaca0b0 WS 2010-08-06 20:16:11 +00:00
Ilia Alshanetsky 34e8b615ed Another fix for issue indentified in bug #52550 2010-08-06 20:04:29 +00:00
Ilia Alshanetsky e4b1575d58 Fixed issues inside str_pad() identified by bug #52550 2010-08-06 19:55:10 +00:00
David Soria Parra d9afaad77f make ssl_set return value in mysqlnd compatible with libmysqli return value 2010-08-06 19:47:03 +00:00
Ilia Alshanetsky fa4bf064bd Use correct order of operations. Second of many fixes for bug #52550 2010-08-06 19:11:34 +00:00
Rasmus Lerdorf 31e6390ae5 Do these ops in the right order here. First of many fixes for
bug #52550
2010-08-06 18:19:23 +00:00
Felipe Pena 4f07d70d4e - Fixed ZTS build (Kalle) 2010-08-05 17:09:08 +00:00
Johannes Schlüter eaad585a2e - Drop (broken) support for libmysql 3.23 and 4.0 from pdo_mysql, see bug #51259 2010-08-05 13:29:44 +00:00
Dmitry Stogov 3cf5ab9e56 Use interned strings for class names 2010-08-05 13:10:15 +00:00
Felipe Pena 3d2a6927c7 - Fixed bug #52534 (var_export array with negative key) 2010-08-04 23:11:44 +00:00
Dmitry Stogov fa27ef4620 cleanup 2010-08-03 08:19:51 +00:00
Jérôme Loyet eb2266197f BUG: all value comparaisons were not case insensitive in the conf file parser 2010-08-02 21:46:52 +00:00
Jérôme Loyet 71eee6b1d4 typo 2010-08-02 09:28:54 +00:00
Jérôme Loyet 5181210a7a correct php-fpm.conf: slowlog has no default value 2010-08-02 09:02:48 +00:00
Felipe Pena a552a30192 - Added missing parameter checks for new methods (trunk only) 2010-08-02 01:35:02 +00:00
Stefan Marr f223e28b1f Added Traits to the NEWS file.
#There doesn't seem to be a consitent ordering, 
#so I put it in front of the list, since it is a major language addition. Hope thats ok.
2010-08-01 20:53:32 +00:00
Felipe Pena 88b087bedd - Fixed bug #52468 (wddx_deserialize corrupts integer field value when left empty) 2010-08-01 17:34:09 +00:00
Felipe Pena a20d96e850 - Removed safe-mode tests 2010-08-01 16:24:42 +00:00
Felipe Pena 05e25f0099 - Fixed bug #52508 (newline problem with parse_ini_file+INI_SCANNER_RAW) 2010-08-01 15:26:54 +00:00
Felipe Pena e914d90643 - Fixed bug #52484 (__set() ignores setting properties with empty names) 2010-08-01 13:27:02 +00:00
Felipe Pena 938265115b - New test 2010-07-29 23:46:49 +00:00
Felipe Pena 7b9fe96774 - Fixed bug #52487 (PDO::FETCH_INTO leaks memory) 2010-07-29 23:38:55 +00:00
Jérôme Loyet 51dd4c2feb - Fixed bug #52476 (move php-fpm man page from section 1 to section 8) 2010-07-29 22:07:00 +00:00
Raphael Geissert 197ab331eb Fix required facilities for php-fpm's init script
$all should only be used in rare, and very specific, cases.
2010-07-29 19:13:42 +00:00
Pierre Joye 8d0fb1c964 - fix build 2010-07-29 12:06:15 +00:00
Dmitry Stogov 6443445f25 ZEND_UNSET_* don't have results 2010-07-29 09:46:59 +00:00
Felipe Pena 6944a24328 - Makes "parent" and "self" checking case-insensitive 2010-07-29 01:59:40 +00:00
Sriram Natarajan e4be370479 - Fixed bug #52436 (Compile error in pcre if systems do not have stdint.h)
# PCRE's config.h can very well reuse the definitions made available from
# PHP's configure script output available within php_config.h
2010-07-27 21:42:22 +00:00
Dmitry Stogov 39b4a5eea7 Additional specialization 2010-07-27 09:50:35 +00:00
Dmitry Stogov d30073a2dc Removed deprecated check 2010-07-26 12:40:32 +00:00
Stanley Sufficool e00060b3b0 Remove obsolete non phpt test script. 2010-07-24 14:05:44 +00:00
Dmitry Stogov f20f516129 typo 2010-07-20 11:28:53 +00:00
Adam Harvey 929eec3b93 Fix bug #52380 (Typo in lcfirst comment docs) by updating the commented
prototype for lcfirst() to actually read lcfirst().
2010-07-20 04:26:57 +00:00
Dmitry Stogov 5a2ee8ecea Use proper fetch types 2010-07-19 15:04:51 +00:00
Dmitry Stogov c1336009c2 Removed invalid checks 2010-07-19 14:34:34 +00:00
Adam Harvey 6c9ca56c19 Fix for bug #52317 (Segmentation fault when using mail() on a rhel 4.x (only 64
bit)).
2010-07-19 10:46:44 +00:00
Dmitry Stogov ca4de03eed ZEND_FETCH_*_R operations simplified and can't be used with EXT_TYPE_UNUSED flag any more. Thit is very rare and useless case. ZEND_FREE might be required after them instead. 2010-07-16 13:38:09 +00:00
Dmitry Stogov 8aad91d14a Simplified string offset reading 2010-07-16 11:44:30 +00:00
Andrey Hristov 7043949c89 Fix for Bug #51583 Bus error due to wrong alignment in mysqlnd 2010-07-15 16:57:14 +00:00
Pierre Joye f35e10e17f - fix vc6 build 2010-07-15 00:13:20 +00:00
Dmitry Stogov f33d2c5fb7 Optimized defaut Content-Type HTTP header processing 2010-07-14 15:20:44 +00:00
Dmitry Stogov 7c24be8672 Fixed incorrect reinitialization 2010-07-14 10:27:08 +00:00
Kalle Sommer Nielsen c0f3aca5a3 Update the re2c files aswell (bug #51943) 2010-07-14 00:04:43 +00:00
Kalle Sommer Nielsen aeb1dc7cc4 Fixed bug #51943 (Several files are out of ANSI spec)
# Based on patch by CoreyStup at gmail dot com
2010-07-13 23:59:54 +00:00
Kalle Sommer Nielsen fcb0984991 Fixed bug #52037 (Concurrent builds fail in install-programs) -- Patch by Seanius at debian dot org 2010-07-13 17:21:00 +00:00
Andrey Hristov 12f8599b86 Give an error when USE_RESULT is used with fetch_all 2010-07-13 13:02:00 +00:00
Felipe Pena 25710a406d - Added EG(saved_fpu_cw_ptr) initialization 2010-07-10 13:56:33 +00:00
Scott MacVicar c7b0abe6aa Fix a bug when var_export() causes a fatal error that could inadvertently display data due to flushing of the output buffer.
Examples include, memory limit, execution time and recursion.
2010-07-09 21:11:37 +00:00
Dmitry Stogov 5438a9d23c Eliminated useless allocation of FPU control word on each request startup 2010-07-09 09:02:14 +00:00
Dmitry Stogov bc1f1d25fa zend_ptr_stack allocation is delayed before the actual usage 2010-07-09 07:31:18 +00:00
Felipe Pena b458b1a4c1 - Fix ZTS build 2010-07-08 15:22:11 +00:00
Kalle Sommer Nielsen b4c573c7ec Fixed Windows build 2010-07-08 15:09:57 +00:00
Sebastian Bergmann 561f133ae1 Fugbix typo. 2010-07-08 15:05:22 +00:00
Dmitry Stogov f0c8366a9e - use interned strings for auto globals
- $GLOBALS became a JIT autoglobal, so it's initialized only if used (this may affect opcode caches)
2010-07-08 14:05:11 +00:00
Dmitry Stogov eea8fc6122 Reduced overhead of request startup 2010-07-08 07:40:02 +00:00
Dmitry Stogov df8bf2a2de Fixed checks for PHP_DEBUG macro 2010-07-08 07:38:59 +00:00
Felipe Pena c0c5c1ad4c - Fixed ZTS build 2010-07-07 22:46:54 +00:00
Etienne Kneuss bb15b92d2d Fixed #51697 (Unsafe operations in free_storage of SPL iterators,
causes crashes during shutdown)
2010-07-07 21:55:17 +00:00
Dmitry Stogov b4216e0a82 Use zend_stream API to open main PHP script in CGI/FastCGI. This allows to override the open function by opcode caches and eliminate the actual open syscall. 2010-07-07 16:54:55 +00:00
Andrey Hristov 4dece1a2a9 update tests 2010-07-07 15:53:34 +00:00
Andrey Hristov b580bc3875 Cleanup in trunk. Remove some functions, noted in
UPGRADING. sed-ed the tests to change the usage
to the real function name.
2010-07-07 12:09:36 +00:00
Dmitry Stogov 25d6aee4fb Removed redundant check 2010-07-07 11:44:27 +00:00
Andrey Hristov 6900399d7e Arginfo for mysqli 2010-07-07 11:36:29 +00:00
Dmitry Stogov 3ea5bc7914 Reused single segment between requests. Saved one malloc/free for each request. 2010-07-07 10:34:50 +00:00
Dmitry Stogov d3efe97a2e Reduced initial VM stack size to fit into zend_mm segment and eliminate extra segment allocation 2010-07-07 10:30:17 +00:00
Timm Friebe 93bb957e26 - Added -DSYB_LP64 to CFLAGS on 64 bit platforms
# See http://cpansearch.perl.org/src/MEWP/DBD-Sybase-1.08/Makefile.PL:
#
# "If we are building for a 64 bit platform that also supports 32 bit
# (i.e. Solaris 8, HP-UX11, etc) then we need to make some adjustments
# [...] Tru64/DEC OSF does NOT use the SYB_LP64 define as it is ALWAYS 
# in 64 bit mode."
#
# Fixes bug #50827
2010-07-07 09:47:24 +00:00
Andrey Hristov 1ca8acda40 merge 2010-03-16 12:54:58 +00:00
Moriyoshi Koizumi 6c513876d0 - Forgot to commit this patch. Sorry. 2010-03-12 16:19:25 +00:00
Jani Taskinen 8c3428eeb8 MF53: - Update the bundled libmbfl to the latest on upstream. (r296101) 2010-03-12 13:16:33 +00:00
Jani Taskinen a377c4c580 - Merged 2 of these, nuke one totally outdated and irrelevant.
# Quite likely most if not all of TODO is also replaced by some Wiki page. 
# If so, replace the file contents with URL to the correct place :)
2010-03-12 13:09:27 +00:00
Jani Taskinen 499006bbb8 - These are no longer relevant 2010-03-12 13:01:56 +00:00
Jani Taskinen bc4588b1d9 MF53: New and improved DBA tests 2010-03-12 11:51:40 +00:00
Jani Taskinen a99e0b69df Merged r296086 2010-03-12 11:50:14 +00:00
Jani Taskinen 84f1562f99 MF53:- Added backlog socket context option for stream_socket_server(). (Mike) 2010-03-12 11:43:01 +00:00
Jani Taskinen cfdfcac8aa - This is 5.4.0 (for now..:) 2010-03-11 16:52:44 +00:00
Jani Taskinen 8ad52ac7c1 Hello PHP 5.4, open for all new stuff. 2010-03-11 16:09:37 +00:00
3474 changed files with 201664 additions and 140192 deletions

No files matched your search

+63 -12
View File
@@ -37,9 +37,60 @@ end
define dump_bt
set $t = $arg0
while $t
printf "[0x%08x] ", $t
printf "[%p] ", $t
if $t->function_state.function->common.function_name
printf "%s() ", $t->function_state.function->common.function_name
if $t->function_state.arguments
set $count = (int)*($t->function_state.arguments)
printf "%s(", $t->function_state.function->common.function_name
while $count > 0
set $zvalue = *(zval **)($t->function_state.arguments - $count)
set $type = $zvalue->type
if $type == 0
printf "NULL"
end
if $type == 1
printf "%ld", $zvalue->value.lval
end
if $type == 2
printf "%lf", $zvalue->value.dval
end
if $type == 3
if $zvalue->value.lval
printf "true"
else
printf "false"
end
end
if $type == 4
printf "array(%d)[%p]", $zvalue->value.ht->nNumOfElements, $zvalue
end
if $type == 5
printf "object[%p]", $zvalue
end
if $type == 6
____print_str $zvalue->value.str.val $zvalue->value.str.len
end
if $type == 7
printf "resource(#%d)", $zvalue->value.lval
end
if $type == 8
printf "constant"
end
if $type == 9
printf "const_array"
end
if $type > 9
printf "unknown type %d", $type
end
set $count = $count -1
if $count > 0
printf ", "
end
end
printf ") "
else
printf "%s() ", $t->function_state.function->common.function_name
end
else
printf "??? "
end
@@ -167,7 +218,7 @@ define ____printzv
____executor_globals
set $zvalue = $arg0
printf "[0x%08x] ", $zvalue
printf "[%p] ", $zvalue
if $zvalue == $eg.uninitialized_zval_ptr
printf "*uninitialized* "
@@ -208,7 +259,7 @@ end
define print_const_table
set $ind = 1
printf "[0x%08x] {\n", $arg0
printf "[%p] {\n", $arg0
____print_const_table $arg0
printf "}\n"
end
@@ -248,7 +299,7 @@ end
define print_ht
set $ind = 1
printf "[0x%08x] {\n", $arg0
printf "[%p] {\n", $arg0
____print_ht $arg0 1
printf "}\n"
end
@@ -259,7 +310,7 @@ end
define print_htptr
set $ind = 1
printf "[0x%08x] {\n", $arg0
printf "[%p] {\n", $arg0
____print_ht $arg0 0
printf "}\n"
end
@@ -270,7 +321,7 @@ end
define print_htstr
set $ind = 1
printf "[0x%08x] {\n", $arg0
printf "[%p] {\n", $arg0
____print_ht $arg0 2
printf "}\n"
end
@@ -306,7 +357,7 @@ end
define print_ft
set $ind = 1
printf "[0x%08x] {\n", $arg0
printf "[%p] {\n", $arg0
____print_ft $arg0
printf "}\n"
end
@@ -383,7 +434,7 @@ end
define print_pi
set $pi = $arg0
printf "[0x%08x] {\n", $pi
printf "[%p] {\n", $pi
printf " h = %lu\n", $pi->h
printf " flags = %d (", $pi->flags
if $pi->flags & 0x100
@@ -439,7 +490,7 @@ define printzn
set $optype = "IS_UNUSED"
end
printf "[0x%08x] %s", $znode, $optype
printf "[%p] %s", $znode, $optype
if $znode->op_type == 1
printf ": "
@@ -519,7 +570,7 @@ define zmemcheck
else
set $filename = $filename + 1
end
printf " 0x%08x ", $aptr
printf " %p ", $aptr
if $p->size == sizeof(struct _zval_struct) && ((struct _zval_struct *)$aptr)->type >= 0 && ((struct _zval_struct *)$aptr)->type < 10
printf "ZVAL?(%-2d) ", $p->size
else
@@ -549,7 +600,7 @@ define zmemcheck
end
end
if $not_found
printf "no such block that begins at 0x%08x.\n", $aptr
printf "no such block that begins at %p.\n", $aptr
end
if $arg0 == 0
printf "-------------------------------------------------------------------------------\n"
-14191
View File
File diff suppressed because it is too large. Load diff
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+3 -3
View File
@@ -337,7 +337,7 @@ MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: curl
PRIMARY MAINTAINER: Sterling Hughes <sterling@php.net>,Ilia Alshanetsky <iliaa@php.net>
PRIMARY MAINTAINER: Sterling Hughes <sterling@php.net>, Ilia Alshanetsky <iliaa@php.net>, Pierrick Charron <pierrick@php.net>
MAINTENANCE: Maintained
STATUS: Working
SINCE: 4.0.2
@@ -497,8 +497,8 @@ STATUS: Working
SINCE: 4.0.3
-------------------------------------------------------------------------------
EXTENSION: snmp
PRIMARY MAINTAINER: Rasmus Lerdorf <rasmus@php.net>, Pierre-Alain Joye <pajoye@php.net>
MAINTENANCE: Odd Fixes
PRIMARY MAINTAINER: Boris Lytochkin <lytboris@php.net>, Rasmus Lerdorf <rasmus@php.net>, Pierre-Alain Joye <pajoye@php.net>
MAINTENANCE: Maintained
STATUS: Working
-------------------------------------------------------------------------------
EXTENSION: sockets
+1323 -1298
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1,6 +1,6 @@
--------------------------------------------------------------------
The PHP License, version 3.01
Copyright (c) 1999 - 2009 The PHP Group. All rights reserved.
Copyright (c) 1999 - 2010 The PHP Group. All rights reserved.
--------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
+6 -11
View File
@@ -1,8 +1,3 @@
#
# Lemon
#
lemon: lemon.c
$(CC) -o $@ -Wall $?
#
# Zend
@@ -12,17 +7,17 @@ $(builddir)/zend_language_scanner.lo: $(srcdir)/zend_language_parser.h
$(builddir)/zend_ini_scanner.lo: $(srcdir)/zend_ini_parser.h
$(srcdir)/zend_language_scanner.c: $(srcdir)/zend_language_scanner.l
@(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt Zend/zend_language_scanner_defs.h -oZend/zend_language_scanner.c Zend/zend_language_scanner.l)
@(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt Zend/zend_language_scanner_defs.h -oZend/zend_language_scanner.c Zend/zend_language_scanner.l)
$(srcdir)/zend_language_parser.h: $(srcdir)/zend_language_parser.c
$(srcdir)/zend_language_parser.c: lemon $(srcdir)/zend_language_parser.y
$(LEMON) $(LEMON_FLAGS) $(srcdir)/zend_language_parser.y || test $$? -eq 2
$(srcdir)/zend_language_parser.c: $(srcdir)/zend_language_parser.y
@$(YACC) -p zend -v -d $(srcdir)/zend_language_parser.y -o $@
$(srcdir)/zend_ini_parser.h: $(srcdir)/zend_ini_parser.c
$(srcdir)/zend_ini_parser.c: lemon $(srcdir)/zend_ini_parser.y
@$(LEMON) $(LEMON_FLAGS) $(srcdir)/zend_ini_parser.y
$(srcdir)/zend_ini_parser.c: $(srcdir)/zend_ini_parser.y
@$(YACC) -p ini_ -v -d $(srcdir)/zend_ini_parser.y -o $@
$(srcdir)/zend_ini_scanner.c: $(srcdir)/zend_ini_scanner.l
@(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt Zend/zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c Zend/zend_ini_scanner.l)
@(cd $(top_srcdir); $(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt Zend/zend_ini_scanner_defs.h -oZend/zend_ini_scanner.c Zend/zend_ini_scanner.l)
$(builddir)/zend_indent.lo $(builddir)/zend_highlight.lo $(builddir)/zend_compile.lo: $(srcdir)/zend_language_parser.h
+2 -1
View File
@@ -12,7 +12,8 @@ php_lcov.info: lcov-test
@rm -rf lcov_data/
@$(mkinstalldirs) lcov_data/
@echo
-@find . -name \*.gcda -o -name \*.gcno -o -name \*.da -o -name \*.h | sed -e 's/^\.\///' | sed -e 's/\.gcda//g' -e 's/\.gcno//g' -e 's/\.da//g' | uniq | while read x; do \
-@files=`find . -name \*.gcda -o -name \*.gcno -o -name \*.da -o -name \*.h | sed -e 's/^\.\///' | sed -e 's/\.gcda//g' -e 's/\.gcno//g' -e 's/\.da//g' | uniq` ;\
for x in $$files; do \
echo -n . ;\
y=`echo $$x | sed -e 's!\.libs/!!'`; \
dir=lcov_data/`dirname $$x`; \
+6 -2
View File
@@ -1,4 +1,3 @@
LEMON = $(top_srcdir)/lemon
mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
INSTALL = $(top_srcdir)/build/shtool install -c
INSTALL_DATA = $(INSTALL) -m 644
@@ -14,6 +13,8 @@ all: $(all_targets)
build-modules: $(PHP_MODULES) $(PHP_ZEND_EX)
build-binaries: $(PHP_BINARIES)
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 $@ $(phptempdir)/$@ >/dev/null 2>&1
@@ -36,6 +37,8 @@ install-sapi: $(OVERALL_TARGET)
fi
@$(INSTALL_IT)
install-binaries: build-binaries $(install_binary_targets)
install-modules: build-modules
@test -d modules && \
$(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR)
@@ -99,6 +102,7 @@ test: all
TEST_PHP_SRCDIR=$(top_srcdir) \
CC="$(CC)" \
$(PHP_EXECUTABLE) -n -c $(top_builddir)/tmp-php.ini $(PHP_TEST_SETTINGS) $(top_srcdir)/run-tests.php -n -c $(top_builddir)/tmp-php.ini -d extension_dir=$(top_builddir)/modules/ $(PHP_TEST_SHARED_EXTENSIONS) $(TESTS); \
rm $(top_builddir)/tmp-php.ini; \
else \
echo "ERROR: Cannot run tests without CLI sapi."; \
fi
@@ -112,7 +116,7 @@ clean:
rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(OVERALL_TARGET) modules/* libs/*
distclean: clean
rm -f Makefile lemon config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp
rm -f Makefile config.cache config.log config.status Makefile.objects Makefile.fragments libtool main/php_config.h stamp-h sapi/apache/libphp$(PHP_MAJOR_VERSION).module buildmk.stamp
$(EGREP) define'.*include/php' $(top_srcdir)/configure | $(SED) 's/.*>//'|xargs rm -f
.PHONY: all clean install distclean test
+1920 -107
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -51,6 +51,7 @@ Type specifiers
L - long, limits out-of-range numbers to LONG_MAX/LONG_MIN (long)
o - object of any type (zval*)
O - object of specific type given by class entry (zval*, zend_class_entry)
p - valid path (string without null bytes in the middle) and its length (char*, int)
r - resource (zval*)
s - string (with possible null bytes) and its length (char*, int)
z - the actual zval (zval*)
+20 -7
View File
@@ -51,27 +51,40 @@ SUCH DAMAGE.
6. ext/standard crypt's blowfish implementation
The crypt_blowfish homepage is:
http://www.openwall.com/crypt/
This code comes from John the Ripper password cracker, with reentrant
and crypt(3) interfaces added, but optimizations specific to password
cracking removed.
Written by Solar Designer <solar at openwall.com> in 1998-2002 and
placed in the public domain.
Written by Solar Designer <solar at openwall.com> in 1998-2011.
No copyright is claimed, and the software is hereby placed in the public
domain. In case this attempt to disclaim copyright and place the software
in the public domain is deemed null and void, then the software is
Copyright (c) 1998-2011 Solar Designer and it is hereby released to the
general public under the following terms:
There's absolutely no warranty.
Redistribution and use in source and binary forms, with or without
modification, are permitted.
There's ABSOLUTELY NO WARRANTY, express or implied.
It is my intent that you should be able to use this on your system,
as a part of a software package, or anywhere else to improve security,
as part of a software package, or anywhere else to improve security,
ensure compatibility, or for any other purpose. I would appreciate
it if you give credit where it is due and keep your modifications in
the public domain as well, but I don't require that in order to let
you place this code and any modifications you make under a license
of your choice.
This implementation is compatible with OpenBSD bcrypt.c (version 2a)
by Niels Provos <provos at citi.umich.edu>, and uses some of his
This implementation is mostly compatible with OpenBSD's bcrypt.c (prefix
"$2a$") by Niels Provos <provos at citi.umich.edu>, and uses some of his
ideas. The password hashing algorithm was designed by David Mazieres
<dm at lcs.mit.edu>.
<dm at lcs.mit.edu>. For more information on the level of compatibility,
please refer to the comments in BF_set_key() and to the crypt(3) man page
included in the crypt_blowfish tarball.
There's a paper on the algorithm that explains its design decisions:
+40 -41
View File
@@ -20,12 +20,18 @@ php/QA/bug websites try to have someone from the webmaster team (Bjori) on hand.
5. Verify the tags to be extra sure everything was tagged properly.
6. Moving extensions from/to PECL requires root level access to the CVS server.
Contact systems@php.net to get this taken care of.
6. Moving extensions from/to PECL requires write acces to the destination.
Most developers should have this.
Moving extensions from php-src to PECL
- Filesystem: cp -r php-src/ext/foo pecl/foo
- cvs rm php-src/ext/foo
- Checkout the pecl directory, most likely you want a sparse-root checkout
svn co --depth=empty https://svn.php.net/repository/pecl
- Create an directory for the extension incl. branch and tag structure,
no trunk at this point and commit this to svn
cd pecl; mkdir foo foo/tags foo/branches; svn add foo; svn commit
- Move the extension from php-src to the new location
svn mv https://svn.php.net/repository/php/php-src/trunk/ext/foo \
https://svn.php.net/repository/pecl/foo/trunk
If the extension is still usable or not dead, in cooperation with the extension
maintainers if any:
@@ -33,26 +39,24 @@ maintainers if any:
- create the package.xml, commit
- release the package
Moving extensions from PECL to php-src
- Filesystem: cp -r pecl/foo php-src/ext/foo
OR depending on the wishes from the PECL extension maintainer.
- Filesystem: ln -s pecl/foo php-src/ext/foo
For Moving extensions from PECL to php-src the svn mv has to be tone the other
way round.
Rolling a non stable release (alpha/beta/RC)
--------------------------------------------
1. Check windows snapshot builder logs (http://snaps.php.net/win32/snapshot-STABLE.log f.e.)
1. Check windows snapshot builder logs (http://windows.php.net/downloads/snaps/ the last revision)
2. Bump the version numbers in ``main/php_version.h``, ``configure.in`` and possibly ``NEWS``.
Do not use abbreviations for alpha and beta.
3. Commit those changes
4. run the "scripts/dev/credits" script in php-src and commit the changes in the
2. run the "scripts/dev/credits" script in php-src and commit the changes in the
credits files in ext/standard.
5. tag the repository with the version f.e. "``cvs tag php_4_4_1RC1``"
(of course, you need to change that to the version you're rolling an RC for).
3. Bump the version numbers in ``main/php_version.h``, ``configure.in`` and possibly ``NEWS``.
Do not use abbreviations for alpha and beta.
4. Commit those changes and note the revision id.
5. tag the repository with the version. To do the tag in a fast way do a svn copy on the server using full URLs. You should use the revision id from the above commit to prevent mistakes in case there was a commit in between. f.e. "``svn cp https://svn.php.net/repository/php/php-src/branches/PHP_5_3@308399 https://svn.php.net/repository/php/php-src/tags/php_5_3_6RC1``"
(of course, you need to change that to the version you're rolling an RC for). Mail php-internals to announce the tag so tests/validation/check can be done prior to package it. It is especially important for RCs.
6. Bump up the version numbers in ``main/php_version.h``, ``configure.in``
and possibly ``NEWS`` again, to the **next** version. F.e. if the release
@@ -65,7 +69,7 @@ correctly work.
8. Log in onto the snaps box and go into the correct tree (f.e. the PHP_4_4
branch if you're rolling 4.4.x releases).
9. You do not have to update the tree, but of course you can with "``cvs up -dP``".
9. You do not have to update the tree, but of course you can with "``svn up``".
10. run: ``./makedist php 4.4.1RC1``, this will export the tree, create configure
and build two tarballs (one gz and one bz2).
@@ -100,33 +104,30 @@ Derick) run the following commands for you:
``sudo -u ezmlm ezmlm-sub ~ezmlm/primary-qa-tester/mod moderator-email-address``
3. Update the MD5 sums in ``web/qa/trunk/include/rc-md5sums.txt`` (no empty lines).
3. Update ``qa.git/include/release-qa.php`` with the appropriate information.
See the documentation within release-qa.php for more information, but all releases
and RCs are configured here. Only $QA_RELEASES needs to be edited.
4. Update in ``web/qa/trunk/include/release-qa.php`` constants with the new RC and
commit this.
Example: When rolling an RC, set the 'rc' with appropriate information for the
given version.
a. ``$BUILD_TEST_RELEASES`` = array("4.4.7RC1", "5.2.2RC1")
Note: Remember to update the MD5 checksum information.
b. ``$CURRENT_QA_RELEASE_4`` = "4.4.7RC1" (``$CURRENT_QA_RELEASE_5`` for PHP5)
4. Update ``php.git/include/version.inc`` (x=major version number)
c. ``$RELEASE_PROCESS`` = array(4 => true, 5 => true)
1. Update in ``php-bugs/trunk/include/functions.inc`` the ``show_version_option``
function to include the new RC and commit.
2. Update ``phpweb/include/version.inc`` (x=major version number)
a. ``$PHP_x_RC`` = "5.3.0RC1"
a. ``$PHP_x_RC`` = "5.4.0RC1"
b. ``$PHP_x_RC_DATE`` = "06 September 2007"
3. Commit those changes:
5. Commit and push those changes:
a. ``cvs commit include/version.inc include/releases.inc``
a. ``git commit -a && git push origin master``
4. For the first RC, write the doc team (phpdoc@lists.php.net) about updating the
6. For the first RC, write the doc team (phpdoc@lists.php.net) about updating the
INSTALL and win32/install.txt files which are generated from the PHP manual sources.
7. Publish the announce on www.php.net as well (for all releases, alpha, RCs or other)
Rolling a stable release
------------------------
@@ -164,7 +165,7 @@ and build two tarballs (one gz and one bz2).
13. Once the release has been tagged, contact the PHP Windows development team
(internals-win@lists.php.net) so that Windows binaries can be created. Once
those are made, they should be committed to CVS too.
those are made, they should be committed to SVN too.
14. Check if the pear files are updated (phar for 5.1+ or run pear/make-pear-bundle.php with 4.4)
@@ -244,13 +245,11 @@ number, and remove the RC from there.
11. Update ``qaweb/include/release-qa.php``
a. Update the $BUILD_TEST_RELEASES array with the release name
- Update $QA_RELEASES with the appropriate information, which means bumping
the version number to an upcoming version.
b. Update $RELEASE_PROCESS array (set to false)
I. For PHP4: Set $CURRENT_QA_RELEASE_4 to false
II. For PHP5: Set $CURRENT_QA_RELEASE_5 to false
Example: If PHP 5.3.7 is being released, then PHP 5.3.8 is the next QA version,
so replace 5.3.7 with 5.3.8 within $QA_RELEASES.
Re-releasing the same version (or -pl)
--------------------------------------
+11 -6
View File
@@ -39,17 +39,22 @@ Having said that, here are the organizational rules::
To do so use "make test".
7. For development use the --enable-maintainer-zts switch to ensure your
code handles TSRM correctly and doesn't break for thos who need that.
code handles TSRM correctly and doesn't break for those who need that.
Currently we have the following branches in use::
trunk Will become PHP 6.0. This CVS branch is for active development.
trunk The active development branch.
branches/PHP_5_3 Is used to release the PHP 5.3.x series. It still allows for
larger enhancements.
branches/PHP_5_4 Is used to release the PHP 5.4.x series. In release
process, only bugfixes and very small changes approved
by RMs are allowed.
branches/PHP_5_2 Is used to release the PHP 5.2.x series. Only bugfixes are permitted
on this branch (Consult the releasemaster prior to commit).
branches/PHP_5_3 Is used to release the PHP 5.3.x series. This is current
stable version and is open for bugfixes and small
improvements (check with RMs if in doubt).
branches/PHP_5_2 Is used to release the PHP 5.2.x series. It is closed for
changes now.
branches/PHP_5_1 This branch is closed.
+17 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Thread Safe Resource Manager |
+----------------------------------------------------------------------+
| Copyright (c) 1999-2010, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| Copyright (c) 1999-2011, 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 |
+----------------------------------------------------------------------+
@@ -710,6 +710,22 @@ TSRM_API int tsrm_mutex_unlock(MUTEX_T mutexp)
#endif
}
/*
Changes the signal mask of the calling thread
*/
#ifdef HAVE_SIGPROCMASK
TSRM_API int tsrm_sigmask(int how, const sigset_t *set, sigset_t *oldset)
{
TSRM_ERROR((TSRM_ERROR_LEVEL_INFO, "Changed sigmask in thread: %ld", tsrm_thread_id()));
/* TODO: add support for other APIs */
#ifdef PTHREADS
return pthread_sigmask(how, set, oldset);
#else
return sigprocmask(how, set, oldset);
#endif
}
#endif
TSRM_API void *tsrm_set_new_thread_begin_handler(tsrm_thread_begin_func_t new_thread_begin_handler)
{
+8 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| Thread Safe Resource Manager |
+----------------------------------------------------------------------+
| Copyright (c) 1999-2010, Andi Gutmans, Sascha Schumann, Zeev Suraski |
| Copyright (c) 1999-2011, 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 |
+----------------------------------------------------------------------+
@@ -90,6 +90,10 @@ typedef struct {
# define MUTEX_T beos_ben *
#endif
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
typedef void (*ts_allocate_ctor)(void *, void ***);
typedef void (*ts_allocate_dtor)(void *, void ***);
@@ -138,6 +142,9 @@ TSRM_API MUTEX_T tsrm_mutex_alloc(void);
TSRM_API void tsrm_mutex_free(MUTEX_T mutexp);
TSRM_API int tsrm_mutex_lock(MUTEX_T mutexp);
TSRM_API int tsrm_mutex_unlock(MUTEX_T mutexp);
#ifdef HAVE_SIGPROCMASK
TSRM_API int tsrm_sigmask(int how, const sigset_t *set, sigset_t *oldset);
#endif
TSRM_API void *tsrm_set_new_thread_begin_handler(tsrm_thread_begin_func_t new_thread_begin_handler);
TSRM_API void *tsrm_set_new_thread_end_handler(tsrm_thread_end_func_t new_thread_end_handler);
-1
View File
@@ -1 +0,0 @@
#undef PTHREADS
+1 -1
View File
@@ -33,7 +33,7 @@ $(makefile_in_files): $(makefile_am_files)
aclocal.m4: configure.in acinclude.m4
aclocal
$(config_h_in): configure.in acconfig.h
$(config_h_in): configure.in
# explicitly remove target since autoheader does not seem to work
# correctly otherwise (timestamps are not updated)
@rm -f $@
+4
View File
@@ -7,6 +7,10 @@ AC_INIT(TSRM.c)
AM_INIT_AUTOMAKE(TSRM, 1.0, nodefine)
AM_CONFIG_HEADER(tsrm_config.h)
AH_TOP([
#undef PTHREADS
])
sinclude(tsrm.m4)
TSRM_BASIC_CHECKS
+2
View File
@@ -30,6 +30,8 @@ AC_REQUIRE([AC_PROG_RANLIB])dnl
AC_CHECK_HEADERS(stdarg.h)
AC_CHECK_FUNCS(sigprocmask)
])
+1 -1
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2010 The PHP Group |
| Copyright (c) 1997-2012 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-2010 The PHP Group |
| Copyright (c) 1997-2012 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 |
+286 -119
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2010 The PHP Group |
| Copyright (c) 1997-2012 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 |
@@ -14,6 +14,7 @@
+----------------------------------------------------------------------+
| Authors: Andi Gutmans <andi@zend.com> |
| Sascha Schumann <sascha@schumann.cx> |
| Pierre Joye <pierre@php.net> |
+----------------------------------------------------------------------+
*/
@@ -38,6 +39,18 @@
# ifndef IO_REPARSE_TAG_SYMLINK
# define IO_REPARSE_TAG_SYMLINK 0xA000000C
# endif
# ifndef VOLUME_NAME_NT
# define VOLUME_NAME_NT 0x2
# endif
# ifndef VOLUME_NAME_DOS
# define VOLUME_NAME_DOS 0x0
# endif
#endif
#ifndef S_IFLNK
# define S_IFLNK 0120000
#endif
#ifdef NETWARE
@@ -83,14 +96,14 @@ cwd_state main_cwd_state; /* True global */
#include <tchar.h>
#define tsrm_strtok_r(a,b,c) _tcstok((a),(b))
#define TOKENIZER_STRING "/\\"
static int php_check_dots(const char *element, int n)
static int php_check_dots(const char *element, int n)
{
while (n-- > 0) if (element[n] != '.') break;
return (n != -1);
}
#define IS_DIRECTORY_UP(element, len) \
(len >= 2 && !php_check_dots(element, len))
@@ -124,7 +137,7 @@ static int php_check_dots(const char *element, int n)
/* define this to check semantics */
#define IS_DIR_OK(s) (1)
#ifndef IS_DIR_OK
#define IS_DIR_OK(state) (php_is_dir_ok(state) == 0)
#endif
@@ -137,7 +150,7 @@ static int php_check_dots(const char *element, int n)
#define CWD_STATE_FREE(s) \
free((s)->cwd);
#ifdef TSRM_WIN32
#ifdef CTL_CODE
@@ -202,21 +215,86 @@ static inline time_t FileTimeToUnixTime(const FILETIME FileTime)
return (time_t)UnixTime;
}
CWD_API int php_sys_stat(const char *path, struct stat *buf) /* {{{ */
CWD_API int php_sys_readlink(const char *link, char *target, size_t target_len){ /* {{{ */
HINSTANCE kernel32;
HANDLE hFile;
DWORD dwRet;
typedef BOOL (WINAPI *gfpnh_func)(HANDLE, LPTSTR, DWORD, DWORD);
gfpnh_func pGetFinalPathNameByHandle;
kernel32 = LoadLibrary("kernel32.dll");
if (kernel32) {
pGetFinalPathNameByHandle = (gfpnh_func)GetProcAddress(kernel32, "GetFinalPathNameByHandleA");
if (pGetFinalPathNameByHandle == NULL) {
return -1;
}
} else {
return -1;
}
hFile = CreateFile(link, // file to open
GENERIC_READ, // open for reading
FILE_SHARE_READ, // share for reading
NULL, // default security
OPEN_EXISTING, // existing file only
FILE_FLAG_BACKUP_SEMANTICS, // normal file
NULL); // no attr. template
if( hFile == INVALID_HANDLE_VALUE) {
return -1;
}
dwRet = pGetFinalPathNameByHandle(hFile, target, MAXPATHLEN, VOLUME_NAME_DOS);
if(dwRet >= MAXPATHLEN) {
return -1;
}
CloseHandle(hFile);
if(dwRet > 4) {
/* Skip first 4 characters if they are "\??\" */
if(target[0] == '\\' && target[1] == '\\' && target[2] == '?' && target[3] == '\\') {
char tmp[MAXPATHLEN];
unsigned int offset = 4;
dwRet -= 4;
/* \??\UNC\ */
if (dwRet > 7 && target[4] == 'U' && target[5] == 'N' && target[6] == 'C') {
offset += 2;
dwRet -= 2;
target[offset] = '\\';
}
memcpy(tmp, target + offset, dwRet);
memcpy(target, tmp, dwRet);
}
}
target[dwRet] = '\0';
return dwRet;
}
/* }}} */
CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat) /* {{{ */
{
WIN32_FILE_ATTRIBUTE_DATA data;
__int64 t;
const size_t path_len = strlen(path);
if (!GetFileAttributesEx(path, GetFileExInfoStandard, &data)) {
return stat(path, buf);
}
if (path[1] == ':') {
if (path_len >= 1 && path[1] == ':') {
if (path[0] >= 'A' && path[0] <= 'Z') {
buf->st_dev = buf->st_rdev = path[0] - 'A';
} else {
buf->st_dev = buf->st_rdev = path[0] - 'a';
}
} else if (IS_UNC_PATH(path, path_len)) {
buf->st_dev = buf->st_rdev = 0;
} else {
char cur_path[MAXPATHLEN+1];
DWORD len = sizeof(cur_path);
@@ -245,19 +323,56 @@ CWD_API int php_sys_stat(const char *path, struct stat *buf) /* {{{ */
}
if (tmp != cur_path) {
free(tmp);
}
}
}
buf->st_uid = buf->st_gid = buf->st_ino = 0;
buf->st_mode = (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? (S_IFDIR|S_IEXEC|(S_IEXEC>>3)|(S_IEXEC>>6)) : S_IFREG;
buf->st_mode |= (data.dwFileAttributes & FILE_ATTRIBUTE_READONLY) ? (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)) : (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)|S_IWRITE|(S_IWRITE>>3)|(S_IWRITE>>6));
if (lstat && data.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) {
/* File is a reparse point. Get the target */
HANDLE hLink = NULL;
REPARSE_DATA_BUFFER * pbuffer;
unsigned int retlength = 0;
TSRM_ALLOCA_FLAG(use_heap_large);
hLink = CreateFile(path, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_FLAG_OPEN_REPARSE_POINT|FILE_FLAG_BACKUP_SEMANTICS, NULL);
if(hLink == INVALID_HANDLE_VALUE) {
return -1;
}
pbuffer = (REPARSE_DATA_BUFFER *)tsrm_do_alloca(MAXIMUM_REPARSE_DATA_BUFFER_SIZE, use_heap_large);
if(!DeviceIoControl(hLink, FSCTL_GET_REPARSE_POINT, NULL, 0, pbuffer, MAXIMUM_REPARSE_DATA_BUFFER_SIZE, &retlength, NULL)) {
tsrm_free_alloca(pbuffer, use_heap_large);
CloseHandle(hLink);
return -1;
}
CloseHandle(hLink);
if(pbuffer->ReparseTag == IO_REPARSE_TAG_SYMLINK) {
buf->st_mode = S_IFLNK;
buf->st_mode |= (data.dwFileAttributes & FILE_ATTRIBUTE_READONLY) ? (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)) : (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)|S_IWRITE|(S_IWRITE>>3)|(S_IWRITE>>6));
}
#if 0 /* Not used yet */
else if(pbuffer->ReparseTag == IO_REPARSE_TAG_MOUNT_POINT) {
buf->st_mode |=;
}
#endif
tsrm_free_alloca(pbuffer, use_heap_large);
} else {
buf->st_mode = (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? (S_IFDIR|S_IEXEC|(S_IEXEC>>3)|(S_IEXEC>>6)) : S_IFREG;
buf->st_mode |= (data.dwFileAttributes & FILE_ATTRIBUTE_READONLY) ? (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)) : (S_IREAD|(S_IREAD>>3)|(S_IREAD>>6)|S_IWRITE|(S_IWRITE>>3)|(S_IWRITE>>6));
}
if ((data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0) {
int len = strlen(path);
if (path[len-4] == '.') {
if (_memicmp(path+len-3, "exe", 3) == 0 ||
_memicmp(path+len-3, "com", 3) == 0 ||
_memicmp(path+len-3, "bat", 3) == 0 ||
_memicmp(path+len-3, "cmd", 3) == 0) {
_memicmp(path+len-3, "com", 3) == 0 ||
_memicmp(path+len-3, "bat", 3) == 0 ||
_memicmp(path+len-3, "cmd", 3) == 0) {
buf->st_mode |= (S_IEXEC|(S_IEXEC>>3)|(S_IEXEC>>6));
}
}
@@ -332,7 +447,7 @@ CWD_API void virtual_cwd_startup(void) /* {{{ */
}
}
#else
result = getcwd(cwd, sizeof(cwd));
result = getcwd(cwd, sizeof(cwd));
#endif
if (!result) {
cwd[0] = '\0';
@@ -382,8 +497,11 @@ CWD_API char *virtual_getcwd_ex(size_t *length TSRMLS_DC) /* {{{ */
*length = 1;
retval = (char *) malloc(2);
if (retval == NULL) {
return NULL;
}
retval[0] = DEFAULT_SLASH;
retval[1] = '\0';
retval[1] = '\0';
return retval;
}
@@ -394,6 +512,9 @@ CWD_API char *virtual_getcwd_ex(size_t *length TSRMLS_DC) /* {{{ */
*length = state->cwd_length+1;
retval = (char *) malloc(*length+1);
if (retval == NULL) {
return NULL;
}
memcpy(retval, state->cwd, *length);
retval[0] = toupper(retval[0]);
retval[*length-1] = DEFAULT_SLASH;
@@ -493,10 +614,17 @@ CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC) /* {{{
while (*bucket != NULL) {
if (key == (*bucket)->key && path_len == (*bucket)->path_len &&
memcmp(path, (*bucket)->path, path_len) == 0) {
memcmp(path, (*bucket)->path, path_len) == 0) {
realpath_cache_bucket *r = *bucket;
*bucket = (*bucket)->next;
CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1 + r->realpath_len + 1;
/* if the pointers match then only subtract the length of the path */
if(r->path == r->realpath) {
CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1;
} else {
CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1 + r->realpath_len + 1;
}
free(r);
return;
} else {
@@ -510,9 +638,9 @@ static inline void realpath_cache_add(const char *path, int path_len, const char
{
long size = sizeof(realpath_cache_bucket) + path_len + 1;
int same = 1;
if (realpath_len != path_len ||
memcmp(path, realpath, path_len) != 0) {
memcmp(path, realpath, path_len) != 0) {
size += realpath_len + 1;
same = 0;
}
@@ -521,6 +649,10 @@ static inline void realpath_cache_add(const char *path, int path_len, const char
realpath_cache_bucket *bucket = malloc(size);
unsigned long n;
if (bucket == NULL) {
return;
}
#ifdef PHP_WIN32
bucket->key = realpath_cache_key(path, path_len TSRMLS_CC);
#else
@@ -567,10 +699,16 @@ static inline realpath_cache_bucket* realpath_cache_find(const char *path, int p
if (CWDG(realpath_cache_ttl) && (*bucket)->expires < t) {
realpath_cache_bucket *r = *bucket;
*bucket = (*bucket)->next;
CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1 + r->realpath_len + 1;
/* if the pointers match then only subtract the length of the path */
if(r->path == r->realpath) {
CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1;
} else {
CWDG(realpath_cache_size) -= sizeof(realpath_cache_bucket) + r->path_len + 1 + r->realpath_len + 1;
}
free(r);
} else if (key == (*bucket)->key && path_len == (*bucket)->path_len &&
memcmp(path, (*bucket)->path, path_len) == 0) {
memcmp(path, (*bucket)->path, path_len) == 0) {
return *bucket;
} else {
bucket = &(*bucket)->next;
@@ -582,21 +720,21 @@ static inline realpath_cache_bucket* realpath_cache_find(const char *path, int p
CWD_API realpath_cache_bucket* realpath_cache_lookup(const char *path, int path_len, time_t t TSRMLS_DC) /* {{{ */
{
return realpath_cache_find(path, path_len, t TSRMLS_CC);
return realpath_cache_find(path, path_len, t TSRMLS_CC);
}
/* }}} */
CWD_API int realpath_cache_size(TSRMLS_D)
CWD_API int realpath_cache_size(TSRMLS_D)
{
return CWDG(realpath_cache_size);
}
CWD_API int realpath_cache_max_buckets(TSRMLS_D)
CWD_API int realpath_cache_max_buckets(TSRMLS_D)
{
return (sizeof(CWDG(realpath_cache)) / sizeof(CWDG(realpath_cache)[0]));
}
CWD_API realpath_cache_bucket** realpath_cache_get_buckets(TSRMLS_D)
CWD_API realpath_cache_bucket** realpath_cache_get_buckets(TSRMLS_D)
{
return CWDG(realpath_cache);
}
@@ -622,6 +760,9 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
while (1) {
if (len <= start) {
if (link_is_dir) {
*link_is_dir = 1;
}
return start;
}
@@ -638,6 +779,10 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
continue;
} else if (i == len - 2 && path[i] == '.' && path[i+1] == '.') {
/* remove '..' and previous directory */
is_dir = 1;
if (link_is_dir) {
*link_is_dir = 1;
}
if (i - 1 <= start) {
return start ? start : len;
}
@@ -650,14 +795,14 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
if (!start) {
/* leading '..' must not be removed in case of relative path */
if (j == 0 && path[0] == '.' && path[1] == '.' &&
IS_SLASH(path[2])) {
IS_SLASH(path[2])) {
path[3] = '.';
path[4] = '.';
path[5] = DEFAULT_SLASH;
j = 5;
} else if (j > 0 &&
path[j+1] == '.' && path[j+2] == '.' &&
IS_SLASH(path[j+3])) {
} else if (j > 0 &&
path[j+1] == '.' && path[j+2] == '.' &&
IS_SLASH(path[j+3])) {
j += 4;
path[j++] = '.';
path[j++] = '.';
@@ -673,7 +818,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
}
return j;
}
path[len] = 0;
save = (use_realpath != CWD_EXPAND);
@@ -683,18 +828,18 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
if (!*t) {
*t = time(0);
}
if ((bucket = realpath_cache_find(path, len, *t TSRMLS_CC)) != NULL) {
if (is_dir && !bucket->is_dir) {
if ((bucket = realpath_cache_find(path, len, *t TSRMLS_CC)) != NULL) {
if (is_dir && !bucket->is_dir) {
/* not a directory */
return -1;
} else {
if (link_is_dir) {
*link_is_dir = bucket->is_dir;
}
} else {
if (link_is_dir) {
*link_is_dir = bucket->is_dir;
}
memcpy(path, bucket->realpath, bucket->realpath_len + 1);
return bucket->realpath_len;
return bucket->realpath_len;
}
}
}
}
#ifdef TSRM_WIN32
@@ -706,7 +851,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
/* continue resolution anyway but don't save result in the cache */
save = 0;
}
if (save) {
FindClose(hFind);
}
@@ -714,9 +859,9 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
tmp = tsrm_do_alloca(len+1, use_heap);
memcpy(tmp, path, len+1);
if(save &&
!(IS_UNC_PATH(path, len) && len >= 3 && path[2] != '?') &&
(data.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) {
if(save &&
!(IS_UNC_PATH(path, len) && len >= 3 && path[2] != '?') &&
(data.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) {
/* File is a reparse point. Get the target */
HANDLE hLink = NULL;
REPARSE_DATA_BUFFER * pbuffer;
@@ -739,6 +884,9 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
}
pbuffer = (REPARSE_DATA_BUFFER *)tsrm_do_alloca(MAXIMUM_REPARSE_DATA_BUFFER_SIZE, use_heap_large);
if (pbuffer == NULL) {
return -1;
}
if(!DeviceIoControl(hLink, FSCTL_GET_REPARSE_POINT, NULL, 0, pbuffer, MAXIMUM_REPARSE_DATA_BUFFER_SIZE, &retlength, NULL)) {
tsrm_free_alloca(pbuffer, use_heap_large);
CloseHandle(hLink);
@@ -751,7 +899,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
reparsetarget = pbuffer->SymbolicLinkReparseBuffer.ReparseTarget;
printname_len = pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR);
isabsolute = (pbuffer->SymbolicLinkReparseBuffer.Flags == 0) ? 1 : 0;
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
reparsetarget + pbuffer->MountPointReparseBuffer.PrintNameOffset / sizeof(WCHAR),
printname_len + 1,
printname, MAX_PATH, NULL, NULL
@@ -763,7 +911,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
printname[printname_len] = 0;
substitutename_len = pbuffer->MountPointReparseBuffer.SubstituteNameLength / sizeof(WCHAR);
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
reparsetarget + pbuffer->MountPointReparseBuffer.SubstituteNameOffset / sizeof(WCHAR),
substitutename_len + 1,
substitutename, MAX_PATH, NULL, NULL
@@ -777,7 +925,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
isabsolute = 1;
reparsetarget = pbuffer->MountPointReparseBuffer.ReparseTarget;
printname_len = pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR);
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
reparsetarget + pbuffer->MountPointReparseBuffer.PrintNameOffset / sizeof(WCHAR),
printname_len + 1,
printname, MAX_PATH, NULL, NULL
@@ -788,7 +936,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
printname[pbuffer->MountPointReparseBuffer.PrintNameLength / sizeof(WCHAR)] = 0;
substitutename_len = pbuffer->MountPointReparseBuffer.SubstituteNameLength / sizeof(WCHAR);
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
if (!WideCharToMultiByte(CP_THREAD_ACP, 0,
reparsetarget + pbuffer->MountPointReparseBuffer.SubstituteNameOffset / sizeof(WCHAR),
substitutename_len + 1,
substitutename, MAX_PATH, NULL, NULL
@@ -803,29 +951,31 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
}
if(isabsolute && substitutename_len > 4) {
/* Do not resolve volumes (for now). A mounted point can
/* Do not resolve volumes (for now). A mounted point can
target a volume without a drive, it is not certain that
all IO functions we use in php and its deps support
all IO functions we use in php and its deps support
path with volume GUID instead of the DOS way, like:
d:\test\mnt\foo
\\?\Volume{62d1c3f8-83b9-11de-b108-806e6f6e6963}\foo
*/
if (strncmp(substitutename, "\\??\\Volume{",11) == 0
|| strncmp(substitutename, "\\\\?\\Volume{",11) == 0) {
isVolume = TRUE;
if (strncmp(substitutename, "\\??\\Volume{",11) == 0
|| strncmp(substitutename, "\\\\?\\Volume{",11) == 0
|| strncmp(substitutename, "\\??\\UNC\\", 8) == 0
) {
isVolume = TRUE;
substitutename_off = 0;
} else
/* do not use the \??\ and \\?\ prefix*/
if (strncmp(substitutename, "\\??\\", 4) == 0
if (strncmp(substitutename, "\\??\\", 4) == 0
|| strncmp(substitutename, "\\\\?\\", 4) == 0) {
substitutename_off = 4;
}
}
if (!isVolume) {
char * tmp = substitutename + substitutename_off;
char * tmp2 = substitutename + substitutename_off;
for(bufindex = 0; bufindex < (substitutename_len - substitutename_off); bufindex++) {
*(path + bufindex) = *(tmp + bufindex);
*(path + bufindex) = *(tmp2 + bufindex);
}
*(path + bufindex) = 0;
@@ -887,7 +1037,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
tmp = tsrm_do_alloca(len+1, use_heap);
memcpy(tmp, path, len+1);
#else
if (save && lstat(path, &st) < 0) {
if (save && php_sys_lstat(path, &st) < 0) {
if (use_realpath == CWD_REALPATH) {
/* file not found */
return -1;
@@ -900,8 +1050,8 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
memcpy(tmp, path, len+1);
if (save && S_ISLNK(st.st_mode)) {
if (++(*ll) > LINK_MAX || (j = readlink(tmp, path, MAXPATHLEN)) < 0) {
/* too many links or broken symlinks */
if (++(*ll) > LINK_MAX || (j = php_sys_readlink(tmp, path, MAXPATHLEN)) < 0) {
/* too many links or broken symlinks */
tsrm_free_alloca(tmp, use_heap);
return -1;
}
@@ -913,10 +1063,10 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
return -1;
}
} else {
if (i + j >= MAXPATHLEN-1) {
if (i + j >= MAXPATHLEN-1) {
tsrm_free_alloca(tmp, use_heap);
return -1; /* buffer overflow */
}
}
memmove(path+i, path, j+1);
memcpy(path, tmp, i-1);
path[i-1] = DEFAULT_SLASH;
@@ -937,6 +1087,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
}
if (is_dir && !directory) {
/* not a directory */
tsrm_free_alloca(tmp, use_heap);
return -1;
}
}
@@ -988,7 +1139,7 @@ static int tsrm_realpath_r(char *path, int start, int len, int *ll, time_t *t, i
/* 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 TSRMLS_DC) /* {{{ */
{
int path_length = strlen(path);
char resolved_path[MAXPATHLEN];
@@ -998,7 +1149,6 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
int ret;
int add_slash;
void *tmp;
TSRMLS_FETCH();
if (path_length == 0 || path_length >= MAXPATHLEN-1) {
#ifdef TSRM_WIN32
@@ -1038,18 +1188,18 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
state_cwd_length = 2;
while (IS_SLASH(state->cwd[state_cwd_length])) {
state_cwd_length++;
}
}
while (state->cwd[state_cwd_length] &&
!IS_SLASH(state->cwd[state_cwd_length])) {
!IS_SLASH(state->cwd[state_cwd_length])) {
state_cwd_length++;
}
}
while (IS_SLASH(state->cwd[state_cwd_length])) {
state_cwd_length++;
}
}
while (state->cwd[state_cwd_length] &&
!IS_SLASH(state->cwd[state_cwd_length])) {
!IS_SLASH(state->cwd[state_cwd_length])) {
state_cwd_length++;
}
}
}
}
#endif
@@ -1057,11 +1207,16 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
return 1;
}
memcpy(resolved_path, state->cwd, state_cwd_length);
resolved_path[state_cwd_length] = DEFAULT_SLASH;
memcpy(resolved_path + state_cwd_length + 1, path, path_length + 1);
path_length += state_cwd_length + 1;
if (resolved_path[state_cwd_length-1] == DEFAULT_SLASH) {
memcpy(resolved_path + state_cwd_length, path, path_length + 1);
path_length += state_cwd_length;
} else {
resolved_path[state_cwd_length] = DEFAULT_SLASH;
memcpy(resolved_path + state_cwd_length + 1, path, path_length + 1);
path_length += state_cwd_length + 1;
}
}
} else {
} else {
#ifdef TSRM_WIN32
if (path_length > 2 && path[1] == ':' && !IS_SLASH(path[2])) {
resolved_path[0] = path[0];
@@ -1072,11 +1227,11 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
} else
#endif
memcpy(resolved_path, path, path_length + 1);
}
}
#ifdef TSRM_WIN32
if (memchr(resolved_path, '*', path_length) ||
memchr(resolved_path, '?', path_length)) {
memchr(resolved_path, '?', path_length)) {
return 1;
}
#endif
@@ -1126,12 +1281,12 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
add_slash = (use_realpath != CWD_REALPATH) && path_length > 0 && IS_SLASH(resolved_path[path_length-1]);
t = CWDG(realpath_cache_ttl) ? 0 : -1;
path_length = tsrm_realpath_r(resolved_path, start, path_length, &ll, &t, use_realpath, 0, NULL TSRMLS_CC);
if (path_length < 0) {
errno = ENOENT;
return 1;
}
if (!start && !path_length) {
resolved_path[path_length++] = '.';
}
@@ -1184,7 +1339,7 @@ verify:
memcpy(state->cwd, resolved_path, state->cwd_length+1);
ret = 0;
}
#if VIRTUAL_CWD_DEBUG
fprintf (stderr, "virtual_file_ex() = %s\n",state->cwd);
#endif
@@ -1194,7 +1349,7 @@ verify:
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;
return virtual_file_ex(&CWDG(cwd), path, php_is_dir_ok, CWD_REALPATH TSRMLS_CC)?-1:0;
}
/* }}} */
@@ -1207,7 +1362,7 @@ CWD_API int virtual_chdir_file(const char *path, int (*p_chdir)(const char *path
if (length == 0) {
return 1; /* Can't cd to empty string */
}
}
while(--length >= 0 && !IS_SLASH(path[length])) {
}
@@ -1241,20 +1396,28 @@ CWD_API char *virtual_realpath(const char *path, char *real_path TSRMLS_DC) /* {
/* realpath("") returns CWD */
if (!*path) {
new_state.cwd = (char*)malloc(1);
if (new_state.cwd == NULL) {
retval = NULL;
goto end;
}
new_state.cwd[0] = '\0';
new_state.cwd_length = 0;
if (VCWD_GETCWD(cwd, MAXPATHLEN)) {
path = cwd;
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);
if (new_state.cwd == NULL) {
retval = NULL;
goto end;
}
new_state.cwd[0] = '\0';
new_state.cwd_length = 0;
new_state.cwd_length = 0;
}
if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)==0) {
if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH TSRMLS_CC)==0) {
int len = new_state.cwd_length>MAXPATHLEN-1?MAXPATHLEN-1:new_state.cwd_length;
memcpy(real_path, new_state.cwd, len);
@@ -1265,7 +1428,7 @@ CWD_API char *virtual_realpath(const char *path, char *real_path TSRMLS_DC) /* {
}
CWD_STATE_FREE(&new_state);
end:
return retval;
}
/* }}} */
@@ -1276,7 +1439,7 @@ CWD_API int virtual_filepath_ex(const char *path, char **filepath, verify_path_f
int retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
retval = virtual_file_ex(&new_state, path, verify_path, CWD_FILEPATH);
retval = virtual_file_ex(&new_state, path, verify_path, CWD_FILEPATH TSRMLS_CC);
*filepath = new_state.cwd;
@@ -1301,7 +1464,7 @@ CWD_API FILE *virtual_fopen(const char *path, const char *mode TSRMLS_DC) /* {{{
}
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, path, NULL, CWD_FILEPATH)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_EXPAND TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return NULL;
}
@@ -1317,21 +1480,21 @@ CWD_API int virtual_access(const char *pathname, int mode TSRMLS_DC) /* {{{ */
{
cwd_state new_state;
int ret;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, pathname, NULL, CWD_REALPATH)) {
if (virtual_file_ex(&new_state, pathname, NULL, CWD_REALPATH TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return -1;
}
#if defined(TSRM_WIN32)
ret = tsrm_win32_access(new_state.cwd, mode);
ret = tsrm_win32_access(new_state.cwd, mode TSRMLS_CC);
#else
ret = access(new_state.cwd, mode);
#endif
CWD_STATE_FREE(&new_state);
return ret;
}
/* }}} */
@@ -1352,12 +1515,12 @@ static void UnixTimeToFileTime(time_t t, LPFILETIME pft) /* {{{ */
TSRM_API int win32_utime(const char *filename, struct utimbuf *buf) /* {{{ */
{
FILETIME mtime, atime;
HANDLE hFile;
HANDLE hFile;
hFile = CreateFile(filename, GENERIC_WRITE, FILE_SHARE_WRITE|FILE_SHARE_READ, NULL,
OPEN_ALWAYS, FILE_FLAG_BACKUP_SEMANTICS, NULL);
/* OPEN_ALWAYS mode sets the last error to ERROR_ALREADY_EXISTS but
/* OPEN_ALWAYS mode sets the last error to ERROR_ALREADY_EXISTS but
the CreateFile operation succeeds */
if (GetLastError() == ERROR_ALREADY_EXISTS) {
SetLastError(0);
@@ -1392,7 +1555,7 @@ CWD_API int virtual_utime(const char *filename, struct utimbuf *buf TSRMLS_DC) /
int ret;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, filename, NULL, CWD_REALPATH)) {
if (virtual_file_ex(&new_state, filename, NULL, CWD_REALPATH TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -1415,7 +1578,7 @@ CWD_API int virtual_chmod(const char *filename, mode_t mode TSRMLS_DC) /* {{{ */
int ret;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, filename, NULL, CWD_REALPATH)) {
if (virtual_file_ex(&new_state, filename, NULL, CWD_REALPATH TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -1434,7 +1597,7 @@ CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int li
int ret;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, filename, NULL, CWD_REALPATH)) {
if (virtual_file_ex(&new_state, filename, NULL, CWD_REALPATH TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -1461,7 +1624,7 @@ CWD_API int virtual_open(const char *path TSRMLS_DC, int flags, ...) /* {{{ */
int f;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, path, NULL, CWD_FILEPATH)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_FILEPATH TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -1477,7 +1640,7 @@ CWD_API int virtual_open(const char *path TSRMLS_DC, int flags, ...) /* {{{ */
f = open(new_state.cwd, flags, mode);
} else {
f = open(new_state.cwd, flags);
}
}
CWD_STATE_FREE(&new_state);
return f;
}
@@ -1489,7 +1652,7 @@ CWD_API int virtual_creat(const char *path, mode_t mode TSRMLS_DC) /* {{{ */
int f;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, path, NULL, CWD_FILEPATH)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_FILEPATH TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -1508,14 +1671,14 @@ CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC) /* {{{ */
int retval;
CWD_STATE_COPY(&old_state, &CWDG(cwd));
if (virtual_file_ex(&old_state, oldname, NULL, CWD_EXPAND)) {
if (virtual_file_ex(&old_state, oldname, NULL, CWD_EXPAND TSRMLS_CC)) {
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_EXPAND)) {
if (virtual_file_ex(&new_state, newname, NULL, CWD_EXPAND TSRMLS_CC)) {
CWD_STATE_FREE(&old_state);
CWD_STATE_FREE(&new_state);
return -1;
@@ -1544,7 +1707,7 @@ CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC) /* {{{ */
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_REALPATH TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -1556,25 +1719,23 @@ CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC) /* {{{ */
}
/* }}} */
#if !defined(TSRM_WIN32)
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_EXPAND)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_EXPAND TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return -1;
}
retval = lstat(new_state.cwd, buf);
retval = php_sys_lstat(new_state.cwd, buf);
CWD_STATE_FREE(&new_state);
return retval;
}
/* }}} */
#endif
CWD_API int virtual_unlink(const char *path TSRMLS_DC) /* {{{ */
{
@@ -1582,7 +1743,7 @@ CWD_API int virtual_unlink(const char *path TSRMLS_DC) /* {{{ */
int retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, path, NULL, CWD_EXPAND)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_EXPAND TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -1600,7 +1761,7 @@ CWD_API int virtual_mkdir(const char *pathname, mode_t mode TSRMLS_DC) /* {{{ */
int retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, pathname, NULL, CWD_FILEPATH)) {
if (virtual_file_ex(&new_state, pathname, NULL, CWD_FILEPATH TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -1621,7 +1782,7 @@ CWD_API int virtual_rmdir(const char *pathname TSRMLS_DC) /* {{{ */
int retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, pathname, NULL, CWD_EXPAND)) {
if (virtual_file_ex(&new_state, pathname, NULL, CWD_EXPAND TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return -1;
}
@@ -1643,7 +1804,7 @@ CWD_API DIR *virtual_opendir(const char *pathname TSRMLS_DC) /* {{{ */
DIR *retval;
CWD_STATE_COPY(&new_state, &CWDG(cwd));
if (virtual_file_ex(&new_state, pathname, NULL, CWD_REALPATH)) {
if (virtual_file_ex(&new_state, pathname, NULL, CWD_REALPATH TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return NULL;
}
@@ -1658,7 +1819,7 @@ CWD_API DIR *virtual_opendir(const char *pathname TSRMLS_DC) /* {{{ */
#ifdef TSRM_WIN32
CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC) /* {{{ */
{
return popen_ex(command, type, CWDG(cwd).cwd, NULL);
return popen_ex(command, type, CWDG(cwd).cwd, NULL TSRMLS_CC);
}
/* }}} */
#elif defined(NETWARE)
@@ -1738,7 +1899,7 @@ CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC) /*
}
*ptr++ = '\'';
}
*ptr++ = ' ';
*ptr++ = ';';
*ptr++ = ' ';
@@ -1760,22 +1921,28 @@ CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC) /* {{{
/* realpath("") returns CWD */
if (!*path) {
new_state.cwd = (char*)malloc(1);
if (new_state.cwd == NULL) {
return NULL;
}
new_state.cwd[0] = '\0';
new_state.cwd_length = 0;
if (VCWD_GETCWD(cwd, MAXPATHLEN)) {
path = cwd;
new_state.cwd_length = 0;
if (VCWD_GETCWD(cwd, MAXPATHLEN)) {
path = cwd;
}
} else if (!IS_ABSOLUTE_PATH(path, strlen(path)) &&
VCWD_GETCWD(cwd, MAXPATHLEN)) {
VCWD_GETCWD(cwd, MAXPATHLEN)) {
new_state.cwd = strdup(cwd);
new_state.cwd_length = strlen(cwd);
} else {
new_state.cwd = (char*)malloc(1);
if (new_state.cwd == NULL) {
return NULL;
}
new_state.cwd[0] = '\0';
new_state.cwd_length = 0;
new_state.cwd_length = 0;
}
if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH TSRMLS_CC)) {
free(new_state.cwd);
return NULL;
}
+16 -12
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2010 The PHP Group |
| Copyright (c) 1997-2012 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 |
@@ -14,6 +14,7 @@
+----------------------------------------------------------------------+
| Authors: Andi Gutmans <andi@zend.com> |
| Sascha Schumann <sascha@schumann.cx> |
| Pierre Joye <pierre@php.net> |
+----------------------------------------------------------------------+
*/
@@ -107,7 +108,7 @@ typedef unsigned short mode_t;
#define COPY_WHEN_ABSOLUTE(path) 0
#endif
#ifndef IS_ABSOLUTE_PATH
#ifndef IS_ABSOLUTE_PATH
#define IS_ABSOLUTE_PATH(path, len) \
(IS_SLASH(path[0]))
#endif
@@ -129,9 +130,16 @@ typedef unsigned short mode_t;
#endif
#ifdef TSRM_WIN32
CWD_API int php_sys_stat(const char *path, struct stat *buf);
CWD_API int php_sys_stat_ex(const char *path, struct stat *buf, int lstat);
# define php_sys_stat(path, buf) php_sys_stat_ex(path, buf, 0)
# define php_sys_lstat(path, buf) php_sys_stat_ex(path, buf, 1)
CWD_API int php_sys_readlink(const char *link, char *target, size_t target_len);
#else
# define php_sys_stat stat
# define php_sys_lstat lstat
# ifdef HAVE_SYMLINK
# define php_sys_readlink(link, target, target_len) readlink(link, target, target_len)
# endif
#endif
typedef struct _cwd_state {
@@ -155,9 +163,7 @@ CWD_API int virtual_open(const char *path TSRMLS_DC, int flags, ...);
CWD_API int virtual_creat(const char *path, mode_t mode TSRMLS_DC);
CWD_API int virtual_rename(char *oldname, char *newname TSRMLS_DC);
CWD_API int virtual_stat(const char *path, struct stat *buf TSRMLS_DC);
#if !defined(TSRM_WIN32)
CWD_API int virtual_lstat(const char *path, struct stat *buf TSRMLS_DC);
#endif
CWD_API int virtual_unlink(const char *path TSRMLS_DC);
CWD_API int virtual_mkdir(const char *pathname, mode_t mode TSRMLS_DC);
CWD_API int virtual_rmdir(const char *pathname TSRMLS_DC);
@@ -188,14 +194,14 @@ CWD_API int virtual_chmod(const char *filename, mode_t mode TSRMLS_DC);
CWD_API int virtual_chown(const char *filename, uid_t owner, gid_t group, int link TSRMLS_DC);
#endif
/* One of the following constants must be used as the last argument
/* One of the following constants must be used as the last argument
in virtual_file_ex() call. */
#define CWD_EXPAND 0 /* expand "." and ".." but dont resolve symlinks */
#define CWD_FILEPATH 1 /* resolve symlinks if file is exist otherwise expand */
#define CWD_REALPATH 2 /* call realpath(), resolve symlinks. File must exist */
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 TSRMLS_DC);
CWD_API char *tsrm_realpath(const char *path, char *real_path TSRMLS_DC);
@@ -216,7 +222,7 @@ typedef struct _realpath_cache_bucket {
unsigned char is_wvalid;
unsigned char is_writable;
#endif
struct _realpath_cache_bucket *next;
struct _realpath_cache_bucket *next;
} realpath_cache_bucket;
typedef struct _virtual_cwd_globals {
@@ -244,7 +250,7 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(TSRMLS_D);
/* The actual macros to be used in programs using TSRM
* If the program defines VIRTUAL_DIR it will use the
* virtual_* functions
* virtual_* functions
*/
#ifdef VIRTUAL_DIR
@@ -261,9 +267,7 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(TSRMLS_D);
#define VCWD_REALPATH(path, real_path) virtual_realpath(path, real_path TSRMLS_CC)
#define VCWD_RENAME(oldname, newname) virtual_rename(oldname, newname TSRMLS_CC)
#define VCWD_STAT(path, buff) virtual_stat(path, buff TSRMLS_CC)
#if !defined(TSRM_WIN32)
# define VCWD_LSTAT(path, buff) virtual_lstat(path, buff TSRMLS_CC)
#endif
#define VCWD_UNLINK(path) virtual_unlink(path TSRMLS_CC)
#define VCWD_MKDIR(pathname, mode) virtual_mkdir(pathname, mode TSRMLS_CC)
#define VCWD_RMDIR(pathname) virtual_rmdir(pathname TSRMLS_CC)
@@ -306,7 +310,7 @@ CWD_API realpath_cache_bucket** realpath_cache_get_buckets(TSRMLS_D);
#define VCWD_OPENDIR(pathname) opendir(pathname)
#define VCWD_POPEN(command, type) popen(command, type)
#if defined(TSRM_WIN32)
#define VCWD_ACCESS(pathname, mode) tsrm_win32_access(pathname, mode)
#define VCWD_ACCESS(pathname, mode) tsrm_win32_access(pathname, mode TSRMLS_CC)
#else
#define VCWD_ACCESS(pathname, mode) access(pathname, mode)
#endif
+10 -8
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2010 The PHP Group |
| Copyright (c) 1997-2012 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 |
@@ -190,7 +190,7 @@ Finished:
return NULL;
}
TSRM_API int tsrm_win32_access(const char *pathname, int mode)
TSRM_API int tsrm_win32_access(const char *pathname, int mode TSRMLS_DC)
{
time_t t;
HANDLE thread_token;
@@ -208,8 +208,6 @@ TSRM_API int tsrm_win32_access(const char *pathname, int mode)
realpath_cache_bucket * bucket = NULL;
char * real_path = NULL;
TSRMLS_FETCH();
if (mode == 1 /*X_OK*/) {
DWORD type;
return GetBinaryType(pathname, &type) ? 0 : -1;
@@ -448,10 +446,12 @@ static HANDLE dupHandle(HANDLE fh, BOOL inherit) {
TSRM_API FILE *popen(const char *command, const char *type)
{
return popen_ex(command, type, NULL, NULL);
TSRMLS_FETCH();
return popen_ex(command, type, NULL, NULL TSRMLS_CC);
}
TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env)
TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env TSRMLS_DC)
{
FILE *stream = NULL;
int fno, type_len = strlen(type), read, mode;
@@ -469,8 +469,6 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
HANDLE token_user = NULL;
BOOL asuser = TRUE;
TSRMLS_FETCH();
if (!type) {
return NULL;
}
@@ -532,6 +530,10 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
}
cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c ")+2);
if (!cmd) {
return NULL;
}
sprintf(cmd, "%s /c \"%s\"", TWG(comspec), command);
if (asuser) {
res = CreateProcessAsUser(token_user, NULL, cmd, &security, &security, security.bInheritHandle, dwCreateFlags, env, cwd, &startup, &process);
+3 -3
View File
@@ -2,7 +2,7 @@
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2010 The PHP Group |
| Copyright (c) 1997-2012 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 |
@@ -95,10 +95,10 @@ char * tsrm_win32_get_path_sid_key(const char *pathname TSRMLS_DC);
TSRM_API void tsrm_win32_startup(void);
TSRM_API void tsrm_win32_shutdown(void);
TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env);
TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env TSRMLS_DC);
TSRM_API FILE *popen(const char *command, const char *type);
TSRM_API int pclose(FILE *stream);
TSRM_API int tsrm_win32_access(const char *pathname, int mode);
TSRM_API int tsrm_win32_access(const char *pathname, int mode TSRMLS_DC);
TSRM_API int win32_utime(const char *filename, struct utimbuf *buf);
TSRM_API int shmget(int key, int size, int flags);
+574 -93
View File
@@ -1,46 +1,41 @@
$Id$
UPGRADE NOTES - PHP X.Y
UPGRADE NOTES - PHP 5.4
1. Changes made to default configuration
2. Reserved words and classes
3. Changes made to existing functions
4. Changes made to existing methods
5. Changes made to existing classes
6. Deprecated
7. Extensions:
a. moved out to PECL and actively maintained there
b. no longer maintained
c. with changed behaviour
d. no longer possible to disable
8. Changes in SAPI support
9. Changes in INI directives
10. Syntax additions
11. Windows support
12. New in PHP X.Y:
a. New libraries
b. New extensions
c. New stream wrappers
d. New stream filters
e. New functions
f. New global constants
g. New classes
h. New methods
i. New class constants
j. New hash algorithms
3. Changes made to engine behaviour
4. Changes made to existing functions
5. Changes made to existing methods
6. Changes made to existing classes
7. Deprecated
8. Removed
9. Extensions:
a. with changed behaviour
b. no longer possible to disable
10. Changes in SAPI support
11. Changes in INI directives
12. Syntax additions
13. Windows support
14. New in PHP 5.4:
a. New functions
b. New global constants
c. New classes
d. New methods
e. New class constants
f. New hash algorithms
========================================
1. Changes made to default configuration
========================================
- The default_charset setting now defaults to UTF-8.
It was ISO-88590-1 before, so if you were relying
It was ISO-88590-1 before, so if you were relying
on the default, you will need to add:
default_charset = iso-8859-1
to your php.ini to preserve pre-PHPX.Y behavior.
to your php.ini to preserve pre-5.4 behavior.
- We now check at compile time if /dev/urandom or /dev/arandom
are present to provide non-blocking entropy to session id
@@ -52,9 +47,9 @@ UPGRADE NOTES - PHP X.Y
session.entropy_file=
session.entropy_length=0
to your php.ini to preserve pre-PHPX.Y behavior.
to your php.ini to preserve pre-PHP5.4 behavior.
- Deprecated ini directives will now throw an E_CORE_WARNING's
- Deprecated ini directives will now throw an E_CORE_WARNING's
instead of the previous E_WARNING's.
The following directives are marked as deprecated:
@@ -62,8 +57,8 @@ UPGRADE NOTES - PHP X.Y
- magic_quotes_runtime
- magic_quotes_sybase
- The following directives, which indicates a removed feature
in PHP will now throw an E_CORE_ERROR upon startup like the
- The following directives, which indicates a removed feature
in PHP will now throw an E_CORE_ERROR upon startup like the
deprecation warnings.
The following directives are no longer available:
@@ -80,42 +75,227 @@ UPGRADE NOTES - PHP X.Y
- safe_mode_protected_env_vars
- zend.ze1_compatibility_mode
- the following new directives were added
- max_input_vars - specifies how many GET/POST/COOKIE input variables may be
accepted. default value 1000.
=============================
2. Reserved words and classes
=============================
-
- "callable", "insteadof" and "trait" are reserved words now.
===================================
3. Changes made to engine behaviour
===================================
- It's now possible to enforce the class' __construct arguments in an abstract
constructor in the base class.
abstract class Base
{
abstract public function __construct();
}
class Foo extends Base
{
public function __construct($bar) {}
}
Now emits a Fatal error due the incompatible declaration.
- In previous versions, names of superglobals could be used for parameter
names, thereby shadowing the corresponding superglobal. This now causes a
fatal error such as "Cannot re-assign auto-global variable GLOBALS".
- Turning null, false or empty string into an object by adding a property
will now emit a warning instead of an E_STRICT error.
$test = null;
$test->baz = 1;
To create a generic object you can use StdClass:
$test = new StdClass;
$test->baz = 1;
- Converting array to string now will cause E_NOTICE warning.
- Chained string offsets - e.g. $a[0][0] where $a is a string - now work.
- Non-numeric string offsets - e.g. $a['foo'] where $a is a string - now return
false on isset() and true on empty(), and produce warning if trying to use them.
Offsets of types double, bool and null produce notice. Numeric strings ($a['2'])
still work as before.
Note that offsets like '12.3' and '5 and a half' are considered non-numeric
and produce warning, but are converted to 12 and 5 respectively for BC reasons.
- Changed E_ALL to include E_STRICT.
- Closures now support scopes and $this and can be rebound to
objects using Closure::bind() and Closure::bindTo().
- Added multibyte support by default. Now it can be enabled or disabled through
zend.multibyte directive in php.ini.
- <?= is now always available regardless of the short_open_tag setting.
- Parse error messages are changed to contain more information about the error.
=====================================
3. Changes made to existing functions
4. Changes made to existing functions
=====================================
-
- array_combine now returns array() instead of FALSE when two empty arrays are
provided as parameters.
- Added an extra parameter to dns_get_record(), which allows requesting DNS
records by numeric type and makes the result include only the raw data of
the response.
- call_user_func_array no longer allows call-time pass by reference.
- htmlentities/htmlspecialchars are stricter in the code units they accept for
the asian encodings. For Big5-HKSCS, the octets 0x80 and 0xFF are rejected.
For GB2312/EUC-CN, the octets 0x8E, 0x8F, 0xA0 and 0xFF are rejected. For
SJIS, the octets 0x80, 0xA0, 0xFD, 0xFE and 0xFF are rejected, except maybe
after a valid starting byte. For EUC-JP, the octets 0xA0 and 0xFF are
rejected.
- htmlentities now emits an E_STRICT warning when used with asian characters,
as in that case htmlentities has (and already had before this version) the
same functionality as htmlspecialchars.
- htmlentities no longer numerically encodes high characters for single-byte
encodings (except when there's actually a corresponding named entity). This
behavior was not documented and was inconsistent with that for "UTF-8".
- html_entity_decode/htmlspecialchars_decode behave more consistently, now
decoding entities in malformed strings such as "&&amp;" or "&#&amp;".
- htmlentities/htmlspecialchars/html_entity_decode/htmlspecialchars_decode:
Added the flags ENT_HTML401, ENT_XML1, ENT_XHTML, and ENT_HTML5. The
behavior of these functions including, but not limited to, the characters
that are encoded and the entities that are decoded depend on the document
type that is specified by those flags.
- htmlentities/htmlspecialchars with !$double_encode do more strict checks on
the validity of the entities. Numerical entities are checked for a valid
range (0 to 0x10FFFF); if the flag ENT_DISALLOWED is given, the validity of
such numerical entity in the target document type is also checked. Named
entities are checked for necessary existence in the target document type
instead of only checking whether they were constituted by alphanumeric
characters.
- The flag ENT_DISALLOWED was added. In addition to the behavior described in
the item before, it also makes htmlentities/htmlspecialchars substitute
characters that appear literally in the argument string and which are not
allowed in the target document type with U+FFFD (UTF-8) or &#xFFFD;.
- The flag ENT_SUBSTITUTE was added. This flag makes invalid multibyte
sequences be replaced by U+FFFD (UTF-8) or &#FFFD; by htmlspecialchars and
htmlentities. It is an alternative to the default behavior, which just
returns an empty string and to ENT_IGNORE, which is a security risk. The
behavior follows the recommendations of Unicode Technical Report #36.
- htmlspecialchars_decode/html_entity_decode now decode &apos; if the document
type is ENT_XML1, ENT_XHTML, or ENT_HTML5.
- Charset detection with $charset == '' no longer turns to mbstring's
internal encoding defined through mb_internal_encoding(). Only the encoding
defined through the ini setting mbstring.internal_encoding is considered.
- number_format() no longer truncates multibyte decimal points and thousand
separators to the first byte.
- The third parameter ($matches) to preg_match_all() is now optional. If
omitted, the function will simply return the number of times the pattern was
matched in the subject and will have no other side effects.
- The second argument of scandir() now accepts SCANDIR_SORT_NONE (2) as a
possible value. This value results in scandir() performing no sorting: on
local filesystems, this allows files to be returned in native filesystem
order.
- stream_select() now preserves the keys of the passed array, be they numeric or
strings. This breaks code that iterated the resulting stream array using a
numeric index, but makes easier to identify which of the passed streams are
present in the result.
- stream_set_write_buffer() no longer disables the read buffer of a plain
stream when 0 is given as the second argument.
- stream_set_write_buffer() no longer changes the chunk size in socket streams.
- fclose() closes streams with resource refcount > 1; it doesn't merely
decrement the resource refcount.
- socket_set_options() and socket_get_options() now support multicast options.
- The raw data parameter in openssl_encrypt()/openssl_decrypt() is now an options
integer rather than a boolean. A value of true produces the same behaviour.
- Write operations within XSLT (for example with the extension sax:output) are
disabled by default. You can define what is forbidden with the method
XsltProcess::setSecurityPrefs($options).
- Added AES support to OpenSSL.
- openssl_csr_new() expects the textual data to be in UTF-8.
- Added no padding option to openssl_encrypt()/openssl_decrypt().
- Added a "no_ticket" SSL context option to disable the SessionTicket TLS
extension.
- Added new json_encode() options: JSON_PRETTY_PRINT, JSON_UNESCAPED_SLASHES,
JSON_NUMERIC_CHECK, JSON_BIGINT_AS_STRING, JSON_UNESCAPED_UNICODE.
- Added Tokyo Cabinet and Berkley DB 5 support to DBA extension.
- Added support for CURLOPT_MAX_SEND_SPEED_LARGE and CURLOPT_MAX_RECV_SPEED_LARGE
to cURL.
- Added optional argument to debug_backtrace() and debug_print_backtrace()
to limit the amount of stack frames returned.
- Fixed crypt_blowfish handling of 8-bit characters. crypt() in Blowfish mode
now supports hashes marked $2a$, $2x$, $2y$ and $2z$.
- mbstring now supports following encodings: Shift_JIS/UTF-8 Emoji,
JIS X0213:2004 (Shift_JIS-2004, EUC-JP-2004, ISO-2022-JP-2004),
MacJapanese (Shift_JIS), gb18030.
- Added encode/decode in hex format to mb_[en|de]code_numericentity().
- Added support for SORT_NATURAL and SORT_FLAG_CASE in array sort functions
(sort, rsort, ksort, krsort, asort, arsort and array_multisort).
- is_a() and is_subclass_of() now have third boolean parameter, which specifies
if the first argument can be a string class name. Default if false for is_a
and true for is_subclass_of() for BC reasons.
- ob_start() will now treat a chunk size of 1 as meaning 1 byte, rather than
the previous special case behaviour of treating it as 4096 bytes.
- idn_to_ascii() and idn_to_utf8() now take two extra parameters, one indicating
the variant (IDNA 2003 or UTS #46) and another, passed by reference, to return
details about the operation in case UTS #46 is chosen.
- gzencode() used with FORCE_DEFLATE now generates RFC1950 compliant data.
- ob_start() refuses to start multiple output buffers at once passed as
array("callback1", "callback2", "callback3", ...).
===================================
4. Changes made to existing methods
5. Changes made to existing methods
===================================
-
- DateTime::parseFromFormat() now has + modifier to allow trailing text in
the string to parse without throwing an error.
- Added the ability to pass options to DOMDocument::loadHTML().
- FilesystemIterator, GlobIterator and (Recursive)DirectoryIterator now use
the default stream context.
===================================
5. Changes made to existing classes
6. Changes made to existing classes
===================================
-
- Classes that implement stream wrappers can define a method called
stream_truncate that will respond to truncation, e.g. through ftruncate.
Strictly speaking, this is an addition to the user-space stream wrapper
template, not a change to an actual class.
- Classes that implement stream wrappers can define a method called stream_metadata that
will be called on touch(), chmod(), chgrp(), chown().
- Arrays cast from SimpleXMLElement now always contain all nodes instead of
just the first matching node.
- All SimpleXMLElement children are now always printed when using var_dump(),
var_export(), and print_r().
- Added iterator support in MySQLi. mysqli_result implements Traversable.
=============
6. Deprecated
7. Deprecated
=============
-
- get_magic_quotes_gpc()
- get_magic_quotes_runtime()
- mcrypt_generic_end()
- mysql_list_dbs()
==========
7. Removed
8. Removed
==========
a. removed features
- magic quotes
. remove magic_quotes_gpc, magic_quotes_runtime,
magic_quotes_sybase (calling ini_set('magic_....')
returns 0|false
. get_magic_quotes_gpc, get_magic_quotes_runtime are kept but
always return false
. set_magic_quotes_runtime raises an E_CORE_ERROR
- register_globals
- register_long_arrays
- Safe mode
@@ -144,106 +324,407 @@ UPGRADE NOTES - PHP X.Y
- session_is_registered()
- session_register()
- session_unregister()
- mysqli_bind_param() (alias of mysqli_stmt_bind_param())
- mysqli_bind_result() (alias of mysqli_stmt_bind_result())
- mysqli_client_encoding() (alias of mysqli_character_set_name())
- mysqli_fetch() (alias of mysqli_stmt_fetch())
- mysqli_param_count() (alias of mysqli_stmt_param_count())
- mysqli_get_metadata() (alias of mysqli_stmt_result_metadata())
- mysqli_send_long_data() (alias of mysqli_stmt_send_long_data())
- mysqli::client_encoding() (alias of mysqli::character_set_name)
- mysqli_stmt::stmt() (never worked/always throws, undocumented)
d. removed syntax
- break $var;
- continue $var;
e. removed hash algorithms
- Salsa10 and Salsa20, which are actually stream ciphers
=============
8. Extensions
9. Extensions
=============
a. moved out to PECL and actively maintained there
a. no longer maintained
-
- ext/sqlite
b. no longer maintained
-
c. with changed behaviour
b. with changed behaviour
- The MySQL extensions (ext/mysql, mysqli and PDO_mysql) use mysqlnd
as the default library now. It is still possible to use libmysql by
specifying a path to the configure options.
- PDO_mysql: Support for linking with MySQL client libraries older
than 4.1 is removed.
- The session extension now can hook into the file upload feature
in order to provide upload progress information through session
in order to provide upload progress information through session
variables.
- SNMP extension
- Functions in SNMP extension now returns FALSE on every error
condition including SNMP-related (no such instance, end of MIB,
etc). Thus, in patricular, breaks previous behaviour of get/walk
functions returning an empty string on SNMP-related errors.
- Multi OID get/getnext/set queries are now supported.
- New constants added for use in snmp_set_oid_output_format()
function.
- Function snmp_set_valueretrieval() changed it's behaviour:
SNMP_VALUE_OBJECT can be combined with one of
SNMP_VALUE_PLAIN or SNMP_VALUE_LIBRARY resulting OID value
changes. When no SNMP_VALUE_PLAIN or SNMP_VALUE_LIBRARY
is supplied with SNMP_VALUE_OBJECT, SNMP_VALUE_LIBRARY is used.
Prior to 5.4.0 when no SNMP_VALUE_PLAIN or SNMP_VALUE_LIBRARY
was supplied with SNMP_VALUE_OBJECT, SNMP_VALUE_PLAIN was used.
- Added feature-rich OO API (SNMP class)
- Dropped UCD-SNMP compatibility code. Consider upgrading to
net-snmp v5.3+. Net-SNMP v5.4+ is required for Windows version.
- In sake of adding support for IPv6 DNS name resolution of
remote SNMP agent (peer) is done by extension now, not by Net-SNMP
library anymore.
d. no longer possible to disable
-
- Date extension
- Setting the timezone with the TZ environment variable is no longer
supported, instead date.timezone and/or date_default_timezone_set()
have to be used.
- The extension will no longer guess the default timezone if none
is set with date.timezone and/or date_default_timezone_set().
Instead it will always fall back to "UTC".
==========================
9. Changes in SAPI support
10. Changes in SAPI support
==========================
-
- Added built-in CLI web server that is intended for testing purposes.
- The REQUEST_TIME value inside server now returns a floating point number
indicating the time with microsecond precision. All SAPIs providing this
value should be returning float and not time_t.
- apache_child_terminate(), getallheaders(), apache_request_headers()
and apache_response_headers() now supported on FastCGI.
- Added shortcut #inisetting=value to change ini settings at run-time.
- Changed shell not to terminate on fatal errors.
- Interactive shell works with shared readline extension.
- Added command line option --rz <name> which shows information of the
named Zend extension.
- PHP-FPM now supports syslog value for error_log.
=============================
10. Changes in INI directives
11. Changes in INI directives
=============================
- Added session.upload_progress.enabled, session.upload_progress.cleanup,
session.upload_progress.prefix, session.upload_progress.name,
- Recommended production value for error_reporting changed to
E_ALL & ~E_DEPRECATED & ~E_STRICT.
- Added session.upload_progress.enabled, session.upload_progress.cleanup,
session.upload_progress.prefix, session.upload_progress.name,
session.upload_progress.freq, session.upload_progress.min_freq.
- Added zend.multibyte directive as a replacement of PHP compile time
configuration option --enable-zend-multibyte. Now ZE always contains code for
multibyte support, but may enable or disable it by zend.multibyte. It doesn't
make a lot of sense to enable this option without ext/mbstring, because the
most functionality is implemented by mbstrings callbacks.
- Added enable_post_data_reading, which is enabled by default. When it's
disabled, the POST data is not read (and processed); the behavior is similar
to that of other request methods with body, like PUT. This allows reading the
raw POST data in multipart requests and read/process the POST data in a
stream fashion (through php://input), without having it copied in memory two/
three times.
- A new directive, called windows_show_crt_warning, has been introduced.
This directive shows the CRT warnings when enabled. These warnings were
displayed by default until now. It is disabled by default.
- Added cli.pager php.ini setting to set a pager for CLI output.
- Added cli.prompt php.ini setting to configure the CLI shell prompt.
- Added process.max to control the number of process FPM can fork.
====================
11. Syntax additions
12. Syntax additions
====================
- Traits:
trait HelloWorld {
public function sayHello() {
echo 'Hello World!';
}
}
- Array dereferencing.
class CanIGetHello {
use HelloWorld;
}
$hello = new CanIGetHello();
$hello->sayHello();
- Function call result array access:
e.g.
foo()[0]
$foo->bar()[0]
===================
12. Windows support
===================
- Callable typehint, argument must be callable (i.e. pass is_callable($arg, false))
example:
function foo(callable $do) {
}
foo("strcmp");
foo(function() {});
$o = new ArrayObject();
foo(array($o, "count"));
-
- Short array syntax:
$a = [1, 2, 3, 4];
$a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4];
$a = ['one' => 1, 2, 'three' => 3, 4];
- Binary number format:
0b00100 0b010101
- $str[1][0] where $str is a string is now a legal construct.
- Anonymous functions now support using $this and class scope.
Anonymous function can be declared as "static" to ignore the scope.
- Class::{expr}() syntax is now supported:
class A {
static function foo() {
echo "Hello world!\n";
}
}
$x = "f";
$y = "o";
A::{$x.$y.$y}();
- Class member access on instantiation:
(new foo)->method()
(new foo)->property
(new foo)[0]
===================
13. New in PHP X.Y:
13. Windows support
===================
a. New libraries
- is_link now works properly for symbolic links on Windows Vista
or later. Earlier systems do not support symbolic links.
-
===================
14. New in PHP 5.4:
===================
b. New extensions
-
c. New stream wrappers
-
d. New stream filters
-
e. New functions
- Core:
f. New global constants
a. New functions
- Core:
- get_declared_traits()
- getimagesizefromstring()
- hex2bin()
- header_register_callback()
- http_response_code()
- stream_set_chunk_size()
- socket_import_stream()
- trait_exists()
g. New classes
- Intl:
- transliterator_create()
- transliterator_create_from_rules()
- transliterator_create_inverse()
- transliterator_get_error_code()
- transliterator_get_error_message()
- transliterator_list_ids()
- transliterator_transliterate()
- LDAP:
- ldap_control_paged_results()
- ldap_control_paged_results_response()
- libxml:
- libxml_set_external_entity_loader()
- mysqli:
- mysqli_error_list()
- mysqli_stmt_error_list()
- Session:
- session_register_shutdown()
- session_status()
- SPL
- class_uses()
b. New global constants
- CURLOPT_MAX_RECV_SPEED_LARGE
- CURLOPT_MAX_SEND_SPEED_LARGE
- ENT_DISALLOWED
- ENT_HTML401
- ENT_HTML5
- ENT_SUBSTITUTE
- ENT_XHTML
- ENT_XML1
- IPPROTO_IP
- IPPROTO_IPV6
- IPV6_MULTICAST_HOPS
- IPV6_MULTICAST_IF
- IPV6_MULTICAST_LOOP
- IP_MULTICAST_IF
- IP_MULTICAST_LOOP
- IP_MULTICAST_TTL
- JSON_BIGINT_AS_STRING
- JSON_OBJECT_AS_ARRAY
- JSON_PRETTY_PRINT
- JSON_UNESCAPED_SLASHES
- JSON_UNESCAPED_UNICODE
- LIBXML_HTML_NODEFDTD
- LIBXML_HTML_NOIMPLIED
- LIBXML_PEDANTIC
- MCAST_JOIN_GROUP
- MCAST_LEAVE_GROUP
- MCAST_BLOCK_SOURCE
- MCAST_UNBLOCK_SOURCE
- MCAST_JOIN_SOURCE_GROUP
- MCAST_LEAVE_SOURCE_GROUP
- OPENSSL_CIPHER_AES_128_CBC
- OPENSSL_CIPHER_AES_192_CBC
- OPENSSL_CIPHER_AES_256_CBC
- OPENSSL_RAW_DATA
- OPENSSL_ZERO_PADDING
- PHP_OUTPUT_HANDLER_CLEAN
- PHP_OUTPUT_HANDLER_CLEANABLE
- PHP_OUTPUT_HANDLER_DISABLED
- PHP_OUTPUT_HANDLER_FINAL
- PHP_OUTPUT_HANDLER_FLUSH
- PHP_OUTPUT_HANDLER_FLUSHABLE
- PHP_OUTPUT_HANDLER_REMOVABLE
- PHP_OUTPUT_HANDLER_STARTED
- PHP_OUTPUT_HANDLER_STDFLAGS
- PHP_OUTPUT_HANDLER_WRITE
- PHP_QUERY_RFC1738
- PHP_QUERY_RFC3986
- PHP_SESSION_ACTIVE
- PHP_SESSION_DISABLED
- PHP_SESSION_NONE
- SCANDIR_SORT_ASCENDING
- SCANDIR_SORT_DESCENDING
- SCANDIR_SORT_NONE
- SORT_FLAG_CASE
- SORT_NATURAL
- STREAM_META_ACCESS
- STREAM_META_GROUP
- STREAM_META_GROUP_NAME
- STREAM_META_OWNER
- STREAM_META_OWNER_NAME
- STREAM_META_TOUCH
- T_CALLABLE
- T_INSTEADOF
- T_TRAIT
- T_TRAIT_C
- ZLIB_ENCODING_DEFLATE
- ZLIB_ENCODING_GZIP
- ZLIB_ENCODING_RAW
- U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR
- IDNA_CHECK_BIDI
- IDNA_CHECK_CONTEXTJ
- IDNA_NONTRANSITIONAL_TO_ASCII
- IDNA_NONTRANSITIONAL_TO_UNICODE
- INTL_IDNA_VARIANT_2003
- INTL_IDNA_VARIANT_UTS46
- IDNA_ERROR_EMPTY_LABEL
- IDNA_ERROR_LABEL_TOO_LONG
- IDNA_ERROR_DOMAIN_NAME_TOO_LONG
- IDNA_ERROR_LEADING_HYPHEN
- IDNA_ERROR_TRAILING_HYPHEN
- IDNA_ERROR_HYPHEN_3_4
- IDNA_ERROR_LEADING_COMBINING_MARK
- IDNA_ERROR_DISALLOWED
- IDNA_ERROR_PUNYCODE
- IDNA_ERROR_LABEL_HAS_DOT
- IDNA_ERROR_INVALID_ACE_LABEL
- IDNA_ERROR_BIDI
- IDNA_ERROR_CONTEXTJ
c. New classes
- Reflection:
- ReflectionZendExtension
h. New methods
- Intl:
- Transliterator
- Spoofchecker
- JSON:
- JsonSerializable
- Session:
- SessionHandler
- SNMP:
- SNMP
- SPL:
- CallbackFilterIterator
- RecursiveCallbackFilterIterator
d. New methods
- Closure:
- Closure::bind()
- Closure::bindTo()
- Reflection:
- ReflectionClass::isCloneable()
- ReflectionClass::getTraits()
- ReflectionClass::getTraitNames()
- ReflectionClass::getTraitAliases()
- ReflectionClass::getTraitNames()
- ReflectionClass::getTraits()
- ReflectionClass::isCloneable()
- ReflectionClass::isTrait()
- ReflectionClass::newInstanceWithoutConstructor()
- ReflectionExtension::isPersistent()
- ReflectionExtension::isTemporary()
- ReflectionFunction::getClosure()
- ReflectionFunction::getClosureScopeClass()
- ReflectionFunction::getClosureThis()
- ReflectionFunctionAbstract::getClosureScopeClass()
- ReflectionFunctionAbstract::getClosureThis()
- ReflectionMethod::getClosure()
- ReflectionMethod::getClosureScopeClass()
- ReflectionMethod::getClosureThis()
- ReflectionObject::getTraitAliases()
- ReflectionObject::getTraitNames()
- ReflectionObject::getTraits()
- ReflectionObject::isCloneable()
- ReflectionObject::isTrait()
- ReflectionObject::newInstanceWithoutConstructor()
- ReflectionParameter::canBePassedByValue()
- ReflectionParameter::isCallable()
i. New class constants
- PDO_dblib:
- PDO::newRowset()
-
- SPL:
- DirectoryIterator::getExtension()
- RegexIterator::getRegex()
- SplDoublyLinkedList::serialize()
- SplDoublyLinkedList::unserialize()
- SplFileInfo::getExtension()
- SplFileObject::fputcsv()
- SplObjectStorage::getHash()
- SplQueue::serialize
- SplQueue::unserialize
- SplStack::serialize
- SplStack::unserialize
- SplTempFileObject::fputcsv
j. New Hash algorithms
- XSLT:
- XsltProcessor::setSecurityPrefs()
- XsltProcessor::getSecurityPrefs()
e. New class constants
- PDO:
- PDO::MYSQL_ATTR_SSL_CA
- PDO::MYSQL_ATTR_SSL_CAPATH
- PDO::MYSQL_ATTR_SSL_CERT
- PDO::MYSQL_ATTR_SSL_CIPHER
- PDO::MYSQL_ATTR_SSL_KEY
f. New Hash algorithms
- fnv132
- fnv164
- joaat
+207
View File
@@ -0,0 +1,207 @@
$Id$
UPGRADE NOTES - PHP X.Y
1. Internal API changes
a. virtual_file_ex
b. stat/lstat support
c. readlink support
d. layout of some core ZE structures (zend_op_array, zend_class_entry, ...)
e. Zend\zend_fast_cache.h has been removed
f. streams that enclose private streams
g. leak_variable
h. API Signature changes
i. new TSRM function expand_filepath_with_mode
2. Build system changes
a. Unix build system changes
b. Windows build system changes
========================
1. Internal API changes
========================
a. virtual_file_ex
virtual_file_ex takes now a TSRM context as last parameter:
CWD_API int virtual_file_ex(cwd_state *state, const char *path,
verify_path_func verify_path, int use_realpath TSRLS_DC);
b. stat/lstat support
lstat is now available on all platforms. On unix-like platform
php_sys_lstat is an alias to lstat (when avaible). On Windows it is now
available using php_sys_lstat. php_sys_stat and php_sys_lstat usage is recommended
instead of calling lstat directly, to ensure portability.
c. readlink support
readlink is now available on all platforms. On unix-like platform
php_sys_readlink is an alias to readlink (when avaible). On Windows it is now
available using php_sys_readlink. php_sys_readlink usage is recommended
instead of calling readlink directly, to ensure portability.
d. layout of some core ZE structures (zend_op_array, zend_class_entry, ...)
. zend_function.pass_rest_by_reference is replaced by
ZEND_ACC_PASS_REST_BY_REFERENCE in zend_function.fn_flags
. zend_function.return_reference is replaced by ZEND_ACC_RETURN_REFERENCE
in zend_function.fn_flags
. zend_arg_info.required_num_args removed. it was needed only for internal
functions. Now the first arg_info for internal function (which has special
meaning) is represented by zend_internal_function_info structure.
. zend_op_array.size, size_var, size_literal, current_brk_cont,
backpatch_count moved into CG(context), because they are used only during
compilation.
. zend_op_array.start_op is moved into EG(start_op), because it's used
only for 'interactive' execution of single top-level op-array.
. zend_op_array.done_pass_two is replaced by ZEND_ACC_DONE_PASS_TWO in
zend_op_array.fn_flags.
. op_array.vars array is trimmed (reallocated) during pass_two.
. zend_class_entry.constants_updated is replaced by
ZEND_ACC_CONSTANTS_UPDATED in zend_class_entry.ce_flags
. the size of zend_class_entry is reduced by sharing the same memory space
by different information for internal and user classes.
See zend_class_inttry.info union.
e. Zend\zend_fast_cache.h
It should not have been used anymore since php5, but now this header has
been removed. The following macros are not available anymore:
ZEND_FAST_ALLOC(p, type, fc_type)
ZEND_FAST_FREE(p, fc_type)
ZEND_FAST_ALLOC_REL(p, type, fc_type)
ZEND_FAST_FREE_REL(p, fc_type)
Use emalloc, emalloc_rel, efree or efree_rel instead.
f. Streams that enclose private streams
Some streams, like the temp:// stream, may enclose private streams. If the
outer stream leaks due to a programming error or is not exposed through a
zval (and therefore is not deleted when all the zvals are gone), it will
be destroyed on shutdown.
The problem is that the outer usually wants itself to close the inner stream,
so that it may do any other shutdown action that requires the inner stream to
be live (e.g. commit data to it). If the outer stream is exposed through a
zval and the inner one isn't, this is not a problem because the outer stream
will be freed when the zval is destroyed, which happens before the resources
are destroyed on shutdown.
On resource list shutdown, the cleanup happens in reverse order of resource
creation, so if the inner stream was created in the opener of the outer stream,
it will be destroyed first.
The following functions were added to the streams API to force a predictable
destruction order:
PHPAPI php_stream *php_stream_encloses(php_stream *enclosing, php_stream *enclosed);
#define php_stream_free_enclosed(stream_enclosed, close_options)
PHPAPI int _php_stream_free_enclosed(php_stream *stream_enclosed, int close_options TSRMLS_DC);
Additionally, the following member was added to php_stream:
struct _php_stream *enclosing_stream;
and the following macro was added:
#define PHP_STREAM_FREE_IGNORE_ENCLOSING 32
The function php_stream_encloses declares the first stream encloses the second.
This has the effect that, when the inner stream is closed from a resource
destructor it will abort and try to free its enclosing stream instead.
To prevent this from happening when the inner stream is freed from the outer
stream, the macro php_stream_free_enclosed should be used instead of
php_stream_free/php_stream_close/php_stream_pclose, or the flag
PHP_STREAM_FREE_IGNORE_ENCLOSING should be directly passed to php_stream_free.
The outer stream cannot abstain, in its close callback, from closing the inner
stream or clear the enclosing_stream pointer in its enclosed stream by calling
php_stream_encloses with the 2nd argument NULL. If this is not done, there will
be problems, so observe this requirement when using php_stream_encloses.
g. leak_variable
The function leak_variable(variable [, leak_data]) was added. It is only
available on debug builds. It increments the refcount of a zval or, if the
second argument is true and the variable is either an object or a resource
it increments the refcounts of those objects instead.
h. API Signature changes
. zend_list_insert
ZEND_API int zend_list_insert(void *ptr, int type TSRMLS_DC);
call: zend_list_insert(a, SOMETYPE TSRMLS_CC);
NB: If zend_list_insert is used to register a resource,
ZEND_REGISTER_RESOURCE could be used instead.
. php_le_stream_context(TSRMLS_C)
PHPAPI php_stream_context *php_stream_context_alloc(TSRMLS_D)
call: context = php_stream_context_alloc(TSRMLS_C);
. php_stream_context_alloc
PHPAPI php_stream_context *php_stream_context_alloc(TSRMLS_D);
call: context = php_stream_context_alloc(TSRMLS_C);
. sapi_get_request_time(TSRMLS_D);
SAPI_API double sapi_get_request_time(TSRMLS_D);
. sapi_register_default_post_reader
SAPI_API int sapi_register_default_post_reader(void (*default_post_reader)(TSRMLS_D) TSRMLS_DC);
. sapi_register_treat_data
SAPI_API int sapi_register_treat_data(void (*treat_data)(int arg, char *str, zval *destArray TSRMLS_DC) TSRMLS_DC);
. sapi_register_input_filter
SAPI_API int sapi_register_input_filter(unsigned int (*input_filter)(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len TSRMLS_DC), unsigned int (*input_filter_init)(TSRMLS_D) TSRMLS_DC);
. tsrm_win32_access
TSRM_API int tsrm_win32_access(const char *pathname, int mode TSRMLS_DC);
. popen_ex (win32)
TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env TSRMLS_DC);
. php_get_current_user
PHPAPI php_get_current_user(TSRMLS_D)
Call: char *user = php_get_current_user(TSRMLS_C);
. php_idate
PHPAPI php_idate(char format, time_t ts, int localtime TSRMLS_DC)
Call: int ret = php_idate(format, ts, localtime TSRMLS_CC)
. php_escape_html_entities
(size_t parameters were ints, previous "quote_style" (now flags) has expanded meaning)
PHPAPI char *php_escape_html_entities(unsigned char *old, size_t oldlen, size_t *newlen, int all, int flags, char *hint_charset TSRMLS_DC);
. php_escape_html_entities_ex
PHPAPI char *php_escape_html_entities_ex(unsigned char *old, size_t oldlen, size_t *newlen, int all, int flags, char *hint_charset, zend_bool double_encode TSRMLS_DC);
. php_unescape_html_entities
PHPAPI char *php_unescape_html_entities(unsigned char *old, size_t oldlen, size_t *newlen, int all, int flags, char *hint_charset TSRMLS_DC);
i.
PHPAPI char *expand_filepath_with_mode(const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len, int realpath_mode TSRMLS_DC);
expand_filepath_with_mode lets define how realpath will behave, using one of the existing mode: CWD_EXPAND , CWD_FILEPATH or CWD_REALPATH.
========================
2. Build system changes
========================
a. Unix build system changes
- Changes in SAPI module build:
. When adding new binary SAPI (executable, like CLI/CGI/FPM) use CLI config.m4 and Makefile.frag files as templates and replace CLI/cli with your SAPI name.
- New macros:
. PHP_INIT_DTRACE(providerdesc, header-file, sources [, module])
b. Windows build system changes
-
+5 -6
View File
@@ -17,7 +17,7 @@ libZend_la_SOURCES=\
zend_objects_API.c zend_ts_hash.c zend_stream.c \
zend_default_classes.c \
zend_iterators.c zend_interfaces.c zend_exceptions.c \
zend_strtod.c zend_closures.c zend_float.c zend_string.c
zend_strtod.c zend_closures.c zend_float.c zend_string.c zend_signal.c
libZend_la_LDFLAGS =
libZend_la_LIBADD = @ZEND_EXTRA_LIBS@
@@ -31,20 +31,19 @@ zend_ini_scanner.lo: zend_ini_parser.h
# Language parser/scanner rules
zend_language_scanner.c: $(srcdir)/zend_language_scanner.l
$(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt $(srcdir)/zend_language_scanner_defs.h -o$@ $(srcdir)/zend_language_scanner.l
$(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt $(srcdir)/zend_language_scanner_defs.h -o$@ $(srcdir)/zend_language_scanner.l
zend_language_parser.h: zend_language_parser.c
zend_language_parser.c: $(srcdir)/zend_language_parser.y
$(LEMON) $(LEMON_FLAGS) $(srcdir)/zend_language_parser.y || test $$? -eq 2
$(YACC) -p zend -v -d $(srcdir)/zend_language_parser.y -o zend_language_parser.c
# INI parser/scanner rules
zend_ini_parser.c: $(srcdir)/zend_ini_parser.y
$(LEMON) $(LEMON_FLAGS) $(srcdir)/zend_ini_parser.y
$(YACC) -p ini_ -v -d $(srcdir)/zend_ini_parser.y -o zend_ini_parser.c
zend_ini_scanner.c: $(srcdir)/zend_ini_scanner.l
$(RE2C) $(RE2C_FLAGS) --no-generation-date --case-inverted -cbdFt $(srcdir)/zend_ini_scanner_defs.h -o$@ $(srcdir)/zend_ini_scanner.l
$(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt $(srcdir)/zend_ini_scanner_defs.h -o$@ $(srcdir)/zend_ini_scanner.l
zend_ini_parser.h: zend_ini_parser.c
+10 -1
View File
@@ -9,7 +9,7 @@ allocation overhead and speedup memory management.
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
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.
@@ -24,6 +24,15 @@ Zend MM disabled:
$ USE_ZEND_ALLOC=0 valgrind --leak-check=full sapi/cli/php -r 'leak();'
Shared extensions:
------------------
Since PHP 5.4 it is possible to prevent shared extensions from unloading so
that valgrind can correctly track the memory leaks in shared extensions. For
this there is the ZEND_DONT_UNLOAD_MODULES environment variable. If set, then
DL_UNLOAD() is skipped during the shutdown of shared extensions.
Tweaking:
---------
-4
View File
@@ -319,10 +319,6 @@ SOURCE=.\zend_extensions.h
# End Source File
# Begin Source File
SOURCE=.\zend_fast_cache.h
# End Source File
# Begin Source File
SOURCE=.\zend_globals.h
# End Source File
# Begin Source File
+21 -15
View File
@@ -176,13 +176,6 @@ AC_ARG_ENABLE(inline-optimization,
ZEND_INLINE_OPTIMIZATION=yes
])
AC_ARG_ENABLE(zend-multibyte,
[ --enable-zend-multibyte Compile with zend multibyte support], [
ZEND_MULTIBYTE=$enableval
],[
ZEND_MULTIBYTE=no
])
AC_MSG_CHECKING([virtual machine dispatch method])
AC_MSG_RESULT($PHP_ZEND_VM)
@@ -195,9 +188,6 @@ AC_MSG_RESULT($ZEND_INLINE_OPTIMIZATION)
AC_MSG_CHECKING(whether to enable Zend debugging)
AC_MSG_RESULT($ZEND_DEBUG)
AC_MSG_CHECKING(whether to enable Zend multibyte)
AC_MSG_RESULT($ZEND_MULTIBYTE)
case $PHP_ZEND_VM in
SWITCH)
AC_DEFINE(ZEND_VM_KIND,ZEND_VM_KIND_SWITCH,[virtual machine dispatch method])
@@ -232,10 +222,6 @@ if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
LIBZEND_CPLUSPLUS_CHECKS
fi
if test "$ZEND_MULTIBYTE" = "yes"; then
AC_DEFINE(ZEND_MULTIBYTE, 1, [ ])
fi
changequote({,})
if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//`
@@ -406,8 +392,28 @@ int main()
AC_CHECK_FUNCS(mremap)
])
AC_ARG_ENABLE(zend-signals,
[ --enable-zend-signals Use zend signal handling],[
ZEND_SIGNALS=$enableval
],[
ZEND_SIGNALS=no
])
AC_CHECK_FUNC(sigaction, [
AC_DEFINE(HAVE_SIGACTION, 1, [Whether sigaction() is available])
], [
ZEND_SIGNALS=no
])
if test "$ZEND_SIGNALS" = "yes"; then
AC_DEFINE(ZEND_SIGNALS, 1, [Use zend signal handling])
CFLAGS="$CFLAGS -DZEND_SIGNALS"
fi
AC_MSG_CHECKING(whether to enable zend signal handling)
AC_MSG_RESULT($ZEND_SIGNALS)
])
AC_DEFUN([LIBZEND_CPLUSPLUS_CHECKS],[
-4
View File
@@ -349,10 +349,6 @@ SOURCE=.\zend_extensions.h
# End Source File
# Begin Source File
SOURCE=.\zend_fast_cache.h
# End Source File
# Begin Source File
SOURCE=.\zend_globals.h
# End Source File
# Begin Source File
-127
View File
@@ -1,127 +0,0 @@
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 2.00 of the Zend license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.zend.com/license/2_00.txt. |
| If you did not receive a copy of the Zend license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@zend.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Andi Gutmans <andi@zend.com> |
| Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#if defined(__GNUC__) && __GNUC__ >= 4
# define ZEND_API __attribute__ ((visibility("default")))
# define ZEND_DLEXPORT __attribute__ ((visibility("default")))
#else
# define ZEND_API
# define ZEND_DLEXPORT
#endif
#define ZEND_DLIMPORT
@TOP@
#undef uint
#undef ulong
/* Define if you want to enable memory limit support */
#define MEMORY_LIMIT 0
@BOTTOM@
#ifndef ZEND_ACCONFIG_H_NO_C_PROTOS
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#ifdef HAVE_IEEEFP_H
# include <ieeefp.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#else
# include <strings.h>
#endif
#if ZEND_BROKEN_SPRINTF
int zend_sprintf(char *buffer, const char *format, ...);
#else
# define zend_sprintf sprintf
#endif
#include <math.h>
/* To enable the is_nan, is_infinite and is_finite PHP functions */
#ifdef NETWARE
#define HAVE_ISNAN 1
#define HAVE_ISINF 1
#define HAVE_ISFINITE 1
#endif
#ifndef zend_isnan
#ifdef HAVE_ISNAN
#define zend_isnan(a) isnan(a)
#elif defined(HAVE_FPCLASS)
#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
#else
#define zend_isnan(a) 0
#endif
#endif
#ifdef HAVE_ISINF
#define zend_isinf(a) isinf(a)
#elif defined(INFINITY)
/* Might not work, but is required by ISO C99 */
#define zend_isinf(a) (((a)==INFINITY)?1:0)
#elif defined(HAVE_FPCLASS)
#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
#else
#define zend_isinf(a) 0
#endif
#ifdef HAVE_FINITE
#define zend_finite(a) finite(a)
#elif defined(HAVE_ISFINITE) || defined(isfinite)
#define zend_finite(a) isfinite(a)
#elif defined(fpclassify)
#define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0)
#else
#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1)
#endif
#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
#ifdef NETWARE
#ifdef USE_WINSOCK
#/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T
#/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H
#endif
#endif
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* indent-tabs-mode: t
* End:
*/
+33
View File
@@ -2,6 +2,39 @@ dnl $Id$
dnl
dnl This file contains local autoconf functions.
AC_DEFUN([LIBZEND_BISON_CHECK],[
# we only support certain bison versions
bison_version_list="1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5"
# for standalone build of Zend Engine
test -z "$SED" && SED=sed
bison_version=none
if test "$YACC"; then
AC_CACHE_CHECK([for bison version], php_cv_bison_version, [
bison_version_vars=`bison --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /' | tr -d a-z`
php_cv_bison_version=invalid
if test -n "$bison_version_vars"; then
set $bison_version_vars
bison_version="${1}.${2}"
for bison_check_version in $bison_version_list; do
if test "$bison_version" = "$bison_check_version"; then
php_cv_bison_version="$bison_check_version (ok)"
break
fi
done
fi
])
fi
case $php_cv_bison_version in
""|invalid[)]
bison_msg="bison versions supported for regeneration of the Zend/PHP parsers: $bison_version_list (found: $bison_version)."
AC_MSG_WARN([$bison_msg])
YACC="exit 0;"
;;
esac
])
AC_DEFUN([ZEND_FP_EXCEPT],[
AC_CACHE_CHECK(whether fp_except is defined, ac_cv_type_fp_except,[
AC_TRY_COMPILE([
+1 -1
View File
@@ -33,7 +33,7 @@ $(makefile_in_files): $(makefile_am_files)
aclocal.m4: configure.in acinclude.m4
aclocal
$(config_h_in): configure.in acconfig.h
$(config_h_in): configure.in
# explicitly remove target since autoheader does not seem to work
# correctly otherwise (timestamps are not updated)
@rm -f $@
+99
View File
@@ -11,6 +11,105 @@ AM_PROG_CC_STDC
ZEND_VERSION=$VERSION
AC_ZEND_C_BIGENDIAN
AH_TOP([
#if defined(__GNUC__) && __GNUC__ >= 4
# define ZEND_API __attribute__ ((visibility("default")))
# define ZEND_DLEXPORT __attribute__ ((visibility("default")))
#else
# define ZEND_API
# define ZEND_DLEXPORT
#endif
#define ZEND_DLIMPORT
#undef uint
#undef ulong
/* Define if you want to enable memory limit support */
#define MEMORY_LIMIT 0
])
AH_BOTTOM([
#ifndef ZEND_ACCONFIG_H_NO_C_PROTOS
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
#ifdef HAVE_IEEEFP_H
# include <ieeefp.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#else
# include <strings.h>
#endif
#if ZEND_BROKEN_SPRINTF
int zend_sprintf(char *buffer, const char *format, ...);
#else
# define zend_sprintf sprintf
#endif
#include <math.h>
/* To enable the is_nan, is_infinite and is_finite PHP functions */
#ifdef NETWARE
#define HAVE_ISNAN 1
#define HAVE_ISINF 1
#define HAVE_ISFINITE 1
#endif
#ifndef zend_isnan
#ifdef HAVE_ISNAN
#define zend_isnan(a) isnan(a)
#elif defined(HAVE_FPCLASS)
#define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
#else
#define zend_isnan(a) 0
#endif
#endif
#ifdef HAVE_ISINF
#define zend_isinf(a) isinf(a)
#elif defined(INFINITY)
/* Might not work, but is required by ISO C99 */
#define zend_isinf(a) (((a)==INFINITY)?1:0)
#elif defined(HAVE_FPCLASS)
#define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
#else
#define zend_isinf(a) 0
#endif
#ifdef HAVE_FINITE
#define zend_finite(a) finite(a)
#elif defined(HAVE_ISFINITE) || defined(isfinite)
#define zend_finite(a) isfinite(a)
#elif defined(fpclassify)
#define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0)
#else
#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1)
#endif
#endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
#ifdef NETWARE
#ifdef USE_WINSOCK
#/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T
#/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H
#endif
#endif
])
dnl We want this one before the checks, so the checks can modify CFLAGS.
test -z "$CFLAGS" && auto_cflags=1
+73
View File
@@ -174,6 +174,63 @@ function read_const($n) {
}
}
function read_auto_global($n) {
for ($i = 0; $i < $n; ++$i) {
$x = $_GET;
}
}
$g_var = 0;
function read_global_var($n) {
for ($i = 0; $i < $n; ++$i) {
$x = $GLOBALS['g_var'];
}
}
function read_hash($n) {
$hash = array('test' => 0);
for ($i = 0; $i < $n; ++$i) {
$x = $hash['test'];
}
}
function read_str_offset($n) {
$str = "test";
for ($i = 0; $i < $n; ++$i) {
$x = $str[1];
}
}
function issetor($n) {
$val = array(0,1,2,3,4,5,6,7,8,9);
for ($i = 0; $i < $n; ++$i) {
$x = $val ?: null;
}
}
function issetor2($n) {
$f = false; $j = 0;
for ($i = 0; $i < $n; ++$i) {
$x = $f ?: $j + 1;
}
}
function ternary($n) {
$val = array(0,1,2,3,4,5,6,7,8,9);
$f = false;
for ($i = 0; $i < $n; ++$i) {
$x = $f ? null : $val;
}
}
function ternary2($n) {
$f = false; $j = 0;
for ($i = 0; $i < $n; ++$i) {
$x = $f ? $f : $j + 1;
}
}
/*****/
function empty_loop($n) {
@@ -282,4 +339,20 @@ create_object(N);
$t = end_test($t, 'new Foo()', $overhead);
read_const(N);
$t = end_test($t, '$x = TEST', $overhead);
read_auto_global(N);
$t = end_test($t, '$x = $_GET', $overhead);
read_global_var(N);
$t = end_test($t, '$x = $GLOBALS[\'v\']', $overhead);
read_hash(N);
$t = end_test($t, '$x = $hash[\'v\']', $overhead);
read_str_offset(N);
$t = end_test($t, '$x = $str[0]', $overhead);
issetor(N);
$t = end_test($t, '$x = $a ?: null', $overhead);
issetor2(N);
$t = end_test($t, '$x = $f ?: tmp', $overhead);
ternary(N);
$t = end_test($t, '$x = $f ? $f : $a', $overhead);
ternary2(N);
$t = end_test($t, '$x = $f ? $f : tmp', $overhead);
total($t0, "Total");
+1 -1
View File
@@ -21,5 +21,5 @@ print "ok\n";
Notice: Trying to get property of non-object in %s on line %d
ok
Strict Standards: Creating default object from empty value in %s on line %d
Warning: Creating default object from empty value in %s on line %d
ok
+2 -2
View File
@@ -26,6 +26,6 @@ Notice: Undefined variable: arr in %s on line %d
Notice: Trying to get property of non-object in %s on line %d
Strict Standards: Creating default object from empty value in %s on line %d
Warning: Creating default object from empty value in %s on line %d
Strict Standards: Creating default object from empty value in %s on line %d
Warning: Creating default object from empty value in %s on line %d
+16
View File
@@ -0,0 +1,16 @@
--TEST--
Bug #55719 (Argument restriction should come with a more specific error message)
--FILE--
<?php
Class Base {
public function &test($foo, array $bar, $option = NULL, $extra = "lllllllllllllllllllllllllllllllllllllllllllllllllll") {
}
}
class Sub extends Base {
public function &test() {
}
}
?>
--EXPECTF--
Strict Standards: Declaration of Sub::test() should be compatible with & Base::test($foo, array $bar, $option = NULL, $extra = 'llllllllll...') in %sargument_restriction_001.php on line %d
+16
View File
@@ -0,0 +1,16 @@
--TEST--
Bug #55719 (Argument restriction should come with a more specific error message)
--FILE--
<?php
Abstract Class Base {
public function test($foo, array &$bar, $option = NULL, $extra = 3.141592653589793238462643383279502884197169399375105 ) {
}
}
class Sub extends Base {
public function test($foo, array &$bar) {
}
}
?>
--EXPECTF--
Strict Standards: Declaration of Sub::test() should be compatible with Base::test($foo, array &$bar, $option = NULL, $extra = 3.1415926535898) in %sargument_restriction_002.php on line %d
+19
View File
@@ -0,0 +1,19 @@
--TEST--
Bug #55719 (Argument restriction should come with a more specific error message)
--FILE--
<?php
class Foo {
}
Abstract Class Base {
public function test(Foo $foo, array $bar, $option = NULL, $extra = "lllllllllllllllllllllllllllllllllllllllllllllllllll") {
}
}
class Sub extends Base {
public function test() {
}
}
?>
--EXPECTF--
Strict Standards: Declaration of Sub::test() should be compatible with Base::test(Foo $foo, array $bar, $option = NULL, $extra = 'llllllllll...') in %sargument_restriction_003.php on line %d
+17
View File
@@ -0,0 +1,17 @@
--TEST--
Bug #55719 (Argument restriction should come with a more specific error message)
--FILE--
<?php
class Foo {
}
Abstract Class Base {
abstract public function test(Foo $foo, array $bar, $option = NULL, $extra = 16777215) ;
}
class Sub extends Base {
public function test(Foo $foo, array $bar, $option = NULL, $extra = 0xffffff ) {
}
}
?>
--EXPECTF--
+11
View File
@@ -0,0 +1,11 @@
--TEST--
Bug #55719 (Argument restriction should come with a more specific error message)
--FILE--
<?php
class Sub implements ArrayAccess {
public function offsetSet() {
}
}
?>
--EXPECTF--
Fatal error: Declaration of Sub::offsetSet() must be compatible with ArrayAccess::offsetSet($offset, $value) in %sargument_restriction_005.php on line %d
+16
View File
@@ -0,0 +1,16 @@
--TEST--
Bug #60174 (Notice when array in method prototype error)
--FILE--
<?php
Abstract Class Base {
public function test($foo, $extra = array("test")) {
}
}
class Sub extends Base {
public function test($foo, $extra) {
}
}
?>
--EXPECTF--
Strict Standards: Declaration of Sub::test() should be compatible with Base::test($foo, $extra = Array) in %sargument_restriction_006.php on line %d
+154
View File
@@ -0,0 +1,154 @@
--TEST--
testing binary literals
--INI--
precision=14
--SKIPIF--
<?php if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); ?>
--FILE--
<?php
var_dump(0b1);
var_dump(0b11);
var_dump(0b111);
var_dump(0b1111);
var_dump(0b11111);
var_dump(0b111111);
var_dump(0b1111111);
var_dump(0b11111111);
var_dump(0b111111111);
var_dump(0b1111111111);
var_dump(0b11111111111);
var_dump(0b111111111111);
var_dump(0b1111111111111);
var_dump(0b11111111111111);
var_dump(0b111111111111111);
var_dump(0b1111111111111111);
var_dump(0b11111111111111111);
var_dump(0b111111111111111111);
var_dump(0b1111111111111111111);
var_dump(0b11111111111111111111);
var_dump(0b111111111111111111111);
var_dump(0b1111111111111111111111);
var_dump(0b11111111111111111111111);
var_dump(0b111111111111111111111111);
var_dump(0b1111111111111111111111111);
var_dump(0b11111111111111111111111111);
var_dump(0b111111111111111111111111111);
var_dump(0b1111111111111111111111111111);
var_dump(0b11111111111111111111111111111);
var_dump(0b111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111111111111111111111);
var_dump(-0b1111111111111111111111111111111111111111111111111111111111111111);
var_dump(-0b111111111111111111111111111111111111111111111111111111111111111);
var_dump(-0b11111111111111111111111111111111111111111111111111111111111111);
var_dump(-0b111111111111111111111111111111111);
var_dump(-0b11111111111111111111111111111111);
var_dump(-0b1111111111111111111111111111111);
var_dump(-0b111111111111111111111111111111);
var_dump(-0b1);
--EXPECT--
int(1)
int(3)
int(7)
int(15)
int(31)
int(63)
int(127)
int(255)
int(511)
int(1023)
int(2047)
int(4095)
int(8191)
int(16383)
int(32767)
int(65535)
int(131071)
int(262143)
int(524287)
int(1048575)
int(2097151)
int(4194303)
int(8388607)
int(16777215)
int(33554431)
int(67108863)
int(134217727)
int(268435455)
int(536870911)
int(1073741823)
int(2147483647)
float(4294967295)
float(8589934591)
float(17179869183)
float(34359738367)
float(68719476735)
float(137438953471)
float(274877906943)
float(549755813887)
float(1099511627775)
float(2199023255551)
float(4398046511103)
float(8796093022207)
float(17592186044415)
float(35184372088831)
float(70368744177663)
float(1.4073748835533E+14)
float(2.8147497671066E+14)
float(5.6294995342131E+14)
float(1.1258999068426E+15)
float(2.2517998136852E+15)
float(4.5035996273705E+15)
float(9.007199254741E+15)
float(1.8014398509482E+16)
float(3.6028797018964E+16)
float(7.2057594037928E+16)
float(1.4411518807586E+17)
float(2.8823037615171E+17)
float(5.7646075230342E+17)
float(1.1529215046068E+18)
float(2.3058430092137E+18)
float(4.6116860184274E+18)
float(9.2233720368548E+18)
float(1.844674407371E+19)
float(-1.844674407371E+19)
float(-9.2233720368548E+18)
float(-4.6116860184274E+18)
float(-8589934591)
float(-4294967295)
int(-2147483647)
int(-1073741823)
int(-1)
+154
View File
@@ -0,0 +1,154 @@
--TEST--
testing binary literals
--INI--
precision=32
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?>
--FILE--
<?php
var_dump(0b1);
var_dump(0b11);
var_dump(0b111);
var_dump(0b1111);
var_dump(0b11111);
var_dump(0b111111);
var_dump(0b1111111);
var_dump(0b11111111);
var_dump(0b111111111);
var_dump(0b1111111111);
var_dump(0b11111111111);
var_dump(0b111111111111);
var_dump(0b1111111111111);
var_dump(0b11111111111111);
var_dump(0b111111111111111);
var_dump(0b1111111111111111);
var_dump(0b11111111111111111);
var_dump(0b111111111111111111);
var_dump(0b1111111111111111111);
var_dump(0b11111111111111111111);
var_dump(0b111111111111111111111);
var_dump(0b1111111111111111111111);
var_dump(0b11111111111111111111111);
var_dump(0b111111111111111111111111);
var_dump(0b1111111111111111111111111);
var_dump(0b11111111111111111111111111);
var_dump(0b111111111111111111111111111);
var_dump(0b1111111111111111111111111111);
var_dump(0b11111111111111111111111111111);
var_dump(0b111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111111111111111111111);
var_dump(0b111111111111111111111111111111111111111111111111111111111111111 + 1);
var_dump(0b1111111111111111111111111111111111111111111111111111111111111111);
var_dump(0b1111111111111111111111111111111111111111111111111111111111111111 + 1);
var_dump(0b11111111111111111111111111111111111111111111111111111111111111111);
var_dump(0b11111111111111111111111111111111111111111111111111111111111111111 + 1);
var_dump(-0b1111111111111111111111111111111111111111111111111111111111111111);
var_dump(-0b111111111111111111111111111111111111111111111111111111111111111);
var_dump(-0b11111111111111111111111111111111111111111111111111111111111111);
var_dump(-0b1);
--EXPECT--
int(1)
int(3)
int(7)
int(15)
int(31)
int(63)
int(127)
int(255)
int(511)
int(1023)
int(2047)
int(4095)
int(8191)
int(16383)
int(32767)
int(65535)
int(131071)
int(262143)
int(524287)
int(1048575)
int(2097151)
int(4194303)
int(8388607)
int(16777215)
int(33554431)
int(67108863)
int(134217727)
int(268435455)
int(536870911)
int(1073741823)
int(2147483647)
int(4294967295)
int(8589934591)
int(17179869183)
int(34359738367)
int(68719476735)
int(137438953471)
int(274877906943)
int(549755813887)
int(1099511627775)
int(2199023255551)
int(4398046511103)
int(8796093022207)
int(17592186044415)
int(35184372088831)
int(70368744177663)
int(140737488355327)
int(281474976710655)
int(562949953421311)
int(1125899906842623)
int(2251799813685247)
int(4503599627370495)
int(9007199254740991)
int(18014398509481983)
int(36028797018963967)
int(72057594037927935)
int(144115188075855871)
int(288230376151711743)
int(576460752303423487)
int(1152921504606846975)
int(2305843009213693951)
int(4611686018427387903)
int(9223372036854775807)
float(9223372036854775808)
float(18446744073709549568)
float(18446744073709549568)
float(36893488147419099136)
float(36893488147419099136)
float(-18446744073709549568)
int(-9223372036854775807)
int(-4611686018427387903)
int(-1)
+9 -7
View File
@@ -17,13 +17,12 @@ var_dump(isset($a['b']));
$simpleString = "Bogus String Text";
echo isset($simpleString->wrong)?"bug\n":"ok\n";
echo isset($simpleString["wrong"])?"ok\n":"bug\n";
echo isset($simpleString["wrong"])?"bug\n":"ok\n";
echo isset($simpleString[-1])?"bug\n":"ok\n";
echo isset($simpleString[0])?"ok\n":"bug\n";
echo isset($simpleString["0"])?"ok\n":"bug\n";
echo isset($simpleString["16"])?"ok\n":"bug\n";
echo isset($simpleString["17"])?"bug\n":"ok\n";
echo isset($simpleString["wrong"][0])?"bug\n":"ok\n";
echo $simpleString->wrong === null?"ok\n":"bug\n";
echo $simpleString["wrong"] === "B"?"ok\n":"bug\n";
echo $simpleString["0"] === "B"?"ok\n":"bug\n";
@@ -35,9 +34,8 @@ bool(false)
bool(false)
bool(false)
bool(false)
bool(true)
bool(true)
ok
bool(false)
bool(false)
ok
ok
ok
@@ -46,8 +44,12 @@ ok
ok
ok
Notice: Trying to get property of non-object in %sbug31098.php on line %d
Notice: Trying to get property of non-object in %s on line %d
ok
ok
Warning: Illegal string offset 'wrong' in %s on line %d
ok
ok
Warning: Illegal string offset 'wrong' in %s on line %d
ok
-2
View File
@@ -1,7 +1,5 @@
--TEST--
Bug #31683 (changes to $name in __get($name) override future parameters)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
+1 -1
View File
@@ -1,7 +1,7 @@
--TEST--
Bug #34199 (if($obj)/if(!$obj) inconsistency because of cast handler)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
<?php if (!extension_loaded("simplexml")) print "skip SimpleXML extension required"; ?>
--FILE--
<?php
$xml = "<root></root>";
+30 -9
View File
@@ -6,7 +6,7 @@ Bug #39018 (Error control operator '@' fails to suppress "Uninitialized string o
error_reporting(E_ALL);
$a = 'foo';
$a[11111111111];
$a[111111111111111111111];
$a = '';
@@ -62,21 +62,42 @@ print "\nDone\n";
?>
--EXPECTF--
Notice: String offset cast occured in %s on line %d
Notice: Uninitialized string offset: 0 in %s on line 12
Notice: Uninitialized string offset: 0 in %s on line %d
Notice: Uninitialized string offset: %i in %s on line 16
Notice: Uninitialized string offset: 0 in %s on line %d
Notice: Uninitialized string offset: 4 in %s on line 28
Notice: String offset cast occured in %s on line %d
Notice: Uninitialized string offset: 4 in %s on line 34
Notice: Uninitialized string offset: %i in %s on line %d
Notice: Uninitialized string offset: 4 in %s on line 38
Notice: String offset cast occured in %s on line %d
Notice: Uninitialized string offset: 4 in %s on line 42
Notice: Uninitialized string offset: %i in %s on line %d
Notice: Uninitialized string offset: 4 in %s on line 46
Notice: Uninitialized string offset: 0 in %s on line %d
Notice: Uninitialized string offset: 12 in %s on line 52
Notice: Uninitialized string offset: 4 in %s on line %d
Notice: Uninitialized string offset: 4 in %s on line %d
Notice: Uninitialized string offset: 4 in %s on line %d
Notice: Uninitialized string offset: 4 in %s on line %d
Notice: Uninitialized string offset: 4 in %s on line %d
Notice: String offset cast occured in %s on line %d
Notice: Uninitialized string offset: 12 in %s on line %d
Notice: String offset cast occured in %s on line %d
Notice: Uninitialized string offset: 12 in %s on line %d
Notice: String offset cast occured in %s on line %d
Notice: String offset cast occured in %s on line %d
b
Done
+7 -2
View File
@@ -4,8 +4,13 @@ Bug #39304 (Segmentation fault with list unpacking of string offset)
<?php
$s = "";
list($a, $b) = $s[0];
echo "I am alive";
?>
--EXPECTF--
Notice: Uninitialized string offset: 0 in %sbug39304.php on line 3
Notice: Uninitialized string offset: 0 in %sbug39304.php on line %d
Notice: Uninitialized string offset: 1 in %sbug39304.php on line %d
Notice: Uninitialized string offset: 0 in %sbug39304.php on line %d
I am alive
Fatal error: Cannot use string offset as an array in %sbug39304.php on line 3
+18
View File
@@ -0,0 +1,18 @@
--TEST--
Bug #39304 (Segmentation fault with list unpacking of string offset)
--SKIPIF--
<?php if (version_compare(zend_version(), '2.4.0', '<')) die('skip ZendEngine 2.4 needed'); ?>
--FILE--
<?php
$s = "";
list($a, $b) = $s[0];
var_dump($a,$b);
?>
--EXPECTF--
Notice: Uninitialized string offset: 0 in %sbug39304_2_4.php on line %d
Notice: Uninitialized string offset: 1 in %sbug39304_2_4.php on line %d
Notice: Uninitialized string offset: 0 in %sbug39304_2_4.php on line %d
string(0) ""
string(0) ""
+1 -1
View File
@@ -1,7 +1,7 @@
--TEST--
Bug #39602 (Invalid session.save_handler crashes PHP)
--SKIPIF--
<?php if (!extension_loaded("session")) die("skip"); ?>
<?php if (!extension_loaded("session")) die("skip session extension required"); ?>
--INI--
session.save_handler=qwerty
error_reporting=0
+1 -1
View File
@@ -1,7 +1,7 @@
--TEST--
Bug #42819 (namespaces in indexes of constant arrays)
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
<?php if (!extension_loaded("spl")) print "skip SPL extension required"; ?>
--FILE--
<?php
namespace foo\foo;
+51
View File
@@ -0,0 +1,51 @@
--TEST--
Bug #43200 (Interface implementation / inheritence not possible in abstract classes)
--FILE--
<?php
interface a {
function foo();
function bar();
}
interface b {
function foo();
}
abstract class c {
function bar() { }
}
class x extends c implements a, b {
function foo() { }
}
ReflectionClass::export('x');
?>
--EXPECTF--
Class [ <user> class x extends c implements a, b ] {
@@ %s 15-17
- Constants [0] {
}
- Static properties [0] {
}
- Static methods [0] {
}
- Properties [0] {
}
- Methods [2] {
Method [ <user, prototype b> public method foo ] {
@@ %s 16 - 16
}
Method [ <user, inherits c, prototype a> public method bar ] {
@@ %s 12 - 12
}
}
}
+25
View File
@@ -0,0 +1,25 @@
--TEST--
Bug #43200.2 (Interface implementation / inheritence not possible in abstract classes)
--FILE--
<?php
interface A {
function foo();
}
abstract class B implements A {
abstract public function foo();
}
class C extends B {
public function foo() {
echo 'works';
}
}
$o = new C();
$o->foo();
?>
--EXPECTF--
works
+1 -1
View File
@@ -1,7 +1,7 @@
--TEST--
Bug #43918 (Segmentation fault in garbage collector)
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
<?php if (!extension_loaded("simplexml")) print "skip SimpleXML extension required"; ?>
--FILE--
<?php
$xmlstr = <<<XML
+4 -4
View File
@@ -43,11 +43,11 @@ __call:
string(3) "ABC"
__call:
string(3) "ABC"
__callstatic:
__call:
string(3) "XYZ"
__callstatic:
__call:
string(3) "WWW"
__callstatic:
__call:
string(3) "ABC"
__callstatic:
string(1) "A"
@@ -58,4 +58,4 @@ string(1) "C"
__callstatic:
string(3) "FOO"
__callstatic:
string(3) "FOO"
string(3) "FOO"
+4 -4
View File
@@ -35,17 +35,17 @@ call_user_func('self::y');
?>
--EXPECTF--
__callstatic:
__call:
string(3) "ABC"
__callstatic:
__call:
string(3) "ABC"
__call:
string(3) "xyz"
__callstatic:
__call:
string(3) "www"
__call:
string(1) "y"
__callstatic:
__call:
string(1) "y"
ok
__callstatic:
+1 -1
View File
@@ -20,5 +20,5 @@ var_dump( ArrayProperty::$array );
--EXPECT--
array(1) {
[1]=>
int(23)
int(42)
}
+1 -1
View File
@@ -14,6 +14,6 @@ class b implements a { function f($a=1) {}}
class c extends b {function f() {}}
?>
--EXPECTF--
string(62) "Declaration of c::f() should be compatible with that of b::f()"
string(60) "Declaration of c::f() should be compatible with b::f($a = 1)"
+2 -2
View File
@@ -18,9 +18,9 @@ var_dump(
?>
--EXPECTF--
Parse error: syntax error, unexpected '}' in %s(%d) : runtime-created function on line 1
Parse error: %s in %s(%d) : runtime-created function on line 1
Parse error: syntax error, unexpected $end in %s(%d) : runtime-created function on line 1
Parse error: %s %s(%d) : runtime-created function on line 1
bool(false)
int(2)
bool(false)
+1 -1
View File
@@ -1,7 +1,7 @@
--TEST--
Bug #50174 (Incorrectly matched docComment)
--SKIPIF--
<?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip"; ?>
<?php if (!extension_loaded('reflection') || !extension_loaded('spl')) print "skip SPL and reflection extensions required"; ?>
--FILE--
<?php
+48
View File
@@ -0,0 +1,48 @@
--TEST--
Bug #50816 (Using class constants in array definition fails)
--FILE--
<?php
define("ONE", 1);
define("TWO", 1);
class Foo {
const ONE = 1;
const TWO = 1;
public static $mapWithConst = array(self::ONE => 'one', self::TWO => 'two',);
public static $mapWithConst1 = array(1 => 'one', self::TWO => 'two',);
public static $mapWithConst2 = array(self::ONE => 'one', 1 => 'two',);
public static $mapWithoutConst = array(1 => 'one', 1 => 'two',);
}
$mapWithConst = array(1 => 'one', 1 => 'two',);
$mapWithoutConst = array(Foo::ONE => 'one', Foo::TWO => 'two',);
$mapWithoutConst0 = array(1 => 'one', 1 => 'two',);
$mapWithoutConst1 = array(ONE => 'one', 1 => 'two',);
$mapWithoutConst2 = array(1 => 'one', TWO => 'two',);
$mapWithoutConst3 = array(ONE => 'one', TWO => 'two',);
var_dump(Foo::$mapWithConst[1]);
var_dump(Foo::$mapWithConst1[1]);
var_dump(Foo::$mapWithConst2[1]);
var_dump(Foo::$mapWithoutConst[1]);
var_dump($mapWithConst[1]);
var_dump($mapWithoutConst[1]);
var_dump($mapWithoutConst0[1]);
var_dump($mapWithoutConst1[1]);
var_dump($mapWithoutConst2[1]);
var_dump($mapWithoutConst3[1]);
--EXPECT--
string(3) "two"
string(3) "two"
string(3) "two"
string(3) "two"
string(3) "two"
string(3) "two"
string(3) "two"
string(3) "two"
string(3) "two"
string(3) "two"
+3 -3
View File
@@ -27,6 +27,6 @@ $foo->start();
?>
--EXPECT--
static
static
static
instance
instance
instance
+1 -1
View File
@@ -15,4 +15,4 @@ class Test extends TestInterface {
?>
--EXPECTF--
Fatal error: Declaration of Test::__construct() must be compatible with that of TestInterface::__construct() in %s on line %d
Fatal error: Declaration of Test::__construct() must be compatible with TestInterface::__construct(ExampleClass $var) in %s on line %d
+7 -7
View File
@@ -25,33 +25,33 @@ var_dump(foo());
--EXPECTF--
Notice: Undefined variable: x in %sbug52041.php on line 3
Strict Standards: Creating default object from empty value in %sbug52041.php on line 6
Warning: Creating default object from empty value in %sbug52041.php on line 6
Notice: Undefined variable: x in %sbug52041.php on line 3
Strict Standards: Creating default object from empty value in %sbug52041.php on line 7
Warning: Creating default object from empty value in %sbug52041.php on line 7
Notice: Undefined variable: x in %sbug52041.php on line 3
Strict Standards: Creating default object from empty value in %sbug52041.php on line 8
Warning: Creating default object from empty value in %sbug52041.php on line 8
Notice: Undefined variable: x in %sbug52041.php on line 3
Strict Standards: Creating default object from empty value in %sbug52041.php on line 9
Warning: Creating default object from empty value in %sbug52041.php on line 9
Notice: Undefined variable: x in %sbug52041.php on line 3
Strict Standards: Creating default object from empty value in %sbug52041.php on line 10
Warning: Creating default object from empty value in %sbug52041.php on line 10
Notice: Undefined variable: x in %sbug52041.php on line 3
Strict Standards: Creating default object from empty value in %sbug52041.php on line 11
Warning: Creating default object from empty value in %sbug52041.php on line 11
Notice: Undefined variable: x in %sbug52041.php on line 3
Notice: Undefined variable: x in %sbug52041.php on line 3
Notice: Undefined variable: x in %stests/bug52041.php on line 3
Notice: Undefined variable: x in %sbug52041.php on line 3
Notice: Undefined offset: 0 in %sbug52041.php on line 15
+35
View File
@@ -0,0 +1,35 @@
--TEST--
Bug #52361 (Throwing an exception in a destructor causes invalid catching)
--FILE--
<?php
class aaa {
public function __destruct() {
try {
throw new Exception(__CLASS__);
} catch(Exception $ex) {
echo "1. $ex\n";
}
}
}
function bbb() {
$a = new aaa();
throw new Exception(__FUNCTION__);
}
try {
bbb();
echo "must be skipped !!!";
} catch(Exception $ex) {
echo "2. $ex\n";
}
?>
--EXPECTF--
1. exception 'Exception' with message 'aaa' in %sbug52361.php:5
Stack trace:
#0 %sbug52361.php(16): aaa->__destruct()
#1 %sbug52361.php(16): bbb()
#2 {main}
2. exception 'Exception' with message 'bbb' in %sbug52361.php:13
Stack trace:
#0 %sbug52361.php(16): bbb()
#1 {main}
+19
View File
@@ -0,0 +1,19 @@
--TEST--
Bug #52484 (__set() ignores setting properties with empty names)
--FILE--
<?php
class A {
function __unset($prop) {
unset($this->$prop);
}
}
$a = new A();
$prop = null;
unset($a->$prop);
?>
--EXPECTF--
Fatal error: Cannot access empty property in %s on line %d
+19
View File
@@ -0,0 +1,19 @@
--TEST--
Bug #52484.2 (__set() ignores setting properties with empty names)
--FILE--
<?php
class A {
function __set($prop, $val) {
$this->$prop = $val;
}
}
$a = new A();
$prop = null;
$a->$prop = 2;
?>
--EXPECTF--
Fatal error: Cannot access empty property in %s on line %d
+19
View File
@@ -0,0 +1,19 @@
--TEST--
Bug #52484.3 (__set() ignores setting properties with empty names)
--FILE--
<?php
class A {
function __get($prop) {
var_dump($this->$prop);
}
}
$a = new A();
$prop = null;
var_dump($a->$prop);
?>
--EXPECTF--
Fatal error: Cannot access empty property in %s on line %d
+20
View File
@@ -0,0 +1,20 @@
--TEST--
Bug #52508 (newline problem with parse_ini_file+INI_SCANNER_RAW)
--FILE--
<?php
$file = dirname(__FILE__) .'/bug52508.ini';
file_put_contents($file, "a = 1");
$ini_array = parse_ini_file($file, true, INI_SCANNER_RAW);
var_dump($ini_array);
unlink($file);
?>
--EXPECT--
array(1) {
["a"]=>
string(1) "1"
}
+83
View File
@@ -0,0 +1,83 @@
--TEST--
Bug #52614 (Memory leak when writing on uninitialized variable returned from method call)
--FILE--
<?php
class foo {
public $a1;
public $a2 = array();
public $a3;
public $o1;
public $o2;
public function f1() {
return $this->a1;
}
public function f2() {
return $this->a2;
}
public function f3() {
$this->a3 = array();
return $this->a3;
}
public function f4() {
return $this->o1;
}
public function f5() {
$this->o2 = new stdClass;
return $this->o2;
}
public function &f6() {
return $this->a1;
}
public function f7(&$x) {
$x = 2;
}
}
$foo = new foo;
$foo->f1()[0] = 1;
var_dump($foo->a1);
$foo->f2()[0] = 1;
var_dump($foo->a2);
$foo->f3()[0] = 1;
var_dump($foo->a3);
$foo->f4()->a = 1;
var_dump($foo->o1);
$foo->f5()->a = 1;
var_dump($foo->o2);
$foo->a1[0] = 1;
$foo->f7($foo->f6()[0]);
var_dump($foo->a1[0]);
$foo->f1()[0]++;
var_dump($foo->a1[0]);
$foo->f6()[0]++;
var_dump($foo->a1[0]);
--EXPECTF--
NULL
array(0) {
}
array(0) {
}
Warning: Creating default object from empty value in %sbug52614.php on line 52
NULL
object(stdClass)#%d (1) {
["a"]=>
int(1)
}
int(2)
int(2)
int(3)
+16
View File
@@ -0,0 +1,16 @@
--TEST--
Bug #52879 (Objects unreferenced in __get, __set, __isset or __unset can be freed too early)
--FILE--
<?php
class MyClass {
public $myRef;
public function __set($property,$value) {
$this->myRef = $value;
}
}
$myGlobal=new MyClass($myGlobal);
$myGlobal->myRef=&$myGlobal;
$myGlobal->myNonExistentProperty="ok\n";
echo $myGlobal;
--EXPECT--
ok
+40
View File
@@ -0,0 +1,40 @@
--TEST--
Bug #52939 (zend_call_function_array does not respect ZEND_SEND_PREFER_REF)
--FILE--
<?php
$ar1 = array("row1" => 2, "row2" => 1);
var_dump(array_multisort($ar1));
var_dump($ar1);
$ar1 = array("row1" => 2, "row2" => 1);
$args = array(&$ar1);
var_dump(call_user_func_array("array_multisort", $args));
var_dump($ar1);
$ar1 = array("row1" => 2, "row2" => 1);
$args = array($ar1);
var_dump(call_user_func_array("array_multisort", $args));
var_dump($ar1);
?>
--EXPECT--
bool(true)
array(2) {
["row2"]=>
int(1)
["row1"]=>
int(2)
}
bool(true)
array(2) {
["row2"]=>
int(1)
["row1"]=>
int(2)
}
bool(true)
array(2) {
["row1"]=>
int(2)
["row2"]=>
int(1)
}
+23
View File
@@ -0,0 +1,23 @@
--TEST--
Bug #52940 (call_user_func_array still allows call-time pass-by-reference)
--FILE--
<?php
function foo($a) {
$a++;
var_dump($a);
}
function bar(&$a) {
$a++;
var_dump($a);
}
$a = 1;
call_user_func_array("foo", array(&$a));
var_dump($a);
call_user_func_array("bar", array(&$a));
var_dump($a);
?>
--EXPECT--
int(2)
int(1)
int(2)
int(2)
+19
View File
@@ -0,0 +1,19 @@
--TEST--
Bug #53305 (E_NOTICE when defining a constant starts with __COMPILER_HALT_OFFSET__)
--FILE--
<?php
error_reporting(E_ALL);
define('__COMPILER_HALT_OFFSET__1', 1);
define('__COMPILER_HALT_OFFSET__2', 2);
define('__COMPILER_HALT_OFFSET__', 3);
define('__COMPILER_HALT_OFFSET__1'.chr(0), 4);
var_dump(__COMPILER_HALT_OFFSET__1);
var_dump(constant('__COMPILER_HALT_OFFSET__1'.chr(0)));
?>
--EXPECTF--
Notice: Constant __COMPILER_HALT_OFFSET__ already defined in %s on line %d
int(1)
int(4)
+17
View File
@@ -0,0 +1,17 @@
--TEST--
Bug #53347 Segfault accessing static method
--FILE--
<?php class ezcConsoleOutput
{
protected static $color = array( 'gray' => 30 );
public static function isValidFormatCode( $type, $key )
{
return isset( self::${$type}[$key] );
}
}
var_dump( ezcConsoleOutput::isValidFormatCode( 'color', 'gray' ) );
?>
--EXPECT--
bool(true)
+33
View File
@@ -0,0 +1,33 @@
--TEST--
Bug #53511 (Exceptions are lost in case an exception is thrown in catch operator)
--FILE--
<?php
class Foo {
function __destruct() {
throw new Exception("ops 1");
}
}
function test() {
$e = new Foo();
try {
throw new Exception("ops 2");
} catch (Exception $e) {
echo $e->getMessage()."\n";
}
}
test();
echo "bug\n";
--EXPECTF--
Fatal error: Uncaught exception 'Exception' with message 'ops 2' in %sbug53511.php:11
Stack trace:
#0 %sbug53511.php(17): test()
#1 {main}
Next exception 'Exception' with message 'ops 1' in %sbug53511.php:4
Stack trace:
#0 %sbug53511.php(12): Foo->__destruct()
#1 %sbug53511.php(17): test()
#2 {main}
thrown in %sbug53511.php on line 4
+31
View File
@@ -0,0 +1,31 @@
--TEST--
Bug #53629 (memory leak inside highlight_string())
--FILE--
<?php
$str = '
<?php
class foo {
public $bar = <<<EOT
bar
EOT;
}
?>
';
$str2 = '
<?php
var_dump(array(<<<EOD
foobar!
EOD
));
?>
';
highlight_string($str, true);
highlight_string($str2, true);
echo "Done\n";
?>
--EXPECT--
Done
+10
View File
@@ -0,0 +1,10 @@
--TEST--
zend_strtod() hangs with 2.2250738585072011e-308
--FILE--
<?php
$d = 2.2250738585072011e-308;
echo "Done\n";
?>
--EXPECTF--
Done
+22
View File
@@ -0,0 +1,22 @@
--TEST--
Bug #53727 (Inconsistent behavior of is_subclass_of with interfaces)
--FILE--
<?php
interface MyInterface {
const TEST_CONSTANT = true;
}
class ParentClass implements MyInterface { }
class ChildClass extends ParentClass { }
echo (is_subclass_of('ChildClass', 'MyInterface') ? 'true' : 'false') . "\n";
echo (defined('ChildClass::TEST_CONSTANT') ? 'true' : 'false') . "\n";
echo (is_subclass_of('ParentClass', 'MyInterface') ? 'true' : 'false') . "\n";
echo (defined('ParentClass::TEST_CONSTANT') ? 'true' : 'false') . "\n";
--EXPECT--
true
true
true
true
+39
View File
@@ -0,0 +1,39 @@
--TEST--
Bug #53748 (Using traits lead to a segmentation fault)
--FILE--
<?php
trait Singleton {
protected static $instances=array();
abstract protected function __construct($config);
public static function getInstance($config) {
if (!isset(self::$instances[$serialize = serialize($config)])) {
self::$instances[$serialize] = new self($config);
}
return self::$instances[$serialize];
}
}
class MyHelloWorld {
use Singleton;
public function __construct($config)
{
var_dump( $config);
}
}
$o= myHelloWorld::getInstance(1);
$o= myHelloWorld::getInstance(1);
$o= myHelloWorld::getInstance(2);
$o= myHelloWorld::getInstance(array(1=>2));
$o= myHelloWorld::getInstance(array(1=>2));
?>
--EXPECTF--
int(1)
int(2)
array(1) {
[1]=>
int(2)
}
+61
View File
@@ -0,0 +1,61 @@
--TEST--
Bug #53958 (Closures can't 'use' shared variables by value and by reference)
--FILE--
<?php
// TEST 1
$a = 1;
$fn1 = function() use ($a) {echo "$a\n"; $a++;};
$fn2 = function() use ($a) {echo "$a\n"; $a++;};
$a = 5;
$fn1(); // 1
$fn2(); // 1
$fn1(); // 1
$fn2(); // 1
// TEST 2
$b = 1;
$fn1 = function() use (&$b) {echo "$b\n"; $b++;};
$fn2 = function() use (&$b) {echo "$b\n"; $b++;};
$b = 5;
$fn1(); // 5
$fn2(); // 6
$fn1(); // 7
$fn2(); // 8
// TEST 3
$c = 1;
$fn1 = function() use (&$c) {echo "$c\n"; $c++;};
$fn2 = function() use ($c) {echo "$c\n"; $c++;};
$c = 5;
$fn1(); // 5
$fn2(); // 1
$fn1(); // 6
$fn2(); // 1
// TEST 4
$d = 1;
$fn1 = function() use ($d) {echo "$d\n"; $d++;};
$fn2 = function() use (&$d) {echo "$d\n"; $d++;};
$d = 5;
$fn1(); // 1
$fn2(); // 5
$fn1(); // 1
$fn2(); // 6
?>
--EXPECT--
1
1
1
1
5
6
7
8
5
1
6
1
1
5
1
6
+11
View File
@@ -0,0 +1,11 @@
--TEST--
Bug #53971 (isset() and empty() produce apparently spurious runtime error)
--FILE--
<?php
$s = "";
var_dump(isset($s[0][0]));
?>
--EXPECT--
bool(false)
+31
View File
@@ -0,0 +1,31 @@
--TEST--
Bug #54013 (ReflectionParam for duplicate parameter contains garbage)
--FILE--
<?php
class a
{
function b($aaaaaaaa, $aaaaaaaa)
{
$params = func_get_args();
}
}
$c = new a;
$c->b('waa?', 'meukee!');
$reflectionClass = new ReflectionClass($c);
$params = $reflectionClass->getMethod('b')->getParameters();
var_dump($params[0], $params[1]);
?>
--EXPECTF--
object(ReflectionParameter)#%d (1) {
["name"]=>
string(8) "aaaaaaaa"
}
object(ReflectionParameter)#%d (1) {
["name"]=>
string(8) "aaaaaaaa"
}
+58
View File
@@ -0,0 +1,58 @@
--TEST--
Bug #54039 (use() of static variables in lambda functions can break staticness)
--FILE--
<?php
function test_1() {
static $v = 0;
++$v;
echo "Outer function increments \$v to $v\n";
$f = function() use($v) {
echo "Inner function reckons \$v is $v\n";
};
return $f;
}
$f = test_1(); $f();
$f = test_1(); $f();
function test_2() {
static $v = 0;
$f = function() use($v) {
echo "Inner function reckons \$v is $v\n";
};
++$v;
echo "Outer function increments \$v to $v\n";
return $f;
}
$f = test_2(); $f();
$f = test_2(); $f();
function test_3() {
static $v = "";
$v .= 'b';
echo "Outer function catenates 'b' onto \$v to give $v\n";
$f = function() use($v) {
echo "Inner function reckons \$v is $v\n";
};
$v .= 'a';
echo "Outer function catenates 'a' onto \$v to give $v\n";
return $f;
}
$f = test_3(); $f();
$f = test_3(); $f();
--EXPECT--
Outer function increments $v to 1
Inner function reckons $v is 1
Outer function increments $v to 2
Inner function reckons $v is 2
Outer function increments $v to 1
Inner function reckons $v is 0
Outer function increments $v to 2
Inner function reckons $v is 1
Outer function catenates 'b' onto $v to give b
Outer function catenates 'a' onto $v to give ba
Inner function reckons $v is b
Outer function catenates 'b' onto $v to give bab
Outer function catenates 'a' onto $v to give baba
Inner function reckons $v is bab
+17
View File
@@ -0,0 +1,17 @@
--TEST--
Bug #54262 (Crash when assigning value to a dimension in a non-array)
--FILE--
<?php
$a = '0';
var_dump(isset($a['b']));
$simpleString = preg_match('//', '', $a->a);
$simpleString["wrong"] = "f";
echo "ok\n";
?>
--EXPECTF--
bool(false)
Warning: Attempt to modify property of non-object in %sbug54262.php on line 4
Warning: Cannot use a scalar value as an array in %sbug54262.php on line 5
ok
+17
View File
@@ -0,0 +1,17 @@
--TEST--
Bug #54265 (crash when variable gets reassigned in error handler)
--FILE--
<?php
function my_errorhandler($errno,$errormsg) {
global $my_var;
$my_var = 0;
echo "EROOR: $errormsg\n";
}
set_error_handler("my_errorhandler");
$my_var = str_repeat("A",$my_var[0]->errormsg = "xyz");
echo "ok\n";
?>
--EXPECT--
EROOR: Creating default object from empty value
ok
+35
View File
@@ -0,0 +1,35 @@
--TEST--
Bug #54268 (Double free when destroy_zend_class fails)
--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
class DestructableObject
{
public function __destruct()
{
DestructableObject::__destruct();
}
}
class DestructorCreator
{
public function __destruct()
{
$this->test = new DestructableObject;
}
}
class Test
{
public static $mystatic;
}
$x = new Test();
Test::$mystatic = new DestructorCreator();
--EXPECTF--
Fatal error: Allowed memory size of %s bytes exhausted%s(tried to allocate %s bytes) in %s on line %d
+22
View File
@@ -0,0 +1,22 @@
--TEST--
Bug #54305 (Crash in gc_remove_zval_from_buffer)
--FILE--
<?php
class TestClass {
public function methodWithArgs($a, $b) {
}
}
abstract class AbstractClass {
}
$methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs');
echo $methodWithArgs++;
?>
--EXPECTF--
Method [ <user> public method methodWithArgs ] {
@@ %sbug54305.php %d - %d
- Parameters [2] {
Parameter #0 [ <required> $a ]
Parameter #1 [ <required> $b ]
}
}
+39
View File
@@ -0,0 +1,39 @@
--TEST--
Bug #54358 (Closure, use and reference)
--FILE--
<?php
class asserter {
public function call($function) {
}
}
$asserter = new asserter();
$closure = function() use ($asserter, &$function) {
$asserter->call($function = 'md5');
};
$closure();
var_dump($function);
$closure = function() use ($asserter, $function) {
$asserter->call($function);
};
$closure();
var_dump($function);
$closure = function() use ($asserter, $function) {
$asserter->call($function);
};
$closure();
var_dump($function);
?>
--EXPECT--
string(3) "md5"
string(3) "md5"
string(3) "md5"
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Bug #54367 (Use of closure causes problem in ArrayAccess)
--FILE--
<?php
class MyObjet implements ArrayAccess
{
public function offsetSet($offset, $value) { }
public function offsetExists($offset) { }
public function offsetUnset($offset) { }
public function offsetGet ($offset)
{
return function ($var) use ($offset) { // here is the problem
var_dump($offset, $var);
};
}
}
$a = new MyObjet();
echo $a['p']('foo');
?>
--EXPECT--
string(1) "p"
string(3) "foo"
Loaded 100 of 3474 files, more files were not shown because too many files have changed in this diff. Show more