]> granicus.if.org Git - php/commitdiff
Changed Windows 9x detection code (reported by Alex Merz)
authorTomas V.V.Cox <cox@php.net>
Tue, 6 Aug 2002 16:35:19 +0000 (16:35 +0000)
committerTomas V.V.Cox <cox@php.net>
Tue, 6 Aug 2002 16:35:19 +0000 (16:35 +0000)
pear/PEAR/Registry.php

index d8bfddcc6654314f682e5b4772ca9b4219ab4650..780c3b4dddb4b26bb935b9d4c1f0b7a6a985ed5a 100644 (file)
@@ -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;