php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #46598 minor mistake in docs
Submitted: 2008-11-17 23:52 UTC Modified: 2008-11-18 07:51 UTC
From: ben at nullcreations dot net Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
 [2008-11-17 23:52 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-18 07:51 UTC] bjori@php.net
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
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 15:00:02 2026 UTC