From: andre dot gadonski at gmail dot com Operating system: FreeBSD PHP version: 5.2.6 PHP Bug Type: InterBase related Bug description: Unable to complete network request to host
Description: ------------ I'm using connect, the error had to be in the connect function and not in the query function. The interbase server is not on same computer as the script. The function connect should be get the connection from the previous persistent connection. Apache version: Apache 2.0 Handler Reproduce code: --------------- <?php $conn = ibase_connect(...); $sql = ibase_prepare($conn, 'SELECT * FROM USUARIO WHERE USU_SENHA = ? AND USU_COD = ?;'); $query = ibase_execute($sql, $param['pwd'], $param['usr']); $row = ibase_fetch_object($query); exit(var_dump($row)); ?> Actual result: -------------- object(stdClass)#3 (6) { ["USU_COD"]=> int(61) ["USU_NOME"]=> string(25) "ANDRE GADONSKI DE FREITAS" ["USU_CATEG"]=> int(0) ["USU_SENHA"]=> string(6) "xxxx" ["USU_LOGIN"]=> NULL ["USU_DOMINIO"]=> NULL } <br /> <b>Warning</b>: Unknown: Unable to complete network request to host "***some ip***". Error reading data from the connection. Bad file descriptor in <b>Unknown</b> on line <b>0</b><br /> -- Edit bug report at http://bugs.php.net/?id=46497&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46497&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46497&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46497&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46497&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46497&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46497&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46497&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46497&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46497&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46497&r=support Expected behavior: http://bugs.php.net/fix.php?id=46497&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46497&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46497&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46497&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46497&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46497&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46497&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46497&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46497&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46497&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46497&r=mysqlcfg