|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-11-25 13:35 UTC] rasmus at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 03:00:01 2025 UTC |
The following script gives parser error on the last line: ___________________________________________________________ class Sample{ var $b; function Sample(){ $b[] = new Crash; } } class Crash{ var $c; } $a = new Sample; $a->b[0]->c=1999; ___________________________________________________________ As I understand there is only one way to modify the content of property $a->b[0]->c: $temp=$a->b[0]; $temp->c=1999; $a->b[0]=$temp; But it is too awkward.