ID: 43703
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]
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