mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.3'
* PHP-8.3: Fix GH-15918: Assertion failure in ext/spl/spl_fixedarray.c
This commit is contained in:
commit
1b171bb6b4
4 changed files with 26 additions and 21 deletions
|
@ -964,7 +964,7 @@ static void spl_array_set_array(zval *object, spl_array_object *intern, zval *ar
|
|||
}
|
||||
} else {
|
||||
zend_object_get_properties_t handler = Z_OBJ_HANDLER_P(array, get_properties);
|
||||
if (handler != zend_std_get_properties) {
|
||||
if (handler != zend_std_get_properties || Z_OBJ_HANDLER_P(array, get_properties_for)) {
|
||||
zend_throw_exception_ex(spl_ce_InvalidArgumentException, 0,
|
||||
"Overloaded object of type %s is not compatible with %s",
|
||||
ZSTR_VAL(Z_OBJCE_P(array)->name), ZSTR_VAL(intern->std.ce->name));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue