summaryrefslogtreecommitdiff
path: root/ext/standard/var.c
diff options
context:
space:
mode:
authorArd Biesheuvel <abies@php.net>2004-03-08 23:11:45 +0000
committerArd Biesheuvel <abies@php.net>2004-03-08 23:11:45 +0000
commitb303ba089ca0255f4ced082e9ca2908d2b3dade4 (patch)
tree4a1bec00593612ac465cd907928503bbdc8476c0 /ext/standard/var.c
parentf1ff65c155d4ace217f75a17e0add367b5f0aeca (diff)
downloadphp-git-b303ba089ca0255f4ced082e9ca2908d2b3dade4.tar.gz
More wordsize fixes
Diffstat (limited to 'ext/standard/var.c')
-rw-r--r--ext/standard/var.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/var.c b/ext/standard/var.c
index 3fd9b4c364..f0f5583dca 100644
--- a/ext/standard/var.c
+++ b/ext/standard/var.c
@@ -740,7 +740,7 @@ PHP_FUNCTION(unserialize)
if (!php_var_unserialize(&return_value, &p, p + Z_STRLEN_PP(buf), &var_hash TSRMLS_CC)) {
PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
zval_dtor(return_value);
- php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Error at offset %d of %d bytes", p - Z_STRVAL_PP(buf), Z_STRLEN_PP(buf));
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Error at offset %ld of %d bytes", (long)(p - Z_STRVAL_PP(buf)), Z_STRLEN_PP(buf));
RETURN_FALSE;
}
PHP_VAR_UNSERIALIZE_DESTROY(var_hash);