|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-02-18 11:27 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2021-02-18 11:27 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 21:00:01 2025 UTC |
Description: ------------ <?php namespace Utils\Greeting; class Greeting { public static function Greeting() { echo "In Greeting Method\n"; } } Greeting::Greeting(); ?> ok, this is no problem。 but my write down an extension(c code). feature to same up . using namespace Utils\Greeting run php show error: PHP Warning: Constructor utils\Greeting::Greeting() cannot be static in Unknown on line 0 Since php script, why not expand。 please see https://github.com/php/php-src/blob/master/Zend/zend_API.c in 2057 line.