gzip functions and error

From: Date: Sat, 22 Jan 2005 08:48:40 +0000
Subject: gzip functions and error
Groups: php.general 
Request: Send a blank email to php-general+get-207034@lists.php.net to get a copy of this message
Hello! How disable error messages when i send incorrect data into gzip* "extract" functions, such as gzinflate or gzuncompress? For example: function _pack($data) { $data = serialize($data); $data = gzdeflate($data,9); $data = base64_encode($data); $data = urlencode($data); return $data; } # _pack() function _unpack($data) { $data = urldecode($data); $data = base64_decode($data); $data = gzinflate($data); $data = unserialize($data); return $data; } # _unpack() $s = _pack("123"); // K7YytlIyNDJWsgYA $s = _unpack("K7YytlIyNDJWsgYA"); // 123 $s = _unpack("123"); // Warning: gzinflate() [function.gzinflate]: data error How disable this warnings? error_reporting(0) or @ operators does not help me. But I dont want use error_handler functions. Thanks.

« previous php.general (#207034) next »