|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #67191 using namespace classname and same classname compile warning in extension
Submitted: 2014-05-03 15:36 UTC Modified: -
From: netyum at 163 dot com Assigned:
Status: Open Package: Compile Warning
PHP Version: 5.5.12 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: netyum at 163 dot com
New email:
PHP Version: OS:


 [2014-05-03 15:36 UTC] netyum at 163 dot com
namespace Utils\Greeting;

class Greeting {

    public static function Greeting() {
        echo "In Greeting Method\n";


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 in 2057 line.


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Dec 01 12:02:32 2020 UTC