summaryrefslogtreecommitdiff
path: root/Zend/tests/object_array_cast.phpt
diff options
context:
space:
mode:
authorAndrea Faulds <ajf@ajf.me>2016-11-14 18:20:45 +0000
committerAndrea Faulds <ajf@ajf.me>2016-11-14 18:20:45 +0000
commita0502b89a65d24eb191a7c85bcffcf9b91454735 (patch)
treee40f7d1cf796b71b4d137939623ef6e32041665b /Zend/tests/object_array_cast.phpt
parent531eedf38ffe127e80c4286588212211b59d4db6 (diff)
downloadphp-git-a0502b89a65d24eb191a7c85bcffcf9b91454735.tar.gz
Convert numeric keys in object/array casts
RFC: https://wiki.php.net/rfc/convert_numeric_keys_in_object_array_casts This converts key types as appropriate in object to array and array to object casts, as well as in get_object_vars().
Diffstat (limited to 'Zend/tests/object_array_cast.phpt')
-rw-r--r--Zend/tests/object_array_cast.phpt12
1 files changed, 6 insertions, 6 deletions
diff --git a/Zend/tests/object_array_cast.phpt b/Zend/tests/object_array_cast.phpt
index 1cf3dbbd9c..b1c12b579d 100644
--- a/Zend/tests/object_array_cast.phpt
+++ b/Zend/tests/object_array_cast.phpt
@@ -14,11 +14,11 @@ var_dump($obj);
?>
--EXPECT--
object(stdClass)#1 (3) {
- [0]=>
+ ["0"]=>
int(1)
- [1]=>
+ ["1"]=>
int(2)
- [2]=>
+ ["2"]=>
int(3)
}
array(3) {
@@ -38,10 +38,10 @@ array(3) {
int(3)
}
object(stdClass)#1 (3) {
- [0]=>
+ ["0"]=>
int(1)
- [1]=>
+ ["1"]=>
int(2)
- [2]=>
+ ["2"]=>
int(3)
}