* 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
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
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 ==
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
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
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
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()
7 matches
Mail list logo