odd class behaviour.
| From: | Thies C. Arntzen | Date: | Wed, 09 Jun 1999 10:45:09 +0000 |
| Subject: | odd class behaviour. | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-1406@lists.php.net to get a copy of this message | ||
(latest CVS)
<?
class hallo
{ var $s = array("SGML" => 1,"DOCUMENT" => 1,"HEAD" =>
1,"BODY" => 1,"TRAILER" => 1,"DCCTX" => 1);
var $test = array("aaa" => 1,"bbb" => 2,"ccc" => 3);
}
$t = new hallo;
var_dump($t->test);
var_dump($t->s);
?>
prints:
Content-Type: text/html
array(3) {
int(1)
string(3) "aaa"
int(2)
string(3) "bbb"
int(3)
string(3) "ccc"
}
array(1) {
int(1)
string(5) "DCCTX"
}
php3 says:
Content-type: text/html
array(3) {
string(3) "aaa"
int(1)
string(3) "bbb"
int(2)
string(3) "ccc"
int(3)
}
array(6) {
string(4) "SGML"
int(1)
string(8) "DOCUMENT"
int(1)
string(4) "HEAD"
int(1)
string(4) "BODY"
int(1)
string(7) "TRAILER"
int(1)
string(5) "DCCTX"
int(1)
}
or is that the "know" incompatiblity regarding dynamic (it's not really isn't
it) to php3?
regards,
tc
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany