|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-03-19 01:33 UTC] thedinosaurmail at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 21:00:01 2025 UTC |
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)