Open Power Template 2.x family
FS#2 - Fatal error: Nesting level too deep - recursive dependency?
Attached to Project:
Open Power Template 2.x
Opened by Anonymous Submitter - Monday, 31 March 2008, 13:51 GMT-7
Last edited by Zyx (Zyx) - Monday, 11 August 2008, 05:18 GMT-7
Opened by Anonymous Submitter - Monday, 31 March 2008, 13:51 GMT-7
Last edited by Zyx (Zyx) - Monday, 11 August 2008, 05:18 GMT-7
|
DetailsI've run test_foreach_1.php example from /dev/ category. OPT 2 cannot compile this template because of too deep object nesting level. Perhaps, it's PHP related bug but consider optimizing OPT 2 compiler.
Screenshot: http://www.imagic.pl/public/pview/127252/optbug.png Doesn't OPT 2's compiler use so much memory? |
This task depends upon
Closed by Zyx (Zyx)
Monday, 11 August 2008, 05:18 GMT-7
Reason for closing: Outdated
Additional comments about closing: Research:
- some of those messages appeared because of bug in PHP 5.2.x itself. It was fixed in one of the newest versions.
- on SVN, the compiler does not use direct recursion anymore.
Monday, 11 August 2008, 05:18 GMT-7
Reason for closing: Outdated
Additional comments about closing: Research:
- some of those messages appeared because of bug in PHP 5.2.x itself. It was fixed in one of the newest versions.
- on SVN, the compiler does not use direct recursion anymore.
In fact, the DEFAULT nesting level limit set by PHP should be more than enough for any template. Your limit is four times lower (only 16 - this may not be enough for many other scripts). So my answer is clear... enlarge your limit at least to the default value. I wish I could write a template engine with all this features that consumes no processor time, stack, memory etc. but you know... :)
When it comes to the memory - this will be also optimized in the future (but still before the final release), but the return to the amounts from OPTv1 will be possible only with the quirks mode enabled. I must do some real tests first.