Skip to content

Commit 27abbc5

Browse files
committed
better null str test
1 parent f42cbed commit 27abbc5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/null_str.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ $val = "foo\0bar";
1010
$bdict = new bdict();
1111
$bdict->set($key, new bstr($val));
1212
echo strlen($bdict->get($key)->get()) . "\n";
13-
echo bin2hex($bdict->get($key)->get());
13+
echo bin2hex($bdict->get($key)->get()) . "\n";
14+
echo bin2hex($bdict);
1415

1516
exit(0);
1617
?>
1718
--EXPECTF--
1819
7
1920
666f6f00626172
21+
6431313a68656c6c6f00776f726c64373a666f6f0062617265
2022

0 commit comments

Comments
 (0)