|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
8 + 15 = ?
Subscribe to this entry?

 [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 19:03:38 2023 UTC