Re: Undefined Constants behavior in PHP6

From: Date: Fri, 19 Oct 2007 09:13:49 +0000
Subject: Re: Undefined Constants behavior in PHP6
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-32873@lists.php.net to get a copy of this message
and what's wrong with the following syntax? if(defined('DEBUG')) print_r($_SESSION); I don't think there's a need to change anything here… On 10/19/07, news.php.net <131.php@cloudyks.org> wrote: > I was wondering if someone already think about modifying the actual behavior > of undefined constants in php6. > I'm desperate with some > > if(DEBUG) print_r($_SESSION); > > - and lot others case - > > Is there a possibility undefined constants ( strings ) return "null" :x ? > I do not think it's a mistake, since echo "{$array[foo]}" is not good and > "{$array['foo']}" is > > 131 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Alexey Zakhlestin http://blog.milkfarmsoft.com/

« previous php.internals (#32873) next »