Stanislav Malyshev [Tue, 3 Jan 2017 05:01:35 +0000 (21:01 -0800)]
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
Fix bug #73737 FPE when parsing a tag format
Fix bug #73773 - Seg fault when loading hostile phar
Fix bug #73825 - Heap out of bounds read on unserialize in finish_nested_data()
Fix bug #73768 - Memory corruption when loading hostile phar
Fix int overflows in phar (bug #73764)
Stanislav Malyshev [Tue, 3 Jan 2017 04:56:32 +0000 (20:56 -0800)]
Merge branch 'PHP-5.6.30' into PHP-5.6
* PHP-5.6.30:
Fix bug #73737 FPE when parsing a tag format
Fix bug #73773 - Seg fault when loading hostile phar
Fix bug #73825 - Heap out of bounds read on unserialize in finish_nested_data()
Fix bug #73768 - Memory corruption when loading hostile phar
Fix int overflows in phar (bug #73764)
Anatol Belski [Tue, 3 Jan 2017 00:56:27 +0000 (01:56 +0100)]
set exclude AppVeyor branches and ignore builds on NEWS updates
Nikita Popov [Tue, 3 Jan 2017 01:12:28 +0000 (02:12 +0100)]
Fix early free
Anatol Belski [Tue, 3 Jan 2017 00:07:55 +0000 (01:07 +0100)]
Disable pdb generation for AppVeyor
It is not needed for the test runs and would speedup the compilation
phase.
Nikita Popov [Mon, 2 Jan 2017 22:35:27 +0000 (23:35 +0100)]
Add NEWS entries
Nikita Popov [Thu, 15 Dec 2016 16:22:08 +0000 (17:22 +0100)]
Optimize get_browser() using prefix and contains checks
Avoid expensive regex compilations by checking for prefix
and contained segments beforehand.
Nikita Popov [Thu, 15 Dec 2016 14:12:48 +0000 (15:12 +0100)]
Optimize browscap loading and representation
Avoid many string duplications, use interning (browscap-local, of
course), reduce pattern size, use more compact key-value
representation, build result array only on demand.
Nikita Popov [Sun, 1 Jan 2017 21:19:01 +0000 (22:19 +0100)]
Add get_browser() test against larger corpus
Testing corpus provided by Anatol against current browscap.ini lite.
About 30% of all agents are not recognized by this browscap.ini,
but this should give us decent coverage.
Mitch Hagstrand [Mon, 2 Jan 2017 15:49:32 +0000 (07:49 -0800)]
Fix for nowait.phpt failing intermittently
The parent process was releasing the child semaphore
after the child process continued execution. Now
the child semaphore is released before the child
process continues execution.
vanviegen [Wed, 21 Dec 2016 15:37:17 +0000 (16:37 +0100)]
Fix for sporadic segfault with MYSQLI_OPT_INT_AND_FLOAT_NATIVE
Fixes bug #73800
news entry for PR #2250
Joe Watkins [Mon, 2 Jan 2017 11:57:45 +0000 (11:57 +0000)]
news entry for PR #2267
Arnout Boks [Mon, 2 Jan 2017 10:47:49 +0000 (11:47 +0100)]
Fixed #67474 (getElementsByTagNameNS and default namespace)
This bug was caused by the fact that dom_get_elements_by_tag_name_ns_raw
uses an empty string to filter on the default namespace (as NULL means
'no filter'), whereas in the node itself the default namespace is
signalled by nodep->ns being null.
Arnout Boks [Mon, 2 Jan 2017 10:46:58 +0000 (11:46 +0100)]
Add (failing) testcase for bug #67474
Joe Watkins [Mon, 2 Jan 2017 09:44:02 +0000 (09:44 +0000)]
Merge branch 'PHP-7.0' of git.php.net:/php-src into PHP-7.0
* 'PHP-7.0' of git.php.net:/php-src: (146 commits)
Flush stderr on win32 in cli_log_message
Fixed bug #73154
FIx bug #70213
Fix dom class can't be inherited by the internal class
Another try at making concat_003 more reliable
Fix flaky openssl_pkey_new test
Make Opcache tests using the cli server more reliable
Revert "Fix #73530: Unsetting result set may reset other result set"
define php_ap_map_http_request_error function for older httpd only
add old versions of httpd support
Disable AppVeyor fast_finish
Makes the sapi web server and curl tests more reliable
Fixes the curl tests to be more reliable in Travis CI
Interpretation of curl_setopt values for boolean parameters
Fixes #65689. PDO_Firebrid / exec() does not free allocated statement.
Fix alpn_ctx leaking in openssl
Fixed bug #73373 (deflate_add does not verify that output was not truncated)
Fix IS_UNDEF comparisons in opcache
Fixed bug #73704 (phpdbg shows the wrong line in files with shebang)
Increase timing quota for small string concat test
...
Mitch Hagstrand [Mon, 2 Jan 2017 05:19:14 +0000 (21:19 -0800)]
Fix nowait.phpt to no longer depend on sleeping
In Travis CI the nowait.phpt test sometimes fails because of
the usleep() not being long enough ensure proper
execution order. Instead of depending on sleeping the
test now uses two semaphores to guarantee execution order.
Nikita Popov [Tue, 27 Dec 2016 21:44:46 +0000 (22:44 +0100)]
Flush stderr on win32 in cli_log_message
This allows us to unfork a bunch of tests for Windows.
Nikita Popov [Sun, 1 Jan 2017 18:24:41 +0000 (19:24 +0100)]
Fixed bug #73154
The object that is being serialized may be destroyed during the
execution of __sleep(), so operate on a copy instead.
Nikita Popov [Sun, 1 Jan 2017 13:12:26 +0000 (14:12 +0100)]
Merge branch 'PHP-5.6' into PHP-7.0
Nikita Popov [Sun, 1 Jan 2017 13:10:49 +0000 (14:10 +0100)]
FIx bug #70213
dreamszhu [Sun, 1 Jan 2017 09:10:28 +0000 (17:10 +0800)]
Fix dom class can't be inherited by the internal class
Stanislav Malyshev [Sun, 1 Jan 2017 03:31:49 +0000 (19:31 -0800)]
Fix bug #73737 FPE when parsing a tag format
Stanislav Malyshev [Sun, 1 Jan 2017 02:47:50 +0000 (18:47 -0800)]
Fix bug #73773 - Seg fault when loading hostile phar
Stanislav Malyshev [Sat, 31 Dec 2016 00:59:46 +0000 (16:59 -0800)]
Fix bug #73825 - Heap out of bounds read on unserialize in finish_nested_data()
Stanislav Malyshev [Fri, 30 Dec 2016 23:57:24 +0000 (15:57 -0800)]
Fix bug #73768 - Memory corruption when loading hostile phar
Stanislav Malyshev [Fri, 30 Dec 2016 23:34:46 +0000 (15:34 -0800)]
Fix int overflows in phar (bug #73764)
Christoph M. Becker [Fri, 30 Dec 2016 12:56:34 +0000 (13:56 +0100)]
Merge branch 'PHP-7.0' of https://git.php.net/repository/php-src into PHP-7.0
* 'PHP-7.0' of https://git.php.net/repository/php-src:
Another try at making concat_003 more reliable
Fix flaky openssl_pkey_new test
Make Opcache tests using the cli server more reliable
Nikita Popov [Thu, 29 Dec 2016 20:39:40 +0000 (21:39 +0100)]
Another try at making concat_003 more reliable
Use array_fill() for the array population loop -- this isn't the
part that is being tested and on PHP 7.0 w/o opcache this duplicates
the inner array a lot.
Nikita Popov [Thu, 29 Dec 2016 19:59:28 +0000 (20:59 +0100)]
Fix flaky openssl_pkey_new test
Public key size may vary by one bit... switch to using %d for
key sizes.
Mitch Hagstrand [Thu, 29 Dec 2016 03:29:36 +0000 (19:29 -0800)]
Make Opcache tests using the cli server more reliable
Same fix already applied to ext/curl/tests/server.inc
and sapi/cli/tests/php_cli_server.inc
1. Increases the amount of time for the PHP built-in server to accept a connection
2. Outputs an error if the PHP built-in server fails
Christoph M. Becker [Thu, 29 Dec 2016 12:31:18 +0000 (13:31 +0100)]
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
Revert "Fix #73530: Unsetting result set may reset other result set"
# Conflicts:
# ext/sqlite3/sqlite3.c
Christoph M. Becker [Thu, 29 Dec 2016 11:41:39 +0000 (12:41 +0100)]
Revert "Fix #73530: Unsetting result set may reset other result set"
This reverts commit
eb570294a289b45d0dd38efc71065d6b0d314c4b.
That commit caused a regression, so it's probably best to revert it, and
to tackle the issue for the next minor release.
Xinchen Hui [Thu, 29 Dec 2016 07:46:47 +0000 (15:46 +0800)]
Merge branch 'bugfix_timeout_61471' of https://github.com/axot/php-src into PHP-7.0
* 'bugfix_timeout_61471' of https://github.com/axot/php-src:
define php_ap_map_http_request_error function for older httpd only
add old versions of httpd support
typo fixed
bug fixed #61471 in apache2handler
Zheng SHAO [Thu, 29 Dec 2016 04:00:31 +0000 (13:00 +0900)]
define php_ap_map_http_request_error function for older httpd only
Zheng SHAO [Wed, 28 Dec 2016 10:02:41 +0000 (19:02 +0900)]
add old versions of httpd support
Nikita Popov [Tue, 27 Dec 2016 21:20:40 +0000 (22:20 +0100)]
Disable AppVeyor fast_finish
As NTS and TS fail in different ways, we want to see both.
Mitch Hagstrand [Fri, 23 Dec 2016 20:07:47 +0000 (12:07 -0800)]
Makes the sapi web server and curl tests more reliable
1. Increased the time for the sapi/cli/tests/php_cli_server.inc to accept connections.
2. sapi/cli/tests/php_cli_server.inc has errors messages and a `stop` function.
3. bug67429.phpt uses the `stop` function to shutdown the webserver before starting a new one.
4. Removed ext/curl/tests/bug48203_multi-win32.phpt test now that ext/curl/tests/bug48203_multi.phpt
runs on Windows also.
Mitch Hagstrand [Tue, 20 Dec 2016 10:37:48 +0000 (02:37 -0800)]
Fixes the curl tests to be more reliable in Travis CI
1. Increases the amount of time for the PHP built-in server to accept a connection
2. Outputs an error if the PHP built-in server fails
3. In bug48203_multi.phpt the test no longer starts and stops multiple PHP built-in servers
dedal.qq [Tue, 13 Dec 2016 21:52:16 +0000 (00:52 +0300)]
Interpretation of curl_setopt values for boolean parameters
Dorin Marcoci [Sat, 24 Dec 2016 11:57:03 +0000 (13:57 +0200)]
Fixes #65689. PDO_Firebrid / exec() does not free allocated statement.
Bob Weinand [Thu, 22 Dec 2016 22:34:07 +0000 (23:34 +0100)]
Fix alpn_ctx leaking in openssl
Bob Weinand [Thu, 22 Dec 2016 14:29:17 +0000 (15:29 +0100)]
Fixed bug #73373 (deflate_add does not verify that output was not truncated)
Sébastien Santoro [Wed, 21 Dec 2016 21:14:04 +0000 (21:14 +0000)]
Fix IS_UNDEF comparisons in opcache
These conditions were formerly `!q->pData` and `!p->pData`, and should
now be detected as undefined variables, using the special type IS_UNDEF.
Incidentally, this syntax raised a logical-not-parentheses compiler
warning, now gone.
Bob Weinand [Wed, 21 Dec 2016 23:38:47 +0000 (00:38 +0100)]
Fixed bug #73704 (phpdbg shows the wrong line in files with shebang)
Nikita Popov [Wed, 21 Dec 2016 20:27:47 +0000 (21:27 +0100)]
Increase timing quota for small string concat test
Test is regularly failing on Travis.
David Walker [Tue, 20 Dec 2016 22:48:43 +0000 (15:48 -0700)]
Fix #73753 - Unpacked Arrays and Duplication
Bob Weinand [Wed, 21 Dec 2016 01:42:23 +0000 (02:42 +0100)]
Fix issue with -- in phpdbg command line
Dmitry Stogov [Tue, 20 Dec 2016 13:48:57 +0000 (16:48 +0300)]
Fixed bug #73792 (invalid foreach loop hangs script)
Zheng SHAO [Mon, 19 Dec 2016 15:57:22 +0000 (00:57 +0900)]
Fixed NEWS conflicts
Anatol Belski [Mon, 19 Dec 2016 00:07:08 +0000 (01:07 +0100)]
update NEWS
Dorin Marcoci [Sat, 17 Dec 2016 19:34:32 +0000 (21:34 +0200)]
Compatibility with Firebird & Oracle select syntax.
Anatol Belski [Sun, 18 Dec 2016 23:50:29 +0000 (00:50 +0100)]
fix proto
Dorin Marcoci [Thu, 15 Dec 2016 08:57:45 +0000 (10:57 +0200)]
Cursor is not opened on singleton selects.
Test case for unregistered bug on FB3 singleton selects
Set error mode to warning instead of exception.
Anatol Belski [Sun, 18 Dec 2016 20:16:35 +0000 (21:16 +0100)]
fix arg spec and datatype, follow up on 73594
Bruce Weirdan [Fri, 25 Nov 2016 02:14:14 +0000 (04:14 +0200)]
Fixed bug #73594
Skip the tests when local resolver does not behave
* Added SKIPIF sections to check local resolver
* Added test to check $authns parameter
Nikita Popov [Sun, 18 Dec 2016 16:10:19 +0000 (17:10 +0100)]
Fix bug #46103
Nikita Popov [Sun, 18 Dec 2016 12:16:25 +0000 (13:16 +0100)]
Add test for get_browser() in object mode
All other tests only check array return values...
Anatol Belski [Sat, 17 Dec 2016 19:45:22 +0000 (20:45 +0100)]
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
fix C89 compat
Anatol Belski [Sat, 17 Dec 2016 19:43:32 +0000 (20:43 +0100)]
fix C89 compat
Anatol Belski [Sat, 17 Dec 2016 12:12:34 +0000 (13:12 +0100)]
replace default appveyor build version
Zheng SHAO [Sat, 17 Dec 2016 11:26:09 +0000 (20:26 +0900)]
typo fixed
Anatol Belski [Sat, 17 Dec 2016 10:26:13 +0000 (11:26 +0100)]
add Appveyor fast_fail
Anatol Belski [Sat, 17 Dec 2016 10:25:06 +0000 (11:25 +0100)]
improve error check
Zheng SHAO [Sat, 17 Dec 2016 04:37:58 +0000 (13:37 +0900)]
bug fixed #61471 in apache2handler
Anatol Belski [Fri, 16 Dec 2016 21:59:47 +0000 (22:59 +0100)]
turn mcrypt back on for Appveyor runs
(cherry picked from commit
fca2312fbecbc8eb44639d5141bfeae48976206b)
Anatol Belski [Fri, 16 Dec 2016 10:53:41 +0000 (11:53 +0100)]
add build status badge
(cherry picked from commit
3a886c9d20f450545a0d93bb4fc974e28a50df85)
Anatol Belski [Fri, 16 Dec 2016 10:48:08 +0000 (11:48 +0100)]
add scripts for AppVeyor integration
(cherry picked from commit
c737d6fb495ee986f7819472db861aa9e1bf42b1)
Sara Golemon [Tue, 13 Dec 2016 05:46:49 +0000 (21:46 -0800)]
Silence warning from unhandled enum
(cherry picked from commit
57bbe2c140752f491b1fa24336b817bd48f65a93)
Anatol Belski [Sun, 11 Dec 2016 01:52:02 +0000 (02:52 +0100)]
fix leaking streams and memory mapped files
(cherry picked from commit
f1ff23095b1a4fe6d6a65331dda7832ae02eb1a1)
Nikita Popov [Thu, 15 Dec 2016 21:16:44 +0000 (22:16 +0100)]
Fix stack management in ini scanner
Anatol Belski [Thu, 15 Dec 2016 11:20:37 +0000 (12:20 +0100)]
make timing check more forgiving in these tests
Particularly on slower VMs, the sporadic fails can still happen.
The timing is kept in an uncritical range, but allows the tests
pass there. Mayby, it'd make sense to introduce a new group for
this kind of tests, so tests requiring exact time measurement
can be avoided on unsuitable environments.
Matteo Beccati [Thu, 15 Dec 2016 08:31:54 +0000 (09:31 +0100)]
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
Skip tests when secure_file_priv dir not writable
Matteo Beccati [Thu, 15 Dec 2016 08:31:00 +0000 (09:31 +0100)]
Skip tests when secure_file_priv dir not writable
Yasuo Ohgaki [Thu, 15 Dec 2016 07:16:45 +0000 (16:16 +0900)]
Add missing UPGRADING entry. Manual is updated before 7.0 release.
Anatol Belski [Wed, 14 Dec 2016 18:53:55 +0000 (19:53 +0100)]
extend skip section
The day light offset is calculated based on the system TZ, so with
an unsuitable one there's no way to workaround the false positives.
Nikita Popov [Wed, 14 Dec 2016 17:10:36 +0000 (18:10 +0100)]
Partially fix bug #70492
The libmagic portion is missing.
Anatol Belski [Wed, 14 Dec 2016 11:33:13 +0000 (12:33 +0100)]
cleanup temporary data
Nikita Popov [Tue, 13 Dec 2016 16:54:30 +0000 (17:54 +0100)]
More fixes for bug #73089
Insert a lot more DEREFs. Some may not be necessary, but better
safe than sorry. I'm thinking the soap_hash_str_find_deref function
should become part of the zend_hash API -- we need this in many
places.
Andrey Hristov [Mon, 12 Dec 2016 19:52:36 +0000 (21:52 +0200)]
Add a bit more test cases (edge cases) to the BIT test case
Andrey Hristov [Mon, 12 Dec 2016 19:28:33 +0000 (21:28 +0200)]
Add a test case to test fetching of multiple rows with bit values.
Andrey Hristov [Mon, 12 Dec 2016 19:11:02 +0000 (21:11 +0200)]
Fix off by 1 problem.
The problem was manifestated only with BIT columns and only when more than
one row was fetched. The problem was coming from the fact that in pre-7.0
times mysqlnd was using a no-copy optimization. This optimization kept the
strings (and also the BIT mask equivalents as strings) in the packet and the
zval referred to them. 7.0+ zvals cannot use no-copy and always copy. Because
of this the allocated memory for the packet was reduced by 1 by the person who
ported the driver, but the starting address of the bit area wasn't reduced.
Because of this the bit_area started at wrong address and the length decoded
wrong.
Anatol Belski [Mon, 12 Dec 2016 00:54:22 +0000 (01:54 +0100)]
better way to get ACP
Anatol Belski [Mon, 12 Dec 2016 00:26:06 +0000 (01:26 +0100)]
fix datatype for zpp, yet a followup on bug #73679
Anatol Belski [Sun, 11 Dec 2016 16:39:08 +0000 (17:39 +0100)]
update NEWS
Anatol Belski [Sun, 11 Dec 2016 16:06:55 +0000 (17:06 +0100)]
Fixed bug #73679 DOTNET read access violation using invalid codepage
Anatol Belski [Thu, 8 Dec 2016 16:15:06 +0000 (17:15 +0100)]
fix uninitialized member
Ferenc Kovacs [Thu, 8 Dec 2016 06:09:41 +0000 (07:09 +0100)]
Merge branch 'PHP-5.6' into PHP-7.0
Ferenc Kovacs [Thu, 8 Dec 2016 06:05:32 +0000 (07:05 +0100)]
update NEWS
Anatol Belski [Thu, 8 Dec 2016 02:24:18 +0000 (03:24 +0100)]
git clean section
Anatol Belski [Wed, 7 Dec 2016 20:22:34 +0000 (21:22 +0100)]
update NEWS
Dorin Marcoci [Wed, 7 Dec 2016 20:06:11 +0000 (21:06 +0100)]
Fixed bug #72931 PDO_FIREBIRD with Firebird 3.0 not work on returning statement
Markus Staab [Mon, 5 Dec 2016 19:57:03 +0000 (20:57 +0100)]
Fixed typo in skipif error message
Dmitry Stogov [Wed, 7 Dec 2016 12:10:59 +0000 (15:10 +0300)]
Check if PHP is in execution state.
Anatol Belski [Tue, 6 Dec 2016 19:25:27 +0000 (20:25 +0100)]
update NEWS
Bob Weinand [Tue, 6 Dec 2016 17:27:31 +0000 (18:27 +0100)]
Fixed issue getting executable lines from custom wrappers
See also krakjoe/phpdbg#161
Anatol Belski [Tue, 6 Dec 2016 15:17:28 +0000 (16:17 +0100)]
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
fix leak, take 2
Anatol Belski [Tue, 6 Dec 2016 15:12:39 +0000 (16:12 +0100)]
fix leak, take 2
Anatol Belski [Tue, 6 Dec 2016 13:42:59 +0000 (14:42 +0100)]
fix leak, take on 7.x
Anatol Belski [Tue, 6 Dec 2016 13:36:52 +0000 (14:36 +0100)]
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
fix leak, take on 5.6
Anatol Belski [Tue, 6 Dec 2016 13:34:27 +0000 (14:34 +0100)]
fix leak, take on 5.6