diff options
author | Stanislav Malyshev <stas@php.net> | 2011-12-19 02:05:03 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2011-12-19 02:05:03 +0000 |
commit | 1f4f33afcfd8282bcdeff9ebcee7aade8c659308 (patch) | |
tree | 379c71b1166f89859baba1bc4c1aaba54e17c01c /Zend/tests/offset_string.phpt | |
parent | 61f3d36ac16a092cade99691bf3a16b2532468c7 (diff) | |
download | php-git-1f4f33afcfd8282bcdeff9ebcee7aade8c659308.tar.gz |
implement the solution for isset/string offsets, fix bug #60362
Diffstat (limited to 'Zend/tests/offset_string.phpt')
-rw-r--r-- | Zend/tests/offset_string.phpt | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Zend/tests/offset_string.phpt b/Zend/tests/offset_string.phpt index 63d8abe8dd..128350158e 100644 --- a/Zend/tests/offset_string.phpt +++ b/Zend/tests/offset_string.phpt @@ -9,6 +9,9 @@ var_dump($str[1]); var_dump($str[0.0836]); var_dump($str[NULL]); var_dump($str["run away"]); +var_dump($str["13"]); +var_dump($str["14.5"]); +var_dump($str["15 and then some"]); var_dump($str[TRUE]); var_dump($str[FALSE]); @@ -26,10 +29,27 @@ echo "Done\n"; ?> --EXPECTF-- string(1) "i" + +Notice: String offset cast occured in %s on line %d string(1) "S" + +Notice: String offset cast occured in %s on line %d string(1) "S" + +Warning: Illegal string offset 'run away' in %s on line %d string(1) "S" +string(1) "c" + +Warning: Illegal string offset '14.5' in %s on line %d +string(1) "o" + +Notice: A non well formed numeric value encountered in %s on line %d +string(1) "r" + +Notice: String offset cast occured in %s on line %d string(1) "i" + +Notice: String offset cast occured in %s on line %d string(1) "S" Warning: Illegal offset type in %s on line %d @@ -42,4 +62,4 @@ string(1) "%s" Warning: Illegal offset type in %s on line %d string(1) "i" -Done +Done
\ No newline at end of file |