From 420c7979d5743a4621b334f569c7ae8686f4f85f Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sun, 14 Feb 2016 14:48:26 +0100 Subject: [PATCH] Fix zpp in pg_last_notice --- ext/pgsql/pgsql.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index d7ef097d5f..a5020665b3 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -2319,7 +2319,7 @@ PHP_FUNCTION(pg_last_notice) zval *pgsql_link = NULL; zval *notice, *notices; PGconn *pg_link; - long option = PGSQL_NOTICE_LAST; + zend_long option = PGSQL_NOTICE_LAST; if (zend_parse_parameters(ZEND_NUM_ARGS(), "r|l", &pgsql_link, &option) == FAILURE) { return; @@ -2358,7 +2358,8 @@ PHP_FUNCTION(pg_last_notice) RETURN_TRUE; break; default: - php_error_docref(NULL, E_WARNING, "Invalid option specified (%d)", option); + php_error_docref(NULL, E_WARNING, + "Invalid option specified (" ZEND_LONG_FMT ")", option); } RETURN_FALSE; } -- 2.50.1