php-src/ext/standard/tests/strings/bug39032.phpt
Steph Fox 87fac43ac0 - killed off UEXPECT
- html_translation_table and setlocale tests are no longer relevant
- there are a number of ANSI-encoded files. Is this deliberate?
2008-05-27 10:50:48 +00:00

19 lines
268 B
PHP

--TEST--
Bug #39032 (strcspn() stops on null character)
--FILE--
<?php
var_dump(strcspn(chr(0),"x"));
var_dump(strcspn(chr(0),""));
var_dump(strcspn(chr(0),"qweqwe"));
var_dump(strcspn(chr(1),"qweqwe"));
echo "Done\n";
?>
--EXPECT--
int(1)
int(0)
int(1)
int(1)
Done