logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Re: Notices in System.php: msg#00590

Subject: Re: Re: Notices in System.php
On Wed, 28 Aug 2002 12:51:42 +0200
"Tomas V.V.Cox" <cox@xxxxxxxxxxx> wrote:

> Sebastian Bergmann wrote:
> > 
> >   The following code gives a notive for every
> > 
> >     $var = $_ENV[...]
> > 
> >   trial it performs:
> > 
> >     function tmpdir()
> >     {
> >         if (OS_WINDOWS) {
> >             if (($var=$_ENV['TEMP']) || $var=getenv('TEMP')) {
> 
> Yeah, sorry Pierre, but the correct code is:
> 
> if ($var = isset($_ENV['TEMP']) ? $_ENV['TEMP'] : getenv('TEMP')) {

Yes, I fix it locally, but did not have time to commit, well I used 

if ((isset($_ENV['TUTU'])&&$var=$_ENV['TUTU'])||$var=getenv('TUTU')){
    echo '0'  . $var . "\n";
}

but do the same :), find that more clear ;-)

commit asap (before the end of the day ;) ).

hth

pa

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>