From: hhieber at softsolutions dot de Operating system: W2K3 PHP version: 5.1.6 PHP Bug Type: OCI8 related Bug description: PHP crashes at $row[$blobname]->load()
Description: ------------ I upgraded from PHP5.0.4 to 5.1.6. PHP with Oracle 9 no longer worked due to missing function OCILobRead2() in oci.dll, so I upgraded to Oracle 10.2.0 This works fine until trying to read a BLOB with $row[$blobname]->load(). This results in "PHP has encountered an Access Violation at 7C8..." Problem is also true with PHP5.1.4 Replacing php_oci8.dll with PECL version as of PHP_5.1.2 finally works. Any ideas, why to use the PECL version? BTW: calling $row[$blobname]->size() is ok ever. Reproduce code: --------------- function get_blob_data($table, $keyname, $keyvalue, $blobname) { $sql = "SELECT * FROM " . strtolower($table) . " WHERE " . $keyname . " = " . $keyvalue; $stmt = ociparse($this->conn,$sql); ociexecute($stmt) or die ("Unable to execute query\n"); $row = oci_fetch_assoc($stmt); return ($row[$blobname]->load()); }//endfunction -- Edit bug report at http://bugs.php.net/?id=38669&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38669&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38669&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38669&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38669&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38669&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38669&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38669&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38669&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38669&r=support Expected behavior: http://bugs.php.net/fix.php?id=38669&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38669&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38669&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38669&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38669&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38669&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38669&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38669&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38669&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38669&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38669&r=mysqlcfg