Home » HTML » HTML_QuickForm » Bug #8409
Unreadable results with Groups
Details
| Submitted | 2006-08-10 12:55 UTC |
|---|---|
| From | nicolas dot suprin at exilab dot com |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 5.0.5 |
| OS | Red Hat |
| Roadmaps | (Not assigned) |
Comments
[2006-08-10 12:55 UTC] nicolas dot suprin at exilab dot com
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
[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: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.