|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-20 09:23 UTC] sniper@php.net
[2006-01-20 12:02 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ Sorry. I am not a good English-speaking. OCI_Result() was broken data, after non checked OCI_Fetch() is executed. Previous version (PHP 5.1.1) doesn't produce this broken data. Reproduce code: --------------- <?php $con = OCI_Connect('usr', 'pwd', 'orasid'); $out = ''; if($con != false){ // SQL Code $sql = 'SELECT \'ABC\' FROM DUAL WHERE 1<>1'; $stmt = OCI_Parse($con, $sql); if(OCI_Execute($stmt, OCI_COMMIT_ON_SUCCESS)){ OCI_Fetch($stmt); $out = OCI_Result($stmt, 1); OCI_Free_Statement($stmt); } OCI_Close($con); } var_dump($out); ?> Expected result: ---------------- NULL Actual result: -------------- string(3) "CT " ...etc.