Annotation of embedaddon/php/ext/spl/tests/bug52573.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #52573 (SplFileObject::fscanf Segmentation fault)
! 3: --FILE--
! 4: <?php // test
! 5:
! 6: $result = null;
! 7: $f = new SplFileObject(__FILE__, 'r');
! 8: var_dump($f->fscanf('<?php // %s', $result));
! 9: var_dump($result);
! 10: var_dump($f->fscanf('<?php // %s'));
! 11: ?>
! 12: --EXPECTF--
! 13: int(1)
! 14: string(4) "test"
! 15: array(1) {
! 16: [0]=>
! 17: NULL
! 18: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>