#46598 [Opn->Bgs]: minor mistake in docs

From: Date: Tue, 18 Nov 2008 07:51:50 +0000
Subject: #46598 [Opn->Bgs]: minor mistake in docs
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1511@lists.php.net to get a copy of this message
ID: 46598 Updated by: bjori@php.net Reported By: ben at nullcreations dot net -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: n/a PHP Version: Irrelevant New Comment: You are looking at the wrong docs. See the text above the example.. That page documents the overload() function which was used in PHP4. You are looking for http://php.net/oop5.overloading Previous Comments: ------------------------------------------------------------------------ [2008-11-17 23:52:53] ben at nullcreations dot net Description: ------------ on http://php.net/manual/en/overload.examples.php - Example #1 incorrectly uses the __get() method with 2 parameters (the example will error if executed) Reproduce code: --------------- running the example on the listed page will reproduce this result. Expected result: ---------------- Code should produce output as described on the page. Actual result: -------------- Fatal error: Method OO::__get() must take exactly 1 argument in /home/ben/test/overload.php on line 16 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46598&edit=1

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