php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56627 incorrect iters count for OCIStmtExecute
Submitted: 2005-11-04 13:10 UTC Modified: 2005-11-04 13:11 UTC
From: wez@php.net Assigned: wez (profile)
Status: Closed Package: PDO_OCI (PECL)
PHP Version: 5_1 CVS-2005-11-04 (dev) OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wez@php.net
New email:
PHP Version: OS:

 

 [2005-11-04 13:10 UTC] wez@php.net
Description:
------------
The following was reported via my blog.

"I got the PHP Win32 Package at http://snaps.php.net/ (php5.1-win32-200511041130.zip)."



Reproduce code:
---------------
<?php
	error_reporting(E_ALL);
	ini_set( "display_errors", "1" );
	ini_set( "track_errors", "1" );
	
	$conn = new PDO( "oci:dbname=oracle", "isoweb", "isoweb" );

	$query = "SELECT NOME FROM DOC_TIPO_ARQUIVO";
	
	$sth = $conn->prepare( $query );
	$sth->execute();
	
	while( $row = $sth->fetch() ){
		print "<BR>NOME: " . $row[NOME];
	}
	
	print_r( $sth->errorInfo() );

	$sth = NULL;
	$conn = NULL;
?>

Expected result:
----------------
The query to work

Actual result:
--------------
Array ( [0] => HY000 [1] => 24374 [2] => OCIStmtFetch: ORA-24374: define not done before fetch or execute and fetch (ext\pdo_oci\oci_statement.c:446) )

If I try to execute an Update Statement I get:

Array ( [0] => HY000 [1] => 24374 [2] => OCIStmtFetch: ORA-24374: zero iteration count (ext\pdo_oci\oci_statement.c:446) )


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-04 13:11 UTC] wez@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC