Re: [PHP] Nesting level too deep - recursive dependency?

2004-10-20 Thread Curt Zirzow
* Thus wrote Francisco M. Marzoa Alonso: This code: ?php class TestClass { public $myself; function __construct () { $this-myself = $this; } } $TestObj = new TestClass (); if ( $TestObj-myself == $TestObj ) { echo They are same.\n; } Since comparing

[PHP] Nesting level too deep - recursive dependency?

2004-10-18 Thread Francisco M. Marzoa Alonso
This code: ?php class TestClass { public $myself; function __construct () { $this-myself = $this; } } $TestObj = new TestClass (); if ( $TestObj-myself == $TestObj ) { echo They are same.\n; } ? Gives me a Fatal error: Nesting level too deep - recursive dependency? on line

Re: [PHP] Nesting level too deep - recursive dependency?

2004-10-18 Thread Francisco M. Marzoa Alonso
Can someone tell me if I should fill a bug report about this or is it my fault??? Francisco M. Marzoa Alonso wrote: This code: ?php class TestClass { public $myself; function __construct () { $this-myself = $this; } } $TestObj = new TestClass (); if ( $TestObj-myself ==

Re: [PHP] Nesting level too deep - recursive dependency?

2004-10-18 Thread Chris Dowell
Francisco You really need to post this to [EMAIL PROTECTED] - this list is for us lowly users of PHP, the developers and maintainers of the language have their own list. Cheers Chris Francisco M. Marzoa Alonso wrote: Can someone tell me if I should fill a bug report about this or is it my

Re: [PHP] Nesting level too deep - recursive dependency?

2004-10-18 Thread Francisco M. Marzoa Alonso
Ah, OK thanks for your advice Chris. Chris Dowell wrote: Francisco You really need to post this to [EMAIL PROTECTED] - this list is for us lowly users of PHP, the developers and maintainers of the language have their own list. Cheers Chris Francisco M. Marzoa Alonso wrote: Can someone tell me

Re: [PHP] Nesting level too deep - recursive dependency?

2004-10-18 Thread Brent Baisley
I was looking at this before and I'm not even sure what you are trying to do. For one, you are testing to see if the contents of a class variable are equal to a class instance: $TestObj-myself == $TestObj Which seems a logic equivalent to: $TestObj-myself == TestClass() ??? And in your class

Re: [PHP] Nesting level too deep - recursive dependency?

2004-10-18 Thread Francisco M. Marzoa
Brent Baisley wrote: I was looking at this before and I'm not even sure what you are trying to do. For one, you are testing to see if the contents of a class variable are equal to a class instance: $TestObj-myself == $TestObj Which seems a logic equivalent to: $TestObj-myself == TestClass()