From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.0.4pl1
PHP Bug Type:     Scripting Engine problem
Bug description:  @unset() causes parse error

The following code causes an error message:

Parse error: parse error in /home/cri/public_html/unsettest.php on line 14



class someClass {

    var $someVar = array();

    function add($name, $val) {
        $this->someVar[$name] = $val;

    function del($name) {
        return @unset($this->someVar[$name]);


$someObj = new someClass;

$someObj->add("bike", "blue");



Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to