Return to bug39032.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / strings |
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