Arnaud Le Blanc
a69708382a
Extended map_ptr before copying class table ( #9188 )
...
Fixes GH-9164
2022-08-01 19:21:34 +02:00
George Peter Banyard
1478278f1d
SPL: Use new improved is_line_empty() function instead of the old one ( #9217 )
2022-08-01 17:55:30 +01:00
Dmitry Stogov
c207efab63
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Tracing: Prevent recording types of variables used to pass zend_class_entry
2022-08-01 17:04:08 +03:00
Dmitry Stogov
7ff71a0a55
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Tracing: Prevent recording types of variables used to pass zend_class_entry
2022-08-01 17:03:56 +03:00
Dmitry Stogov
2758ff2a77
Tracing: Prevent recording types of variables used to pass zend_class_entry
2022-08-01 17:02:53 +03:00
Anton Smirnov
50bd8ba51c
PcgOneseq128XslRr64::jump(): Throw ValueError for negative $advance ( #9213 )
...
* PCG64: $advance must be non-negative
Closes GH-9212
2022-08-01 13:47:14 +01:00
Dmitry Stogov
fac37347ce
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix incorrect guard motion out of the loop
2022-08-01 15:33:50 +03:00
Dmitry Stogov
69c10aed58
Fix incorrect guard motion out of the loop
...
Fixes oss-fuzz #49579
2022-08-01 15:32:49 +03:00
Dmitry Stogov
21507ef28a
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix SSA reconstruction when body of "foreach" loop is removed
2022-08-01 14:01:34 +03:00
Dmitry Stogov
4b19b85eb6
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix SSA reconstruction when body of "foreach" loop is removed
2022-08-01 14:01:11 +03:00
Dmitry Stogov
af1a7b7b72
Fix SSA reconstruction when body of "foreach" loop is removed
...
Fixes oss-fuzz #49483
2022-08-01 14:00:19 +03:00
zeriyoshi
4e92c74654
random: split Randomizer::getInt() without argument to Randomizer::nextInt()
...
Since argument overloading is not safe for reflection, the method needed
to be split appropriately.
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com >
Closes GH-9057.
2022-08-01 12:19:22 +02:00
Máté Kocsis
59d257d1ae
Declare ext/tokenizer constants in stubs ( #9148 )
2022-08-01 10:50:56 +02:00
Nicolas Grekas
dd9f47758e
Declare Transliterator::$id as readonly to unlock subclassing it
...
Closes GH-9167.
2022-08-01 10:46:57 +02:00
Máté Kocsis
962baf771d
Declare ext/pcntl constants in stubs ( #9075 )
2022-08-01 10:26:05 +02:00
Tim Düsterhus
53ca24d46e
Improve phrasing in argument value errors in ext/random ( #9206 )
...
This rephrases the error message for argument errors to be a proper English
sentence.
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com >
2022-07-31 19:27:28 +02:00
Bob Weinand
b3b21ed558
Fix ZEND_RC_DEBUG build in zend_test observer tests
2022-07-31 14:32:35 +00:00
Bob Weinand
50a3fa49b6
Fix observer test
2022-07-31 14:02:48 +00:00
Bob Weinand
625f164963
Include internal functions in the observer API
...
There are two main motivations to this:
a) The logic for handling internal and userland observation can be unified.
b) Unwinding of observed functions on a bailout does notably not include observers. Even if users of observers were to ensure such handling themselves, it would be impossible to retain the relative ordering - either the user has to unwind all internal observed frames before the automatic unwinding (zend_observer_fcall_end_all) or afterwards, but not properly interleaved.
Signed-off-by: Bob Weinand <bobwei9@hotmail.com >
2022-07-30 19:20:55 +02:00
Máté Kocsis
0c225a2f57
Declare ext/intl constants in stubs - part 1 ( #9205 )
2022-07-30 18:11:20 +02:00
Bob Weinand
ac31e2e611
Fix memory_leak in zend_test
...
Properly use globals init/shutdown to allocate the observer_observe_function_names hashtable instead of attempting to do everything in the ini changed handler
2022-07-30 15:57:08 +00:00
Tim Düsterhus
5aca25a134
[ci skip] Improve error message of an engine fails to seed from the CSPRNG ( #9160 )
2022-07-30 15:37:31 +02:00
Máté Kocsis
056e968c54
Declare ext/gd constants in stubs ( #9180 )
2022-07-30 15:18:06 +02:00
Máté Kocsis
668dbaf6ab
Declare the TestInterface::DUMMY constant in stub
2022-07-30 15:03:48 +02:00
Bob Weinand
9e2de4c2d9
Add an API to manipulate observers at runtime
...
Signed-off-by: Bob Weinand <bobwei9@hotmail.com >
2022-07-29 13:48:05 +02:00
Ilija Tovilo
2152bb2dfa
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix attribute target validation on fake closures
2022-07-29 12:15:38 +02:00
Ilija Tovilo
565a416e87
Fix attribute target validation on fake closures
...
Fixes GH-8982
Closes GH-9173
2022-07-29 12:14:44 +02:00
Nikita Popov
107ad28350
Suppress unused-but-set-variable warning in parsers
...
This is very ugly: Bison provides a yynerrs variable, which is
usually not actually used, but also not annotated with
YY_MAYBE_UNUSED. Suppress this warning by adding a (void)yynerrs
into the top-level reduction action. The alternative would be to
disable the warning for these generated files.
2022-07-28 22:29:42 +02:00
Nikita Popov
04f5da4b77
Avoid K&R style function declarations in sha1()
...
These are deprecated in C20.
2022-07-28 22:29:42 +02:00
Nikita Popov
6ff662b2e6
Fix unused-but-set-variable warning in hebrev()
2022-07-28 22:29:42 +02:00
Nikita Popov
40af94a24c
Fix unused-but-set-variable warnings in timelib
2022-07-28 22:29:42 +02:00
Nikita Popov
ba9debb544
Fix parentheses warnings
2022-07-28 21:09:18 +02:00
George Peter Banyard
7ab22aad9e
Refactor code handling file.current_zval ( #8934 )
...
The Zval is always an array
2022-07-28 19:36:30 +01:00
George Peter Banyard
eddab74021
Improve DBA test suite ( #8904 )
...
Generalises tests for all the different drivers.
Run the general test for the various drivers.
This allows support for parallel testing as the tests now do not rely on the same DB file.
2022-07-28 19:36:04 +01:00
Tim Düsterhus
b948f8048b
Improve error messages in php_random_bytes() ( #9169 )
2022-07-28 18:45:30 +02:00
Máté Kocsis
da84287a9e
Declare ext/sqlite3 constants in stubs ( #9181 )
2022-07-28 18:18:08 +02:00
Derick Rethans
d002a0d837
Change test to ignore INT_MIN/MAX, and fixed off WS
2022-07-28 15:44:23 +01:00
Derick Rethans
d998054f28
Merge branch 'master' of github.com:php/php-src
2022-07-28 15:15:41 +01:00
Derick Rethans
a50499bbaf
Merge branch 'PHP-8.1'
2022-07-28 15:15:15 +01:00
Christoph M. Becker
60cc37630f
Drop Windows specific implementation of openssl_random_pseudo_bytes()
...
Despite commit 69c3f8c[1] claiming otherwise, there is no need for any
Windows specific implementation here. Users can use random_bytes(), if
they desire so.
[1] <https://github.com/php/php-src/commit/69c3f8cbbabf313b74fbd29bb2ed268ff7c3e9e1 >
Closes GH-9153.
2022-07-28 14:32:16 +02:00
Andreas Braun
3c016467c7
Escape \U and \u in generated stubs
...
This fixes an issue where a namespaced class beginning with "U" or "u"
would yield an invalid arginfo file due to the occurrence of a unicode
escape sequence, causing a compile error.
Co-authored-by: Guilliam Xavier <guilliamxavier@users.noreply.github.com >
Closes GH-9154.
2022-07-28 14:30:11 +02:00
Derick Rethans
a0c01f385c
Add test case for GH-9601: DateInterval 1.5s added to DateTimeInterface is rounded down since PHP 8.1.0
2022-07-28 11:55:35 +01:00
Derick Rethans
a35b3e70c3
Import timelib 2021.16
2022-07-28 11:51:11 +01:00
Derick Rethans
534127d3b2
Merge branch 'PHP-8.1'
2022-07-28 11:49:00 +01:00
Derick Rethans
b0d67aa605
Merge remote-tracking branch 'derickr/bug80047-take2' into PHP-8.1
2022-07-28 11:48:30 +01:00
Jakub Zelenka
1a9e6895f1
Fix #65069 : GlobIterator incorrect handling of open_basedir check
...
This PR changes the glob stream wrapper so it impacts "glob://"
streamsas well. The idea is to do a check for each found path instead
of the pattern which was not working correctly.
2022-07-28 11:42:42 +01:00
Derick Rethans
001e7dbb04
Fixed bug #80047 (DatePeriod doesn't warn with custom DateTimeImmutable)
2022-07-28 10:28:10 +01:00
Derick Rethans
85f3a969dc
Revert "Fixed #80047 : DatePeriod doesn't warn with custom DateTimeImmutable"
...
This reverts commit 973c3f6e24 .
2022-07-28 10:13:54 +01:00
jcm
520bb2ec6c
Fix get/set priority - error handling for MacOS and extra tests
...
Closes GH-9044.
2022-07-27 13:53:42 +02:00
Christoph M. Becker
a398a2fd3d
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix GH-9032: SQLite3 authorizer crashes on NULL values
2022-07-27 13:11:58 +02:00