ZF-11847: Zend_CodeGenerator_Php_File typo causes file not found

Issue Type: Bug Created: 2011-10-26T14:36:29.000+0000 Last Updated: 2011-10-26T15:56:42.000+0000 Status: Resolved Fix version(s): - 1.11.12 (22/Jun/12)

Reporter: Martin Shwalbe (hounddog) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_CodeGenerator

Related issues: Attachments:


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


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

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.