From: Tomas V.V.Cox Date: Tue, 6 Aug 2002 16:35:19 +0000 (+0000) Subject: Changed Windows 9x detection code (reported by Alex Merz) X-Git-Tag: dev~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d4b690bab00d8a98fe8a81eb89dc30aab235620;p=php Changed Windows 9x detection code (reported by Alex Merz) --- diff --git a/pear/PEAR/Registry.php b/pear/PEAR/Registry.php index d8bfddcc66..780c3b4ddd 100644 --- a/pear/PEAR/Registry.php +++ b/pear/PEAR/Registry.php @@ -254,7 +254,7 @@ class PEAR_Registry extends PEAR */ function _lock($mode = LOCK_EX) { - if (!strstr(php_uname(), 'Windows 95/98')) { + if (!eregi('Windows 9', php_uname())) { if ($mode != LOCK_UN && is_resource($this->lock_fp)) { // XXX does not check type of lock (LOCK_SH/LOCK_EX) return true;