From: Ilia Alshanetsky Date: Mon, 8 Mar 2004 03:06:56 +0000 (+0000) Subject: Fixed compiler warnings. X-Git-Tag: RELEASE_0_2_0~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=611226073841e256144a5ed0d2a457cb6e561872;p=php Fixed compiler warnings. --- diff --git a/ext/standard/var.c b/ext/standard/var.c index dbd671ec29..3fd9b4c364 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -69,7 +69,6 @@ PHPAPI void php_var_dump(zval **struc, int level TSRMLS_DC) HashTable *myht = NULL; char *class_name; zend_uint class_name_len; - zend_class_entry *ce; if (level > 1) { php_printf("%*c", level - 1, ' '); @@ -741,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 %ld of %ld bytes", p - Z_STRVAL_PP(buf), Z_STRLEN_PP(buf)); + php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Error at offset %d of %d bytes", p - Z_STRVAL_PP(buf), Z_STRLEN_PP(buf)); RETURN_FALSE; } PHP_VAR_UNSERIALIZE_DESTROY(var_hash);