|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-07 00:39 UTC] felipe@php.net
[2008-11-10 10:15 UTC] mapopa at gmail dot com
[2009-06-08 10:30 UTC] lester at lsces dot co dot uk
[2009-08-13 09:26 UTC] jani@php.net
[2009-08-21 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 12:00:02 2025 UTC |
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 />