diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2018-10-05 15:55:21 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-10-10 10:39:10 +0200 |
commit | a5fa51afbbd87bedeb1c5fd7c9a6cf3c971ab14c (patch) | |
tree | e1750131e95db2198e6aba29de0c611f06dfce04 /tests | |
parent | 1270e5008a1828863a7f96873dff002680eac5c5 (diff) | |
download | php-git-a5fa51afbbd87bedeb1c5fd7c9a6cf3c971ab14c.tar.gz |
Don't overload get_properties for ArrayObject
Instead overload get_properties_for for a few specific cases such
as array casts. This resolves the issue where ArrayObject
get_properties may violate engine invariants in some cases.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/classes/arrayobject_001.phpt | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/classes/arrayobject_001.phpt b/tests/classes/arrayobject_001.phpt deleted file mode 100644 index b75f8c7ab3..0000000000 --- a/tests/classes/arrayobject_001.phpt +++ /dev/null @@ -1,13 +0,0 @@ ---TEST-- -Ensure that ArrayObject acts like an array ---FILE-- -<?php - -$a = new ArrayObject; -$a['foo'] = 'bar'; -echo reset($a); -echo count($a); -echo current($a); -?> ---EXPECT-- -bar1bar |