Bug #78376 [NEW]: Incorrect preloading of constant static properties

From: Date: Mon, 05 Aug 2019 19:50:33 +0000
Subject: Bug #78376 [NEW]: Incorrect preloading of constant static properties
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222094@lists.php.net to get a copy of this message
From: dmitry Operating system: * PHP version: 7.4Git-2019-08-05 (Git) Package: opcache Bug Type: Bug Bug description:Incorrect preloading of constant static properties Description: ------------ Default values of constant static properties may be preloaded incorrectly. Test script: --------------- preload.inc ----------- <?php const CNST = 'aaaa'; class A { public static $a = CNST; } $a = \A::$a; ?> bug.php ------- <?php var_dump(\A::$a); ?> Expected result: ---------------- string(4) "aaaa" Actual result: -------------- UNKNOWN:0 -- Edit bug report at https://bugs.php.net/bug.php?id=78376&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78376&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78376&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78376&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78376&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78376&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78376&r=support Expected behavior: https://bugs.php.net/fix.php?id=78376&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78376&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78376&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78376&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78376&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78376&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78376&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78376&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78376&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78376&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78376&r=mysqlcfg

« previous php.bugs (#222094) next »