mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
8d00385871
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.
20 lines
294 B
PHP
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
|