php-src/ext/standard/tests/strings/bug72823.phpt
Christoph M. Becker ae3b2078ea Fix #72823: strtr out-of-bound access
If php_strtr_array_prepare_repls() reports pattern_len == 0, we return
early to avoid OOB accesses, and because there is nothing to replace anyway.
2016-08-13 11:40:33 +02:00

13 lines
164 B
PHP

--TEST--
Bug #72823 (strtr out-of-bound access)
--FILE--
<?php
var_dump(
strtr(11, array('aaa' => 'bbb'))
);
?>
===DONE===
--EXPECT--
string(2) "11"
===DONE===