1--TEST--
2Bug #39032 (strcspn() stops on null character)
3--FILE--
4<?php
5
6var_dump(strcspn(chr(0),"x"));
7var_dump(strcspn(chr(0),""));
8var_dump(strcspn(chr(0),"qweqwe"));
9var_dump(strcspn(chr(1),"qweqwe"));
10
11echo "Done\n";
12?>
13--EXPECT--
14int(1)
15int(0)
16int(1)
17int(1)
18Done
19