Re: define() does not return FALSE on collisions
| From: | Andi Gutmans | Date: | Wed, 26 Jul 2000 15:57:47 +0000 |
| Subject: | Re: define() does not return FALSE on collisions | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-26328@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.
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.
Andi
At 11:50 26/07/2000 +0200, waldschrott wrote:
Why doesn´t define() report collisions? if(!define("True",-1)) echo '<BR>collision!'; if(!define("False",0)) echo '<BR>collision!'; if(!define("__test",0)) echo '<BR>collision!'; if(!define("__test",0)) echo '<BR>collision'; regards ps. bug 5217 ----- Andi Gutmans <andi@zend.com> http://www.zend.com/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 ° · ° . ¤ · -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net