php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1486 A member function of a variable array of objects cannot be called
Submitted: 1999-06-02 13:54 UTC Modified: 1999-06-20 20:34 UTC
From: jordanh at remotepoint dot com Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0.8 OS: RedHat Linux/sparc 5.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jordanh at remotepoint dot com
New email:
PHP Version: OS:

 

 [1999-06-02 13:54 UTC] jordanh at remotepoint dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-20 20:34 UTC] jim at cvs dot php dot net
A shortcoming of PHP3's parser. Will be fixed in PHP4.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 14 19:01:35 2024 UTC