Re: [VOTE] Property Accessors for 5.5
| From: | Clint Priest | Date: | Sun, 20 Jan 2013 15:31:33 +0000 |
| Subject: | Re: [VOTE] Property Accessors for 5.5 | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-65042@lists.php.net to get a copy of this message | ||
On 1/20/2013 7:35 AM, Sherif Ramadan wrote:
Now $surface shows us the following from var_dump.... object(surface)#1 (3) { ["area"]=> NULL ["width"]=> int(4) ["height"]=> int(2) } Sounds like a reasonable approach to me... var_dump()1) Should not invoke the getters.. 2) Should indicate that they are property accessors (perhaps not even show the underlying guarded property?) Possibly: object(surface)#1 (3) { ["area":accessor]=> NULL ["width":accessor]=> int(4) ["height":accessor]=> int(2) } This could easily be changed if nobody had any further disagreements with this? Only issue I could see would be existing code that may parse var_dump() might break if it wasn't written to accept something other that private/protected... -- -Clint