|
go-pear.bat php5.0.0b2 cli.php problem: msg#00393php.pear.general
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> |
|---|---|---|
| Previous by Date: | Help using HTTP_Download: 00393, Craig H. Anderson |
|---|---|
| Next by Date: | QFC Not listening to my posted actions: 00393, Mike Carter |
| Previous by Thread: | Help using HTTP_Downloadi: 00393, Craig H. Anderson |
| Next by Thread: | QFC Not listening to my posted actions: 00393, Mike Carter |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |