php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33092 Unable to complete network request to host
Submitted: 2005-05-21 16:47 UTC Modified: 2005-05-31 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: fabio at bs2 dot com dot br Assigned:
Status: No Feedback Package: InterBase related
PHP Version: 5.0.4 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fabio at bs2 dot com dot br
New email:
PHP Version: OS:

 

 [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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-21 16:49 UTC] fabio at bs2 dot com dot br
in one test without the connection persistent connection of liveUser the error occurs too.
 [2005-05-23 10:28 UTC] sniper@php.net
Please provide a complete reproducing script. (one that starts with <?php, ends with ?> )


 [2005-05-23 19:16 UTC] 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 19:23 UTC] 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 22:10 UTC] sniper@php.net
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


 [2005-05-31 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2008-11-05 18:33 UTC] andre dot gadonski at gmail dot com
Hi... 

I have the same error.


I'm using PHP 5.2.0 and APACHE 2.0 handler
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC