From: [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]