From: pr0head at gmail dot com Operating system: Linux version 2.6.20-gentoo-r8 PHP version: 5.2.4 PHP Bug Type: OCI8 related Bug description: oci_new_cursor PHP crash
Description: ------------ If you have two or more times the same stored procedure where the cursor name the same ( :cursor ), PHP stop work. Reproduce code: --------------- $connection = oci_connect( .... ); // First execute SP $sql = "BEGIN sp_vadik_1( :cursor ); END;"; $stmt = oci_parse( $connection, $sql ); $cursor = oci_new_cursor( $connection ); oci_bind_by_name( $stmt, ":cursor", $cursor, -1, OCI_B_CURSOR ); oci_execute( $stmt, OCI_DEFAULT ); oci_execute( $cursor ); while( $row = oci_fetch_array( $cursor ) ) { .... } oci_free_statement( $stmt ); oci_free_statement( $cursor ); Expected result: ---------------- If the cursor names are not different ( first - :cursor1, second - :cursor2), the challenges are successful. If not cleaned cursor to the first call, and declare it in the second, the queries are also successful. -- Edit bug report at http://bugs.php.net/?id=42841&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42841&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42841&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42841&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42841&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42841&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42841&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42841&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42841&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42841&r=support Expected behavior: http://bugs.php.net/fix.php?id=42841&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42841&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42841&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42841&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42841&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42841&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42841&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42841&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42841&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42841&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42841&r=mysqlcfg