php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bzapf at online dot de
New email:
PHP Version: OS:

 

 [2006-07-12 08:05 UTC] 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 ...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-12 10:48 UTC] tony2001@php.net
Please report PECL issues to PECL bug database.
http://pecl.php.net/bugs/report.php?package=Paradox
Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC