ID:               45261
 User updated by:  sertyoan at osyra dot net
 Reported By:      sertyoan at osyra dot net
-Status:           Open
+Status:           Closed
 Bug Type:         Class/Object related
 Operating System: Ubuntu
 PHP Version:      5.2.6
 New Comment:

Ok. Let's close it so. Sorry for polluting bugs list.


Previous Comments:
------------------------------------------------------------------------

[2008-06-15 18:27:25] crrodriguez at suse dot de

This is the "expected" behaviour. it will crash in 5_2 and will reach
the memory limit in 5_3 and print

Fatal error: Allowed memory size of %d bytes exhausted at..

------------------------------------------------------------------------

[2008-06-13 14:10:16] sertyoan at osyra dot net

Description:
------------
When creating an object which has as property an object of the same
class - this creates an infinite loop -, the page doesn't display
(that's normal) but no error is raised.

Reproduce code:
---------------
class A {
 private $B;

 public function __construct() {
  $this->B = new A();
 }
}

Expected result:
----------------
PHP should bug and raise an error.

Actual result:
--------------
Nothing. Blank page and no error raised.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45261&edit=1

Reply via email to