Edit report at http://bugs.php.net/bug.php?id=54595&edit=1
ID: 54595 Updated by: [email protected] Reported by: simon at centurioncomputers dot com dot au Summary: paradox extension set_blob_file() not working when called as object method -Status: Open +Status: Bogus Type: Bug Package: Class/Object related Operating System: Ubuntu 10.10 PHP Version: 5.3SVN-2011-04-23 (snap) Block user comment: N Private report: N New Comment: As Paradox is a PECL extension, you need to report the bug at http://pecl.php.net/bugs/report.php?package=Paradox Thanks. Previous Comments: ------------------------------------------------------------------------ [2011-04-23 05:32:50] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54595&edit=1
