From:             john dot doyle at camden dot gov dot uk
Operating system: Windows Server 2003
PHP version:      5.2.9
PHP Bug Type:     PostgreSQL related
Bug description:  pg_version returns incorrect client version and no server 
version

Description:
------------
pg_version returns 8.3.1 for the client version and doesn't return
anything for the server version. We've tested on multiple machines with
Postgresql 8.3.7. We've checked our path variables, the version numbers on
psql, libpg.dll, what select version() returns and whether we had any other
copies of libpg.dll on our machines.

Reproduce code:
---------------
<?php
  $dbconn = pg_connect("some connection string")
     or die("Could not connect");
     
  $v = pg_version($dbconn);
  
  print_r($v);
?>

Expected result:
----------------
to see pg_version return client and server as 8.3.7

Actual result:
--------------
8.3.1 for client and no other values

-- 
Edit bug report at http://bugs.php.net/?id=48181&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48181&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48181&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48181&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48181&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48181&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48181&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48181&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48181&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48181&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48181&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48181&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48181&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48181&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48181&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48181&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48181&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48181&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48181&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48181&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48181&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48181&r=mysqlcfg

Reply via email to