|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-04-05 03:55 UTC] helgi at trance dot is
[2005-06-10 02:34 UTC] wez@php.net
[2005-06-10 02:37 UTC] wez@php.net
[2005-06-10 02:40 UTC] wez@php.net
[2005-10-23 09:28 UTC] mike@php.net
[2005-10-23 20:55 UTC] yangss at da-chuan dot com
[2005-11-24 16:56 UTC] wez@php.net
[2006-02-27 07:22 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
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.