10 Commits
Author SHA1 Message Date
eafcd68369 zend_API: Verify property types in object_properties_load() (#23639)
* zend_API: Verify property types in `object_properties_load()`

Fixes php/php-src#9708.

* zend_API: Fix various issues in `object_properties_load()`

Fixes Fixes php/php-src#9707.

Co-authored-by: Tim Düsterhus <tim@tideways-gmbh.com>

* NEWS

* random: Remove now-obsolete manual `$engine` type check in `Randomizer::__unserialize()`

* zend_API: Make `object_properties_load()` use `strict_types=1`

This is consistent with regular unserialization, which also performs strict
type checking.

Co-authored-by: Gina Peter Banyard <girgias@php.net>

* Block creation of readonly reference properties

Co-authored-by: Arnaud Le Blanc <365207+arnaud-lb@users.noreply.github.com>

---------

Co-authored-by: Nora Dossche <7771979+ndossche@users.noreply.github.com>
Co-authored-by: Gina Peter Banyard <girgias@php.net>
Co-authored-by: Arnaud Le Blanc <365207+arnaud-lb@users.noreply.github.com>
2026-09-15 20:09:44 +02:00
Gina Peter Banyard ee908f5542 Zend: normalise behaviour around class name ZPP specifier (#23359)
Splitting the behavioural change of #23052 out into this and come up with something that is hopefully more sensible and consistent between fast and slow ZPP and the object or class_name Fast ZPP specifier.
2026-08-21 13:31:45 +01:00
Gina Peter Banyard e95647ce36 spl: deprecate ArrayIterator methods that make little sense
RFC: https://wiki.php.net/rfc/deprecations_php_8_6#deprecate_arrayiterator_methods_that_inherit_arrayobject_implementation
2026-08-10 18:21:19 +01:00
NickSdot 06a5a1f6d3 ext/spl: applied fixers to improve test robustness (#23058) 2026-08-07 13:47:53 +01:00
Gina Peter Banyard 08a6ebfe31 ext/spl: ArrayObject improve ZPP test for usort() methods 2026-06-23 18:04:13 +01:00
Gina Peter Banyard 8275b522d2 Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
  Revert 49b2ff5dbb to fix bug GH-21499
2026-03-26 10:59:49 +00:00
Gina Peter Banyard fb87b14b6c ext/spl: Deprecate ArrayObject and ArrayIterator with objects (#19420)
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_arrayobject_and_arrayiterator_with_objects

This also moves tests into a subfolder.
2025-08-14 12:38:57 +01:00
Gina Peter Banyard 50ddf6a68f ext/spl: Refactor ArrayObject sort methods 2025-07-03 21:50:45 +01:00
Gina Peter Banyard faef004250 ext/spl: Add tests for disabled sort functions 2025-07-03 21:50:45 +01:00
Gina Peter Banyard efe4e6d38e ext/spl: Add ArrayObject test with property hooks (#15005)
As expected, ArrayObject is cursed
2024-07-18 13:10:00 +01:00