From: Andrew Dolgov Date: Tue, 26 Feb 2008 11:46:05 +0000 (+0100) Subject: only use posix_getpid() for debugging when possible X-Git-Tag: 1.2.21~10 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2a6a93953b62a30543f61ede5255f29e167ab602;p=tt-rss.git only use posix_getpid() for debugging when possible --- diff --git a/functions.php b/functions.php index 873df424..024232e9 100644 --- a/functions.php +++ b/functions.php @@ -87,7 +87,9 @@ */ function _debug($msg) { $ts = strftime("%H:%M:%S", time()); - $ts = "$ts/" . posix_getpid(); + if (function_exists('posix_getpid')) { + $ts = "$ts/" . posix_getpid(); + } print "[$ts] $msg\n"; } // function _debug