1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00
Files
archived-php-src/tests/lang/bug29566.phpt
T
Xinchen Hui 2fe9f37026 Fix tests
2011-12-19 16:57:36 +00:00

19 lines
351 B
PHP
Executable File

--TEST--
Bug #29566 (foreach/string handling strangeness)
--FILE--
<?php
$var="This is a string";
$dummy="";
unset($dummy);
foreach($var['nosuchkey'] as $v) {
}
?>
===DONE===
--EXPECTF--
Warning: Illegal string offset 'nosuchkey' in %sbug29566.php on line %d
Warning: Invalid argument supplied for foreach() in %sbug29566.php on line %d
===DONE===