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

From: Date: Sun, 22 May 2016 11:49:21 +0000
Subject: Bug #72176 [Fbk->Asn]: pg_insert timestamp regression
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-201223@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
 User updated by:    jacksonpauls at gmail dot com
 Reported by:        jacksonpauls at gmail dot com
 Summary:            pg_insert timestamp regression
-Status:             Feedback
+Status:             Assigned
 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:

No, sorry, on holiday, won't be able to check this in the near future. I did look at bug
#71062, and think the issue is indeed the same.


Previous Comments:
------------------------------------------------------------------------
[2016-05-20 21:34:39] ab@php.net

@jacksonpauls were you able to check the release candidate?

Thanks.

------------------------------------------------------------------------
[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


Thread (6 messages)

« previous php.bugs (#201223) next »