possible bug in XML_fastcreate

From: Date: Sat, 20 Aug 2005 14:21:35 +0000
Subject: possible bug in XML_fastcreate
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39475@lists.php.net to get a copy of this message
I took a look at fast create and found the following, before submitting this as a bug, thought I should post it here, maybe i'm missing something. I think the author is confusing ($GLOBALS), he's referring to it as $_GLOBALS |if (isset($_GLOBALS['XML_FASTCREATE_NO_OVERLOAD'])
    && $_GLOBALS['XML_FASTCREATE_NO_OVERLOAD']) {
    if (is_array($_GLOBALS['XML_FASTCREATE_NO_OVERLOAD'])) {
        $class = 'class XML_FastCreate_Overload extends PEAR {';
        foreach ($_GLOBALS['XML_FASTCREATE_NO_OVERLOAD'] as $tag) {
            $class .= <<<TEXT
            function $tag() {
                \$args = func_get_args();
                array_unshift(\$args, '$tag');
                return call_user_func_array(array(&\$this, 'xml'), \$args);
            }
TEXT;
        }
        $class .= ' }';
        eval($class);
    } else {
|

« previous php.pear.dev (#39475) next »