Req #67191 [NEW]: using namespace classname and same classname compile warning in extension
| From: | netyum at 163 dot com | Date: | Sat, 03 May 2014 15:36:27 +0000 |
| Subject: | Req #67191 [NEW]: using namespace classname and same classname compile warning in extension | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-185603@lists.php.net to get a copy of this message | ||
From: netyum at 163 dot com
Operating system: linux
PHP version: 5.5.12
Package: Compile Warning
Bug Type: Feature/Change Request
Bug description:using namespace classname and same classname compile warning in extension
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=67191&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67191&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67191&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67191&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=67191&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=67191&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=67191&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=67191&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=67191&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=67191&r=support
Expected behavior: https://bugs.php.net/fix.php?id=67191&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=67191&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=67191&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=67191&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67191&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=67191&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=67191&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=67191&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67191&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=67191&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=67191&r=mysqlcfg