php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #73038 Timeout for oci_execute
Submitted: 2016-09-07 10:53 UTC Modified: 2018-12-08 10:36 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: lukcuc at yahoo dot com Assigned:
Status: Open Package: OCI8 related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lukcuc at yahoo dot com
New email:
PHP Version: OS:

 

 [2016-09-07 10:53 UTC] lukcuc at yahoo dot com
Description:
------------
Would it be possible to put a timeout on oci_execute.

Ex.

$comm=oci_connect($user,$pass,$db)
$stmp=oci_parse($p_conn,"..."); 
oci_execute($stmt,OCI_DEFAULT,5);

The statement would then timeout after 5s returning ORA-01013 
or similar and leaving the connection open.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-12-08 10:36 UTC] sixd@php.net
Oracle 18c client libraries support a call timeout setting. This would need to be exposed in OCI8.  It has the behaviors noted in https://oracle.github.io/node-oracledb/doc/api.html#dbcalltimeouts
 [2019-01-03 21:21 UTC] camporter1 at gmail dot com
PHP 7.2.14, PHP 7.3.1, and newer PECL OCI8 support timeouts now when using 18c client libraries: https://secure.php.net/manual/en/function.oci-set-call-timout.php
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Mar 25 05:01:26 2019 UTC