[PHP-DEV] PHP 4.0 Bug #9561:  <<i>email protected</i>>() causes parse error email protected>() causes parse error",1); ?> From: chrris <email protected>
Date: 03/05/01

From: chrris <email protected>
Operating system: Linux
PHP version: 4.0.4pl1
PHP Bug Type: Scripting Engine problem
Bug description:  <email protected>() causes parse error

The following code causes an error message:

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

<?php

error_reporting(15);

class someClass {

    var $someVar = array();

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

    function del($name) {
        return  <email protected>($this->someVar[$name]);
    }

}

$someObj = new someClass;

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

$someObj->del("bike");

?>

-- 
Edit Bug report at: http://bugs.php.net/?id=9561&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>