projects
/
m6w6
/
ext-pq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
65b8157
)
fix pq\DateTime::createFromFormat() proto for 7.2
author
Remi Collet
<remi@remirepo.net>
Fri, 23 Jun 2017 13:24:38 +0000
(15:24 +0200)
committer
Remi Collet
<remi@remirepo.net>
Fri, 23 Jun 2017 13:24:38 +0000
(15:24 +0200)
src/php_pq_misc.c
patch
|
blob
|
history
diff --git
a/src/php_pq_misc.c
b/src/php_pq_misc.c
index 3f824edd8a5d0b34cf60f67bc374d0ebf352140b..08f10c3763279665a147c291e153efe2753b154f 100644
(file)
--- 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)
{