Bug #52095 [Fbk->NoF]: Subclassing a class in a namespace doesnât allow overloading functions
| From: | php-bugs at lists dot php dot net | Date: | Mon, 18 Feb 2013 00:34:20 +0000 |
| Subject: | Bug #52095 [Fbk->NoF]: Subclassing a class in a namespace doesnât allow overloading functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-176867@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=52095&edit=1
ID: 52095
Updated by: php-bugs@lists.php.net
Reported by: samu dot voutilainen at gmail dot com
Summary: Subclassing a class in a namespace doesnât allow
overloading functions
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Reproducible crash
Operating System: Linux
PHP Version: 5.3.2
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2010-06-17 02:03:53] felipe@php.net
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
I just got this message:
Strict Standards: Declaration of bar\B::meh() should be compatible with that of foo\A::meh()
------------------------------------------------------------------------
[2010-06-16 15:16:37] samu dot voutilainen at gmail dot com
Description:
------------
Code below demonstrates how to produce the bug.
I get to error log a very obscure error:
[Wed Jun 16 15:50:26 2010] [error] [client 127.0.0.1] PHP Fatal error: Class
'slm\\util\\Logger' not found in [..]/a.php on line 160
As a note, there is no call to Logger in this class.
Test script:
---------------
namespace foo {
class A {
public function meh($is = true) { }
}
}
namespace bar {
class B extends /foo/A {
public function meh() {}
}
}
Expected result:
----------------
B::meh() to override A::meh()
Actual result:
--------------
No output and very strange error to the system log:
[Wed Jun 16 15:50:26 2010] [error] [client 127.0.0.1] PHP Fatal error: Class
'slm\\util\\Logger' not found in [..]/a.php on line 160
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=52095&edit=1