php-src/Zend/tests/strict_001.phpt
Nikita Popov 8d00385871 Reclassify E_STRICT notices
Per RFC https://wiki.php.net/rfc/reclassify_e_strict

While reviewing this, found that there are still three E_STRICTs
left in libraries - need to discuss those.
2015-04-01 11:17:55 +02:00

20 lines
294 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--
Notice: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d
int(%d)
Done