Bug #79360 [NEW]: Unable to preload constants

From: Date: Mon, 09 Mar 2020 17:58:09 +0000
Subject: Bug #79360 [NEW]: Unable to preload constants
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225985@lists.php.net to get a copy of this message
From: azjezz at protonmail dot com Operating system: PHP version: 7.4.3 Package: opcache Bug Type: Bug Bug description:Unable to preload constants Description: ------------ Preloading doesn't support constants defined with either const or define Test script: --------------- // preload.php define('FOO', 'foo'); const BAR = 'bar'; class Baz {} // index.php var_dump(defined('FOO'), defined('BAR'), class_exists(Baz::class)); Expected result: ---------------- bool(true) bool(true) bool(true) Actual result: -------------- bool(false) bool(false) bool(true) -- Edit bug report at https://bugs.php.net/bug.php?id=79360&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79360&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79360&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79360&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79360&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79360&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79360&r=support Expected behavior: https://bugs.php.net/fix.php?id=79360&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79360&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79360&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79360&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79360&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79360&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79360&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79360&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79360&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79360&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79360&r=mysqlcfg

« previous php.bugs (#225985) next »