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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sat Dec 21 18:01:29 2024 UTC