Bug #14807: core dump
| From: | amnuts at talker dot com | Date: | Wed, 02 Jan 2002 18:39:24 +0000 |
| Subject: | Bug #14807: core dump | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-75624@lists.php.net to get a copy of this message | ||
From: amnuts@talker.com
Operating system:
PHP version: 4.1.0
PHP Bug Type: Unknown/Other Function
Bug description: core dump
Running the following always causes a core dump:
<?php
$arr = array (
1 => array ("0","0","0","0","0"),
2 => array ("0","0","0","0","0"),
3 => array ("0","0","0","0","0"),
4 => array ("0","0","0","0","0"),
5 => array ("0","0","0","0","0")
);
print_r($arr);
echo "<br>\n\n<br>\n\n";
$str = serialize($arr);
echo "serialized<br>\n", $str, "<br><br>\n\n";
function hex2bin($data) {
$len = strlen($data);
return pack("H" . $len, $data);
}
$enc = urlencode($str);
echo "urlencoded<br>", $enc, "<br><br>\n\n";
$gzd = gzcompress($enc);
//echo "gzcompressed (urlencoded)<br>", $gzd, "<br><br>\n\n";
$b64 = base64_encode($gzd);
echo "base64_encoded<br>", $b64, "<br><br>\n\n";
$b2h = bin2hex($enc);
echo "bin2hex (urlencoded)<br>", $b2h, "<br><br>\n\n";
$binary = base_convert($b2h, 16, 2);
echo $binary, "<br><br>\n\n";
$conv = base_convert($binary, 2, 16);
echo $conv, "<br><br>\n\n";
$h2b = hex2bin($conv);
echo $h2b, "<br><br>\n\n";
$md = md5($str);
echo "md5<br>", $md, "<br><br>\n";
?>
--
Edit bug report at: http://bugs.php.net/?id=14807&edit=1