Hi,
Can someone confirm this problem:
This works:
var $x = array(
"x" => "x".
"y",
"y" => "a".
"b"
);
}
var_dump($x);
But this doesn't work:
class g{
var $x = array(
"x" => "x".
"y",
"y" => "a".
"b"
);
}
$g = new g();
var_dump($g->x);
It throws
Parse error: parse error, expecting `')'' in x.php on line 5
I know I have an outdated version of PHP (4.3.2), but it is compiled
with a special MSSQl extension and I cannot seem to compile the patch
with 4.3.3 and 4.3.4. The patch reads the milliseconds for dates.
There's a workaround, but it would involve heaps of testing again.
Just wanted to see, if its worth going to a different version.
Jochen
--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
Can someone confirm this problem:
This works:
var $x = array(
"x" => "x".
"y",
"y" => "a".
"b"
);
}
var_dump($x);
But this doesn't work:
class g{
var $x = array(
"x" => "x".
"y",
"y" => "a".
"b"
);
}
$g = new g();
var_dump($g->x);
It throws
Parse error: parse error, expecting `')'' in x.php on line 5
I know I have an outdated version of PHP (4.3.2), but it is compiled
with a special MSSQl extension and I cannot seem to compile the patch
with 4.3.3 and 4.3.4. The patch reads the milliseconds for dates.
There's a workaround, but it would involve heaps of testing again.
Just wanted to see, if its worth going to a different version.
Jochen
--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
Comment