blob: 3c861600ff8c9e457ee6c03a0fc285b9c3c537af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
strtr() trying to replace an empty string
--FILE--
<?php
var_dump(strtr("foo", ["" => "bar"]));
var_dump(strtr("foo", ["" => "bar", "x" => "y"]));
?>
--EXPECTF--
Warning: strtr(): Ignoring replacement of empty string in %s on line %d
string(3) "foo"
Warning: strtr(): Ignoring replacement of empty string in %s on line %d
string(3) "foo"
|