A
Anonymous
Guest
I have a class, foo, and a class, bar, and in the bar class, one of the variables are initiated as an object of the class foo like this:
The idea is that foo is to be "owned" by bar.
Whenever I do this though, the script is aborted, with no error message neither, probably because the admin have removed those for the looks... :roll:
I tried error_reporting(E_ALL) though, but still get no error message.
It's not critical, but it would sure make my life, and my project, a bit better... :?
Code:
class foo
{
var $owner;
function foo($x)
{
$this->owner=$x;
}
}
class bar
{
var $baz=new foo($this);
...
}
The idea is that foo is to be "owned" by bar.
Whenever I do this though, the script is aborted, with no error message neither, probably because the admin have removed those for the looks... :roll:
I tried error_reporting(E_ALL) though, but still get no error message.
It's not critical, but it would sure make my life, and my project, a bit better... :?