|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19844 using $this->array messed up with overload support
Submitted: 2002-10-10 06:40 UTC Modified: 2002-11-14 01:48 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: ekgerke at yahoo dot com Assigned:
Status: No Feedback Package: Class/Object related
PHP Version: 4.2.3 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ekgerke at yahoo dot com
New email:
PHP Version: OS:


 [2002-10-10 06:40 UTC] ekgerke at yahoo dot com
Goes like that:

class myclass {
   var $myarr = array();
   function myclass() {
     $this->myarr[test] = 1; // works here
   function myfunc() {
     $this->myarr[test1] = 1; // doesn't work here
   function another() {
     reset($this->myarr); // SIGSEGV here
     foreach($this->myarr as $k => $val) {
     } // either a warning about $this->myarr not being an array or SIGSEGV (same in constructor);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-28 10:08 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-11-14 01:48 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 25 15:01:30 2024 UTC