Doc #65246 [Opn->Csd]: Discrepancy between documentation and actual workings
| From: | aharvey@php.net | Date: | Sun, 21 Jul 2013 14:37:54 +0000 |
| Subject: | Doc #65246 [Opn->Csd]: Discrepancy between documentation and actual workings | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10098@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65246&edit=1
ID: 65246
Updated by: aharvey@php.net
Reported by: bernardo at thebigb dot nl
Summary: Discrepancy between documentation and actual
workings
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: Debian GNU/Linux 7 (wheezy)
PHP Version: 5.3.27
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2013-07-21 14:37:44] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=330996
Log: Document the change in inheritance behaviour in PHP 5.3.9 when conflicting
method names share a signature.
Fixes doc bug #65246 (Discrepancy between documentation and actual workings).
------------------------------------------------------------------------
[2013-07-11 19:52:26] bernardo at thebigb dot nl
Description:
------------
The actual PHP version I am using is PHP 5.4.4-14+deb7u2.
The issue is regarding this doc page:
http://www.php.net/manual/en/language.oop5.interfaces.php
More specifically the statement: "Note: A class cannot implement two interfaces
that share function names, since it would cause ambiguity."
This statement is incorrect, as I have discovered in my PHP environment that the
test below executes without errors or warnings.
I tracked the change in the documented behavior down to the following commit:
https://github.com/php/php-
src/commit/31ef559712dae57046b6377f07634ad57f9d88cf#Zend/zend_compile.c
That would mean that the note is not relevant anymore since php-5.3.9.
Test script:
---------------
interface Foo
{
public function sameMethod();
}
interface Bar
{
public function sameMethod();
}
class Baz implements Foo, Bar
{
public function sameMethod()
{
echo 'Something';
}
}
$obj = new Baz();
$obj->sameMethod();
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65246&edit=1