From: bzapf at online dot de Operating system: Debian Linux 2.6.8 PHP version: 5CVS-2006-07-12 (CVS) PHP Bug Type: *Database Functions Bug description: px_set_blob_file doesn't find BLOB file
Description: ------------ When px_set_blob_file is called with a blob file that isn't reffered to absolutely, or that is in a "good" spot (the current WD, whatever that may be generally), then it isnt found - this is dramatic when working in apache. strace reveals that there is no path prepended in that case, although this happens in px_open_fp - probably the code is omitted in px_set_blob_file. A Workaround obviously is to specify the path absolutely. This is -extremely- confusing nevertheless (php finds file, pdoxlib does not - wtf?) Reproduce code: --------------- make a subdirectory, put X.DB and X.MB there. Then, make a script along the lines of: $px=px_new(); $fp=fopen('X.DB','r'); px_open_fp($px,$fp); px_set_blob_file($px,'X.MB'); Expected result: ---------------- (no error message) Actual result: -------------- Fatal error: px_set_blob_file() [<a href='function.px-set-blob-file'>function.px-set-blob-file</a>]: Could not open blob file. in /var/www/Script/script2.php on line ... -- Edit bug report at http://bugs.php.net/?id=38075&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38075&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38075&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38075&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38075&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38075&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38075&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38075&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38075&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38075&r=support Expected behavior: http://bugs.php.net/fix.php?id=38075&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38075&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38075&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38075&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38075&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38075&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38075&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38075&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38075&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38075&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38075&r=mysqlcfg