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] <6968fb9d54
>
(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
Derick Rethans
f4e5010aa9
Show the 'have_special_relative' property in var_dumps, and disallow serialization if set
2022-04-29 10:27:40 +01:00
Derick Rethans
76e852e7e8
Fixed memory leak with manual calls to DateInterval::__unserialize
2022-04-29 10:27:40 +01:00
Derick Rethans
f869a546e7
Add DateInterval's __serialize and __unserialize methods
2022-04-29 10:27:38 +01:00
Derick Rethans
3be8b5f5cb
Remove fake properties from DateInterval
2022-04-29 10:26:50 +01:00
Derick Rethans
6f2c5017f9
Fixed memory leak with unserialize was called multiple times and an abbreviation was stored
2022-04-29 09:44:27 +01:00
Derick Rethans
181623f9c0
Add DateTimeZone's __serialize and __unserialize methods
2022-04-29 09:44:27 +01:00
Derick Rethans
8b2ee5388c
Add DateTime/DateTimeImmutable's __serialize and __unserialize methods
2022-04-29 09:44:27 +01:00
Ilija Tovilo
90a845c13f
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix ReflectionProperty::__toString() of properties containing enums
2022-04-29 10:22:08 +02:00
Ilija Tovilo
1944c14ce7
Fix ReflectionProperty::__toString() of properties containing enums
...
Fix GH-8444
2022-04-28 19:48:23 +02:00
Christoph M. Becker
a4179e4c92
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] <6968fb9d54
>
2022-04-27 12:37:39 +02:00
Derick Rethans
36486106d9
Merge branch 'PHP-8.1'
2022-04-26 17:58:01 +01:00
Derick Rethans
97ffd75b13
Merge branch 'PHP-8.0' into PHP-8.1
2022-04-26 17:57:55 +01:00
Derick Rethans
b461c4673b
Use the new RETURN_THROWS() instead of just returning NULL
2022-04-26 17:57:47 +01:00
Derick Rethans
a7eda3d548
Merge branch 'PHP-8.1'
2022-04-26 16:45:07 +01:00
Derick Rethans
bc43e69822
Merge branch 'PHP-8.0' into PHP-8.1
2022-04-26 16:45:01 +01:00
Derick Rethans
87f341b1c2
Return early when the timezone info is NULL.
...
The guess_timezone function does throw an error, but throwing an error doesn't
immediate make the PHP_FUNCTION return.
This check is really only necessary for distributions that patch PHP's timelib
to use system tzdata, but not correct enough to account for their
implementation to guarantee to return a timezone.
2022-04-26 16:43:30 +01:00