summaryrefslogtreecommitdiff
path: root/vendor/wikimedia/cdb/src/Writer.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/wikimedia/cdb/src/Writer.php')
-rw-r--r--vendor/wikimedia/cdb/src/Writer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/wikimedia/cdb/src/Writer.php b/vendor/wikimedia/cdb/src/Writer.php
index b994ec67..53216041 100644
--- a/vendor/wikimedia/cdb/src/Writer.php
+++ b/vendor/wikimedia/cdb/src/Writer.php
@@ -94,6 +94,6 @@ abstract class Writer {
* @return bool
*/
protected function isWindows() {
- return substr( php_uname(), 0, 7 ) == 'Windows';
+ return strtoupper( substr( PHP_OS, 0, 3 ) ) === 'WIN';
}
}