|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2016-05-09 12:10 UTC] yohgaki@php.net
 
-Assigned To:
+Assigned To: yohgaki
  [2016-05-09 16:35 UTC] ab@php.net
  [2016-05-09 20:28 UTC] yohgaki@php.net
 
-Assigned To: yohgaki
+Assigned To: ab
  [2016-05-09 20:28 UTC] yohgaki@php.net
  [2016-05-20 21:34 UTC] ab@php.net
 
-Status: Assigned
+Status: Feedback
  [2016-05-20 21:34 UTC] ab@php.net
  [2016-05-22 11:49 UTC] jacksonpauls at gmail dot com
 
-Status: Feedback
+Status: Assigned
  [2016-05-22 11:49 UTC] jacksonpauls at gmail dot com
  [2016-05-29 12:30 UTC] jacksonpauls at gmail dot com
 
-Status: Assigned
+Status: Closed
  [2016-05-29 12:30 UTC] jacksonpauls at gmail dot com
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Mon Oct 27 03:00:02 2025 UTC | 
Description: ------------ pg_insert in PHP 7.0.6 fails to insert timestamps, in PHP 5.6.21 it works. Test script: --------------- PostgreSQL commands: $ createdb test $ createuser test PHP commands: $ php -a Interactive shell php > $res = pg_connect("host=localhost dbname=test user=test"); php > pg_query($res, "CREATE TABLE test (ts TIMESTAMP)"); php > pg_insert($res, 'test', ['ts' => '2016-01-01T15:00:00+0100']); PHP Notice: pg_insert(): Expects NULL or string for PostgreSQL timestamp field (ts) in php shell code on line 1 Notice: pg_insert(): Expects NULL or string for PostgreSQL timestamp field (ts) in php shell code on line 1 (PHP 5.6.21: last line succeeds with no output.) Expected result: ---------------- No output Actual result: -------------- PHP Notice