Annotation of embedaddon/php/tests/lang/bug29566.phpt, revision 1.1.1.2

1.1       misho       1: --TEST--
                      2: Bug #29566 (foreach/string handling strangeness)
                      3: --FILE--
                      4: <?php
                      5: $var="This is a string";
                      6: 
                      7: $dummy="";
                      8: unset($dummy);
                      9: 
                     10: foreach($var['nosuchkey'] as $v) {
                     11: }
                     12: ?>
                     13: ===DONE===
                     14: --EXPECTF--
1.1.1.2 ! misho      15: Warning: Illegal string offset 'nosuchkey' in %sbug29566.php on line %d
        !            16: 
1.1       misho      17: Warning: Invalid argument supplied for foreach() in %sbug29566.php on line %d
                     18: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>