Bug #76535 [NEW]: Opcache does not replay compile-time warnings
| From: | nikic@php.net | Date: | Wed, 27 Jun 2018 09:00:42 +0000 |
| Subject: | Bug #76535 [NEW]: Opcache does not replay compile-time warnings | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-215986@lists.php.net to get a copy of this message | ||
From: nikic
Operating system:
PHP version: Irrelevant
Package: opcache
Bug Type: Bug
Bug description:Opcache does not replay compile-time warnings
Description:
------------
If opcache is enabled, non-fatal compile-time diagnostics are only
emitted on first compile, not when the file is fetched from cache.
It would be nice if we would register an error handler that records all
the emitted warnings and then emit them when the file is loaded.
Main motivation is testing: Currently if you want to test a file cache
compile&load cycle, you have to filter out many tests that always fail
due to warning differences. It's hard to spot regressions because of
that.
--
Edit bug report at https://bugs.php.net/bug.php?id=76535&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76535&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76535&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76535&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76535&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76535&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76535&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76535&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76535&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76535&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76535&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76535&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76535&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76535&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76535&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76535&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76535&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76535&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76535&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76535&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76535&r=mysqlcfg