ID: 14807 Updated by: jan Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Unknown/Other Function Operating System: PHP Version: 4.1.0 New Comment:
at least for me it doesn't (FreeBSD 4.4 PHP 4.1.0) can you provide more Information about you environmation (OS, configure options e.g.) ? Previous Comments: ------------------------------------------------------------------------ [2002-01-02 13:39:24] [EMAIL PROTECTED] 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 this 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]