php-src/Zend/tests/strict_001.phpt
2006-05-31 18:47:21 +00:00

20 lines
304 B
PHP

--TEST--
using resource as array offset
--INI--
error_reporting=8191
--FILE--
<?php
$fp = fopen(__FILE__, 'r');
$array = array(1,2,3,4,5,6,7);
var_dump($array[$fp]);
echo "Done\n";
?>
--EXPECTF--
Strict Standards: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d
int(%d)
Done