PHP 4.0 Bug #1855: Wrong behavior in overloading a variable

From: Date: Fri, 23 Jul 1999 23:08:23 +0000
Subject: PHP 4.0 Bug #1855: Wrong behavior in overloading a variable
Groups: php.dev 
Request: Send a blank email to php-dev+get-9072@lists.php.net to get a copy of this message
From: christophe.massiot@mail.dotcom.fr Operating system: Debian GNU/Linux PHP version: 4.0 Beta 1 PHP Bug Type: Misbehaving function Bug description: Wrong behavior in overloading a variable The following program will return 0 whereas it should return 1 : if (TRUE) { class titi { var $KEYS = array(); } class toto extends titi { var $KEYS = array("login"); } } $toto = new toto; echo count($toto->KEYS); Note that the problem disappears if you remove the if (TRUE) statement.

« previous php.dev (#9072) next »