note 71671 added to migration5.incompatible

From: Date: Mon, 11 Dec 2006 05:32:51 +0000
Subject: note 71671 added to migration5.incompatible
Groups: php.notes 
Request: Send a blank email to php-notes+get-120499@lists.php.net to get a copy of this message
I don't seem to see this change documented anywhere: In php4, if you used -> after a function call, it would give a parse error of unexpected T_OBJECT_OPERATOR, while in php5 it is perfectly valid <?php //works in php5 but not php4 $obj->func1()->func2(); //works in both php4 and 5 $obj->var1->func1(); //a work around to the problem: $thing = $obj->func1(); $thing->func2(); ?> ---- Server IP: 216.194.113.175 Probable Submitter: 69.232.157.209 ---- Manual Page -- http://www.php.net/manual/en/migration5.incompatible.php Edit -- https://master.php.net/note/edit/71671 Del: integrated -- https://master.php.net/note/delete/71671/integrated Del: useless -- https://master.php.net/note/delete/71671/useless Del: bad code -- https://master.php.net/note/delete/71671/bad+code Del: spam -- https://master.php.net/note/delete/71671/spam Del: non-english -- https://master.php.net/note/delete/71671/non-english Del: in docs -- https://master.php.net/note/delete/71671/in+docs Del: other reasons-- https://master.php.net/note/delete/71671 Reject -- https://master.php.net/note/reject/71671 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120499) next »