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

Bug #13854 HTML_AJAX_Action->combineActions() in php5 with empty actions
Submitted: 2008-05-08 14:46 UTC
From: mischa2 Assigned: jeichorn
Status: Closed Package: HTML_AJAX (version 0.5.5)
PHP Version: 5.2.6 OS:
Roadmaps: 0.5.6    
Subscription  


 [2008-05-08 14:46 UTC] mischa2 (Michael Walter)
Description: ------------ this is only a php version 5 problem In PHP5 the function array_merge() now only accepts parameters of type array When $response_1 is empty then the internal _actions is not an array and the array_merge() is wrong the same is when $response_2 is empty to solve this, we can add an constructor to HTML_AJAX_Action() and set the internal _actions to $this->_actions = array(); or we verifying the arguments directly in combineActions, however. Test script: --------------- $response_1 = new HTML_AJAX_Action(); $response_2 = new HTML_AJAX_Action(); $response_2->assignAttr(SOMETHING); $response_1->combineActions($response_2); Expected result: ---------------- $response_1 = $response_2 Actual result: -------------- error: array_merge() ... Argument #1 is not an array

Comments

 [2008-06-16 17:33 UTC] jeichorn (Joshua Eichorn)
Fixed in svn 0.5.6 will be released soon