PHP 4.0 Bug #8165 Updated: Database output is only one char per column
| From: | sniper@php.net | Date: | Mon, 08 Jan 2001 00:51:40 +0000 |
| Subject: | PHP 4.0 Bug #8165 Updated: Database output is only one char per column | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43302@lists.php.net to get a copy of this message | ||
ID: 8165
Updated by: sniper
Reported By: sven.voigt@lhsystems.com
Old-Status: Open
Status: Feedback
Bug Type: OCI8 related
Assigned To:
Comments:
Does this happen with PHP 4.0.4 ?
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-12-08 07:39:01] sven.voigt@lhsystems.com
We're using an Oracle 8051 with Apache 1.3.12. The following code fragment runs faultless on
PHP3.0.15, but produces one character output per column only on PHP4.0.3pl1:
while (OCIFetch($Stmt)) {
echo " <TR>n ";
for ($Column=1; $Column < $NumCols; $Column++) {
$spalte_wert=trim(OCIResult($Stmt,$Column));
$spalte_typ=OCIColumnType($Stmt,$Column);
if($spalte_wert=="")
$spalte_wert=" ";
if($spalte_typ=="NUMBER")
$spalte_ausrichtung="RIGHT";
else
$spalte_ausrichtung="LEFT";
echo ('<TD ALIGN="'.$spalte_ausrichtung.'">');
echo "$spalte_wert";
echo "</TD>";
}
echo "n </TR>n";
}
The docs don't state any special treatment due to PHP4, so the code should be running on PHP3
and on PHP4. Or am I wrong? To me it looks like a bug.
For further infos please mail to stated email address above. Ciao!
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8165