From:             
Operating system: Ubuntu 10.10
PHP version:      5.3SVN-2011-04-23 (snap)
Package:          Class/Object related
Bug Type:         Bug
Bug description:paradox extension set_blob_file() not working when called as 
object method

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 bug report at http://bugs.php.net/bug.php?id=54595&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54595&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54595&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54595&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54595&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54595&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54595&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54595&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54595&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54595&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54595&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54595&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54595&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54595&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54595&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54595&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54595&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54595&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54595&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54595&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54595&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54595&r=mysqlcfg

Reply via email to