From: Remi Collet Date: Fri, 23 Jun 2017 13:24:38 +0000 (+0200) Subject: fix pq\DateTime::createFromFormat() proto for 7.2 X-Git-Tag: v2.1.2~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=be621b64a9a5faea34741430db84cfe16b7b40b6;p=m6w6%2Fext-pq fix pq\DateTime::createFromFormat() proto for 7.2 --- 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) {