1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Commit Graph

61827 Commits

Author SHA1 Message Date
Ollie Read f590782b60 Add ReflectionMethod::hasPrototype method
Closes GH-8487.
2022-05-09 16:48:54 +02:00
Christoph M. Becker 6db78f3ed9 Merge branch 'PHP-8.1'
* PHP-8.1:
  Fix test wrt. deprecation of float to int conversions
2022-05-09 14:07:54 +02:00
Christoph M. Becker e9e2cf0230 Fix test wrt. deprecation of float to int conversions
Instead of passing `1073746742.75` to an int parameter, we just do the
calculation upfront (and round up), since the actual calculation does
not matter here anyway.
2022-05-09 14:05:57 +02:00
Nicolas Grekas be11bcb0b1 Add ReflectionFunction::isAnonymous()
Closes GH-8499.
2022-05-09 12:56:10 +02:00
Christoph M. Becker 7e272b9a10 Merge branch 'PHP-8.1'
* PHP-8.1:
  Fix mysqli tests wrt. MySQL 8.0.28
2022-05-09 10:57:52 +02:00
Christoph M. Becker 8e688e0cf2 Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Fix mysqli tests wrt. MySQL 8.0.28
2022-05-09 10:57:30 +02:00
Christoph M. Becker a7a590211e Fix mysqli tests wrt. MySQL 8.0.28
As of MySQL 8.0.28, `utf8mb3` charset is reported by the server, but
mysqlnd doesn't support it yet.  As a stop-gap measure, we ignore that
charset for now.

Closes GH-8480.
2022-05-09 10:55:32 +02:00
Christoph M. Becker c2ca9cd73f Don't unnecessarily skip mb related tests
Apparently, these tests have been overlooked when we switched to using
the `--EXTENSIONS--` section.  That caused to skip these tests on
AppVeyor.

