Doc #52445 [NEW]: Require function documentation contains wrong error level
| From: | r dot bos at pagelink dot nl | Date: | Mon, 26 Jul 2010 14:37:15 +0000 |
| Subject: | Doc #52445 [NEW]: Require function documentation contains wrong error level | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-4743@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: 5.2.14
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Require function documentation contains wrong error level
Description:
------------
The documentation for the require function contains the wrong error level.
"require() is identical to include() except upon failure it will also
produce a fatal E_ERROR level error."
But it gives an E_COMPILE_ERROR.
Test script:
---------------
//This will not give a fatal error
error_reporting (E_ERROR);
require("not.existing.file.php");
//But this code does...
error_reporting (E_COMPILE_ERROR);
require("not.existing.file.php");
--
Edit bug report at http://bugs.php.net/bug.php?id=52445&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52445&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52445&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52445&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52445&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52445&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52445&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52445&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52445&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52445&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52445&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52445&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52445&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52445&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52445&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52445&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52445&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52445&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52445&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52445&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52445&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52445&r=mysqlcfg