|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-03-03 00:37 UTC] johannes@php.net
-Status: Open
+Status: Feedback
[2010-03-03 00:37 UTC] johannes@php.net
[2010-03-03 04:33 UTC] bostjan at a2o dot si
[2010-03-03 04:54 UTC] aharvey@php.net
-Status: Open
+Status: Feedback
[2010-03-03 04:54 UTC] aharvey@php.net
[2010-03-03 13:32 UTC] weierophinney@php.net
[2010-03-03 13:58 UTC] bostjan at a2o dot si
[2010-03-25 13:23 UTC] kalle@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: kalle
[2010-03-25 13:23 UTC] kalle@php.net
[2010-03-25 13:24 UTC] kalle@php.net
-Status: Closed
+Status: Duplicate
-Assigned To: kalle
+Assigned To:
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 07:00:01 2025 UTC |
Description: ------------ If I accidentally pass a wrong parameter to Zend_Form when creating a new element (common mistake during development) and I pass an element itself, it causes segmentation fault. I don't have time to investigate this issue further to pinpoint exact location of segfault in Zend Framework, therefore I am attaching only proof of concept code below, which uses Zend Framework classes. Test script: --------------- // Enable Zend Autoloader require_once "Zend/Loader/Autoloader.php"; $autoloader = Zend_Loader_Autoloader::getInstance(); // Get form object $domain = 'a2o.si'; $Form = _getForm($domain); echo $Form->render(); // Function that creates form object function _getForm ($domain) { $View = new Zend_View(); // Create form $Form = new Zend_Form(); $Form->setView($View); $Form->setAction('/domain/createrr') ->setMethod('post') ->setName('form_createrr'); // Add an element - NOTE A BUGGY WAY TO ADD IT // ($domain is not 'a2o.si' anymore after this line) $domain = $Form->createElement('hidden', 'domain'); $domain->setValue($domain); $Form->addElement($domain); return $Form; } Expected result: ---------------- Form in HTML notation. Actual result: -------------- Segmentation fault (tested with CLI and Apache Handler)