Re: [PHP-DEV] Undefined Constants behavior in PHP6

2007-10-19 Thread news.php.net
""Alexey Zakhlestin"" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > and what's wrong with the following syntax? > > if(defined('DEBUG')) print_r($_SESSION); I might have a define("DEBUG",$_SERVER["REMOTE_ADDR"]=="myip"); included - on not I know defined exists but, m

[PHP-DEV] Undefined Constants behavior in PHP6

2007-10-19 Thread news.php.net
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, sin