ID:               22397
 Updated by:       [EMAIL PROTECTED]
 Reported By:      powerblade at mail dot dk
-Status:           Open
+Status:           Bogus
 Bug Type:         Zend Engine 2 problem
 Operating System: Redhat Linux 7.0
 PHP Version:      5CVS-2003-02-24 (dev)
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

duplicate of bug #22237



Previous Comments:
------------------------------------------------------------------------

[2003-02-24 11:35:38] powerblade at mail dot dk

<?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 this bug report at http://bugs.php.net/?id=22397&edit=1

Reply via email to