php.net |  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
Votes:1
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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
     $this->myfunc();
     $this->another();
   }
   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);
   }

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-28 10:08 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-11-14 01:48 UTC] sniper@php.net
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: Fri Apr 19 10:01:28 2024 UTC