note 93246 added to migration5.incompatible

From: Date: Sun, 30 Aug 2009 13:05:09 +0000
Subject: note 93246 added to migration5.incompatible
Groups: php.notes 
Request: Send a blank email to php-notes+get-160046@lists.php.net to get a copy of this message
This is response to Steven's post. Yes, it's true that PHP returns objects via object handles ( or object identifiers ) but. class A { function A { echo "In"; } } $a &= new A(); is wrong. Here the interpreter tries to bitwise AND the contents of $a ( which is NULL ) with the object identifier returned by new A(). That's why possibly you got a notice. Please note that either way $a =& new A() OR $a = new A() returns an object identifier, and it will not raise a notice. Cheers , Abhijit ---- Server IP: 69.147.83.197 Probable Submitter: 121.245.152.183 (proxied: 121.245.152.183) ---- Manual Page -- http://www.php.net/manual/en/migration5.incompatible.php Edit -- https://master.php.net/note/edit/93246 Del: integrated -- https://master.php.net/note/delete/93246/integrated Del: useless -- https://master.php.net/note/delete/93246/useless Del: bad code -- https://master.php.net/note/delete/93246/bad+code Del: spam -- https://master.php.net/note/delete/93246/spam Del: non-english -- https://master.php.net/note/delete/93246/non-english Del: in docs -- https://master.php.net/note/delete/93246/in+docs Del: other reasons-- https://master.php.net/note/delete/93246 Reject -- https://master.php.net/note/reject/93246 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160046) next »