mirror of
https://github.com/php/php-src.git
synced 2024-10-16 14:02:37 +00:00
87fac43ac0
- html_translation_table and setlocale tests are no longer relevant - there are a number of ANSI-encoded files. Is this deliberate?
19 lines
268 B
PHP
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
|