#43703 [Opn->Asn]: Signature compatibility check broken for namespaces
| From: | dmitry@php.net | Date: | Sat, 29 Dec 2007 13:44:11 +0000 |
| Subject: | #43703 [Opn->Asn]: Signature compatibility check broken for namespaces | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120929@lists.php.net to get a copy of this message | ||
ID: 43703
Updated by: dmitry@php.net
Reported By: sebastian@php.net
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
Operating System: Irrelevant
PHP Version: 5.3CVS-2007-12-29 (CVS)
-Assigned To:
+Assigned To: dmitry
Previous Comments:
------------------------------------------------------------------------
[2007-12-29 10:52:59] sebastian@php.net
Description:
------------
When a namespaced class extends an namespaced abstract class, the
signature compatiblity check breaks.
Reproduce code:
---------------
test.php
<?php
require 'joinpoint.php';
require 'pointcut.php';
require 'read.php';
joinpoint.php
<?php
namespace GAP;
class JoinPoint
{
}
pointcut.php
<?php
namespace GAP;
abstract class Pointcut
{
abstract public function evaluate(JoinPoint $joinPoint);
}
read.php
<?php
namespace GAP::Pointcut::Attribute;
use GAP::Joinpoint;
use GAP::Pointcut;
class Read extends Pointcut
{
public function evaluate(JoinPoint $joinPoint)
{
}
}
Expected result:
----------------
No syntax error.
Actual result:
--------------
Fatal error: Declaration of GAP::Pointcut::Attribute::Read::evaluate()
must be compatible with that of GAP::Pointcut::evaluate() in
/home/sb/read.php on line 12
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43703&edit=1