php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54595 paradox extension set_blob_file() not working when called as object method
Submitted: 2011-04-23 05:32 UTC Modified: 2011-05-28 02:05 UTC
From: simon at centurioncomputers dot com dot au Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.3SVN-2011-04-23 (snap) OS: Ubuntu 10.10
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: simon at centurioncomputers dot com dot au
New email:
PHP Version: OS:

 

 [2011-04-23 05:32 UTC] simon at centurioncomputers dot com dot au
Description:
------------
---
From manual page: http://www.php.net/function.px-set-blob-file#Parameters
---

set_blob_file() does not work for me when called in OO context, it does however work when called procedurally, there is no example on the site so I do not know if this is a documentation issue or not though I dont think it is. 

Test script:
---------------
<?php //not working
$fp = fopen("/home/httpd/vhosts/newjcs/VAL_MAIN.DB", "r");
$pxdoc = new paradox_db();
$pxdoc->set_blob_file('/data/httpd/vhosts/newjcs/VAL_MAIN.MB');
$pxdoc->close();
fclose($fp);

//works
$fp = fopen("/home/httpd/vhosts/newjcs/VAL_MAIN.DB", "r");
px_open_fp($pxdoc, $fp);
px_set_blob_file($pxdoc,'/home/httpd/vhosts/newjcs/VAL_MAIN.MB');
px_close($pxdoc);
px_delete($pxdoc);
fclose($fp);	

Expected result:
----------------
nothing, e.g. no errors or warnings using either methodology

Actual result:
--------------
in the OO script I receive the error

Fatal error: paradox_db::set_blob_file(): Paradox database has not been opened or created when setting the blob file. in /data/httpd/vhosts/centaur/httpdocs/val/index.php on line 4 

note that on my system /home/httpd is a symlink to /data/httpd

the second non-OO call works as expected with no errors and I am able to pull images from the blob



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-28 02:05 UTC] felipe@php.net
-Status: Open +Status: Bogus
 [2011-05-28 02:05 UTC] felipe@php.net
As Paradox is a PECL extension, you need to report the bug at http://pecl.php.net/bugs/report.php?package=Paradox

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC