Re: cvs: pear /HTTP_Header Header.php /HTTP_Header/Header Cache.php

From: Date: Tue, 09 Dec 2003 18:46:35 +0000
Subject: Re: cvs: pear /HTTP_Header Header.php /HTTP_Header/Header Cache.php
References: 1 2  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-14738@lists.php.net to get a copy of this message
Pierre-Alain Joye wrote:
On Tue, 09 Dec 2003 18:31:42 -0000 "Wolfram Kriesing" <cain@php.net> wrote:
    function sendHeaders($keys=array())
    {
        foreach ($this->_headers as $key=>$value) {
-            header("$key: $value");
+            if ($keys && in_array($key,$keys))  {
+                header("$key: $value");
+            } else {
+                header("$key: $value");
+            }
why a test? you are doing strictly the same in both conditions :) Do you mean only the true condition? pierre
hey cool Pierre .. u caught me :-) i want unittests for this ... but how :-? -- Wolfram http://opensource.visionp.de ... authentication system .... http://sf.net/projects/auth

« previous php.pear.cvs (#14738) next »