Hello all 🙂
I'm trying to port my PHP3 scripts to PHP4, should be no problem. But when I try to start this scripts, I allways get this error: "Fatal error: Cannot instantiate non-existent class: test in test.php on line 5"
This peace doesn't work:
class test {
var test = "test";
}
This one is working well:
class test {
var test;
function test {
test = "test";
}
}
What's wrong with the first one? Is it maybe a compile switch? I haven't compiled PHP by myself, so I don't know if it's possible to set such a switch.
Thx a lot, Georg