PHP 4.0 Bug #10068 Updated: referenced objects

From: Date: Fri, 30 Mar 2001 01:18:41 +0000
Subject: PHP 4.0 Bug #10068 Updated: referenced objects
Groups: php.dev 
Request: Send a blank email to php-dev+get-50319@lists.php.net to get a copy of this message
ID: 10068 User Update by: salna@ktl.mii.lt Status: Open Bug Type: Reproduceable crash Description: referenced objects checked new php version still keeps crashing Previous Comments: --------------------------------------------------------------------------- [2001-03-29 19:46:23] salna@ktl.mii.lt <? class objekt { var $property; function objekt() { $this->property = 'okey'; } function property() { echo "<br>$this->property"; } function &gb_objekt() { $obj =& $GLOBALS['gb_objekt']; if (get_class($obj) != 'objekt') { $obj = new objekt(); } return $obj; } } $gb_objekt =& objekt::gb_objekt(); // next line crashes $gb_objekt->property(); $objekt =& objekt::gb_objekt(); $objekt->property = 'more okey'; $objekt->property(); $gb_objekt->property(); ?> --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=10068

« previous php.dev (#50319) next »