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

Im sorry. I did take a look on the other bug reports before submitting
it, and i couldn't find similar anywhere. The auto search function
(after posting it) didn't find it either.

I searched for the word "object" and php version "5". 22 results.. But
the above one was not shown.


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

[2003-02-24 11:58:27] [EMAIL PROTECTED]

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


------------------------------------------------------------------------

[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