From: mgiurgiu at eurotopo dot ro
Operating system: Windows XP
PHP version: 4.4.2
PHP Bug Type: MSSQL related
Bug description: php doesn't allows to access remote linked servers!
Description:
------------
I have created a Linked server(MSSQL 2000 server) at an Interbase database
and works perfectly from Querry Analyzer
The problem occurs when I try to execute the query from php (by using
query); I've got an error : "DB Error: unknown error".
It seems that php doesn't allows to access remote linked servers!
Reproduce code:
---------------
$db =& DBWrapper::get();
.......
$sql =
"select U.*
from OPENQUERY(FB, 'select * from users') U
where U.USER_ACCOUNT = " . "MGI";
$result =& $db->query($sql);
if (PEAR::isError($result)) {
die($result->getMessage());
}
Expected result:
----------------
no error
Actual result:
--------------
"DB Error: unknown error".
--
Edit bug report at http://bugs.php.net/?id=37869&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=37869&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=37869&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=37869&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37869&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=37869&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37869&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37869&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37869&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37869&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37869&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=37869&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=37869&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37869&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37869&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37869&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37869&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37869&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37869&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37869&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37869&r=mysqlcfg