Doc #60499 [Opn->Csd]: Classes and Objects - Scope Resolution Operator (::) - additional info
| From: | bjori@php.net | Date: | Wed, 21 Dec 2011 15:05:13 +0000 |
| Subject: | Doc #60499 [Opn->Csd]: Classes and Objects - Scope Resolution Operator (::) - additional info | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7692@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60499&edit=1
ID: 60499
Updated by: bjori@php.net
Reported by: bogdan dot bezuz at emag dot ro
Summary: Classes and Objects - Scope Resolution Operator (::)
- additional info
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: Any
PHP Version: Irrelevant
-Assigned To:
+Assigned To: bjori
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:
------------------------------------------------------------------------
[2011-12-21 15:05:02] bjori@php.net
Automatic comment from SVN on behalf of bjori
Revision: http://svn.php.net/viewvc/?view=revision&revision=321294
Log: Link to a trickery example, fixes bug#60499
------------------------------------------------------------------------
[2011-12-12 14:34:30] bogdan dot bezuz at emag dot ro
Description:
------------
Since it is (still) possible to call a non-static method in a static way i think this should be
documented with a not recommended mention.
The section at http://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php
should contain also the example from http://php.net/language.oop5.basic#example-156
Test script:
---------------
class A {
public function foo() {
var_dump($this->b);
}
}
class B {
public $b = 'stuff';
public function bar() {
A::foo();
}
}
$b = new B();
$b->bar(); // will output string 'stuff' (length=5)
Expected result:
----------------
error
Actual result:
--------------
string 'stuff' (length=5)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60499&edit=1