Fix crash in strtr() when using 2 arg method and arg1 is empty
| From: | Joey Smith | Date: | Tue, 12 Dec 2000 21:30:20 +0000 |
| Subject: | Fix crash in strtr() when using 2 arg method and arg1 is empty | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41076@lists.php.net to get a copy of this message | ||
The following script crashes php:
<?php
$test = array("test","testing");
strtr($string, $test);
?>
The attached file patches this, but I just wanted to run it past
everyone else, since I don't know who the "maintainer" of ext/standard
is.