|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38075 px_set_blob_file doesn't find BLOB file
Submitted: 2006-07-12 08:05 UTC Modified: 2006-07-12 10:48 UTC
From: bzapf at online dot de Assigned:
Status: Not a bug Package: *Database Functions
PHP Version: 5CVS-2006-07-12 (CVS) OS: Debian Linux 2.6.8
Private report: No CVE-ID: None
 [2006-07-12 08:05 UTC] bzapf at online dot de
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:


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 ...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-12 10:48 UTC]
Please report PECL issues to PECL bug database.
Thank you.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Aug 04 07:01:24 2021 UTC