xref: /php-src/Zend/tests/strict_001.phpt (revision 2f92957f)
1--TEST--
2using resource as array offset
3--INI--
4error_reporting=8191
5--FILE--
6<?php
7
8$fp = fopen(__FILE__, 'r');
9
10$array = array(1,2,3,4,5,6,7);
11
12var_dump($array[$fp]);
13
14echo "Done\n";
15?>
16--EXPECTF--
17Warning: Resource ID#%d used as offset, casting to integer (%d) in %s on line %d
18int(%d)
19Done
20