Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.6.2

Bug #14443 renderer does not accept two stars '**' in name.
Submitted: 2008-08-03 16:33 UTC
From: mrlight Assigned: wiesemann
Status: Closed Package: HTML_QuickForm_Renderer_Tableless (version 0.6.0)
PHP Version: 5.2.5 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2008-08-03 16:33 UTC] mrlight (Nikola Vignjevic)
Description: ------------ If You use the "HTML_QuickForm_Renderer_Tableless()" and use two stars in a row You git this Error: Warning: preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 12 in /usr/share/php/HTML/QuickForm/Renderer/Tableless.php on line 214 and the Fields are not added to the form. If You use only one star. or generely no stars everything run proper. This error is NOT in the standart renderer. only in the tableless renderer. Test script: --------------- So it is OK: http://paste.mootools.net/f709e3d6d So it isn't: http://paste.mootools.net/f330fcf4

Comments

 [2008-08-26 14:17 UTC] wiesemann (Mark Wiesemann)
Thanks for your report. I guess that a preg_quote() call needs to be added to the preg_replace() call(s). I'm quite short in time currently. Therefore, a new release won't follow within the next two or three weeks.
 [2008-09-23 16:14 UTC] wiesemann (Mark Wiesemann)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.