Skip to content

Commit

Permalink
Fix format specifiers in apc_cache.c
Browse files Browse the repository at this point in the history
Fixes #501.
  • Loading branch information
nikic committed Dec 9, 2023
1 parent acc48ed commit 02b0ba7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apc_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ static void apc_cache_wlocked_gc(apc_cache_t* cache)
/* good ol' whining */
if (dead->ref_count > 0) {
apc_debug(
"GC cache entry '%s' was on gc-list for %ld seconds",
ZSTR_VAL(dead->key), gc_sec
"GC cache entry '%s' was on gc-list for %lld seconds",
ZSTR_VAL(dead->key), (long long) gc_sec
);
}

Expand Down Expand Up @@ -275,7 +275,7 @@ PHP_APCU_API int APC_UNSERIALIZER_NAME(php) (APC_UNSERIALIZER_ARGS)
BG(serialize_lock)--;

if (!result) {
php_error_docref(NULL, E_NOTICE, "Error at offset %ld of %ld bytes", (zend_long)(tmp - buf), (zend_long)buf_len);
php_error_docref(NULL, E_NOTICE, "Error at offset %td of %zd bytes", tmp - buf, buf_len);
ZVAL_NULL(value);
return 0;
}
Expand Down

0 comments on commit 02b0ba7

Please sign in to comment.