note 19258 added to language.constants
| From: | tlittle at deepdesign dot com dot au | Date: | Thu, 21 Feb 2002 04:28:01 +0000 |
| Subject: | note 19258 added to language.constants | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26877@lists.php.net to get a copy of this message | ||
Also predefined (in PHP 4.1.1 on linux) are a set of LOG_* constants such as LOG_DEBUG, LOG_ERR,
LOG_WARNING, LOG_INFO, LOG_CRIT. I hit this when writing an external logging facility, and
couldn't work out why some of my constants had the wrong values e.g.
<?php
define("LOG_DEBUG", 10);
print LOG_DEBUG;
?>
results in printing "7" rather than the "10" I had expected. This cost me about
15 minutes of grief. I would have expected some warning about trying to redefine a predefined
constant.
--
http://www.php.net/manual/en/language.constants.php
http://master.php.net/manage/user-notes.php?action=edit+19258
http://master.php.net/manage/user-notes.php?action=delete+19258
http://master.php.net/manage/user-notes.php?action=reject+19258