Bug #1486: A member function of a variable array of objects cannot be called

From: Date: Wed, 02 Jun 1999 17:54:23 +0000
Subject: Bug #1486: A member function of a variable array of objects cannot be called
Groups: php.dev 
Request: Send a blank email to php-dev+get-6473@lists.php.net to get a copy of this message
From: jordanh@remotepoint.com Operating system: RedHat Linux/sparc 5.2 PHP version: 3.0.8 PHP Bug Type: Parser error Bug description: A member function of a variable array of objects cannot be called The following code causes a parser error: require(some_obj.php3) for ($i = 0; $i < 10; $i++) { $an_obj[$i] = new some_obj_t; $an_obj[$i]->init(); } Failure would look like: Fatal error: Call to unsupported or undefined function init() in /usr/apache/htdocs/halfstats/half_stats.php3 on line 5 This failure happens when $i > 0. Application of failure discovery at: http://sparcy.remotepoint.com/halfstats/half_stats.php3 & http://sparcy.remotepoint.com/halfstats/half_stats.phps Hope this is something new! Jordan Husney jordanh@remotepoint.com

« previous php.dev (#6473) next »