From: powerblade at mail dot dk Operating system: Redhat Linux 7.0 PHP version: 5CVS-2003-02-24 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: $this->$varname = $value
<?php class Database { var $s_dbServer; function changeVarValue($s_varname, $s_value) { $this->$s_varname = $s_value; return true; } } ?> The above example fails to load. In windows apache crashes.. In linux i get an error. "$this->$s_varname = $s_value;" that is what makes it crash. Probably because of $s_varname changing it $this->s_dbServer makes it work. But using the variable $s_varname = dead server. -- Edit bug report at http://bugs.php.net/?id=22397&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22397&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22397&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22397&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22397&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22397&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22397&r=support Expected behavior: http://bugs.php.net/fix.php?id=22397&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22397&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22397&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22397&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22397&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22397&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22397&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22397&r=gnused