From: [EMAIL PROTECTED] Operating system: MS Windows PHP version: 5CVS-2003-02-15 (dev) PHP Bug Type: Reproducible crash Bug description: PHP crashes when class references property using variable variable
<?php class myClass { var $foo = "hi"; var $bar = "foo"; function test() { echo $this->$bar; //line 1 //echo $this->foo; //line 2 } } ?> commenting out line 1 (and optionally including line 2) cause it to run normally. The crash occurs as soon as you include $this->$<something>. ---------------- >From a dos command line on Windows XP Pro SP1 (build 2600): >php c:\temp\t.php I get PHP Script Interpreter has encountered a problem and needs to close (pop up). I'm using the windows build from the snaps page. I've had this error over the past few days of snaps too. >php -m [PHP Modules] bcmath calendar com ctype ftp mysql odbc pcre rpc session standard tokenizer wddx xml zlib [Zend Modules] The crash details are: AppName: php.exe AppVer: 5.0.0.0 ModName: php4ts.dll ModVer: 5.0.0.0 Offset: 000b3bdc Exception Information: Code: 0xc0000005 Flags: 0x00000000 Record: 0x000000000000000 Address: 0x000000000100b3bdc -- Edit bug report at http://bugs.php.net/?id=22237&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22237&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22237&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22237&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22237&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22237&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22237&r=support Expected behavior: http://bugs.php.net/fix.php?id=22237&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22237&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22237&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22237&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22237&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22237&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22237&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22237&r=gnused