php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56365 shutdown error when using PDO_OCI
Submitted: 2005-04-03 21:13 UTC Modified: 2006-02-27 07:22 UTC
From: yangss at da-chuan dot com Assigned:
Status: No Feedback Package: PDO_OCI (PECL)
PHP Version: 5.0.3 OS: Windows XP
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: yangss at da-chuan dot com
New email:
PHP Version: OS:

 

 [2005-04-03 21:13 UTC] yangss at da-chuan dot com
Description:
------------
After execute PDOStatment::execute(), try to call a non-exist function and show fetal error under MySQL by using PDO_MYSQL. But it causes a infinite loop under Oracle by using PDO_OCI.

Reproduce code:
---------------
<?php
class c
{
  function __construct ()
  {
  // Using PDO_OCI, program can't stop normally, infinite loop instead.
    $PDO = new PDO("oci:dbname=DBNAME", "USER", "PASSWD");
    $stmt = $PDO->prepare("select * from DC_ACODE");
    // Using PDO_MYSQL, program stop normally.
    // $PDO = new PDO('mysql:host=127.0.0.1;dbname=tim2', "root", "");
    // $stmt = $PDO->prepare("select * from tim_user");
       $stmt->execute();
       xxxx();  // <--- non-exist function
  }
}
$c = new c ();
?>

Expected result:
----------------
Fatal error: Call to undefined function xxxx() in C:\Apache\htdocs\DCApp\test.php on line 13

Actual result:
--------------
Apache error.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-05 03:55 UTC] helgi at trance dot is
Please use the right category next time you report.
 [2005-06-10 02:34 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.

Please try the next batch of PDO dlls from http://snaps.php.net/win32/PECL_5_0/
 [2005-06-10 02:37 UTC] wez@php.net
Sorry, misread the report.
 [2005-06-10 02:40 UTC] wez@php.net
This sounds like another shutdown order problem.

Please try downloading this version of PHP:
http://snaps.php.net/win32/php5-win32-latest.zip

and using PDO DLLs from here:
http://snaps.php.net/win32/PECL_UNSTABLE/
 [2005-10-23 09:28 UTC] mike@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2005-10-23 20:55 UTC] yangss at da-chuan dot com
The problem of infinite loop still exist. Thank you.
 [2005-11-24 16:56 UTC] wez@php.net
Please try the PHP 5.1 release, which will be announced shortly.
 [2006-02-27 07:22 UTC] mike@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Nov 28 17:03:18 2021 UTC