Compare commits

..
Author SHA1 Message Date
Stanislav Malyshev e66bd9aac5 5.4.0beta1 2011-09-15 06:28:42 +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
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
1611 changed files with 68848 additions and 26603 deletions

No files matched your search

+2 -2
View File
@@ -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
+6396 -16
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:
+10 -13
View File
@@ -104,16 +104,15 @@ 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, ordered by filename, odler version number first, .bz2 before .gz).
3. Update ``web/qa/trunk/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)
c. ``$RELEASE_PROCESS`` = array(4 => true, 5 => true)
1. Update in ``web/php-bugs/trunk/include/php_versions.php`` to include the new RC and commit.
@@ -247,13 +246,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)
--------------------------------------
+8 -4
View File
@@ -43,13 +43,17 @@ Having said that, here are the organizational rules::
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
branches/PHP_5_4 Is used to release the PHP 5.4.x series. It still allows for
larger enhancements.
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.
+16
View File
@@ -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)
{
+7
View File
@@ -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)
])
+17 -3
View File
@@ -617,7 +617,14 @@ CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC) /* {{{
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 {
@@ -692,7 +699,13 @@ 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) {
@@ -1067,6 +1080,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;
}
}
@@ -1438,7 +1452,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 TSRMLS_CC)) {
if (virtual_file_ex(&new_state, path, NULL, CWD_EXPAND TSRMLS_CC)) {
CWD_STATE_FREE(&new_state);
return NULL;
}
+4
View File
@@ -530,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);
+105 -15
View File
@@ -30,6 +30,7 @@ UPGRADE NOTES - PHP X.Y
h. New methods
i. New class constants
j. New hash algorithms
k. New Syntax
========================================
1. Changes made to default configuration
@@ -81,15 +82,16 @@ UPGRADE NOTES - PHP X.Y
- safe_mode_protected_env_vars
- zend.ze1_compatibility_mode
=============================
2. Reserved words and classes
=============================
-
=============================
===================================
3. Changes made to engine behaviour
=============================
===================================
- Turning null, false or empty string into an object by adding a property
will now emit a warning instead of an E_STRICT error.
@@ -99,7 +101,25 @@ UPGRADE NOTES - PHP X.Y
To create a generic object you can use StdClass:
$test = new StdClass;
$text->baz = 1;
$test->baz = 1;
- 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".
=====================================
4. Changes made to existing functions
@@ -170,6 +190,16 @@ UPGRADE NOTES - PHP X.Y
- 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.
- 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().
- 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)
- openssl_csr_new() expects the textual data to be in UTF-8.
===================================
5. Changes made to existing methods
@@ -208,6 +238,14 @@ UPGRADE NOTES - PHP X.Y
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
@@ -236,15 +274,15 @@ 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)
- 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
@@ -265,6 +303,9 @@ UPGRADE NOTES - PHP X.Y
c. 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.
- The session extension now can hook into the file upload feature
in order to provide upload progress information through session
variables.
@@ -276,10 +317,27 @@ UPGRADE NOTES - PHP X.Y
- 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.
- 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 guesses the default timezone if none
is set with date.timezone and/or date_default_timezone_set().
Instead it will always fall back to "UTC".
d. no longer possible to disable
@@ -305,12 +363,17 @@ UPGRADE NOTES - PHP X.Y
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 enable by default. When it's
- 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.
- Changed E_ALL to include E_STRICT. Recommended production value changed to
E_ALL & ~E_DEPRECATED & ~E_STRICT.
- 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.
====================
12. Syntax additions
@@ -321,6 +384,15 @@ UPGRADE NOTES - PHP X.Y
foo()[0]
$foo->bar()[0]
- 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"));
===================
13. Windows support
===================
@@ -352,10 +424,18 @@ UPGRADE NOTES - PHP X.Y
- Core:
- get_declared_traits()
- hex2bin()
- http_response_code()
- trait_exists()
- stream_set_chunk_size()
- socket_import_stream()
- trait_exists()
- LDAP:
- ldap_control_paged_results()
- ldap_control_paged_results_response()
- libxml
- libxml_set_external_entity_loader()
f. New global constants
@@ -384,6 +464,8 @@ UPGRADE NOTES - PHP X.Y
- IPV6_MULTICAST_LOOP
- IPPROTO_IP
- IPPROTO_IPV6
- OPENSSL_RAW_DATA
- OPENSSL_ZERO_PADDING
g. New classes
@@ -411,6 +493,7 @@ UPGRADE NOTES - PHP X.Y
- ReflectionClass::getTraitNames()
- ReflectionClass::getTraitAliases()
- ReflectionParameter::canBePassedByValue()
- ReflectionParameter::isCallable()
- RegexIterator
- RegexIterator::getRegex()
@@ -433,5 +516,12 @@ UPGRADE NOTES - PHP X.Y
- fnv132
- fnv164
- joaat
k. New Syntax
- Short array syntax in 5.4.0
$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
+4
View File
@@ -11,6 +11,7 @@ UPGRADE NOTES - PHP X.Y
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
@@ -184,6 +185,9 @@ it increments the refcounts of those objects instead.
. 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
+1 -1
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@
+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:
---------
+15 -1
View File
@@ -392,8 +392,22 @@ int main()
AC_CHECK_FUNCS(mremap)
])
AC_CHECK_FUNC(sigaction, [
ZEND_SIGNALS=yes
AC_DEFINE(ZEND_SIGNALS, 1, [Use zend signal handling])
AC_DEFINE(HAVE_SIGACTION, 1, [Whether sigaction() is available])
], [
ZEND_SIGNALS=no
])
if test "$ZEND_SIGNALS" = "yes"; then
CFLAGS="$CFLAGS -DZEND_SIGNALS"
fi
AC_MSG_CHECKING(whether to enable zend signal handling)
AC_MSG_RESULT($ZEND_SIGNALS)
])
AC_DEFUN([LIBZEND_CPLUSPLUS_CHECKS],[
-127
View File
@@ -1,127 +0,0 @@
/*
+----------------------------------------------------------------------+
| Zend Engine |
+----------------------------------------------------------------------+
| Copyright (c) 1998-2011 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:
*/
+1 -1
View File
@@ -4,7 +4,7 @@ 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"
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
+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
+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)
-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
+6 -3
View File
@@ -1,13 +1,16 @@
--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];
echo "I am alive";
?>
--EXPECTF--
Notice: Uninitialized string offset: 0 in %sbug39304.php on line 3
Fatal error: Cannot use string offset as an array in %sbug39304.php on line 3
Notice: Uninitialized string offset: 1 in %sbug39304.php on line 3
Notice: Uninitialized string offset: 0 in %sbug39304.php on line 3
I am alive
+1 -1
View File
@@ -20,5 +20,5 @@ var_dump( ArrayProperty::$array );
--EXPECT--
array(1) {
[1]=>
int(23)
int(42)
}
+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)
+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"
+1 -1
View File
@@ -51,7 +51,7 @@ 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
+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
+3 -3
View File
@@ -11,7 +11,7 @@ echo "ok\n";
--EXPECTF--
bool(true)
Warning: Attempt to modify property of non-object in %s/Zend/tests/bug54262.php on line 4
Warning: Attempt to modify property of non-object in %sbug54262.php on line 4
Warning: Cannot use a scalar value as an array in %s/Zend/tests/bug54262.php on line 5
ok
Warning: Cannot use a scalar value as an array in %sbug54262.php on line 5
ok
+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 ]
}
}
+26
View File
@@ -0,0 +1,26 @@
--TEST--
Bug #54624 (class_alias and type hint)
--FILE--
<?php
class A
{
function foo(A $param) {
}
}
class_alias('A', 'AliasA');
eval('
class B extends A
{
function foo(AliasA $param) {
}
}
');
echo "DONE\n";
?>
--EXPECTF--
DONE
+3
View File
@@ -0,0 +1,3 @@
<?php
namespace b\c {}
namespace b\d {}
+11
View File
@@ -0,0 +1,11 @@
--TEST--
Bug #54804 (__halt_compiler and imported namespaces)
--FILE--
<?php
namespace a;
require __DIR__ . '/bug54804.inc';
echo 'DONE';
__halt_compiler();
?>
--EXPECT--
DONE
+28
View File
@@ -0,0 +1,28 @@
--TEST--
Bug #54910 (Crash when calling call_user_func with unknown function name)
--FILE--
<?php
class A {
public function __call($method, $args) {
if (stripos($method, 'get') === 0) {
return $this->get();
}
die("No such method - '$method'\n");
}
protected function get() {
$class = get_class($this);
$call = array($class, 'noSuchMethod');
if (is_callable($call)) {
call_user_func($call);
}
}
}
class B extends A {}
$input = new B();
echo $input->getEmail();
--EXPECT--
No such method - 'noSuchMethod'
+23
View File
@@ -0,0 +1,23 @@
--TEST--
Bug #55007 (compiler fail after previous fail)
--FILE--
<?php
function __autoload($classname) {
if ('CompileErrorClass'==$classname) eval('class CompileErrorClass { function foo() { $a[] } }');
if ('MyErrorHandler'==$classname) eval('class MyErrorHandler { function __construct() { print "My error handler runs.\n"; } }');
}
function shutdown() {
new MyErrorHandler();
}
register_shutdown_function('shutdown');
new CompileErrorClass();
?>
--EXPECTF--
Fatal error: Cannot use [] for reading in %s(%d) : eval()'d code on line %d
My error handler runs.
+36
View File
@@ -0,0 +1,36 @@
--TEST--
Bug #55086 (Namespace alias does not work inside trait's use block)
--FILE--
<?php
namespace N1 {
trait T1 {
public function hello() { return 'hello from t1'; }
}
trait T2 {
public function hello() { return 'hello from t2'; }
}
}
namespace N2 {
use N1\T1;
use N1\T2;
class A {
use T1, T2 {
T1::hello insteadof T2;
T1::hello as foo;
}
}
$a = new A;
echo $a->hello(), PHP_EOL;
echo $a->foo(), PHP_EOL;
try {
} catch(namespace \Foo $e)
{
}
}
?>
--EXPECT--
hello from t1
hello from t1
+38
View File
@@ -0,0 +1,38 @@
--TEST--
Bug #55135 (Array keys are no longer type casted in unset())
--FILE--
<?php
// This fails.
$array = array(1 => 2);
$a = "1";
unset($array[$a]);
print_r($array);
// Those works.
$array = array(1 => 2);
$a = 1;
unset($array[$a]);
print_r($array);
$array = array(1 => 2);
unset($array[1]);
print_r($array);
$array = array(1 => 2);
$a = 1;
unset($array["1"]);
print_r($array);
?>
--EXPECT--
Array
(
)
Array
(
)
Array
(
)
Array
(
)
+26
View File
@@ -0,0 +1,26 @@
--TEST--
Bug #55137 (Changing trait static method visibility)
--FILE--
<?php
trait A {
protected static function foo() { echo "abc\n"; }
private static function bar() { echo "def\n"; }
}
class B {
use A {
A::foo as public;
A::bar as public baz;
}
}
B::foo();
B::baz();
?>
--EXPECT--
abc
def
+30
View File
@@ -0,0 +1,30 @@
--TEST--
Bug #55156 (ReflectionClass::getDocComment() returns comment even though the class has none)
--FILE--
<?php
/** test */
namespace foo {
function test() { }
$x = new \ReflectionFunction('foo\test');
var_dump($x->getDocComment());
/** test1 */
class bar { }
/** test2 */
class foo extends namespace\bar { }
$x = new \ReflectionClass('foo\bar');
var_dump($x->getDocComment());
$x = new \ReflectionClass('foo\foo');
var_dump($x->getDocComment());
}
?>
--EXPECTF--
bool(false)
string(12) "/** test1 */"
string(12) "/** test2 */"
+33
View File
@@ -0,0 +1,33 @@
--TEST--
Request #55247 (Parser problem with static calls using string method name)
--FILE--
<?php
class Test{
public static function __callStatic($method, $arguments)
{
echo $method . PHP_EOL;
}
public function __call($method, $arguments)
{
echo $method . PHP_EOL;
}
}
$method = 'method';
$test = new Test();
$test->method();
$test->$method();
$test->{'method'}();
Test::method();
Test::$method();
Test::{'method'}();
--EXPECT--
method
method
method
method
method
method
+16
View File
@@ -0,0 +1,16 @@
--TEST--
Bug #55305 (ref lost: 1st ref instantiated in class def, 2nd ref made w/o instantiating)
--FILE--
<?php
class Foo {
var $foo = "test";
}
$f = new Foo();
$f->bar =& $f->foo;
var_dump($f->foo);
var_dump($f->bar);
?>
--EXPECT--
string(4) "test"
string(4) "test"
+8
View File
@@ -0,0 +1,8 @@
--TEST--
Bug #55445 (Lexer error with short open tags)
--INI--
short_open_tag=0
--FILE--
<?php $u = "chris"; ?><p>Welcome <?= $u ?></p>
--EXPECTF--
<p>Welcome chris</p>
+33
View File
@@ -0,0 +1,33 @@
--TEST--
Bug #55509 (segfault on x86_64 using more than 2G memory)
--SKIPIF--
<?php
if (PHP_INT_SIZE == 4) {
die('skip Not for 32-bits OS');
}
?>
--INI--
memory_limit=3G
--FILE--
<?php
$a1 = str_repeat("1", 1024 * 1024 * 1024 * 0.5);
echo "1\n";
$a2 = str_repeat("2", 1024 * 1024 * 1024 * 0.5);
echo "2\n";
$a3 = str_repeat("3", 1024 * 1024 * 1024 * 0.5);
echo "3\n";
$a4 = str_repeat("4", 1024 * 1024 * 1024 * 0.5);
echo "4\n";
$a5 = str_repeat("5", 1024 * 1024 * 1024 * 0.5);
echo "5\n";
$a6 = str_repeat("6", 1024 * 1024 * 1024 * 0.5);
echo "6\n";
?>
--EXPECTF--
1
2
3
4
5
Fatal error: Allowed memory size of %d bytes exhausted (tried to allocate %d bytes) in %s/bug55509.php on line %d
+20
View File
@@ -0,0 +1,20 @@
--TEST--
Bug #55578 (Segfault on implode/concat)
--FILE--
<?php
$options = array();
class Foo {
public function __toString() {
return 'Foo';
}
}
function test($options, $queryPart) {
return ''. (0 ? 1 : $queryPart);
}
var_dump(test($options, new Foo()));
?>
--EXPECT--
string(3) "Foo"
+39
View File
@@ -0,0 +1,39 @@
--TEST--
callable type hint#001
--FILE--
<?php
class bar {
function baz() {}
static function foo() {}
}
function foo(callable $bar) {
var_dump($bar);
}
$closure = function () {};
foo("strpos");
foo("foo");
foo(array("bar", "baz"));
foo(array("bar", "foo"));
foo($closure);
--EXPECTF--
string(6) "strpos"
string(3) "foo"
Strict Standards: Non-static method bar::baz() should not be called statically in %scallable_type_hint_001.php on line %d
array(2) {
[0]=>
string(3) "bar"
[1]=>
string(3) "baz"
}
array(2) {
[0]=>
string(3) "bar"
[1]=>
string(3) "foo"
}
object(Closure)#%d (0) {
}
+27
View File
@@ -0,0 +1,27 @@
--TEST--
callable type hint#002 - Reflection
--FILE--
<?php
class bar {
static function foo(callable $arg) {}
}
function foo(callable $bar) {
}
$closure = function (callable $arg) {};
$rf = new ReflectionFunction("foo");
var_dump($rf->getParameters()[0]->isCallable());
$rm = new ReflectionMethod("bar", "foo");
var_dump($rm->getParameters()[0]->isCallable());
$rc = new ReflectionFunction($closure);
var_dump($rc->getParameters()[0]->isCallable());
?>
--EXPECT--
bool(true)
bool(true)
bool(true)
+21
View File
@@ -0,0 +1,21 @@
--TEST--
callable type hint#003
--FILE--
<?php
function foo(callable $a, $b, callable $c) {
var_dump($a, $b, $c);
}
function bar(callable $a = null) {
var_dump($a);
}
foo("strpos", 123, "strpos");
bar("substr");
?>
--EXPECT--
string(6) "strpos"
int(123)
string(6) "strpos"
string(6) "substr"
+2 -2
View File
@@ -1,5 +1,5 @@
--TEST--
Closure 036: Rebinding closures
Closure 036: Rebinding closures, keep calling scope
--FILE--
<?php
@@ -20,7 +20,7 @@ $b = new A(10);
$ca = $a->getIncrementor();
$cb = $ca->bindTo($b);
$cb2 = Closure::bind($b, $ca);
$cb2 = Closure::bind($ca, $b);
var_dump($ca());
var_dump($cb());
+58
View File
@@ -0,0 +1,58 @@
--TEST--
Closure 038: Rebinding closures, change scope, different runtime type
--FILE--
<?php
class A {
private $x;
public function __construct($v) {
$this->x = $v;
}
public function getIncrementor() {
return function() { return ++$this->x; };
}
}
class B extends A {
private $x;
public function __construct($v) {
parent::__construct($v);
$this->x = $v*2;
}
}
$a = new A(0);
$b = new B(10);
$ca = $a->getIncrementor();
var_dump($ca());
echo "Testing with scope given as object", "\n";
$cb = $ca->bindTo($b, $b);
$cb2 = Closure::bind($ca, $b, $b);
var_dump($cb());
var_dump($cb2());
echo "Testing with scope as string", "\n";
$cb = $ca->bindTo($b, 'B');
$cb2 = Closure::bind($ca, $b, 'B');
var_dump($cb());
var_dump($cb2());
$cb = $ca->bindTo($b, NULL);
var_dump($cb());
?>
--EXPECTF--
int(1)
Testing with scope given as object
int(21)
int(22)
Testing with scope as string
int(23)
int(24)
Fatal error: Cannot access private property B::$x in %s on line %d
+58
View File
@@ -0,0 +1,58 @@
--TEST--
Closure 039: Rebinding closures, change scope, same runtime type
--FILE--
<?php
class A {
private $x;
public function __construct($v) {
$this->x = $v;
}
public function getIncrementor() {
return function() { return ++$this->x; };
}
}
class B extends A {
private $x;
public function __construct($v) {
parent::__construct($v);
$this->x = $v*2;
}
}
$a = new B(-5);
$b = new B(10);
$ca = $a->getIncrementor();
var_dump($ca());
echo "Testing with scope given as object", "\n";
$cb = $ca->bindTo($b, $b);
$cb2 = Closure::bind($ca, $b, $b);
var_dump($cb());
var_dump($cb2());
echo "Testing with scope as string", "\n";
$cb = $ca->bindTo($b, 'B');
$cb2 = Closure::bind($ca, $b, 'B');
var_dump($cb());
var_dump($cb2());
$cb = $ca->bindTo($b, NULL);
var_dump($cb());
?>
--EXPECTF--
int(-4)
Testing with scope given as object
int(21)
int(22)
Testing with scope as string
int(23)
int(24)
Fatal error: Cannot access private property B::$x in %s on line %d
+45
View File
@@ -0,0 +1,45 @@
--TEST--
Closure 040: Rebinding closures, bad arguments
--FILE--
<?php
class A {
private $x;
private static $xs = 10;
public function __construct($v) {
$this->x = $v;
}
public function getIncrementor() {
return function() { return ++$this->x; };
}
public function getStaticIncrementor() {
return static function() { return ++static::$xs; };
}
}
$a = new A(20);
$ca = $a->getIncrementor();
$cas = $a->getStaticIncrementor();
$ca->bindTo($a, array());
$ca->bindTo(array(), 'A');
$ca->bindTo($a, array(), "");
$ca->bindTo();
$cas->bindTo($a, 'A');
?>
--EXPECTF--
Notice: Array to string conversion in %s on line %d
Warning: Class 'Array' not found in %s on line %d
Warning: Closure::bindTo() expects parameter 1 to be object, array given in %s on line 25
Warning: Closure::bindTo() expects at most 2 parameters, 3 given in %s on line %d
Warning: Closure::bindTo() expects at least 1 parameter, 0 given in %s on line %d
Warning: Cannot bind an instance to a static closure in %s on line %d
+106
View File
@@ -0,0 +1,106 @@
--TEST--
Closure 041: Rebinding: preservation of previous scope when not given as arg unless impossible
--FILE--
<?php
/* It's impossible to preserve the previous scope when doing so would break
* the invariants that, for non-static closures, having a scope is equivalent
* to having a bound instance. */
$staticUnscoped = static function () {
echo "scoped to A: "; var_dump(isset(A::$priv));
echo "bound: ", isset($this)?get_class($this):"no";
};
$nonstaticUnscoped = function () {
echo "scoped to A: "; var_dump(isset(A::$priv));
echo "bound: ", isset($this)?get_class($this):"no";
};
class A {
private static $priv = 7;
function getClosure() {
return function () {
echo "scoped to A: "; var_dump(isset(A::$priv));
echo "bound: ", isset($this)?get_class($this):"no";
};
}
function getStaticClosure() {
return static function () {
echo "scoped to A: "; var_dump(isset(A::$priv));
echo "bound: ", isset($this)?get_class($this):"no";
};
}
}
class B extends A {}
$a = new A();
$staticScoped = $a->getStaticClosure();
$nonstaticScoped = $a->getClosure();
echo "Before binding", "\n";
$staticUnscoped(); echo "\n";
$nonstaticUnscoped(); echo "\n";
$staticScoped(); echo "\n";
$nonstaticScoped(); echo "\n";
echo "After binding, no instance", "\n";
$d = $staticUnscoped->bindTo(null); $d(); echo "\n";
$d = $nonstaticUnscoped->bindTo(null); $d(); echo "\n";
$d = $staticScoped->bindTo(null); $d(); echo "\n";
$d = $nonstaticScoped->bindTo(null); $d(); echo "\n";
//$d should have been turned to static
$d->bindTo($d);
echo "After binding, with same-class instance for the bound ones", "\n";
$d = $staticUnscoped->bindTo(new A); $d(); echo "\n";
$d = $nonstaticUnscoped->bindTo(new A); $d(); echo " (should be scoped to dummy class)\n";
$d = $staticScoped->bindTo(new A); $d(); echo "\n";
$d = $nonstaticScoped->bindTo(new A); $d(); echo "\n";
echo "After binding, with different instance for the bound ones", "\n";
$d = $nonstaticUnscoped->bindTo(new B); $d(); echo " (should be scoped to dummy class)\n";
$d = $nonstaticScoped->bindTo(new B); $d(); echo "\n";
echo "Done.\n";
--EXPECTF--
Before binding
scoped to A: bool(false)
bound: no
scoped to A: bool(false)
bound: no
scoped to A: bool(true)
bound: no
scoped to A: bool(true)
bound: A
After binding, no instance
scoped to A: bool(false)
bound: no
scoped to A: bool(false)
bound: no
scoped to A: bool(true)
bound: no
scoped to A: bool(true)
bound: no
Warning: Cannot bind an instance to a static closure in %s on line %d
After binding, with same-class instance for the bound ones
Warning: Cannot bind an instance to a static closure in %s on line %d
scoped to A: bool(false)
bound: no
scoped to A: bool(false)
bound: A (should be scoped to dummy class)
Warning: Cannot bind an instance to a static closure in %s on line %d
scoped to A: bool(true)
bound: no
scoped to A: bool(true)
bound: A
After binding, with different instance for the bound ones
scoped to A: bool(false)
bound: B (should be scoped to dummy class)
scoped to A: bool(true)
bound: B
Done.
+29
View File
@@ -0,0 +1,29 @@
--TEST--
Closure 042: Binding an instance to a non-scoped non-static closures gives it a dummy scope
--SKIPIF--
<?php if(!extension_loaded("reflection")) print "skip no reflection"; ?>
--FILE--
<?php
$c = function() { var_dump($this); };
$d = $c->bindTo(new stdClass);
$d();
$rm = new ReflectionFunction($d);
var_dump($rm->getClosureScopeClass()->name); //dummy sope is Closure
//should have the same effect
$d = $c->bindTo(new stdClass, NULL);
$d();
$rm = new ReflectionFunction($d);
var_dump($rm->getClosureScopeClass()->name); //dummy sope is Closure
echo "Done.\n";
--EXPECTF--
object(stdClass)#%d (0) {
}
string(7) "Closure"
object(stdClass)#%d (0) {
}
string(7) "Closure"
Done.
+86
View File
@@ -0,0 +1,86 @@
--TEST--
Closure 043: Scope/bounding combination invariants; static closures
--FILE--
<?php
/* Whether it's scoped or not, a static closure cannot have
* a bound instance. It should also not be automatically converted
* to a non-static instance when attempting to bind one */
$staticUnscoped = static function () { var_dump(isset(A::$priv)); var_dump(isset($this)); };
class A {
private static $priv = 7;
static function getStaticClosure() {
return static function() { var_dump(isset(A::$priv)); var_dump(isset($this)); };
}
}
$staticScoped = A::getStaticClosure();
echo "Before binding", "\n";
$staticUnscoped(); echo "\n";
$staticScoped(); echo "\n";
echo "After binding, null scope, no instance", "\n";
$d = $staticUnscoped->bindTo(null, null); $d(); echo "\n";
$d = $staticScoped->bindTo(null, null); $d(); echo "\n";
echo "After binding, null scope, with instance", "\n";
$d = $staticUnscoped->bindTo(new A, null); $d(); echo "\n";
$d = $staticScoped->bindTo(new A, null); $d(); echo "\n";
echo "After binding, with scope, no instance", "\n";
$d = $staticUnscoped->bindTo(null, 'A'); $d(); echo "\n";
$d = $staticScoped->bindTo(null, 'A'); $d(); echo "\n";
echo "After binding, with scope, with instance", "\n";
$d = $staticUnscoped->bindTo(new A, 'A'); $d(); echo "\n";
$d = $staticScoped->bindTo(new A, 'A'); $d(); echo "\n";
echo "Done.\n";
--EXPECTF--
Before binding
bool(false)
bool(false)
bool(true)
bool(false)
After binding, null scope, no instance
bool(false)
bool(false)
bool(false)
bool(false)
After binding, null scope, with instance
Warning: Cannot bind an instance to a static closure in %s on line %d
bool(false)
bool(false)
Warning: Cannot bind an instance to a static closure in %s on line %d
bool(false)
bool(false)
After binding, with scope, no instance
bool(true)
bool(false)
bool(true)
bool(false)
After binding, with scope, with instance
Warning: Cannot bind an instance to a static closure in %s on line %d
bool(true)
bool(false)
Warning: Cannot bind an instance to a static closure in %s on line %d
bool(true)
bool(false)
Done.
+78
View File
@@ -0,0 +1,78 @@
--TEST--
Closure 044: Scope/bounding combination invariants; non static closures
--FILE--
<?php
/* A non-static closure has a bound instance if it has a scope
* and does't have an instance if it has no scope */
$nonstaticUnscoped = function () { var_dump(isset(A::$priv)); var_dump(isset($this)); };
class A {
private static $priv = 7;
function getClosure() {
return function() { var_dump(isset(A::$priv)); var_dump(isset($this)); };
}
}
$a = new A();
$nonstaticScoped = $a->getClosure();
echo "Before binding", "\n";
$nonstaticUnscoped(); echo "\n";
$nonstaticScoped(); echo "\n";
echo "After binding, null scope, no instance", "\n";
$d = $nonstaticUnscoped->bindTo(null, null); $d(); echo "\n";
$d = $nonstaticScoped->bindTo(null, null); $d(); echo "\n";
echo "After binding, null scope, with instance", "\n";
$d = $nonstaticUnscoped->bindTo(new A, null); $d(); echo "\n";
$d = $nonstaticScoped->bindTo(new A, null); $d(); echo "\n";
echo "After binding, with scope, no instance", "\n";
$d = $nonstaticUnscoped->bindTo(null, 'A'); $d(); echo "\n";
$d = $nonstaticScoped->bindTo(null, 'A'); $d(); echo "\n";
echo "After binding, with scope, with instance", "\n";
$d = $nonstaticUnscoped->bindTo(new A, 'A'); $d(); echo "\n";
$d = $nonstaticScoped->bindTo(new A, 'A'); $d(); echo "\n";
echo "Done.\n";
--EXPECTF--
Before binding
bool(false)
bool(false)
bool(true)
bool(true)
After binding, null scope, no instance
bool(false)
bool(false)
bool(false)
bool(false)
After binding, null scope, with instance
bool(false)
bool(true)
bool(false)
bool(true)
After binding, with scope, no instance
bool(true)
bool(false)
bool(true)
bool(false)
After binding, with scope, with instance
bool(true)
bool(true)
bool(true)
bool(true)
Done.
+19
View File
@@ -0,0 +1,19 @@
--TEST--
Closure 045: Closures created in static methods are static, even without the keyword
--FILE--
<?php
class A {
static function foo() {
return function () {};
}
}
$a = A::foo();
$a->bindTo(new A);
echo "Done.\n";
--EXPECTF--
Warning: Cannot bind an instance to a static closure in %s on line %d
Done.
+70
View File
@@ -0,0 +1,70 @@
--TEST--
Closure 046: Rebinding: preservation of previous scope when "static" given as scope arg (same as closure #041)
--FILE--
<?php
/* It's impossible to preserve the previous scope when doing so would break
* the invariants that, for non-static closures, having a scope is equivalent
* to having a bound instance. */
$nonstaticUnscoped = function () { var_dump(isset(A::$priv)); var_dump(isset($this)); };
class A {
private static $priv = 7;
function getClosure() {
return function() { var_dump(isset(A::$priv)); var_dump(isset($this)); };
}
}
class B extends A {}
$a = new A();
$nonstaticScoped = $a->getClosure();
echo "Before binding", "\n";
$nonstaticUnscoped(); echo "\n";
$nonstaticScoped(); echo "\n";
echo "After binding, no instance", "\n";
$d = $nonstaticUnscoped->bindTo(null, "static"); $d(); echo "\n";
$d = $nonstaticScoped->bindTo(null, "static"); $d(); echo "\n";
//$d should have been turned to static
$d->bindTo($d);
echo "After binding, with same-class instance for the bound one", "\n";
$d = $nonstaticUnscoped->bindTo(new A, "static"); $d(); echo "\n";
$d = $nonstaticScoped->bindTo(new A, "static"); $d(); echo "\n";
echo "After binding, with different instance for the bound one", "\n";
$d = $nonstaticScoped->bindTo(new B, "static"); $d(); echo "\n";
echo "Done.\n";
--EXPECTF--
Before binding
bool(false)
bool(false)
bool(true)
bool(true)
After binding, no instance
bool(false)
bool(false)
bool(true)
bool(false)
Warning: Cannot bind an instance to a static closure in %s on line %d
After binding, with same-class instance for the bound one
bool(false)
bool(true)
bool(true)
bool(true)
After binding, with different instance for the bound one
bool(true)
bool(true)
Done.
+1 -1
View File
@@ -1,5 +1,5 @@
--TEST--
concat difffent types
concat different types
--INI--
precision=14
--FILE--
+3 -2
View File
@@ -1,5 +1,5 @@
--TEST--
Persistent case insensetive and user defined constants
Persistent case insensitive and user defined constants
--FILE--
<?php
var_dump(ZEND_THREAD_safe);
@@ -7,5 +7,6 @@ define("ZEND_THREAD_safe", 123);
var_dump(ZEND_THREAD_safe);
?>
--EXPECTF--
bool(%s)
Notice: Use of undefined constant ZEND_THREAD_safe - assumed 'ZEND_THREAD_safe' in %s on line %d
string(16) "ZEND_THREAD_safe"
int(123)
+9 -9
View File
@@ -24,7 +24,7 @@ Array
(
[0] => Array
(
[file] => %s/debug_backtrace_limit.php
[file] => %sdebug_backtrace_limit.php
[line] => 7
[function] => c
[args] => Array
@@ -38,7 +38,7 @@ Array
(
[0] => Array
(
[file] => %s/debug_backtrace_limit.php
[file] => %sdebug_backtrace_limit.php
[line] => 7
[function] => c
[args] => Array
@@ -49,7 +49,7 @@ Array
[1] => Array
(
[file] => %s/debug_backtrace_limit.php
[file] => %sdebug_backtrace_limit.php
[line] => 3
[function] => b
[args] => Array
@@ -63,7 +63,7 @@ Array
(
[0] => Array
(
[file] => %s/debug_backtrace_limit.php
[file] => %sdebug_backtrace_limit.php
[line] => 7
[function] => c
[args] => Array
@@ -74,7 +74,7 @@ Array
[1] => Array
(
[file] => %s/debug_backtrace_limit.php
[file] => %sdebug_backtrace_limit.php
[line] => 3
[function] => b
[args] => Array
@@ -85,7 +85,7 @@ Array
[2] => Array
(
[file] => %s/debug_backtrace_limit.php
[file] => %sdebug_backtrace_limit.php
[line] => 17
[function] => a
[args] => Array
@@ -99,7 +99,7 @@ Array
(
[0] => Array
(
[file] => %s/debug_backtrace_limit.php
[file] => %sdebug_backtrace_limit.php
[line] => 7
[function] => c
[args] => Array
@@ -110,7 +110,7 @@ Array
[1] => Array
(
[file] => %s/debug_backtrace_limit.php
[file] => %sdebug_backtrace_limit.php
[line] => 3
[function] => b
[args] => Array
@@ -121,7 +121,7 @@ Array
[2] => Array
(
[file] => %s/debug_backtrace_limit.php
[file] => %sdebug_backtrace_limit.php
[line] => 17
[function] => a
[args] => Array
+9 -9
View File
@@ -20,12 +20,12 @@ function c() {
a();
?>
--EXPECTF--
#0 c() called at [%s/debug_print_backtrace_limit.php:7]
#0 c() called at [%s/debug_print_backtrace_limit.php:7]
#1 b() called at [%s/debug_print_backtrace_limit.php:3]
#0 c() called at [%s/debug_print_backtrace_limit.php:7]
#1 b() called at [%s/debug_print_backtrace_limit.php:3]
#2 a() called at [%s/debug_print_backtrace_limit.php:17]
#0 c() called at [%s/debug_print_backtrace_limit.php:7]
#1 b() called at [%s/debug_print_backtrace_limit.php:3]
#2 a() called at [%s/debug_print_backtrace_limit.php:17]
#0 c() called at [%sdebug_print_backtrace_limit.php:7]
#0 c() called at [%sdebug_print_backtrace_limit.php:7]
#1 b() called at [%sdebug_print_backtrace_limit.php:3]
#0 c() called at [%sdebug_print_backtrace_limit.php:7]
#1 b() called at [%sdebug_print_backtrace_limit.php:3]
#2 a() called at [%sdebug_print_backtrace_limit.php:17]
#0 c() called at [%sdebug_print_backtrace_limit.php:7]
#1 b() called at [%sdebug_print_backtrace_limit.php:3]
#2 a() called at [%sdebug_print_backtrace_limit.php:17]
+9 -3
View File
@@ -1,12 +1,18 @@
--TEST--
Testing declare statement with several type values
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
die("skip Requires ext/mbstring");
}
?>
--INI--
zend.multibyte=1
--FILE--
<?php
declare(encoding = 1);
declare(encoding = 1123131232131312321);
declare(encoding = 112313123213131232100);
declare(encoding = NULL);
declare(encoding = 'utf-8');
declare(encoding = M_PI);
@@ -17,8 +23,8 @@ print 'DONE';
--EXPECTF--
Warning: Unsupported encoding [1] in %sdeclare_001.php on line %d
Warning: Unsupported encoding [1.1231312321313E+18] in %sdeclare_001.php on line %d
Warning: Unsupported encoding [1.1231312321313E+20] in %sdeclare_001.php on line %d
Warning: Unsupported encoding [] in %sdeclare_001.php on line %d
Fatal error: Cannot use constants as encoding in %sdeclare_001.php on line %d
Fatal error: Cannot use constants as encoding in %sdeclare_001.php on line %d
+3
View File
@@ -5,6 +5,9 @@ Testing declare statement with several type values
if (!ini_get("zend.multibyte")) {
die("skip Requires zend.multibyte=1");
}
if (!extension_loaded("mbstring")) {
die("skip Requires ext/mbstring");
}
?>
--FILE--
<?php
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Testing declare statement with several type values
--INI--
precision=15
zend.multibyte=1
--FILE--
<?php
declare(encoding = 1);
declare(encoding = 11111111111111);
declare(encoding = NULL);
declare(encoding = M_PI);
print 'DONE';
?>
--EXPECTF--
Warning: Unsupported encoding [1] in %sdeclare_003.php on line %d
Warning: Unsupported encoding [11111111111111] in %sdeclare_003.php on line %d
Warning: Unsupported encoding [] in %sdeclare_003.php on line %d
Fatal error: Cannot use constants as encoding in %sdeclare_003.php on line %d
+27
View File
@@ -0,0 +1,27 @@
--TEST--
Testing declare statement with several type values
--SKIPIF--
<?php
if (!ini_get("zend.multibyte")) {
die("skip Requires zend.multibyte=1");
}
?>
--FILE--
<?php
declare(encoding = 1);
declare(encoding = 1123131232131312321);
declare(encoding = NULL);
declare(encoding = M_PI);
print 'DONE';
?>
--EXPECTF--
Warning: Unsupported encoding [%d] in %sdeclare_004.php on line 3
Warning: Unsupported encoding [%f] in %sdeclare_004.php on line 4
Warning: Unsupported encoding [] in %sdeclare_004.php on line 5
Fatal error: Cannot use constants as encoding in %sdeclare_004.php on line 6
+1 -1
View File
@@ -22,5 +22,5 @@ var_dump(error_reporting());
echo "Done\n";
?>
--EXPECT--
int(30719)
int(32767)
Done
+1 -1
View File
@@ -30,5 +30,5 @@ echo "Done\n";
Notice: Undefined variable: undef_value in %s on line %d
Notice: Undefined variable: undef_name in %s on line %d
int(30719)
int(32767)
Done
+1 -1
View File
@@ -26,5 +26,5 @@ var_dump(error_reporting());
echo "Done\n";
?>
--EXPECTF--
int(30719)
int(32767)
Done
+1 -1
View File
@@ -26,5 +26,5 @@ var_dump(error_reporting());
echo "Done\n";
?>
--EXPECTF--
int(30719)
int(32767)
Done
+2 -2
View File
@@ -30,6 +30,6 @@ var_dump(error_reporting());
echo "Done\n";
?>
--EXPECTF--
int(30719)
int(30711)
int(32767)
int(32759)
Done
+150
View File
@@ -0,0 +1,150 @@
--TEST--
Calling method from array
--FILE--
<?php
class Hello {
public function world($x) {
echo "Hello, $x\n"; return $this;
}
}
class Hello2 {
static public function world($x) {
echo "Hello, $x\n";
}
}
class Magic {
public function __call($f, $a) {
printf("%s called (%s)!\n", __METHOD__, $f);
}
}
class Magic2 {
public static function __callStatic($f, $a) {
printf("%s called (%s)!\n", __METHOD__, $f);
}
}
class Magic3 {
public static function __callStatic($f, $a) {
printf("%s called (%s)!\n", __METHOD__, $f);
}
public function __call($f, $a) {
printf("%s called (%s)!\n", __METHOD__, $f);
}
}
$f = array('Hello','world');
var_dump($f('you'));
var_dump(call_user_func($f, 'you'));
printf("-----\n");
$h= new Hello;
$f = array($h,'world');
var_dump($f('again'));
var_dump(call_user_func($f, 'again'));
printf("-----\n");
function bar() {
return array(new Hello,'world');
}
$f = bar();
var_dump($f('there'));
var_dump(call_user_func($f, 'there'));
printf("-----\n");
$x = function ($c,$v) { return array($c, $v); };
$c = new Hello;
$m = 'world';
$f = $x($c, $m);
var_dump($f('devs'));
var_dump(call_user_func($f, 'devs'));
printf("-----\n");
$f = array(new Magic, 'foo');
$f();
call_user_func($f);
printf("-----\n");
$f = array('Magic2', 'foo');
$f();
call_user_func($f);
printf("-----\n");
$f = array('Magic3', 'foo');
$f();
call_user_func($f);
printf("-----\n");
$f = array(new Magic3, 'foo');
$f();
call_user_func($f);
printf("-----\n");
$f = array(new Hello2, 'world');
var_dump($f('you'));
var_dump(call_user_func($f, 'you'));
?>
--EXPECTF--
Strict Standards: Non-static method Hello::world() should not be called statically in %s on line %d
Hello, you
Notice: Undefined variable: this in %s on line %d
NULL
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method Hello::world() should not be called statically in %s on line %d
Hello, you
Notice: Undefined variable: this in %s on line %d
NULL
-----
Hello, again
object(Hello)#1 (0) {
}
Hello, again
object(Hello)#1 (0) {
}
-----
Hello, there
object(Hello)#2 (0) {
}
Hello, there
object(Hello)#2 (0) {
}
-----
Hello, devs
object(Hello)#4 (0) {
}
Hello, devs
object(Hello)#4 (0) {
}
-----
Magic::__call called (foo)!
Magic::__call called (foo)!
-----
Magic2::__callStatic called (foo)!
Magic2::__callStatic called (foo)!
-----
Magic3::__callStatic called (foo)!
Magic3::__callStatic called (foo)!
-----
Magic3::__call called (foo)!
Magic3::__call called (foo)!
-----
Hello, you
NULL
Hello, you
NULL
+9
View File
@@ -0,0 +1,9 @@
--TEST--
Argument parsing error #001
--FILE--
<?php
function foo($arg1 string) {}
?>
--EXPECTF--
Parse error: %s error, %s)%s in %sfunction_arguments_001.php on line %d
+9
View File
@@ -0,0 +1,9 @@
--TEST--
Argument parsing error #002
--FILE--
<?php
function foo($arg1/) {}
?>
--EXPECTF--
Parse error: %s error, %s)%s in %sfunction_arguments_002.php on line %d
-97
View File
@@ -1,97 +0,0 @@
--TEST--
Parameter type hint - Reflection
--FILE--
<?php
function test(int $a, double $b, string $c, boolean $d = true, resource $e, array $f = array(), object $g) {
}
$func = new ReflectionFunction('test');
Reflection::Export($func);
foreach ($func->getParameters() as $i => $param) {
printf(
"-- Parameter #%d: %s {\n".
" Allows NULL: %s\n".
" Hint Type: %s\n".
" Passed to by reference: %s\n".
" Is optional?: %s\n",
$i,
$param->getName(),
var_export($param->getClass(), 1),
$param->getTypeHint(),
var_export($param->allowsNull(), 1),
var_export($param->isPassedByReference(), 1),
$param->isOptional() ? 'yes' : 'no'
);
printf(" Int: %d | Double: %d | Bool: %d | String: %d | Resource: %d | Array: %d | Object: %d\n",
$param->isInt(), $param->isDouble(), $param->isBool(), $param->isString(),
$param->isResource(), $param->isArray(), $param->isObject());
print "}\n";
}
?>
--EXPECTF--
Function [ <user> function test ] {
@@ %s 3 - 4
- Parameters [7] {
Parameter #0 [ <required> integer $a ]
Parameter #1 [ <required> double $b ]
Parameter #2 [ <required> string $c ]
Parameter #3 [ <required> boolean $d ]
Parameter #4 [ <required> resource $e ]
Parameter #5 [ <required> array $f ]
Parameter #6 [ <required> object $g ]
}
}
-- Parameter #0: a {
Allows NULL: NULL
Hint Type: integer
Passed to by reference: false
Is optional?: false
Int: 1 | Double: 0 | Bool: 0 | String: 0 | Resource: 0 | Array: 0 | Object: 0
}
-- Parameter #1: b {
Allows NULL: NULL
Hint Type: double
Passed to by reference: false
Is optional?: false
Int: 0 | Double: 1 | Bool: 0 | String: 0 | Resource: 0 | Array: 0 | Object: 0
}
-- Parameter #2: c {
Allows NULL: NULL
Hint Type: string
Passed to by reference: false
Is optional?: false
Int: 0 | Double: 0 | Bool: 0 | String: 1 | Resource: 0 | Array: 0 | Object: 0
}
-- Parameter #3: d {
Allows NULL: NULL
Hint Type: boolean
Passed to by reference: false
Is optional?: false
Int: 0 | Double: 0 | Bool: 1 | String: 0 | Resource: 0 | Array: 0 | Object: 0
}
-- Parameter #4: e {
Allows NULL: NULL
Hint Type: resource
Passed to by reference: false
Is optional?: false
Int: 0 | Double: 0 | Bool: 0 | String: 0 | Resource: 1 | Array: 0 | Object: 0
}
-- Parameter #5: f {
Allows NULL: NULL
Hint Type: array
Passed to by reference: false
Is optional?: false
Int: 0 | Double: 0 | Bool: 0 | String: 0 | Resource: 0 | Array: 1 | Object: 0
}
-- Parameter #6: g {
Allows NULL: NULL
Hint Type: object
Passed to by reference: false
Is optional?: false
Int: 0 | Double: 0 | Bool: 0 | String: 0 | Resource: 0 | Array: 0 | Object: 1
}
-22
View File
@@ -1,22 +0,0 @@
--TEST--
Parameter type hint - Testing NULL when allowed
--FILE--
<?php
function test_int(int $a = null) {
}
test_int(null);
function test_double(double $a = null) {
}
test_double(null);
function test_bool(bool $a = null) {
}
test_bool(null);
print "Done";
?>
--EXPECT--
Done
-46
View File
@@ -1,46 +0,0 @@
--TEST--
Parameter type hint - Testing parameter with reference
--FILE--
<?php
/* string */
function test_string(string &$a) {
$a .= '!!!';
}
$str = 'foo';
test_string($str);
var_dump($str);
/* integer */
function test_int(int &$b) {
$b += 2;
}
$b = 2;
test_int($b);
var_dump($b);
/* object */
function test_obj(object &$c) {
$c->tested = 1;
}
$c = new stdclass;
test_obj($c);
var_dump($c);
?>
--EXPECT--
string(6) "foo!!!"
int(4)
object(stdClass)#1 (1) {
["tested"]=>
int(1)
}
--UEXPECT--
unicode(6) "foo!!!"
int(4)
object(stdClass)#1 (1) {
[u"tested"]=>
int(1)
}
-20
View File
@@ -1,20 +0,0 @@
--TEST--
Parameter type hint - Testing string type hint with reference
--FILE--
<?php
function test(string &$a) {
$a .= '!!!';
}
$x = 'foo';
test($x);
var_dump($x);
?>
--EXPECT--
string(6) "foo!!!"
--UEXPECT--
unicode(6) "foo!!!"
-17
View File
@@ -1,17 +0,0 @@
--TEST--
Parameter type hint - Testing default parameter value
--FILE--
<?php
function test(string &$a, integer $x = 1) {
var_dump($x);
}
$y = 'foo';
test($y, 2);
test($y);
?>
--EXPECT--
int(2)
int(1)
-28
View File
@@ -1,28 +0,0 @@
--TEST--
Parameter type hint - Testing with heredoc
--FILE--
<?php
function test(string $str) {
}
test(<<<FOO
test!
FOO
);
test(<<<'FOO'
test!
FOO
);
test(<<<"FOO"
test!
FOO
);
print "Ok!";
?>
--EXPECT--
Ok!
-22
View File
@@ -1,22 +0,0 @@
--TEST--
Parameter type hint - Testing default parameter values
--FILE--
<?php
function test(string $a, bool $b = NULL, integer $c, double $d = NULL, $e) {
print "ok\n";
}
test('foo', NULL, 1, NULL, 'bar');
test('foo', true, 0, -1., NULL);
test('true', false, -1, 2.2222, 1.1);
test('1.1', false, -1, 11111111111111111111111111, true);
test('1', false, -1, NULL, new stdClass);
?>
--EXPECT--
ok
ok
ok
ok
ok
-14
View File
@@ -1,14 +0,0 @@
--TEST--
Parameter type hint - Testing default parameter values as constants
--FILE--
<?php
function test(int $foo = PHP_INT_MAX) {
print "ok\n";
}
test();
?>
--EXPECT--
ok
-18
View File
@@ -1,18 +0,0 @@
--TEST--
Parameter type hint - formatting
--FILE--
<?php
function test(int$foo) { print "ok\n";}
test(1);
function test2(int
$foo) { print "ok\n";}
test2(1);
?>
--EXPECT--
ok
ok
-15
View File
@@ -1,15 +0,0 @@
--TEST--
Parameter type hint - scalar type hints, default value
--FILE--
<?php
function bar1(scalar $param = null) {}
function bar2(scalar $param = 123) {}
function bar3(scalar $param = false) {}
function bar4(scalar $param = 988.99) {}
function bar5(scalar $param = "1233") {}
function bar6(scalar $param = array(1,2,3)) {}
?>
--EXPECTF--
Fatal error: Default value for parameters with scalar type hint can only be scalar or NULL in %s on line 8
+11
View File
@@ -0,0 +1,11 @@
--TEST--
Indirect method call by array - Invalid class name
--FILE--
<?php
$arr = array('a', 'b');
$arr();
?>
--EXPECTF--
Fatal error: Class 'a' not found in %s on line %d
+11
View File
@@ -0,0 +1,11 @@
--TEST--
Indirect method call by array - Invalid method name
--FILE--
<?php
$arr = array('stdclass', 'b');
$arr();
?>
--EXPECTF--
Fatal error: Call to undefined method stdClass::b() in %s on line %d
+38
View File
@@ -0,0 +1,38 @@
--TEST--
Indirect method call by array - Calling __call() and __callStatic()
--FILE--
<?php
class foo {
public function __call($a, $b) {
printf("From %s:\n", __METHOD__);
var_dump($a);
var_dump($this);
}
static public function __callStatic($a, $b) {
printf("From %s:\n", __METHOD__);
var_dump($a);
var_dump($this);
}
}
$arr = array('foo', 'abc');
$arr();
$foo = new foo;
$arr = array($foo, 'abc');
$arr();
?>
--EXPECTF--
From foo::__callStatic:
string(3) "abc"
Notice: Undefined variable: this in %s on line %d
NULL
From foo::__call:
string(3) "abc"
object(foo)#%d (0) {
}
+71
View File
@@ -0,0 +1,71 @@
--TEST--
Indirect method call by array - Testing exception and method magics
--FILE--
<?php
class foo {
static public function abc() {
throw new Exception('foo');
}
public function __call($a, $b) {
printf("From %s:\n", __METHOD__);
throw new Exception($a);
}
static public function __callStatic($a, $b) {
printf("From %s:\n", __METHOD__);
throw new Exception($a);
}
}
$arr = array('foo', 'abc');
try {
$arr();
}
catch (Exception $e) {
echo $e->getMessage(), "\n";
}
$arr = array('foo', '123');
try {
$arr();
}
catch (Exception $e) {
echo $e->getMessage(), "\n";
}
echo "------\n";
$foo = new foo;
$arr = array($foo, 'abc');
try {
$arr();
}
catch (Exception $e) {
echo $e->getMessage(), "\n";
}
$foo = new foo;
$arr = array($foo, '123');
try {
$arr();
}
catch (Exception $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECTF--
foo
From foo::__callStatic:
123
------
foo
From foo::__call:
123
+1 -1
View File
@@ -38,6 +38,6 @@ bool(true)
bool(false)
bool(false)
bool(true)
bool(false)
bool(true)
AUTOLOAD 'X1'
bool(false)
+2 -4
View File
@@ -1,7 +1,5 @@
--TEST--
Testing isset accessing undefined array itens and properties
--SKIPIF--
<?php if (version_compare(zend_version(), '2.4.0', '>=')) die('skip ZendEngine 2.3 or below needed'); ?>
--FILE--
<?php
@@ -31,10 +29,10 @@ bool(true)
bool(false)
bool(false)
Notice: Undefined variable: d in %s on line %d
Notice: Undefined variable: c in %s on line %d
Notice: Undefined variable: d in %s on line %d
Notice: Trying to get property of non-object in %s on line %d
bool(false)
bool(true)
+26
View File
@@ -0,0 +1,26 @@
--TEST--
Bug #55137 (Changing trait static method visibility)
--FILE--
<?php
trait A {
protected static function foo() { echo "abc\n"; }
private static function bar() { echo "def\n"; }
}
class B {
use A {
A::foo as public;
A::bar as public baz;
}
}
B::foo();
B::baz();
?>
--EXPECT--
abc
def
+48
View File
@@ -0,0 +1,48 @@
--TEST--
Bug #55214 (Use of __CLASS__ within trait returns trait name not class name)
--FILE--
<?php
trait ATrait {
public static function get_class_name() {
return __CLASS__;
}
public function get_class_name_obj() {
return __CLASS__;
}
}
trait Indirect {
use ATrait;
}
class SomeClass {
use ATrait;
}
class UsingIndirect {
use Indirect;
}
$r = SomeClass::get_class_name();
var_dump($r);
$o = new SomeClass();
$r = $o->get_class_name_obj();
var_dump($r);
$r = UsingIndirect::get_class_name();
var_dump($r);
$o = new UsingIndirect();
$r = $o->get_class_name_obj();
var_dump($r);
?>
--EXPECT--
string(9) "SomeClass"
string(9) "SomeClass"
string(13) "UsingIndirect"
string(13) "UsingIndirect"
+46
View File
@@ -0,0 +1,46 @@
--TEST--
Bug #55355 (Abstract functions required by a trait are not correctly found when implemented in an ancestor class)
--FILE--
<?php
// A trait that has a abstract function
trait ATrait {
function bar() {
$this->foo();
}
abstract function foo();
}
// A class on the second level in the
// inheritance chain
class Level2Impl {
function foo() {}
}
class Level1Indirect extends Level2Impl {}
// A class on the first level in the
// inheritance chain
class Level1Direct {
function foo() {}
}
// Trait Uses
class Direct {
use ATrait;
function foo() {}
}
class BaseL2 extends Level1Indirect {
use ATrait;
}
class BaseL1 extends Level1Direct {
use ATrait;
}
echo 'DONE';
?>
--EXPECT--
DONE
+28
View File
@@ -0,0 +1,28 @@
--TEST--
Bug #55372 (Literal handling in methods is inconsistent, causing memory corruption)
--FILE--
<?php
trait testTrait {
public function testMethod() {
if (1) {
$letters1 = range('a', 'z', 1);
$letters2 = range('A', 'Z', 1);
$letters1 = 'foo';
$letters2 = 'baarr';
var_dump($letters1);
var_dump($letters2);
}
}
}
class foo {
use testTrait;
}
$x = new foo;
$x->testMethod();
?>
--EXPECT--
string(3) "foo"
string(5) "baarr"
+35
View File
@@ -0,0 +1,35 @@
--TEST--
Bug #55424 (Method got missing from class when a trait defined an abstract method to express a requirement)
--FILE--
<?php
trait ATrait
{
function setRequired()
{
$this->setAttribute();
}
abstract function setAttribute();
}
class Base
{
function setAttribute() { }
}
class MyClass extends Base
{
use ATrait;
}
$i = new Base();
$i->setAttribute();
$t = new MyClass();
/* setAttribute used to disappear for no good reason. */
$t->setRequired();
echo 'DONE';
?>
--EXPECT--
DONE
+15
View File
@@ -0,0 +1,15 @@
--TEST--
Bug #55524 Traits should not be able to extend a class
--FILE--
<?php
class Base {}
trait Foo extends Base {
function bar() {}
}
echo 'DONE';
?>
--EXPECTF--
Fatal error: A trait (Foo) cannot extend a class in %s on line %d
@@ -0,0 +1,23 @@
--TEST--
Properties are considered incompatible if they are different in any of their
defined characteristics. Thus, initialization values have to be equal, too.
--FILE--
<?php
error_reporting(E_ALL);
trait foo
{
public $zoo = 'foo::zoo';
}
class baz
{
use foo;
public $zoo = 'baz::zoo';
}
$obj = new baz();
echo $obj->zoo, "\n";
?>
--EXPECTF--
Fatal error: baz and foo define the same property ($zoo) in the composition of baz. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
Loaded 100 of 1611 files, more files were not shown because too many files have changed in this diff. Show more