Bug #69968 [NEW]: Connectivity Issue

From: Date: Tue, 30 Jun 2015 13:14:46 +0000
Subject: Bug #69968 [NEW]: Connectivity Issue
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194013@lists.php.net to get a copy of this message
From:             vijaybabu dot r at hp dot com
Operating system: HP UX
PHP version:      5.4.42
Package:          PostgreSQL related
Bug Type:         Bug
Bug description:Connectivity Issue

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 bug report at https://bugs.php.net/bug.php?id=69968&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=69968&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=69968&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=69968&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=69968&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=69968&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=69968&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=69968&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=69968&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=69968&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=69968&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=69968&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=69968&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=69968&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69968&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=69968&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=69968&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=69968&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69968&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=69968&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=69968&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#194013) next »