Skip to content

Commit

Permalink
Add test for bug #67151
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Jul 2, 2014
1 parent 37a13d2 commit 1898942
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ext/standard/tests/strings/bug67151.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--TEST--
Buf #67151: strtr with empty array crashes
--FILE--
<?php
var_dump(strtr("foo", []));
?>
--EXPECT--
string(3) "foo"

0 comments on commit 1898942

Please sign in to comment.