Bug #12929: crash in array_map with associative arrays
| From: | wico at cnh dot nl | Date: | Thu, 23 Aug 2001 16:38:35 +0000 |
| Subject: | Bug #12929: crash in array_map with associative arrays | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-64178@lists.php.net to get a copy of this message | ||
From: wico@cnh.nl
Operating system: linux
PHP version: 4.0.6
PHP Bug Type: Reproducible crash
Bug description: crash in array_map with associative arrays
Have fun:
<?
$data = Array('a','b','c'); // works
# $data = Array(1 => 'a', 2 => 'b', 3 => 'c'); // crash
# $data = Array('1' => 'a', '2' => '3'); // crash
$plop = array_map('addslashes', $data);
die("I didn't crash :)");
?>
--
Edit bug report at: http://bugs.php.net/?id=12929&edit=1