Re: [Patch] HTTP_Header::sendStatusCode (was HTTP_download -If-Modified-Since)

From: Date: Sat, 20 Dec 2003 16:58:52 +0000
Subject: Re: [Patch] HTTP_Header::sendStatusCode (was HTTP_download -If-Modified-Since)
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24584@lists.php.net to get a copy of this message
Hi Davey, you wrote: > Hey, > > Please find a patch here [1] to fix what I broke in HTTP_Header. > > [1] ©9Œ¹ |u > %û@M½–gZhttp://davey.is-a-geek.com/php-cvs/diffs/pear/HTTP_Header.txt Hm, perhaps consider this: function sendStatusCode($code) { if (preg_match('/^(\d{3})/', $code, $m) && defined('HTTP_HEADER_STATUS_' . $m[1])) { header('HTTP/' . $this->_httpVersion . ' ' . constant('HTTP_HEADER_STATUS_' . $m[1])); } } Regards, -- Michael - < mike(@)php.net >

Attachment: [application/pgp-signature]
« previous php.pear.dev (#24584) next »