ID:               33092
 Updated by:       [EMAIL PROTECTED]
 Reported By:      fabio at bs2 dot com dot br
-Status:           Open
+Status:           Feedback
 Bug Type:         InterBase related
 Operating System: FreeBSD
 PHP Version:      5.0.4
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2005-05-23 19:23:19] fabio at bs2 dot com dot br

I'm was wrong, the version of apache in both servers is 2.0.54. The
differs is only the php version and number of users accessing the site.
The server of intebase is version 6.0.

I forgotten to say that the error occurs some times, is not constant.

------------------------------------------------------------------------

[2005-05-23 19:16:05] fabio at bs2 dot com dot br

<?
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);

?>

------------------------------------------------------------------------

[2005-05-23 10:28:48] [EMAIL PROTECTED]

Please provide a complete reproducing script. (one that starts with
<?php, ends with ?> )



------------------------------------------------------------------------

[2005-05-21 16:49:53] fabio at bs2 dot com dot br

in one test without the connection persistent connection of liveUser
the error occurs too.

------------------------------------------------------------------------

[2005-05-21 16:47:36] 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.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=33092&edit=1

Reply via email to