Closes GH-8504.
2022-05-06 15:48:21 +02:00
Christoph M. Becker c9787b4785 Fix skip clause
The function required is called `mb_ereg_search()`.
2022-05-06 15:41:10 +02:00
Arnaud Le Blanc 0a5a761104 Merge branch 'PHP-8.1' 2022-05-06 15:29:21 +02:00
Arnaud Le Blanc f07a08df5c Fix unregistering ini entries of dynamically loaded extension (#8435)
Fixes GH-8185
2022-05-06 15:25:44 +02:00
Derick Rethans 5164f60c88 Merge branch 'PHP-8.1' 2022-05-05 15:24:14 +01:00
Derick Rethans 7670ee4342 Merge branch 'PHP-8.0' into PHP-8.1 2022-05-05 15:24:10 +01:00
Derick Rethans 92f8f19d50 Fixed GH-8471: Segmentation fault when converting immutable and mutable DateTime instances created using reflection 2022-05-05 12:10:50 +01:00
Ilija Tovilo 9a90bd7054 Deprecate ${} string interpolation
https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
2022-05-05 10:14:56 +02:00
Christoph M. Becker 710294c9a5 Fix zend_test tests
The `--EXTENSIONS--` directive isn't properly supported prior to PHP
8.1.0, so we use the classic `--SKIPIF--` instead.
2022-05-04 11:29:08 +02:00
Derick Rethans d54bcbb43b Add DatePeriod's __serialize and __unserialize methods (#8464) 2022-05-03 22:06:17 +01:00
Máté Kocsis da857c94a4 Merge branch 'PHP-8.1'
* PHP-8.1:
  Fix get_function_or_method_name when included file is scoped
2022-05-03 21:38:32 +02:00
Máté Kocsis 510061b595 Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Fix get_function_or_method_name when included file is scoped
2022-05-03 21:36:42 +02:00
vajexal 74924ada93 Fix get_function_or_method_name when included file is scoped (#8467) 2022-05-03 21:34:01 +02:00
Máté Kocsis fc04a6ebdd Throw when calling ReflectionAttribute::__construct()
ReflectionAttribute::__construct() accepted any number of parameters until now, because parameter validation was missing. Even though this was unlikely to be an issue in practice (since the method is private), the problem is fixed by always throwing an exception.
2022-05-03 21:23:22 +02:00
Máté Kocsis ef5478b823 Reorder param parsing and reflection object retrieval 2022-05-03 20:34:00 +02:00
Christoph M. Becker 59272266ee Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Fix test for curl 7.83.0
2022-05-03 15:08:43 +02:00
Christoph M. Becker 722e9b9fa5 Fix test for curl 7.83.0
libcurl 7.83.0 removed some trailing exclamation marks from error
messages[1]; we have to cater to that.

[1] <https://github.com/curl/curl/commit/6968fb9d54dc3a1aaa1b16088f038eaf5dd8b2d7>

(cherry picked from commit a4179e4c92)
2022-05-03 15:07:50 +02:00
Christoph M. Becker e5d9859b50 Merge branch 'PHP-8.1'
* PHP-8.1:
  Fix GH-8235: iterator_count() may run indefinitely
2022-05-03 12:59:59 +02:00
Christoph M. Becker e004e1a93b Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Fix GH-8235: iterator_count() may run indefinitely
2022-05-03 12:59:39 +02:00
Christoph M. Becker ad7b9f4e50 Fix GH-8235: iterator_count() may run indefinitely
We need to prevent integer overflow to eventually stop the iteration.

A test case doesn't appear sensible for this, because even on 32bit
architectures a respective test easily runs for a few minutes.

Closes GH-8447.
2022-05-03 12:57:58 +02:00
Christoph M. Becker e7a79719cc Merge branch 'PHP-8.1'
* PHP-8.1:
  Fix PDO URI test
2022-05-03 12:44:32 +02:00
Christoph M. Becker 7612ea8121 Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Fix PDO URI test
2022-05-03 12:43:14 +02:00
Michael Voříšek 136ef6f129 Fix PDO URI test
Especially for remote servers, the respective part of the test may fail
for a lot of different reasons; instead of trying to catch all, we
rewrite to not fail, still testing for the contained NUL byte.

Closes GH-8451.
2022-05-03 12:12:41 +02:00
Remi Collet 6672a5ecfe bump zip version 2022-05-02 15:18:02 +02:00
Martin Rehberger 62a650ab7d bug: Fix type for $index in ZipArchive::replaceFile 2022-05-02 14:22:17 +02:00
Remi Collet a13b94c5d1 Merge branch 'PHP-8.1'
* PHP-8.1:
  Fix test XFAIL, update phar to use spl_autoload_register
  bug: Fix type for $index in ZipArchive::replaceFile
2022-05-02 14:19:52 +02:00
Remi Collet 0e9c7c16aa Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  bug: Fix type for $index in ZipArchive::replaceFile
  Fix test XFAIL, update phar to use spl_autoload_register
2022-05-02 14:16:01 +02:00
Michael Voříšek bf46bc8718 Fix test XFAIL, update phar to use spl_autoload_register
Closes GH-8449.
2022-05-02 14:13:55 +02:00
Martin Rehberger 389d11308c bug: Fix type for $index in ZipArchive::replaceFile 2022-05-02 14:08:19 +02:00
Christoph M. Becker af40f06d5b Merge branch 'PHP-8.1'
* PHP-8.1:
  Fix test XFAIL, update phar to use spl_autoload_register
2022-05-02 14:02:46 +02:00
Christoph M. Becker c9fba10242 Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0:
  Fix test XFAIL, update phar to use spl_autoload_register
2022-05-02 14:00:19 +02:00
Michael Voříšek 60487621c1 Fix test XFAIL, update phar to use spl_autoload_register
Closes GH-8449.
2022-05-02 13:58:25 +02:00
Derick Rethans f7a5353531 Turn off "Expect" header in test
Without this explicitly set, curl might decide to add a
`Expect: 100-continue` header if it deems the request too large.
See also: https://gms.tf/when-curl-sends-100-continue.html
2022-04-29 16:39:01 +01:00
Derick Rethans fb3cba494e Fix multi-same-name-fields in Curl for old (> 7.56.0) versions 2022-04-29 16:39:01 +01:00
Derick Rethans c1ad706b82 Fixed reference count issue with zend_string 2022-04-29 14:33:16 +01:00
Derick Rethans ef30c9ed98 Update 32-bit only test 2022-04-29 14:19:27 +01:00
Derick Rethans 8a67d7c363 Update related test in ext/standard 2022-04-29 11:25:55 +01:00
Derick Rethans d57b05249c Extended tests 2022-04-29 10:27:40 +01:00
Derick Rethans 5fb36414a3 Fixed cloning DateInterval 2022-04-29 10:27:40 +01:00
Derick Rethans cae1d4adde Add support for serialising all DateInterval objects 2022-04-29 10:27:40 +01:00
Derick Rethans 83a6bcc157 Fixed cloning DateInterval 2022-04-29 10:27:40 +01:00
Derick Rethans c8a6a8abc0 Rename have_special_relative to from_string, fix serialisation constraint, and reorder fields 2022-04-29 10:27:40 +01:00
Derick Rethans c280121b72 Add a few test cases for DateInterval 2022-04-29 10:27:40 +01:00