From:             edechaux at irci dot fr
Operating system: Linux 2.4.21
PHP version:      4.3.3
PHP Bug Type:     PostgreSQL related
Bug description:  pg_connection_status strange behaviour

Description:
------------
I have notice a strange beaviour with the pg_connection_status function.

See this code :


Reproduce code:
---------------


echo pg_connection_status (false) == PGSQL_CONNECTION_OK ? 'strange' :
'ok';

Expected result:
----------------

I think I should see 'ok' on the screen. false is not a valid Postgres
connection.

Actual result:
--------------

However 'strange' is written on the screen.

It may not be a bug. But this behaviour should be written in the doc.

-- 
Edit bug report at http://bugs.php.net/?id=25935&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25935&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25935&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25935&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25935&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25935&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25935&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25935&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25935&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25935&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25935&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25935&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25935&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25935&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25935&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25935&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25935&r=float

Reply via email to