|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-31 12:06 UTC] tony2001@php.net
[2006-08-31 12:15 UTC] hhieber at softsolutions dot de
[2006-08-31 12:17 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 19:00:01 2025 UTC |
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