From 1d2a45069406a8806e8cb5627d43e67255517181 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 17 Nov 2014 17:03:13 +0000 Subject: [PATCH] fix regular expresssion to find Debian 6 "20-apc.ini" file --- doc/rpm-build/post_install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/rpm-build/post_install.php b/doc/rpm-build/post_install.php index 36cbeb5f7b..cc4a2b363d 100755 --- a/doc/rpm-build/post_install.php +++ b/doc/rpm-build/post_install.php @@ -862,7 +862,7 @@ function check_fix_php_apc_ini() phpinfo(); $phpinfo = ob_get_clean(); $matches = null; - if (preg_match('#(/[a-z0-5./]+apcu?.ini)(,| |$)#mi', $phpinfo, $matches) && + if (preg_match('#(/[a-z0-5./-]+apcu?.ini)(,| |$)#mi', $phpinfo, $matches) && file_exists($path = $matches[1]) && ($apc_ini = file_get_contents($path))) { $new_shm_size = 128 / $shm_segments;