diff options
| author | Tomas V.V.Cox <cox@php.net> | 2002-08-06 16:35:19 +0000 |
|---|---|---|
| committer | Tomas V.V.Cox <cox@php.net> | 2002-08-06 16:35:19 +0000 |
| commit | 5d4b690bab00d8a98fe8a81eb89dc30aab235620 (patch) | |
| tree | 9a12ef8b0a44d841f9718409ff36e2b6b91f7a23 | |
| parent | 5611c2fc78f0696e1e5715c08502d0a09696c02a (diff) | |
| download | php-git-5d4b690bab00d8a98fe8a81eb89dc30aab235620.tar.gz | |
Changed Windows 9x detection code (reported by Alex Merz)
| -rw-r--r-- | pear/PEAR/Registry.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
