ID: 33014 Updated by: [EMAIL PROTECTED] Reported By: erwann_gilbert at yahoo dot fr -Status: Open +Status: Bogus Bug Type: OCI8 related Operating System: RedHat 6 PHP Version: 4.3.11 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. I don't see any PHP bugs here. Previous Comments: ------------------------------------------------------------------------ [2005-05-12 12:10:43] erwann_gilbert at yahoo dot fr Description: ------------ I have a problem with locks. I try to create a lock thanks to "SELECT X FROM TAB FOR UPDATE NOWAIT". to do this : - I parse my query : $resource = ociparse ($onnection, "SELECT X FROM TAB FOR UPDATe NOWAIT") ; - I execute my query : ociexecute ($resource, OCI_DEFAULT) ; - I don't close the connection in the script. If I use the query in SQL*PLUS and (without commit or rollback in SQL*PLUS of course) I start my php script, I obtain the ORA error wiwh tells there is a lock etc... So all is good. But if I start the script before, and the query in SQL*PLUS after, there is no lock created by the script. Like if there was an implicite rollback. I don't know if it's a problem of oci, or a problem of configuration or a problem of PHP... Reproduce code: --------------- $connect = ocilogon($user,$password,$tns) ; $resource=ociparse ($connect,"SELECT X FROM TAB FOR UPDATE NOWAIT") ; ociexecute ($resource,OCI_DEFAULT) ; Expected result: ---------------- If two scripts are executed at the same time : an oracle error in one of both script. Actual result: -------------- No error, and no lock created. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33014&edit=1