From d4c2f9c896a5a3bc495ba076d1c08d47c915f509 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 9 Jun 2015 15:09:21 +0200 Subject: php-pecl-apcu: fix for the control panel + new scriptlets --- apcu-pr.patch | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 apcu-pr.patch (limited to 'apcu-pr.patch') diff --git a/apcu-pr.patch b/apcu-pr.patch new file mode 100644 index 0000000..434d9df --- /dev/null +++ b/apcu-pr.patch @@ -0,0 +1,78 @@ +From 896b1643b4295a37fba4e0fb5cb8ffb3c10da851 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Tue, 9 Jun 2015 14:34:23 +0200 +Subject: [PATCH 1/2] use ['info'] instead of undefined ['key'] + +--- + apc.php | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/apc.php b/apc.php +index cedf096..119d74e 100644 +--- a/apc.php ++++ b/apc.php +@@ -915,7 +915,6 @@ function block_sort($array1, $array2) + } + $fieldname='info'; + $fieldheading='User Entry Label'; +- $fieldkey='key'; + + $cols=6; + echo <<'; +- echo '[Delete Now]'; ++ echo '[Delete Now]'; + echo ''; + } else { + echo '   '; + +From 20c53f1ee86a659d5316977096efe5edf03eb958 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Tue, 9 Jun 2015 14:36:25 +0200 +Subject: [PATCH 2/2] silent the fetch, to hide "Warning: Class + __PHP_Incomplete_Class has no unserializer in..." + +--- + apc.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/apc.php b/apc.php +index 119d74e..47debee 100644 +--- a/apc.php ++++ b/apc.php +@@ -1048,7 +1048,7 @@ function block_sort($array1, $array2) + echo ''; + if ($sh == $MYREQUEST["SH"]) { + echo ''; +- echo '
'.htmlentities(print_r(apcu_fetch($entry['info']), 1)).'
'; ++ echo '
'.htmlentities(print_r(@apcu_fetch($entry['info']), 1)).'
'; + echo ''; + } + $i++; +From f095923ecaa46a6e3c64bee913cf527077393539 Mon Sep 17 00:00:00 2001 +From: Stanislav Khromov +Date: Fri, 17 Oct 2014 15:44:20 +0200 +Subject: [PATCH] Scroll to cache entry when clicking on it + +--- + apc.php | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/apc.php b/apc.php +index efc7eec..cedf096 100644 +--- a/apc.php ++++ b/apc.php +@@ -1020,8 +1020,8 @@ function block_sort($array1, $array2) + $sh=md5($entry["info"]); + $field_value = htmlentities(strip_tags($entry[$fieldname],''), ENT_QUOTES, 'UTF-8'); + echo +- '', +- "",$field_value,'', ++ '', ++ "",$field_value,'', + '',$entry['num_hits'],'', + '',$entry['mem_size'],'', + '',date(DATE_FORMAT,$entry['access_time']),'', -- cgit