#42816 [NEW]: [PATCH] Add support for core and magic constants to error.php
| From: | aharvey@php.net | Date: | Mon, 01 Oct 2007 16:44:59 +0000 |
| Subject: | #42816 [NEW]: [PATCH] Add support for core and magic constants to error.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-147@lists.php.net to get a copy of this message | ||
From: aharvey@php.net
Operating system: Irrelevant
PHP version: Irrelevant
PHP Bug Type: Website problem
Bug description: [PATCH] Add support for core and magic constants to error.php
Description:
------------
The (extremely useful) php.net/$keyword redirect currently doesn't support
the array of pre-defined constants available within PHP. This is an extra
problem because the manual search typically doesn't return relevant results
for many of them: as an example, try <http://php.net/PHP_EOL> -- the right
place to go would be <http://php.net/reserved.constants>, but that's
not in
the list.
I've concocted a patch for error.php to add support for the "core
predefined constants" and the magic constants (including __NAMESPACE__,
since it looks like we'll be getting that one soon enough), and it's at
<http://www.adamharvey.name/stuff/error-constants.diff>.
Hard-coding the
constants into the manual page moves array probably isn't the best
approach, but there's going to need to be an evil-looking list somewhere, I
guess.
This patch doesn't address the longer list of "standard predefined
constants", but it's a start. If the approach is acceptable (or a better
one is recommended), I'll look at cooking up a patch for those as well.
--
Edit bug report at http://bugs.php.net/?id=42816&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42816&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42816&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42816&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42816&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=42816&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42816&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42816&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42816&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42816&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42816&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=42816&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=42816&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42816&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42816&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42816&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42816&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42816&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42816&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42816&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42816&r=mysqlcfg