#38075 [Opn->Bgs]: px_set_blob_file doesn't find BLOB file
| From: | tony2001@php.net | Date: | Wed, 12 Jul 2006 10:48:14 +0000 |
| Subject: | #38075 [Opn->Bgs]: px_set_blob_file doesn't find BLOB file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-99340@lists.php.net to get a copy of this message | ||
ID: 38075
Updated by: tony2001@php.net
Reported By: bzapf at online dot de
-Status: Open
+Status: Bogus
Bug Type: *Database Functions
Operating System: Debian Linux 2.6.8
PHP Version: 5CVS-2006-07-12 (CVS)
New Comment:
Please report PECL issues to PECL bug database.
http://pecl.php.net/bugs/report.php?package=Paradox
Thank you.
Previous Comments:
------------------------------------------------------------------------
[2006-07-12 08:05:39] bzapf at online dot de
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 this bug report at http://bugs.php.net/?id=38075&edit=1