php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #43320 __autoload function is pointed as method
Submitted: 2007-11-17 21:13 UTC Modified: 2007-11-20 02:06 UTC
From: andrey at niakhaichyk dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andrey at niakhaichyk dot org
New email:
PHP Version: OS:

 

 [2007-11-17 21:13 UTC] andrey at niakhaichyk dot org
Description:
------------
The Magic Methods section has following string:
---
The function names __construct, __destruct  (see Constructors and Destructors), __call, __get, __set, __isset, __unset  (see Overloading), __sleep, __wakeup, __toString, __set_state, __clone and __autoload  are magical in PHP classes. You cannot have functions with these names in any of your classes unless you want the magic functionality associated with them.
---

It's incorrect to place __autoload function near by magic class methods, because it won't work inside a class.

Expected result:
----------------
__autoload function has already described in the Autoloading Objects section.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-17 21:14 UTC] andrey at niakhaichyk dot org
I think should remove __autoload from Magic Methods section
 [2007-11-20 02:06 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-2024 The PHP Group
All rights reserved.
Last updated: Thu May 16 20:01:34 2024 UTC