Re: Notices in System.php

From: Date: Wed, 28 Aug 2002 10:51:42 +0000
Subject: Re: Notices in System.php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-8701@lists.php.net to get a copy of this message
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')) { (that's why I only proposed the use of only getenv() :-) Tomas V.V.Cox

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