ZF-11847: Zend_CodeGenerator_Php_File typo causes file not found
Description
Trying to run a sample from the documentation including my path i ran into this error
Warning: include_once(Zend/Reflection/file.php): failed to open stream: No such file or directory in /vol/sys/shared/htdocs/devs-v5/mshwalbe/library/ZendFramework/library/Zend/Loader.php on line 146
$generator = Zend_CodeGenerator_Php_File::fromReflectedFileName($path); $body = $generator->getBody(); $body .= "\n\$foo->bar();";
On verifying in the Zend_CodeGenerator_Php_File i found a typo within "fromReflectedFileName".
if ( ($realpath = Zend_Reflection_file::findRealpathInIncludePath($filePath)) === false) {
Zend_Reflection_file should be Zend_Reflection_File
Best Regards
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2011-10-26T15:54:47.000+0000
Fixed in trunk r24534 Merged to release-1.11 in r24535
Posted by Adam Lundrigan (adamlundrigan) on 2011-10-26T15:56:42.000+0000
Same issue is not present in ZF2 {{Zend\Code\Generator\FileGenerator::fromReflectedFileName}}