Re: define() does not return FALSE on collisions

From: Date: Wed, 26 Jul 2000 16:17:24 +0000
Subject: Re: define() does not return FALSE on collisions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-26334@lists.php.net to get a copy of this message
It's not implemented. We would need to change zend_register_constant() to return a result.
Manual suggests it is... I´ll leave that bug report open...
Not a biggy and could be done. However, we don't want to support undefine(). It doesn't work with the constants implementation in PHP which looks at constants as REAL constants, i.e., they can't be changed.
no problem with that, just a thought... regards -- o----------0-¬---------O-·---¬----o---®-----o o O ° . | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ ° · 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . · | psychedelic experience | gott@kiffen.de | O ° o ° o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·

« previous php.dev (#26334) next »