Re: Re: Notices in System.php

From: Date: Wed, 28 Aug 2002 10:52:23 +0000
Subject: Re: Re: Notices in System.php
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-8702@lists.php.net to get a copy of this message
On Wed, 28 Aug 2002 12:51:42 +0200 "Tomas V.V.Cox" <cox@idecnet.com> 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

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