diff options
Diffstat (limited to 'ext/standard/tests/strings/bug70667.phpt')
-rw-r--r-- | ext/standard/tests/strings/bug70667.phpt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/standard/tests/strings/bug70667.phpt b/ext/standard/tests/strings/bug70667.phpt new file mode 100644 index 0000000000..fd3deadb29 --- /dev/null +++ b/ext/standard/tests/strings/bug70667.phpt @@ -0,0 +1,9 @@ +--TEST-- +Bug #70667 (strtr() causes invalid writes and a crashes) +--FILE-- +<?php +$a = array("{{language_id}}"=>"255", "{{partner_name}}"=>"test1"); +var_dump(strtr("Sign in to test1", $a)); +?> +--EXPECT-- +string(16) "Sign in to test1" |