Nikita Popov
32fbd2489f
Regenerate stubs
...
Looks like these GD changes got lost along the way...
2019-12-30 12:27:31 +01:00
Nikita Popov
d8bd113b51
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add test for bug #79031
Revert "Increase serialize_lock while decoding session"
2019-12-30 11:31:56 +01:00
Nikita Popov
fcaf7cbd64
Add test for bug #79031
...
Fixed by preceding revert.
2019-12-30 11:31:27 +01:00
Nikita Popov
ed3811e781
Revert "Increase serialize_lock while decoding session"
...
This reverts commit b8ef7c35ab .
See bug #79031 . The semantics of serialize locking aren't quite
correct right now, and the use of the lock in this particular
place makes us hit the issue in a common case. I'm reverting this
commit for PHP 7.4 and will try to fix this properly for PHP 8,
as I believe it will require ABI breakage.
2019-12-30 11:27:13 +01:00
Christoph M. Becker
e1559b51cd
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add missing skipif clause
2019-12-28 11:02:03 +01:00
Christoph M. Becker
935a61d034
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add missing skipif clause
2019-12-28 11:01:22 +01:00
Christoph M. Becker
1aa419dcdc
Add missing skipif clause
2019-12-28 11:00:37 +01:00
Christoph M. Becker
86675dd3f9
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #79033 : Curl timeout error with specific url and post
2019-12-28 10:49:56 +01:00
Christoph M. Becker
6d1dff6f3d
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #79033 : Curl timeout error with specific url and post
2019-12-28 10:48:59 +01:00
Christoph M. Becker
c47b18a222
Fix #79033 : Curl timeout error with specific url and post
...
We must not set an empty mime structure as `CURLOPT_MIMEPOST`; instead
we set it to `NULL` if `CURLOPT_POSTFIELDS` has been set to an empty
array.
2019-12-28 10:47:03 +01:00
Nikita Popov
184f118d3f
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Handle empty password fast path in caching_sha2_password
Handle error response during caching_sha2_password auth
Add support for caching_sha2_password in change user authentication
Fix unix socket check during caching_sha2_password
Support auth switch request during caching sha2 auth
2019-12-27 17:31:27 +01:00
Nikita Popov
32cd373dfd
Handle empty password fast path in caching_sha2_password
...
If an empty password is used, no additional packets are exchanged
during caching_sha2_password auth. We're only looking for an
OK/ERR response.
2019-12-27 17:27:45 +01:00
Nikita Popov
813d4a00b4
Handle error response during caching_sha2_password auth
...
In particular, this fixes handling of expired passwords.
2019-12-27 17:27:45 +01:00
Nikita Popov
e7e1254f3e
Add support for caching_sha2_password in change user authentication
...
Same as for connection handshakes.
2019-12-27 17:27:45 +01:00
Nikita Popov
03ee36d1c5
Fix unix socket check during caching_sha2_password
...
The fact that conn->unix_socket is set does not mean that a Unix
socket is actually in use -- this member is set in a default
configuration.
Instead check whether a unix_socket stream ops is used.
2019-12-27 17:27:41 +01:00
Nikita Popov
6225137b4a
Support auth switch request during caching sha2 auth
2019-12-27 17:27:04 +01:00
Nikita Popov
7e130df249
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Don't use PASSWORD() function in test
Specify explicit row order in PDO MySQL test
Skip bug77956.phpt if local_infile disabled on server
Don't check TIMESTAMP NOT NULL in fetch_field_flags test
Don't test the RENAME DATABASE query
Make GeomFromText tests compatible with MySQL 8
2019-12-27 17:26:42 +01:00
Nikita Popov
b0efd18f78
Don't use PASSWORD() function in test
...
Doesn't exist anymore in MySQL 8.
2019-12-27 17:26:15 +01:00
Nikita Popov
248c783e7d
Specify explicit row order in PDO MySQL test
2019-12-27 17:25:58 +01:00
Nikita Popov
23d4659635
Skip bug77956.phpt if local_infile disabled on server
2019-12-27 17:25:53 +01:00
Nikita Popov
6572d9149d
Don't check TIMESTAMP NOT NULL in fetch_field_flags test
...
The behavior of this is very dependent on the MySQL vendor, MySQL
version and MySQL configuration, in particular the
explicit_defaults_for_timestamp variable.
I don't think it's worthwhile to try and model this exactly, so
drop the test.
2019-12-27 17:25:23 +01:00
Nikita Popov
c4cbdfa99c
Don't test the RENAME DATABASE query
...
Apparently this only existed for a short time, because it was
found to be insecure. Don't try to test it.
2019-12-27 17:25:12 +01:00
Nikita Popov
f97806726f
Make GeomFromText tests compatible with MySQL 8
...
The function has been renamed to ST_GeomFromText.
2019-12-27 17:25:01 +01:00
Christoph M. Becker
3fafa19777
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Skip test for clang builds
2019-12-27 15:11:51 +01:00
Christoph M. Becker
58cc66e175
Skip test for clang builds
...
On Windows, clang builds don't use __vectorcall, so executing this test
does not make sense.
2019-12-27 15:09:19 +01:00
Christoph M. Becker
388c582ee9
Clarify usage of max_fd in php_poll2() on Windows
...
Actually, `max_fd` is not used on Windows, since `PHP_SAFE_MAX_FD` and
`select` ignore it; so it makes no sense to calculate it in the loop.
Even worse, since `php_socket_t` is unsigned on Windows, it will never
be modified during the loop, because `SOCK_ERR` is already the largest
representable value of that type.
Therefore we skip the loop on Windows, and add a clarifying comment.
2019-12-27 13:41:29 +01:00
Dmitry Stogov
7b69855bd0
Fixed type_info for new array element (it may be only NULL)
2019-12-26 16:32:45 +03:00
Dmitry Stogov
cc29cbe80c
cleanup
2019-12-26 11:54:05 +03:00
Christoph M. Becker
cdc2c7427e
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79029 (Use After Free's in XMLReader / XMLWriter).
2019-12-25 12:36:25 +01:00
Christoph M. Becker
1b0a79ab3f
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed bug #79029 (Use After Free's in XMLReader / XMLWriter).
2019-12-25 12:35:44 +01:00
Xinchen Hui
27bb3289ac
Fixed bug #79029 (Use After Free's in XMLReader / XMLWriter).
...
We backport the fix PHP 7.3, since this branch is affected as well.
(cherry picked from commit b5e0043796 )
(cherry picked from commit e36daa6927 )
(cherry picked from commit 2704ee6844 )
2019-12-25 12:33:30 +01:00
Christoph M. Becker
66b626f39c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix test case
2019-12-25 12:09:37 +01:00
Christoph M. Becker
2704ee6844
Fix test case
...
As of PHP 7.3.0, unlinking files with open handles is possible on
Windows, but these file entries are still blocked until all open
handles are closed. Since this test doesn't require to write to the
same file, we use three separate files.
We also add the missing skip check for XMLReader.
2019-12-25 12:07:54 +01:00
Xinchen Hui
ce4d80a85a
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79029 (Use After Free's in XMLReader / XMLWriter).
2019-12-25 16:29:30 +08:00
Xinchen Hui
e36daa6927
Fixed bug #79029 (Use After Free's in XMLReader / XMLWriter).
2019-12-25 15:55:15 +08:00
Xinchen Hui
66a591aebe
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Revert "Fixed bug #79029 (Use After Free's in XMLReader / XMLWriter)"
2019-12-25 15:28:13 +08:00
Xinchen Hui
4c6e170c57
Revert "Fixed bug #79029 (Use After Free's in XMLReader / XMLWriter)"
...
This reverts commit d8ad2f4695 .
2019-12-25 15:27:10 +08:00
Xinchen Hui
24ccbb0057
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79029 (Use After Free's in XMLReader / XMLWriter)
Partial fix for bug #79029
Conflicts:
ext/xmlwriter/php_xmlwriter.c
2019-12-25 13:18:23 +08:00
Xinchen Hui
d8ad2f4695
Fixed bug #79029 (Use After Free's in XMLReader / XMLWriter)
2019-12-25 13:14:08 +08:00
Xinchen Hui
b5e0043796
Partial fix for bug #79029
2019-12-25 12:43:44 +08:00
Dmitry Stogov
e874811221
Build call graph before type inference
2019-12-24 16:15:24 +03:00
Xinchen Hui
b418f335d4
Implemented FR #78638 (__PHP_Incomplete_Class should be final)
...
This should be minor and won't impact anyone
2019-12-24 17:09:44 +08:00
Xinchen Hui
3f3c1ad848
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Similar problem (#79022 ) also exists in Interfaces
Fixed bug #79022 (class_exists returns True for classes that are not ready to be used)
2019-12-24 14:21:52 +08:00
Xinchen Hui
f09b958e90
Similar problem ( #79022 ) also exists in Interfaces
2019-12-24 14:20:55 +08:00
Xinchen Hui
153c9cc346
Fixed bug #79022 (class_exists returns True for classes that are not ready to be used)
2019-12-24 14:04:19 +08:00
Dmitry Stogov
1e53769d82
Set opcode handler
2019-12-23 14:14:47 +03:00
Christoph M. Becker
dabc28d182
Fix #78880 : Spelling error report
...
We fix the most often occuring typos according to a recent codespell
report[1] in tests, code comments and documentation.
[1] <https://fossies.org/linux/test/php-src-master-f8f48ce.191129.tar.gz/codespell.html >.
2019-12-21 11:58:00 +01:00
Máté Kocsis
eff56f83af
Promote warning to exception for proc_open() when null byte is encountered
...
GH-5004
2019-12-20 17:54:12 +01:00
Nikita Popov
1d6325fb01
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix leak when generator closed during yield in finally
2019-12-20 17:46:43 +01:00
Nikita Popov
b829ea5f74
Fix leak when generator closed during yield in finally
...
In this case we need to free any pending exceptions or return values
that will be discarded.
2019-12-20 17:46:31 +01:00