|  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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
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:


for ($i = 0; $i < 10; $i++) {
     $an_obj[$i] = new some_obj_t;

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:

Hope this is something new!

Jordan Husney


Add a Patch

Pull Requests

Add a Pull Request


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: Sun Mar 03 13:01:28 2024 UTC