summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-24 02:35:34 +0200
committerAnatol Belski <ab@php.net>2014-08-24 02:35:34 +0200
commit70de6180d5a022806212d2b6eebbba48af827940 (patch)
tree5967f49d9fb27fd7d45da1fe83acfb072e290a12 /Zend/zend_exceptions.c
parent86674b5837bffe4486714f9661620020ee498f3b (diff)
downloadphp-git-70de6180d5a022806212d2b6eebbba48af827940.tar.gz
fixes to %pd format usage
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r--Zend/zend_exceptions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 6d5aa720fa..766cf7e210 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -461,7 +461,7 @@ static void _build_trace_args(zval *arg, zend_string **str_ptr TSRMLS_DC) /* {{{
case IS_RESOURCE: {
zend_int_t lval = Z_RES_HANDLE_P(arg);
char s_tmp[MAX_LENGTH_OF_ZEND_INT + 1];
- int l_tmp = zend_sprintf(s_tmp, "%ld", lval); /* SAFE */
+ int l_tmp = zend_sprintf(s_tmp, ZEND_INT_FMT, lval); /* SAFE */
TRACE_APPEND_STR("Resource id #");
TRACE_APPEND_STRL(s_tmp, l_tmp);
TRACE_APPEND_STR(", ");
@@ -470,7 +470,7 @@ static void _build_trace_args(zval *arg, zend_string **str_ptr TSRMLS_DC) /* {{{
case IS_INT: {
zend_int_t lval = Z_IVAL_P(arg);
char s_tmp[MAX_LENGTH_OF_ZEND_INT + 1];
- int l_tmp = zend_sprintf(s_tmp, "%ld", lval); /* SAFE */
+ int l_tmp = zend_sprintf(s_tmp, ZEND_INT_FMT, lval); /* SAFE */
TRACE_APPEND_STRL(s_tmp, l_tmp);
TRACE_APPEND_STR(", ");
break;
@@ -519,7 +519,7 @@ static void _build_trace_string(zval *frame, zend_uint_t index, zend_string **st
zend_string *str = *str_ptr;
if (Z_TYPE_P(frame) != IS_ARRAY) {
- zend_error(E_WARNING, "Expected array for frame %lu", index);
+ zend_error(E_WARNING, "Expected array for frame %pu", index);
return;
}