|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-05-21 16:47 UTC] fabio at bs2 dot com dot br
Description:
------------
the interbase server is not on same computer as the script
I'm using connect, the error had to be in the connect function and not in the query function.
the function connect should be get the connection from the previous persistent connection. In mysql_connect function have an parameter new_link to force to create new connection, but interbase not.
the version of Apache in the server where the error occurs is 2.0.54
I have the same code in other machine(development server) with Apache 1.3 and php 5.0.3 and works ok.
Reproduce code:
---------------
{conecting to bd using liveUser and MDB with persistent connection}
$con = ibase_connect(...);
$res = ibase_query($con ,"SELECT * FROM someTable"); // the error occurs here
$row = ibase_fetch_assoc($res);
var_dump($row);
ibase_close($con);
Actual result:
--------------
ibase_query() [function.ibase-query]: Unable to complete network request to host "some ip". Error reading data from the connection. Bad file descriptor.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 04:00:02 2025 UTC |
<? require_once 'MDB.php'; require_once 'LiveUser.php'; define('ALUNO', 'aluno'); $conf = array( 'cookie' => array( 'lifetime' => 0 ), 'login' => array( 'username' => 'ra', 'password' => 'senha' ), 'logout' => array( 'destroy' => false ), 'authContainers' => array( ...{Configuration of auth container}... ) ); $user = isset($_REQUEST['user']) ?$_REQUEST['user'] :''; $pass = isset($_REQUEST['pass']) ?$_REQUEST['pass'] :''; $logout = isset($_REQUEST['action']) && $_REQUEST['action'] == 'logout'; $lu = &LiveUser::singleton($conf); $lu->init($user ,$pass ,$logout); $con = ibase_pconnect(...); $res = ibase_query($con ,"SELECT * FROM table"); $row = ibase_fetch_assoc($res); var_dump($row); ?>