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