diff options
author | Nikita Popov <nikic@php.net> | 2014-10-13 14:51:53 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2014-10-13 15:31:59 +0200 |
commit | e62edf2e58c31349498b3dcedd44b64d8fb1837f (patch) | |
tree | dc53ee154413e1ce9e98001800ef31df0a2a3e0d /Zend/tests/double_array_cast.phpt | |
parent | 2622cfc2fbc1e088d83307d94c55b45acccfce53 (diff) | |
download | php-git-e62edf2e58c31349498b3dcedd44b64d8fb1837f.tar.gz |
Fix array/object cast of refcounted tmp var
Diffstat (limited to 'Zend/tests/double_array_cast.phpt')
-rw-r--r-- | Zend/tests/double_array_cast.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/double_array_cast.phpt b/Zend/tests/double_array_cast.phpt new file mode 100644 index 0000000000..aaee8cd919 --- /dev/null +++ b/Zend/tests/double_array_cast.phpt @@ -0,0 +1,18 @@ +--TEST-- +Double array cast +--FILE-- +<?php + +$array = [1, 2, $x = 3]; +var_dump((array) (array) $array); + +?> +--EXPECT-- +array(3) { + [0]=> + int(1) + [1]=> + int(2) + [2]=> + int(3) +} |