ID: 20406 Comment by: rodrigezz5 at wp dot pl Reported By: fredbird at contactoffice dot net Status: Bogus Bug Type: Variables related Operating System: Windows XP PHP Version: 4.2.0 New Comment:
oh, and EasyPHP is a all-in-one package for installing Apache, MySQL, PHP and PHPMyAdmin on one windows computer. Check http://www.easyphp.org/ for more info. It's free ;o) Previous Comments: ------------------------------------------------------------------------ [2003-10-24 07:21:57] rodrigezz5 at wp dot pl oh, and EasyPHP is a all-in-one package for installing Apache, MySQL, PHP and PHPMyAdmin on one windows computer. Check http://www.easyphp.org/ for more info. It's free ;o) ------------------------------------------------------------------------ [2002-11-13 09:47:02] fredbird at contactoffice dot net oh, and EasyPHP is a all-in-one package for installing Apache, MySQL, PHP and PHPMyAdmin on one windows computer. Check http://www.easyphp.org/ for more info. It's free ;o) ------------------------------------------------------------------------ [2002-11-13 09:47:01] fredbird at contactoffice dot net oh, and EasyPHP is a all-in-one package for installing Apache, MySQL, PHP and PHPMyAdmin on one windows computer. Check http://www.easyphp.org/ for more info. It's free ;o) ------------------------------------------------------------------------ [2002-11-13 09:43:38] fredbird at contactoffice dot net About NAME and NOM : this is a translation problem only (NOM being the french word for NAME). This piece of code is just an example to show the bug : please read NAME and NOM as the same constant. I tested this code and it print _really_ "value". As for the name of an undefined constant being treated as the string value of the name, i didn't knew about it. It just makes me wonder more how are we supposed to check if a constant is defined within a function or a class, and why we can't althought we can access the value of this constant. I can't help but thinking that this _is_ a bug. ------------------------------------------------------------------------ [2002-11-13 07:35:44] [EMAIL PROTECTED] Btw. your example is wrong, you check 'NOM' instead of 'NAME'. Another thing in your script is "defined(NOM)". You should write "define('NOM')". And the last: you can't use "if (NAME)" for a replacement of "if (defined('NAME'))". In this case NAME is evaluted to the string 'NAME'. The condition is always TRUE :) Think about it. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20406 -- Edit this bug report at http://bugs.php.net/?id=20406&edit=1