|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-28 10:08 UTC] iliaa@php.net
[2002-11-14 01:48 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
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); }