|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-06-27 09:00 UTC] nikic@php.net
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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 01:00:01 2025 UTC |
@laruence: My main use for this is testing. To test file cache, you need to run something like sapi/cli/php run-tests.php -P -c php.ini -d opcache.file_cache=/tmp Zend/ sapi/cli/php run-tests.php -P -c php.ini -d opcache.file_cache=/tmp -d opcache.validate_timestamps=0 Zend/ However, this causes a lot of test failures even if every thing works "correctly", due to differences in warnings. Unless by killing warnings you mean that we have plans to remove them from PHP entirely, I think it makes sense to implement this.