|  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
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: 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-2023 The PHP Group
All rights reserved.
Last updated: Tue Jun 06 20:03:36 2023 UTC