php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46497 Unable to complete network request to host
Submitted: 2008-11-05 19:00 UTC Modified: 2009-08-21 01:00 UTC
Votes:2
Avg. Score:2.5 ± 0.5
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: andre dot gadonski at gmail dot com Assigned:
Status: No Feedback Package: InterBase related
PHP Version: 5.2.6 OS: FreeBSD
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-11-05 19:00 UTC] andre dot gadonski at gmail dot com
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 &quot;***some ip***&quot;. Error reading

 data from the connection. Bad file descriptor  in <b>Unknown</b> on line <b>0</b><br />

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-07 00:39 UTC] felipe@php.net
I can't reproduce it on Linux.
 [2008-11-10 10:15 UTC] mapopa at gmail dot com
i think you need to use pconnect 

ibase_pconnect() acts very much like ibase_connect() with two major 
differences.

First, when connecting, the function will first try to find a 
(persistent) link that's already opened with the same parameters. If 
one is found, an identifier for it will be returned instead of opening 
a new connection.
 [2009-06-08 10:30 UTC] lester at lsces dot co dot uk
Without more information on this there is nothing we can do. We do not even know if the remote server is visible from outside PHP, and so there is insufficient data to find a fault, since there are no other reports of ibase_connect not working?
 [2009-08-13 09:26 UTC] jani@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2009-08-21 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC