#19844 [Opn->Fbk]: using $this->array messed up with overload support
| From: | iliaa@php.net | Date: | Mon, 28 Oct 2002 16:08:07 +0000 |
| Subject: | #19844 [Opn->Fbk]: using $this->array messed up with overload support | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23565@lists.php.net to get a copy of this message | ||
ID: 19844
Updated by: iliaa@php.net
Reported By: ekgerke@yahoo.com
-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] ekgerke@yahoo.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);
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19844&edit=1