RE: [PHP-DEV] Accessors Parsing
| From: | Clint M Priest | Date: | Tue, 08 Nov 2011 22:01:54 +0000 |
| Subject: | RE: [PHP-DEV] Accessors Parsing | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56176@lists.php.net to get a copy of this message | ||
In this particular case I was just trying to see if Hours() had properly been defined as a callable
function. Eventually that function name would become __getHours(), this particular line was just a
test (which is where I discovered that the $$ was no longer set to ‘Hours’ on the
zend_do_abstract_method())
From: Александр Москалёв [mailto:irker@irker.net]
Sent: Tuesday, November 08, 2011 2:04 PM
To: Clint M Priest
Cc: internals@lists.php.net
Subject: Re: [PHP-DEV] Accessors Parsing
2011/11/8 Clint M Priest <cpriest@zerocue.com<mailto:cpriest@zerocue.com>>
echo $o->Hours()."\r\n";
Why use as method call? Why not "echo $o->Hours;" ?
With regards, Alexander Moskaliov
Irker@irker.net<mailto:Irker@irker.net>