From ac6eec2c9b50058448b1ccfe2af29d0f59405443 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 7 Nov 2017 09:51:34 +0100 Subject: [PATCH] fix PHP Notice A non well formed numeric value encountered during install --- doc/rpm-build/post_install.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/rpm-build/post_install.php b/doc/rpm-build/post_install.php index a01a632769..5320abf1be 100755 --- a/doc/rpm-build/post_install.php +++ b/doc/rpm-build/post_install.php @@ -790,12 +790,13 @@ function check_fix_php_apc_ini() /** * Convert a size with unit eg. 32M to a number - * @param int $size + * @param int|string $_size * @return int */ -function _size_with_unit($size) +function _size_with_unit($_size) { - switch(strtoupper(substr($size, -1))) + $size = (int)$_size; + switch(strtoupper(substr($_size, -1))) { case 'G': $size *= 1024;