Bug #69968 [Opn->Wfx]: Connectivity Issue
| From: | yohgaki@php.net | Date: | Wed, 01 Jul 2015 05:47:47 +0000 |
| Subject: | Bug #69968 [Opn->Wfx]: Connectivity Issue | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194023@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69968&edit=1
ID: 69968
Updated by: yohgaki@php.net
Reported by: vijaybabu dot r at hp dot com
Summary: Connectivity Issue
-Status: Open
+Status: Wont fix
Type: Bug
Package: PostgreSQL related
Operating System: HP UX
PHP Version: 5.4.42
Block user comment: N
Private report: N
New Comment:
Sorry, but I cannot reproduce the issue on 5.6... Support for 5.2/5.4 is already finished.
I have to close this. If you find issue on 5.6, please re-open.
php > var_dump(pg_connect("host=localhost port=5432 user=yohgaki"));
resource(1) of type (pgsql link)
php > var_dump(pg_connect("host='localhost' port=5432 user=yohgaki"));
resource(2) of type (pgsql link)
php > var_dump(pg_connect("host='localhost' port='5432'
user=yohgaki"));
resource(3) of type (pgsql link)
php > var_dump(pg_connect("host='localhost' port='5432'
user='yohgaki'"));
resource(4) of type (pgsql link)
php > var_dump(pg_connect(" host='localhost' port='5432'
user='yohgaki'"));
resource(5) of type (pgsql link)
php > var_dump(pg_connect(" host='127.0.0.1' port='5432'
user='yohgaki'"));
resource(6) of type (pgsql link)
php > var_dump(pg_connect(" host='127.0.0.1' user='yohgaki'"));
resource(7) of type (pgsql link)
php > var_dump(pg_connect(" host='127.0.0.1' port='5432'
user='yohgaki' "));
resource(8) of type (pgsql link)
php > echo phpversion();
5.6.10
Previous Comments:
------------------------------------------------------------------------
[2015-06-30 13:14:45] vijaybabu dot r at hp dot com
Description:
------------
I have installed php 5.2 & 5.4 and postgres 9.4 in same server HP UX 11.31 ia64.
Whenever i tried to connect postgres database, am getting below message in browser
Unable to connect to PostgreSQL server: could not get socket error status: Error 0
in /opt/hpws22/apache/htdocs/one.php on line 3
And in postgres log file, am getting below message
Incomplete startup packet
I have tried to connect the same postgres with Perl and psql. Its all working fine with same
parameters. But from PHP i couldnt connect.
Test script:
---------------
<?php
$options = " host='localhost' port='5432' user='vijay'
password='abcd123' dbname='test456' ";
pg_connect($options);
//i tried with ip address, host name, 127.0.0.1 & socket(/tmp/)
?>
Actual result:
--------------
Unable to connect to PostgreSQL server: could not get socket error status: Error 0
in /opt/hpws22/apache/htdocs/one.php on line 3
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69968&edit=1