|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-05-17 11:56 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Package: Class/Object related
+Package: Scripting Engine problem
-Assigned To:
+Assigned To: cmb
[2021-05-17 11:56 UTC] cmb@php.net
[2021-05-17 12:15 UTC] felix at felix-kolbe dot de
[2021-05-17 12:23 UTC] felix at felix-kolbe dot de
[2021-05-17 12:25 UTC] cmb@php.net
-Status: Feedback
+Status: Open
-Assigned To: cmb
+Assigned To:
[2021-05-17 12:25 UTC] cmb@php.net
[2021-05-17 12:34 UTC] felix at felix-kolbe dot de
[2021-05-17 12:40 UTC] nikic@php.net
-Status: Open
+Status: Verified
-Package: Scripting Engine problem
+Package: opcache
[2021-05-17 13:09 UTC] nikic@php.net
-Status: Verified
+Status: Analyzed
[2021-05-17 13:09 UTC] nikic@php.net
[2021-05-17 13:41 UTC] nikic@php.net
-Summary: constant overwrite class method
+Summary: Literal compaction merges non-equal related
literals
-Assigned To:
+Assigned To: nikic
[2021-05-17 13:47 UTC] git@php.net
[2021-05-17 13:47 UTC] git@php.net
-Status: Analyzed
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 09:00:02 2025 UTC |
Description: ------------ testet with 8.0.3 and 8.0.5 using a constant with upper-case(sic!) and the same name as a method result in "Call to undefined method" (and vice versa method overwrite constants) Test script: --------------- <?php const fuN = 1; new test; class test{ public function __construct() { fuN; $this->fun(); // prints test->fun $this->fuN(); //Call to undefined method test::fuN() //fuN; coment this out for : Uncaught Error: Undefined constant "fuN" } function fun(){ echo "<p>" . __CLASS__ . "->" . __FUNCTION__ . "</p>"; } }