/** * Output debug information to output (php://output stream) */ static function PrintTrace() { self::$yyTraceFILE = fopen('php://output', 'w'); self::$yyTracePrompt = ''; }
/** * Set parameter and return value information from PHP style prototype * * new (and hopefully final) version using a PHP_LexerGenerator and * PHP_ParserGenerator generated prototype parser * * @param string PHP style prototype * @param object Extension object owning this function * @return bool Success status */ protected function newSetProto2($proto, $extension) { try { $lex = new CodeGen_PECL_Tools_ProtoLexer($proto); $parser = new CodeGen_PECL_Tools_ProtoParser($extension, $this); while ($lex->yylex()) { $parser->doParse($lex->token, $lex->value); } $parser->doParse(0, 0); } catch (Exception $e) { return PEAR::raiseError($e->getMessage()); } }