#32722 [Opn->Bgs]: OCINewCollection hang after parse error.

From: Date: Tue, 17 May 2005 08:31:31 +0000
Subject: #32722 [Opn->Bgs]: OCINewCollection hang after parse error.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79078@lists.php.net to get a copy of this message
ID: 32722 Updated by: sniper@php.net Reported By: fsurleau at skyservices dot net -Status: Open +Status: Bogus Bug Type: OCI8 related Operating System: linux PHP Version: 4.3.11 New Comment: Yes, amazing but true: Even Oracle has bugs in it! Previous Comments: ------------------------------------------------------------------------ [2005-04-20 19:39:52] fsurleau at skyservices dot net A small bug in collection.php : if( @OCINewCollection( $cnx, "MY_COLLECTION_TYPE" ) ) of course should be : if( ! @OCINewCollection( $cnx, "MY_COLLECTION_TYPE" ) ) An other thing, this bug occurs with Oracle 9.2 Oci8 client. With Oracle10g Oci8 or Oracle10g instant client, the problem doesn't occur. But... I can't use the oracle10g client because of bug #32741. Maybe this indicates that the bug isn't in PHP's OCI8 API ? Regards, Fred. ------------------------------------------------------------------------ [2005-04-19 14:45:42] fsurleau at skyservices dot net The xxx in the query is juste an example of query with a quote to generate the ORA-01756 error. You can run the scripts with your own Oracle base replacing $user, $pass, $db_name with your own ids. ------------------------------------------------------------------------ [2005-04-19 14:27:52] tony2001@php.net Could you please prepare a short reproduce script, which I can copy&paste to reproduce the problem? Those parts of your code with 'xxx' and undeclared variables do not help much. Thanks. ------------------------------------------------------------------------ [2005-04-18 13:19:31] fsurleau at skyservices dot net Sorry, I can't use PHP5. ------------------------------------------------------------------------ [2005-04-18 13:18:03] fsurleau at skyservices dot net Reproduce bad_query.php code is : $cnx = ociPLogon( $user, $pass, $db_name ); if( ! @ociparse( $cnx, "select sysdate from dual where 'xxxxxx'='xxx\\'xxx'" ) ) { $oerr = OCIError( $cnx ); echo "Error in statement : ".$oerr['message'] . "<br><br>"; } echo "PID=" . getmypid(); The collection.php code is : $cnx = ociPLogon( $user, $pass, $db_name ); if( @OCINewCollection( $cnx, "MY_COLLECTION_TYPE" ) ) { $oerr = OCIError( $cnx ); echo "Error for collection : " . $oerr['message'] . "<br><br>"; } else { echo "OK for collection .<br><br>"; } echo "PID=" . getmypid(); It was cut at first post... ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32722 -- Edit this bug report at http://bugs.php.net/?id=32722&edit=1

« previous php.bugs (#79078) next »