From:             phpdevel-no-spam at pv2c dot sk
Operating system: Linux
PHP version:      4.3.10
PHP Bug Type:     PostgreSQL related
Bug description:  pg_field_is_null fails for column with upper case name

Description:
------------
When calling pg_field_is_null() with 3. parameter the column name and it
has upper case letters in it, an error is the result:
"PHP Warning:  pg_field_is_null(): Bad column offset specified in
bugtest.php on line 15"

This bug was reproduced using PostgreSQL 7.4.6, PHP 4.3.10
PostgreSQL 7.4.6, PHP 4.3.9
PostgreSQL 7.4.6, PHP 4.3.10
using two different servers.

This bug doesn't occur when the 3. parameter is column offset, or the
column name contains only lover case letters.

Reproduce code:
---------------
http://www.pv2c.sk/php/bugtest.zip (1KB)

Included is also a sample db creation script.

Expected result:
----------------
Just want to know if the column is NULL.

Actual result:
--------------
Just an warning.

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

Reply via email to