|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-07 19:51 UTC] sniper@php.net
[2001-01-09 11:50 UTC] cynic@php.net
[2001-02-18 06:28 UTC] thies@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 09:00:01 2025 UTC |
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!