logo       

go-pear.bat php5.0.0b2 cli.php problem: msg#00393

php.pear.general

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

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;

--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise