|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-05-01 13:17 UTC] php-bugs at T43 dot mine dot nu
Description: ------------ the oop5 documentation has a lot of unclear / missing very basic passages. Among them are: Basics: How to define a member, How to define a method How to add a member to an instance ($apple->newmember) How to add a member to the class on the fly Constructors: the classname($var) syntax The sentence "Followed by a pair of curly braces, OF which contains the definition " the word 'OF' is grammatically wrong in the ears of non-english, making the sentence non-understandable. Most of this was missing in the php4 class documentation too. It is not clear whether the php5 class chapter replaces, or augments the php4 class chapter. I can't fix it as I can't delve into the sources of ZEND engine and the like. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 08:00:01 2025 UTC |
more missing. There can only be one constructor, as opposed to C++. So function classname($var1,$var2) can't coexist with function classname($var1) . Further, when there is a constructor, the new operator has to use it. Given function classname($var1), the call $apple= new classname; fails, but $apple=new classname('apple') is required syntax.