summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Flothmann <christian.flothmann@xabbuh.de>2014-12-29 13:05:07 +0100
committerChristian Flothmann <christian.flothmann@xabbuh.de>2014-12-30 12:17:23 +0100
commit15be6987394517ec539fa6465ec2e022796f62ea (patch)
tree1f9c1964af5a9fc1e773f3de2ce8b09574f2ec73
parenta542abcf38b95de8e8f01f42b6127e7fffc645a8 (diff)
downloadsymfony-security-15be6987394517ec539fa6465ec2e022796f62ea.zip
symfony-security-15be6987394517ec539fa6465ec2e022796f62ea.tar.gz
symfony-security-15be6987394517ec539fa6465ec2e022796f62ea.tar.bz2
use value of DIRECTORY_SEPARATOR to detect Windows
This commit unifies the detection of Windows builds across the Symfony codebase.
-rw-r--r--Core/Util/SecureRandom.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Core/Util/SecureRandom.php b/Core/Util/SecureRandom.php
index aefc888..c0924df 100644
--- a/Core/Util/SecureRandom.php
+++ b/Core/Util/SecureRandom.php
@@ -43,7 +43,7 @@ final class SecureRandom implements SecureRandomInterface
$this->logger = $logger;
// determine whether to use OpenSSL
- if (defined('PHP_WINDOWS_VERSION_BUILD') && PHP_VERSION_ID < 50304) {
+ if ('\\' === DIRECTORY_SEPARATOR && PHP_VERSION_ID < 50304) {
$this->useOpenSsl = false;
} elseif (!function_exists('openssl_random_pseudo_bytes')) {
if (null !== $this->logger) {