Re: HTTP_download -If-Modified-Since (->304) does not work

From: Date: Fri, 19 Dec 2003 18:09:20 +0000
Subject: Re: HTTP_download -If-Modified-Since (->304) does not work
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24548@lists.php.net to get a copy of this message
Hi! "Michael Wallner" <mike@php.net> wrote > Seems that the signature of this method has changed, prior versions > allowed to pass the HTTP_HEADER_STATUS_* constants. OK, so I can change this. But this method will stil raise an error. > Well, others may log this event, so just check what error has happened. > I guess it's time to introduce some error constatnts... But why using PEAR::raiseError for this? I get the message: "HTTP Cached: Not Modified", but this is not an error, it is something for logging as you say. But I use a global PEAR error-handling: function PEAR_errorHandling(&$error) { if (DB::isError($error)) { log_db_error(...); display_error_template(...); exit; } else { log_pear_error(...); display_error_template(...); exit; } } PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'PEAR_errorHandling'); Or is it stupid to do something like that? regards, Andreas

« previous php.pear.dev (#24548) next »