go-pear.bat php5.0.0b2 cli.php problem

From: Date: Mon, 24 Nov 2003 07:38:48 +0000
Subject: go-pear.bat php5.0.0b2 cli.php problem
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9095@lists.php.net to get a copy of this message
Just installed the latest PHP 5.0.0b2 with pear and after running go-pear.bat pear list produced: INSTALLED PACKAGES: =================== PACKAGE VERSION STATE Warning: array_merge(): Argument #1 is not an array in CLI.php on line 324 Warning: array_merge(): Argument #1 is not an array in CLI.php on line 324 Warning: array_merge(): Argument #1 is not an array in CLI.php on line 324 Archive_Tar 1.1 stable In CLI.php around line 320------------ IS: for ($r = 0; $r < $height; $r++) { $rowtext = ''; for ($c = 0; $c < sizeof($data); $c++) { if (isset($colparams[$c])) { $attribs = array_merge($rowparams, $colparams); } else { $attribs = $rowparams; } FIXED: for ($r = 0; $r < $height; $r++) { $rowtext = ''; for ($c = 0; $c < sizeof($data); $c++) { if (isset($colparams[$c])) { if (isset($rowparams[$c])) { $attribs = array_merge($rowparams, $colparams); } else {$attribs = $colparams; } } else { $attribs = $rowparams; } The one line fix: isset($colparams[$c]) ? (isset($rowparams[$c]) ? $attribs = array_merge($rowparams, $colparams) : $attribs = $colparams) : $attribs = $rowparams;

« previous php.pear.general (#9095) next »