Req #77667 [NEW]: Duplicate error log entries
| From: | valentiny510 at gmail dot com | Date: | Mon, 25 Feb 2019 20:17:22 +0000 |
| Subject: | Req #77667 [NEW]: Duplicate error log entries | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-219732@lists.php.net to get a copy of this message | ||
From: valentiny510 at gmail dot com
Operating system: Irrelevant
PHP version: 7.2.15
Package: *General Issues
Bug Type: Feature/Change Request
Bug description:Duplicate error log entries
Description:
------------
When you try to inlude a non existent file, in the log appear two
similar entries.
[date] PHP Warning: require(non_existent_file): failed to open stream:
No such file or directory in .../index.php on line 5
[date] PHP Fatal error: require(): Failed opening required
'non_existent_file' (include_path='...') in .../index.php on line 5
They are not exactly the same, so technically is a not a duplicate,
but,
they point to the same error, is kinda redundant IMHO, and also a bit
confusing
for the different error types, is just a Warning or Fatal error ?
Is clear that one error is because the 'stream' to be parsed is empty or
non existent and the other is an error because of the language construct
'require'
does not have a valid file to include... Is not a bug, of course, that's
why I am asking as a feature request to remove one of them, and let just
one simpler entry, Ex: 'PHP Warning: file "xxx" not found, in file
.../index.php, line 5'
Let only the Warning for instance since the included file may not be so
important for the entire framework execution to be Fatal...
And if possible, PLEASE let us REMOVE THE TIMEZONE from the date of the
logs...
preferably have a 'log_format = %H.%i.%s' in the php.ini settings
[..... Europe/IrrelevantCity]
(Of course I know that we can have a custom error log system
implemented, but...)
Also would be nice (for security reasons) to have the option to NOT LOG
the full paths, and log only the path/files.php relative to the root
Thank you
--
Edit bug report at https://bugs.php.net/bug.php?id=77667&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77667&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77667&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77667&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77667&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77667&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77667&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77667&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77667&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77667&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77667&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77667&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77667&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77667&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77667&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77667&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77667&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77667&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77667&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77667&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77667&r=mysqlcfg