Re: Undefined Constants behavior in PHP6

From: Date: Fri, 19 Oct 2007 09:26:28 +0000
Subject: Re: Undefined Constants behavior in PHP6
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-32874@lists.php.net to get a copy of this message
""Alexey Zakhlestin"" <indeyets@gmail.com> a écrit dans le message de news: cd5680a20710190213n7d3f89b4v34e22c07c4c0f896@mail.gmail.com... > 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, more than the simple "existance" of a constants, sometime, it's "value" might be more important, and auto-string conversion is a wrong behavior i think. of course, i could if(defined("DEBUG") && DEBUG ) ... that's so.... php not. Is there a way to have a " nullyfy_undefined_constants=on" setting ?

« previous php.internals (#32874) next »