apigen/apigen — Issue #97: Function is already defined
Author: kAlvaro
Created: 2012-01-13 10:16:25+00:00
State: open

Code parsing does not complete and triggers `Could not process the source code.`. Stack trace shows:

Function "exception_error_handler" is already defined; in file "I:\importacion\facturas.php".

#0 C:\Archivos de programa\PHP\PEAR\TokenReflection\Broker\Backend\Memory.php(468): TokenReflection\ReflectionNamespace->addFileNamespace(Object(TokenReflection\Reflectio
nFileNamespace))
#1 C:\Archivos de programa\PHP\PEAR\ApiGen\Backend.php(81): TokenReflection\Broker\Backend\Memory->addFile(Object(TokenReflection\Stream\StringStream), Object(TokenReflec
tion\ReflectionFile))
#2 C:\Archivos de programa\PHP\PEAR\TokenReflection\Broker.php(171): ApiGen\Backend->addFile(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Reflectio
nFile))
#3 C:\Archivos de programa\PHP\PEAR\ApiGen\Generator.php(237): TokenReflection\Broker->processString('parse()
#5 {main}

While the error message is accurate (function names are not unique across the code base) I'm not sure if it's intentional. That makes it either a feature request or a bug report.

(Using ApiGen 2.4.0)