|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-06-01 02:12 UTC] thies at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 12:00:01 2025 UTC |
this code has some unexpected behavior: while (OCIFetchInto($stmt,$row,OCI_RETURN_LOBS)){ reset($formq[columns]); while($col=each($formq[columns])){ $retrow[$col[value]]=$row[$col[key]]; } $ret[]=$retrow; } if ocifetchinto returns a null into $col[x], then assigning to retrow["index"] has no effect on retrow (i.e. retrow["index"] is not instantiated... doing an each over retrow will not yeild an index "index") I assume the expected behavior should be to instantiate retrow["index"] with an empty string. here's my workaround: $retrow[$col[value]]=sprintf("%s",$row[$col[key]]); php 3.0.8 is the only non-standard module compiled into my apache server 1.3.4