#19844 [NEW]: using $this->array messed up with overload support
| From: | ekgerke at yahoo dot com | Date: | Thu, 10 Oct 2002 11:40:04 +0000 |
| Subject: | #19844 [NEW]: using $this->array messed up with overload support | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-22029@lists.php.net to get a copy of this message | ||
From: ekgerke@yahoo.com
Operating system: Linux
PHP version: 4.2.3
PHP Bug Type: Class/Object related
Bug description: using $this->array messed up with overload support
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 bug report at http://bugs.php.net/?id=19844&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19844&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19844&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19844&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19844&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19844&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19844&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19844&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19844&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19844&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19844&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19844&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=19844&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=19844&r=isapi