Bug #72176 [Asn->Fbk]: pg_insert timestamp regression

From: Date: Fri, 20 May 2016 21:34:40 +0000
Subject: Bug #72176 [Asn->Fbk]: pg_insert timestamp regression
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201212@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72176&edit=1 ID: 72176 Updated by: ab@php.net Reported by: jacksonpauls at gmail dot com Summary: pg_insert timestamp regression -Status: Assigned +Status: Feedback Type: Bug Package: PostgreSQL related Operating System: Linux - Fedora 23 PHP Version: 7.0.6 Assigned To: ab Block user comment: N Private report: N New Comment: @jacksonpauls were you able to check the release candidate? Thanks. Previous Comments: ------------------------------------------------------------------------ [2016-05-09 20:28:08] yohgaki@php.net Didn't notice bug #71062. To reporter, please close this one if 7.0.7 fixed this issue. ------------------------------------------------------------------------ [2016-05-09 16:35:37] ab@php.net This should have been fixes in the scope of bug #71062 for the upcoming 7.0.7, please check the RC this week. Thanks. ------------------------------------------------------------------------ [2016-05-09 11:58:10] jacksonpauls at gmail dot com 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72176&edit=1

« previous php.bugs (#201212) next »