| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 Patchesfix-accept-infinity-values (last revision 2015-02-04 00:18 UTC by william dot welter at 4linux dot com dot br)Pull Requests
Pull requests: 
 HistoryAllCommentsChangesGit/SVN commits             
             [2015-02-04 00:24 UTC] william dot welter at 4linux dot com dot br
  [2015-02-04 15:29 UTC] joerg dot ludwig at iserv dot eu
  [2015-02-14 14:23 UTC] laruence@php.net
  [2015-02-14 14:23 UTC] laruence@php.net
 
-Status: Open
+Status: Closed
  [2015-02-14 14:23 UTC] laruence@php.net
  [2015-02-14 14:23 UTC] laruence@php.net
  [2015-02-14 14:23 UTC] laruence@php.net
  [2015-02-14 14:23 UTC] laruence@php.net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 03:00:01 2025 UTC | 
Description: ------------ pg_update() fails to store infinite values. Test script: --------------- $dbh = pg_connect("dbname=test"); pg_update($dbh, "test", ["ping" => INF], ["id" => 42]); pg_update($dbh, "test", ["ping" => "INF"], ["id" => 42]); Expected result: ---------------- pg_update() (and pg_insert()) should be able to store infinite values (INF and -INF). In PostgreSQL itself it works: UPDATE test SET ping = 'INF' WHERE id = 42; Actual result: -------------- PHP Warning: pg_update(): ERROR: column "inf" does not exist LINE 1: UPDATE "test" SET "ping"=INF WHERE "id"=42... ^ in Command line code on line 1 PHP Notice: pg_update(): 'INF' does not match with '^([+-]{0,1}[0-9]+)|([+-]{0,1}[0-9]*[\.][0-9]+)|([+-]{0,1}[0-9]+[\.][0-9]*)$' in Command line code on line 1 PHP Notice: pg_update(): Expects NULL, string, long or double value for PostgreSQL 'float4' (ping) in Command line code on line 1