[PHP-DEV] Bug #5313: define() hangs for DIE From: a.yeo <email protected>
Date: 07/01/00

From: a.yeo <email protected>
Operating system: Redhat Linux 6.1
PHP version: 3.0.16
PHP Bug Type: Reproduceable crash
Bug description: define() hangs for DIE

<html>
<body>
<?
   if (define ("DIE", 99)) {
      echo ("--DIE-- is not internally defined");
      echo ("<br>So, I defined it as 99 and it now becomes :");
      echo DIE;
   } else {
      echo ("--DIE-- is already defined internally as: ");
      echo DIE;
   }
</html>
</body>
---------------------------
Output turns out to be
--DIE-- is not internally defined
So, I defined it as 99 and it now becomes :1
---------------------------

If I change the constant name to something else other than
DIE, it will be OK.

-- 
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>