Issues

ZF-10396: Add Action creates corrupt PHP

Issue Type: Bug Created: 2010-08-29T10:31:09.000+0000 Last Updated: 2010-11-23T21:43:46.000+0000 Status: Resolved Fix version(s): Reporter: Dave Edelhart (bingomanatee) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Tool

Related issues: - ZF-9310

Attachments:

Description

This is probably a reflection error, but I am experiencing this in the following environment:

Mac OSX MAMP Zend Tool via NetBeans IDE PHP 5.3*

*That is the MAMP version - its possible that an older version is driving the tool.

When I add an action to a controller, the actions are broken. Specifically, nested if(){}'s are poorly closed; i.e.,

if ($foo) { if ($bar) { if ($fey) { // body ... } } } ... } // controller end

becomes

if ($foo) { if ($bar) { if ($fey) { // body .... } ... } // controller end

This pattern is repeated across multiple controllers.

Comments

Posted by BitConstructor Co. Ltd. (bitconstructor) on 2010-11-14T03:04:52.000+0000

Hi there,

we are experiencing the same on Ubuntu, PHP 5.2, ZF from SVN and ZF tool from Ubuntu repo.

Additionally docblocks are getting one extra line, and there is as well an additional empty line between functions

/** * test */

becomes /** * test * */

The breaking of if statements is for us critical, and often the removed brace is difficult to find.

regards Tibor

Posted by Ramon Henrique Ornelas (ramon) on 2010-11-20T12:13:50.000+0000

This problem is related to Zend_Reflection_Method::getBody(). See issue ZF-9018.

Greetings Ramon

Posted by Marc Hodgins (mjh_ca) on 2010-11-23T21:43:46.000+0000

Removing fix version since this is flagged as a duplicate. No need for this to appear in a changelog for a version since there is no commit from this ticket on a release branch.

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts