ID:               19844
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         Class/Object related
 Operating System: Linux
 PHP Version:      4.2.3
 New Comment:

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




Previous Comments:
------------------------------------------------------------------------

[2002-10-10 06:40:03] [EMAIL PROTECTED]

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);
   }

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19844&edit=1

Reply via email to