From 7defdbc663857079c99ca79004b1bcc368c0a37b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a?= Date: Fri, 3 Aug 2012 21:46:05 +0200 Subject: [PATCH] Revert "getmypid is a PHP core function" This reverts commit cc4fe0889d568f2d4c5e432b26ef620d1ef0d684. --- htdocs/core/lib/functions.lib.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 790f2c855d4..ee2ef29f5a5 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -4107,4 +4107,17 @@ function getCurrencySymbol($currency_code) return $currency_sign; } +if (! function_exists('getmypid')) +{ + /** + * Return PID + * + * @return void + */ + function getmypid() + { + return rand(1,32768); + } +} + ?>