Re: [PHP-DEV] define() does not return FALSE on collisions From: Andi Gutmans (andi <email protected>)
Date: 07/26/00

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
>
>--
>o----------0-¬---------O-·---¬----o---®-----o o O ° .
>| http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ ° ·
>0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . ·
>| psychedelic experience | gott <email protected> | 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 <email protected>
>For additional commands, e-mail: php-dev-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>