5e34bb89 | 09-Jan-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Merge branch 'PHP-8.3' * PHP-8.3: Fix GH-13094: range(9.9, '0') causes segmentation fault
|
1d6f344b | 09-Jan-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix GH-13094: range(9.9, '0') causes segmentation fault `start_type + end_type < 2*IS_STRING` is not right, in this test case the types are start_type==5 (IS_DOUBLE), end_type==7 (IS_ARR
Fix GH-13094: range(9.9, '0') causes segmentation fault `start_type + end_type < 2*IS_STRING` is not right, in this test case the types are start_type==5 (IS_DOUBLE), end_type==7 (IS_ARRAY). The IS_ARRAY type is a sentinel to disambiguate single-byte strings. The path must be taken when one of the types is not a string nor a single-byte string. Therefore, use < IS_STRING with an OR condition. Closes GH-13105.
show more ...
|
4cda181c | 09-Jan-2024 |
Tim Düsterhus |
[skip ci] Update ext/random year for myself in EXTENSIONS |
162e1dce | 09-Jan-2024 |
Tim Düsterhus |
random: Optimize data flow for the `generate` function of native engines (#13043) Instead of returning the generated `uint64_t` and providing the size (i.e. the number of bytes of the ge
random: Optimize data flow for the `generate` function of native engines (#13043) Instead of returning the generated `uint64_t` and providing the size (i.e. the number of bytes of the generated value) out-of-band via the `last_generated_size` member of the `php_random_status` struct, the `generate` function is now expected to return a new `php_random_result` struct containing both the `size` and the `result`. This has two benefits, one for the developer: It's no longer possible to forget setting `last_generated_size` to the correct value, because it now happens at the time of returning from the function. and the other benefit is for performance: The `php_random_result` struct will be returned as a register pair, thus the `size` will be directly available without reloading it from main memory. Checking a simplified version of `php_random_range64()` on Compiler Explorer (“Godbolt”) with clang 17 shows a single change in the resulting assembly showcasing the improvement (https://godbolt.org/z/G4WjdYxqx): - add rbp, qword ptr [r14] + add rbp, rdx Empirical testing confirms a measurable performance increase for the `Randomizer::getBytes()` method: <?php $e = new Random\Engine\Xoshiro256StarStar(0); $r = new Random\Randomizer($e); var_dump(strlen($r->getBytes(100000000))); goes from 250ms (before the change) to 220ms (after the change). While generating 100 MB of random data certainly is not the most common use case, it confirms the theoretical improvement in practice.
show more ...
|
d778c24a | 09-Jan-2024 |
Dmitry Stogov |
Merge branch 'PHP-8.3' * PHP-8.3: Disable inlining and inter-procedure-analyses for zend_string_equal_val() function that may be overriden for valgrind (#13099)
|
71a1defd | 09-Jan-2024 |
Dmitry Stogov |
Merge branch 'PHP-8.2' into PHP-8.3 * PHP-8.2: Disable inlining and inter-procedure-analyses for zend_string_equal_val() function that may be overriden for valgrind (#13099)
|
d7d0d19d | 21-Dec-2023 |
Ilija Tovilo |
Support index.php fallback for files in built-in server If no router script is used, the built-in webserver will now look for a fallback index file recursively in all cases, including UR
Support index.php fallback for files in built-in server If no router script is used, the built-in webserver will now look for a fallback index file recursively in all cases, including URLs with a period. Fixes GH-12604 Closes GH-12992
show more ...
|
8876639d | 09-Jan-2024 |
Ilija Tovilo |
Add X-Powered-By header to builtin 404 page (#13092) As requested by https://github.com/php/php-src/pull/12992/files/30929c9a887ef7917a346bfeb76c82274ad31aca#r1434156785. |
59c38969 | 09-Jan-2024 |
Ilija Tovilo |
[skip ci] Remove PHP 8.0 references from CI |
811c5ff2 | 09-Jan-2024 |
Gabriel Caruso |
[ci skip] PHP 8.0 is EOL Following php/web-php#840, 670052c42 and php/web-qa#c7b24521eb1 |
3b73db61 | 08-Jan-2024 |
Peter Kokot |
Remove unused symbol HAVE_ODBC2 (#13088) |
6aad7a07 | 08-Jan-2024 |
Peter Kokot |
Fix DragonFly build (#13085) On DragonFly by default the BSD make is used with the CSH shell and the first prerequisite variable `$<` in Makefile doesn't work there. So, we can simpl
Fix DragonFly build (#13085) On DragonFly by default the BSD make is used with the CSH shell and the first prerequisite variable `$<` in Makefile doesn't work there. So, we can simplify this by simply repeating the filename here.
show more ...
|
10e8a0d1 | 08-Jan-2024 |
Máté Kocsis |
Backport upgrading PHP-Parser to PHP-8.3 |
d8df700e | 08-Jan-2024 |
Ilija Tovilo |
Merge branch 'PHP-8.3' * PHP-8.3: Fix run-tests.php differ calculateCommonSubsequence for EXPECTF
|
379e913e | 06-Jan-2024 |
Ilija Tovilo |
Fix run-tests.php differ calculateCommonSubsequence for EXPECTF calculateCommonSubsequence should not contain regexes. Fixes GH-13083 Closes GH-13084 |
281555d0 | 07-Jan-2024 |
Máté Kocsis |
Migrate to the final version of PHP-Parser 5.0.0 |
73722df4 | 07-Jan-2024 |
Jorg Adam Sowa |
Improve preg_* functions warnings for NUL byte (#13068) * Improve error messages for preg_ functions * Adjusted tests and fixed formatting * Removed unnecessary strings from preg_* t
Improve preg_* functions warnings for NUL byte (#13068) * Improve error messages for preg_ functions * Adjusted tests and fixed formatting * Removed unnecessary strings from preg_* tests * Removed ZPP tests
show more ...
|
90800b62 | 07-Jan-2024 |
haszi |
Change PHP_ZTS and PHP_DEBUG to bool to match their ZEND equivalents (#13079) Co-authored-by: haszi <haszika80@gmail.com> |
6f3888fe | 07-Jan-2024 |
Peter Kokot |
Remove root library check for dlopen() and dlsym() (#13086) The root library was added here for the Haiku system, to check dlopen() and dlsym(). However, the root library is already expl
Remove root library check for dlopen() and dlsym() (#13086) The root library was added here for the Haiku system, to check dlopen() and dlsym(). However, the root library is already explicitly linked in the system, and it does not need to be checked neither linked anymore, since at least ~2013.
show more ...
|
2fec3e7f | 06-Jan-2024 |
Peter Kokot |
Remove unused phpdbg build variables (#13078) - PHP_PHPDBG_CFLAGS and PHP_PHPDBG_FILES were once used in the generated Makefile. - BUILD_PHPDBG check was used together with unused
Remove unused phpdbg build variables (#13078) - PHP_PHPDBG_CFLAGS and PHP_PHPDBG_FILES were once used in the generated Makefile. - BUILD_PHPDBG check was used together with unused and obsolete phpdbg webhelper configuration.
show more ...
|
44a246ed | 05-Jan-2024 |
Arnaud Le Blanc |
Merge branch 'PHP-8.3' * PHP-8.3: [ci skip] NEWS [ci skip] NEWS Fix timer leak (#13027)
|
3a237b96 | 05-Jan-2024 |
Arnaud Le Blanc |
[ci skip] NEWS |
26f54eb4 | 05-Jan-2024 |
Arnaud Le Blanc |
Merge branch 'PHP-8.2' into PHP-8.3 * PHP-8.2: [ci skip] NEWS Fix timer leak (#13027)
|
22ec2585 | 05-Jan-2024 |
Peter Kokot |
Omit HAVE_INET_NTOP definition with AC_CHECK_FUNC (#13073) Following the bb1109d9f1275866ce6664c897176c91d6f3baaa this now doesn't define the unused symbol HAVE_INET_NTOP also in Autotoo
Omit HAVE_INET_NTOP definition with AC_CHECK_FUNC (#13073) Following the bb1109d9f1275866ce6664c897176c91d6f3baaa this now doesn't define the unused symbol HAVE_INET_NTOP also in Autotools build system.
show more ...
|
67eb196f | 05-Jan-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Remove unused Lexbor file |