#43539 [Opn->Csd]: Overloading section contain incorrect description for __get

From: Date: Sat, 08 Dec 2007 22:48:18 +0000
Subject: #43539 [Opn->Csd]: Overloading section contain incorrect description for __get
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-334@lists.php.net to get a copy of this message
ID: 43539 Updated by: felipe@php.net Reported By: andrey at niakhaichyk dot org -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: any PHP Version: Irrelevant 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: ------------------------------------------------------------------------ [2007-12-08 21:20:47] 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"; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43539&edit=1

« previous php.doc.bugs (#334) next »