note 19258 deleted from language.constants by vincent
| From: | vincent@php.net | Date: | Sun, 21 Sep 2003 09:58:52 +0000 |
| Subject: | note 19258 deleted from language.constants by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56847@lists.php.net to get a copy of this message | ||
Note Submitter: tlittle@deepdesign.com.au
----
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.