Ilija Tovilo
0c297bab21
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
[skip ci] Fix overwritten observer ini setting for gh16514.phpt
2024-10-22 15:21:26 +02:00
Ilija Tovilo
a6bf2f591a
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
[skip ci] Fix overwritten observer ini setting for gh16514.phpt
2024-10-22 15:21:20 +02:00
Ilija Tovilo
c5c4c3be44
[skip ci] Fix overwritten observer ini setting for gh16514.phpt
2024-10-22 15:20:56 +02:00
Ilija Tovilo
cd8ee4dad1
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix lineno in function redeclaration error
2024-10-22 15:06:06 +02:00
Ilija Tovilo
381e020edb
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix lineno in function redeclaration error
2024-10-22 15:05:29 +02:00
Ilija Tovilo
de7ef3fa66
Fix lineno in function redeclaration error
...
We were previously using the lineno of the first instruction, rather than the
start of the function itself.
Fixes GH-16509
Closes GH-16531
2024-10-22 15:04:20 +02:00
Ilija Tovilo
289f59ad48
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix handling of nested generator in zend_test observer
2024-10-22 14:52:07 +02:00
Ilija Tovilo
ce99adeb54
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix handling of nested generator in zend_test observer
2024-10-22 14:51:58 +02:00
Ilija Tovilo
69bcbdc3c5
Fix handling of nested generator in zend_test observer
...
This is the counterpart of GH-15952.
Fixes GH-16514
Closes GH-16530
2024-10-22 14:51:36 +02:00
Christoph M. Becker
30dd291628
Updates for libxml2 >= 2.13.0
...
libxml2 2.13.0 introduced some relevant changes regarding the treatment
of file paths on Windows[1]. Thus we un-xfail bug69753.phpt and its
companion, and we adjust dom004.phpt. And we also disable the
workaround for erroneous file:/ URIs on Windows.
[1] <8ab1b122c4 >
Closes GH-16536.
2024-10-22 00:17:12 +02:00
Christoph M. Becker
6715860286
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-16523: FILTER_FLAG_HOSTNAME accepts ending hyphen
2024-10-21 21:22:26 +02:00
Christoph M. Becker
7930867e28
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-16523: FILTER_FLAG_HOSTNAME accepts ending hyphen
2024-10-21 21:21:02 +02:00
Christoph M. Becker
f9ce5e79da
Fix GH-16523: FILTER_FLAG_HOSTNAME accepts ending hyphen
...
Domain name labels must not end with a hyphen, and that is also true
for the last label. Apparently, this has been overlooked so far.
Closes GH-16540.
2024-10-21 21:19:54 +02:00
Niels Dossche
a0266920e4
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-16535: UAF when using document as a child
Fix GH-16533: Segfault when adding attribute to parent that is not an element
2024-10-21 20:57:42 +02:00
Niels Dossche
5a09e0105e
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-16535: UAF when using document as a child
Fix GH-16533: Segfault when adding attribute to parent that is not an element
2024-10-21 20:57:22 +02:00
Niels Dossche
51b642f2c9
Fix GH-16535: UAF when using document as a child
...
Documents can never be children of any node.
Closes GH-16539.
2024-10-21 20:56:14 +02:00
Niels Dossche
a0a7361b64
Fix GH-16533: Segfault when adding attribute to parent that is not an element
...
Attributes are only valid as children of elements. This bug goes back
all the way.
Closes GH-16537.
2024-10-21 20:55:42 +02:00
Christoph M. Becker
241e3e0e27
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-16266: _ZendTestClass::test() segfaults on named parameter
2024-10-21 19:46:02 +02:00
Christoph M. Becker
713c71adbd
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-16266: _ZendTestClass::test() segfaults on named parameter
2024-10-21 19:44:34 +02:00
Christoph M. Becker
b73bcaa47c
Fix GH-16266: _ZendTestClass::test() segfaults on named parameter
...
We need to assign the proper number of arguments.
Closes GH-16271.
2024-10-21 19:43:33 +02:00
Dmitry Stogov
cfd954f5f9
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-16499: [JIT] Undefined to null coercion issues for return
2024-10-21 14:51:41 +03:00
Dmitry Stogov
920e3d6b70
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-16499: [JIT] Undefined to null coercion issues for return
2024-10-21 14:51:31 +03:00
Dmitry Stogov
fe513655dc
Fix GH-16499: [JIT] Undefined to null coercion issues for return
2024-10-21 14:50:50 +03:00
Christoph M. Becker
2c0fd883b2
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-16390: dba_open() can segfault for "pathless" streams
2024-10-21 00:38:18 +02:00
Christoph M. Becker
e635857f7d
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-16390: dba_open() can segfault for "pathless" streams
2024-10-21 00:33:29 +02:00
Christoph M. Becker
d3b0efe9d7
Fix GH-16390: dba_open() can segfault for "pathless" streams
...
`dba_open()` accepts arbitrary stream wrapper paths, but unless no
locking (`-`) is specified, we try to determine the underlying file
path. If that fails, we need to error out.
Closes GH-16498.
2024-10-21 00:21:34 +02:00
David Carlier
bde23d0843
Merge branch 'PHP-8.3' into PHP-8.4
2024-10-20 21:44:04 +01:00
David Carlier
d6bac2f7e8
Merge branch 'PHP-8.2' into PHP-8.3
2024-10-20 21:43:51 +01:00
David Carlier
9ca68e037c
Fix GH-16501: gmp_random_bits overflow.
...
we do the same calculation in advance as mpz_realloc overflow check to
avoid abort.
close GH-16503
2024-10-20 21:43:29 +01:00
Christoph M. Becker
909cecb7fa
Fix GH-16414: zend_test.observer.observe_function_names may segfault
...
Unless `zend_test.observer.enabled` is on, we must not add observer
handlers, so we let the INI modify handler fail early.
We also need to ensure that the functions to observe have already been
called, so that their begin and end handlers are properly initialized.
Otherwise we will not observe the function execution, but a segfault.
Co-authored-by: Bob Weinand <bobwei9@hotmail.com >
Closes GH-16438.
2024-10-20 12:11:08 +02:00
Ilija Tovilo
fe310181e4
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
[skip ci] Mark another phar test as flaky on macOS
2024-10-18 15:24:55 +02:00
Ilija Tovilo
ce44a7f95c
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
[skip ci] Mark another phar test as flaky on macOS
2024-10-18 15:24:44 +02:00
Ilija Tovilo
062837aa13
[skip ci] Mark another phar test as flaky on macOS
2024-10-18 15:24:15 +02:00
Derick Rethans
9923e14d97
Merge branch 'PHP-8.3' into PHP-8.4
2024-10-18 12:38:21 +01:00
Derick Rethans
8acdde5b10
Merge branch 'PHP-8.2' into PHP-8.3
2024-10-18 12:38:06 +01:00
Derick Rethans
b2b294a2b2
Fixed bug GH-16037 (Assertion failure in ext/date/php_date.c)
2024-10-18 12:37:03 +01:00
Christoph M. Becker
66fe549daf
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-16454: Unhandled INF in date_sunset() with tiny $utcOffset
2024-10-18 13:25:05 +02:00
Christoph M. Becker
64f312f123
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-16454: Unhandled INF in date_sunset() with tiny $utcOffset
2024-10-18 13:22:55 +02:00
Christoph M. Becker
9bc34182b6
Fix GH-16454: Unhandled INF in date_sunset() with tiny $utcOffset
...
After normalization, `N` is supposed to be in range [0, 24], but for
very large and very small `$utcOffset` this is not necessarily the
case, since the normalization might yied `-inf` or `inf`. If that
happens, we let the function fail silently, since it is highly unlikely
that such `$utcOffset`s are passed in practice.
Closes GH-16483.
2024-10-18 13:21:57 +02:00
Dmitry Stogov
8b5668efef
Fix invalid target opline with jit->reuse_ip active ( #16457 )
...
This is an alternative for #16440
2024-10-18 12:48:23 +03:00
Niels Dossche
55266d420b
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-16473: dom_import_simplexml stub is wrong
2024-10-17 23:28:34 +02:00
Niels Dossche
c26d5f20e8
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-16473: dom_import_simplexml stub is wrong
2024-10-17 23:27:23 +02:00
Niels Dossche
41af9335b7
Fix GH-16473: dom_import_simplexml stub is wrong
...
It's been wrong since PHP 8.0 at least, and the signature was inherited
in 8.4-dev to the new DOM methods.
Closes GH-16489.
2024-10-17 23:26:50 +02:00
Niels Dossche
d8e516631f
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix GH-16406: Assertion failure in ext/phar/phar.c:2808
2024-10-17 21:24:08 +02:00
Niels Dossche
25817ad298
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-16406: Assertion failure in ext/phar/phar.c:2808
2024-10-17 21:23:47 +02:00
Niels Dossche
6a8d0a054d
Fix GH-16406: Assertion failure in ext/phar/phar.c:2808
...
When copying entries during conversion in phar_convert_to_other(), the
header offset is not reset. This didn't matter in the past as it wasn't
used anyway in the particular use-case, but since 1bb2a4f9 this is
actually used and sanity-checked.
Closes GH-16470.
2024-10-17 21:23:17 +02:00
Niels Dossche
81a2cd4dac
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix various document ref pointer mismanagements
2024-10-17 21:21:49 +02:00
Niels Dossche
5cb38e9d24
Fix various document ref pointer mismanagements
...
- Properly handle attributes
- Fix potential NULL dereference if the intern document pointer is NULL
Fixes GH-16336.
Fixes GH-16338.
Closes GH-16345.
2024-10-17 21:18:50 +02:00
Ilija Tovilo
1c542af144
Revert undoing of partial spl_filesystem_object initialization
...
We're intentionally not initializing spl_filesystem_object.u.dir.entry, as it
will later be initialized, and we don't need to zero the entire buffer anyway.
2024-10-17 18:44:06 +02:00
Ilija Tovilo
c82cea0c34
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Fix uaf in SplFixedArray::unset()
2024-10-17 18:25:56 +02:00