#47267 [Opn->Bgs]: Every class method can be called as static
| From: | johannes@php.net | Date: | Mon, 02 Feb 2009 14:10:50 +0000 |
| Subject: | #47267 [Opn->Bgs]: Every class method can be called as static | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-133379@lists.php.net to get a copy of this message | ||
ID: 47267
Updated by: johannes@php.net
Reported By: piero dot recchia at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Ubuntu 8.10
PHP Version: 5.2.8
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
.
Previous Comments:
------------------------------------------------------------------------
[2009-02-02 03:44:40] piero dot recchia at gmail dot com
Description:
------------
Every class method can be called as static:
A wrote a class without static method, but i can call any method as
static method.
Reproduce code:
---------------
<?php
class Test {
public function nonStatic() {
echo 'Hola Non-Static';
}
}
Test::nonStatic();
?>
Expected result:
----------------
a error message or exception
Actual result:
--------------
Hola Non-Static
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47267&edit=1