note 90211 deleted from language.references.pass by danbrown
| From: | danbrown@php.net | Date: | Fri, 10 Apr 2009 13:54:21 +0000 |
| Subject: | note 90211 deleted from language.references.pass by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153049@lists.php.net to get a copy of this message | ||
Note Submitter: hell
----
It's _not_ equal!
<?php
// PHP Version 5.2.9-1
$obj1 = (object) array('foo' => 'bar');
$obj2 = $obj1;
$obj3 =& $obj1;
$obj2 = null;
var_dump($obj1);
// object(stdClass)#1 (1) {
// ["foo"]=>
// string(3) "bar"
// }
$obj3 = null;
var_dump($obj1);
// NULL
?>