#48394 [NEW]: Error handling example incorrect
| From: | shangxiao@php.net | Date: | Tue, 26 May 2009 03:24:11 +0000 |
| Subject: | #48394 [NEW]: Error handling example incorrect | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-2307@lists.php.net to get a copy of this message | ||
From: shangxiao@php.net
Operating system:
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Error handling example incorrect
Description:
------------
The example in the manual on error handling "Examples"
http://www.php.net/manual/en/errorfunc.examples.php
shows that all
errors can be handled in the error handler.
However in the manual page for set_error_handler:
The following error types cannot be handled with a user defined
function: E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING,
E_COMPILE_ERROR, E_COMPILE_WARNING, and most of E_STRICT raised in the
file where set_error_handler() is called.
Reproduce code:
---------------
---
From manual page: errorfunc.examples
---
--
Edit bug report at http://bugs.php.net/?id=48394&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48394&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48394&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48394&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48394&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48394&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48394&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48394&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48394&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48394&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48394&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48394&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48394&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48394&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48394&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48394&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48394&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48394&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48394&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48394&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48394&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48394&r=mysqlcfg