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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php