Annotation of embedaddon/php/ext/standard/tests/strings/bug39032.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #39032 (strcspn() stops on null character)
! 3: --FILE--
! 4: <?php
! 5:
! 6: var_dump(strcspn(chr(0),"x"));
! 7: var_dump(strcspn(chr(0),""));
! 8: var_dump(strcspn(chr(0),"qweqwe"));
! 9: var_dump(strcspn(chr(1),"qweqwe"));
! 10:
! 11: echo "Done\n";
! 12: ?>
! 13: --EXPECTF--
! 14: int(1)
! 15: int(0)
! 16: int(1)
! 17: int(1)
! 18: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>