ID:               45261
 Comment by:       crrodriguez at suse dot de
 Reported By:      sertyoan at osyra dot net
 Status:           Open
 Bug Type:         Class/Object related
 Operating System: Ubuntu
 PHP Version:      5.2.6
 New Comment:

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..


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

[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