]> granicus.if.org Git - php/commitdiff
Fixed compiler warnings.
authorIlia Alshanetsky <iliaa@php.net>
Mon, 8 Mar 2004 03:06:56 +0000 (03:06 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 8 Mar 2004 03:06:56 +0000 (03:06 +0000)
ext/standard/var.c

index dbd671ec29f6641a68321d0f284cab3fe1a024ad..3fd9b4c364130a3719765394d1debce8dbe9e863 100644 (file)
@@ -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);