On Fri, 1 Jul 2005, Jochem Maas wrote:
> echo constant('CNST');
>
> when:
>
> echo CNST;
>
> only triggers an E_NOTICE.
> (assuming, in both cases that CNST is not defined).
>
> IMHO it should at most trigger an E_NOTICE.
Did you compare the output of the two statements?
echo constant('CNST');
shows nothing (except the warning)
echo CNST;
shows "CNST" (and a notice).
This makes perfect sense to me to differentiate between them like this.
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php