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

Bug #8409 Unreadable results with Groups
Submitted: 2006-08-10 12:55 UTC
From: nicolas dot suprin at exilab dot com Assigned:
Status: Bogus Package: HTML_QuickForm (version 3.2.6)
PHP Version: 5.0.5 OS: Red Hat
Roadmaps: (Not assigned)    
Subscription  


 [2006-08-10 12:55 UTC] nicolas dot suprin at exilab dot com (Nicolas SUPRIN)
Description: ------------ I have un bug with Groups. The returned values, aren't the expected. It looks a buffer over flow, whith spécials chars ... More info on http://blog.cactuscrew.com/50-pear-un-bug-dans-html_quickform Test script: --------------- <?php require_once 'HTML/QuickForm.php'; $form = new HTML_QuickForm('example'); $A_group = array(); $A_group[] = $form->createElement('text', 'test'); $A_group[] = $form->createElement('text', 'foo'); $form->addGroup($A_group, 'tagada'); $form->addElement('submit', 'go', 'Go'); $form->display(); if ($form->validate()) { echo '<pre>'; print_r($form->getSubmitValues()); echo '</pre>'; } ?> Expected result: ---------------- I want to see the real résults ! See http://blog.cactuscrew.com/50-pear-un-bug-dans-html_quickform Actual result: -------------- See http://blog.cactuscrew.com/50-pear-un-bug-dans-html_quickform

Comments

 [2006-08-10 13:18 UTC] avb (Alexey Borzov)
PHP 5.0.5 is old. Have you tried upgrading to the latest version?
 [2006-08-10 13:24 UTC] nicolas dot suprin at exilab dot com
I'll ask to my net admin to do the upgrade. I'll tell you if it works after... (I hope !!) But I think the use of the eval function isn't a good idea... Are you agree with me ?
 [2006-08-10 13:35 UTC] nicolas dot suprin at exilab dot com
My sysAdmin isn't very agree to upgrade to 5.1.4 because our productions servers are under 5.0.5 too. It's our production environnement. Few month ago, he tried to upgrade, but he met many problems with our spécials configurations... How could we do ?
 [2006-08-10 13:54 UTC] avb (Alexey Borzov)
Buffer overflows and the like are bugs in PHP, not in QuickForm. Since that can't even be reproduced on recent PHP versions, which had some memory corruption fixes among other things, closing the bug as "Bogus".
 [2006-08-10 13:59 UTC] nicolas dot suprin at exilab dot com
OK... We'll try to upgrade our PHP dev/prod version... But I'm not sure that eval is a good way to continue in future versions.