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

From: Date: Tue, 09 Dec 2003 18:43:12 +0000
Subject: Re: cvs: pear /HTTP_Header Header.php /HTTP_Header/Header Cache.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-14737@lists.php.net to get a copy of this message
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

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