summaryrefslogtreecommitdiffstats
path: root/pq-upstream.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pq-upstream.patch')
-rw-r--r--pq-upstream.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/pq-upstream.patch b/pq-upstream.patch
index 6581539..e96dfc9 100644
--- a/pq-upstream.patch
+++ b/pq-upstream.patch
@@ -80,3 +80,28 @@ index 8533753..b24da0e 100644
["timezone_type"]=>
int(1)
["timezone"]=>
+From be621b64a9a5faea34741430db84cfe16b7b40b6 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Fri, 23 Jun 2017 15:24:38 +0200
+Subject: [PATCH] fix pq\DateTime::createFromFormat() proto for 7.2
+
+---
+ src/php_pq_misc.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/php_pq_misc.c b/src/php_pq_misc.c
+index 3f824ed..08f10c3 100644
+--- a/src/php_pq_misc.c
++++ b/src/php_pq_misc.c
+@@ -139,7 +139,11 @@ static PHP_METHOD(pqdt, __toString)
+ ZEND_BEGIN_ARG_INFO_EX(ai_pqdt_create_from_format, 0, 0, 2)
+ ZEND_ARG_INFO(0, format)
+ ZEND_ARG_INFO(0, datetime)
++#if PHP_VERSION_ID >= 70200
++ ZEND_ARG_OBJ_INFO(0, object, DateTimeZone, 1)
++#else
+ ZEND_ARG_INFO(0, timezone)
++#endif
+ ZEND_END_ARG_INFO();
+ static PHP_METHOD(pqdt, createFromFormat)
+ {