php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #43539 Overloading section contain incorrect description for __get
Submitted: 2007-12-08 21:20 UTC Modified: 2007-12-08 22:48 UTC
From: andrey at niakhaichyk dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
 [2007-12-08 21:20 UTC] andrey at niakhaichyk dot org
Description:
------------
Should add following string into overview of this section:
These methods will also be triggered when you haven't access to private or protected property.

Reproduce code:
---------------
class Test {
  
  protected $foo = 6;
  
  protected function func()
  {
    echo __FUNCTION__;
  }
  
  function __get($name)
  {
    echo "__get({$name})\n";
  }

  function __call($name, $params)
  {
    echo "__call({$name})\n";
  }
}

$c = new Test();

echo $c->foo;
echo $c->func();

echo "Done";


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-08 22:48 UTC] felipe@php.net
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.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 10:00:01 2026 UTC