summaryrefslogtreecommitdiffstats
path: root/Core/Util
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2014-12-30 14:32:44 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2014-12-30 14:32:44 +0100
commit381d069e464bb34f3a9748eb2e32d2a1718205af (patch)
tree7b87170d7073fc9522846f70ae09b7c37f5afc28 /Core/Util
parentcd277e8552ccb2c0242b244473c708b5c6600b74 (diff)
parentdf8af09622578fad046f18c0cab2ef238722b8d1 (diff)
downloadsymfony-security-381d069e464bb34f3a9748eb2e32d2a1718205af.zip
symfony-security-381d069e464bb34f3a9748eb2e32d2a1718205af.tar.gz
symfony-security-381d069e464bb34f3a9748eb2e32d2a1718205af.tar.bz2
Merge branch '2.3' into 2.5
* 2.3: [Form] Remove a redundant test. use value of DIRECTORY_SEPARATOR to detect Windows Conflicts: src/Symfony/Component/Console/Application.php src/Symfony/Component/Filesystem/Tests/FilesystemTest.php src/Symfony/Component/Form/Tests/Extension/Csrf/Type/FormTypeCsrfExtensionTest.php src/Symfony/Component/Process/Process.php
Diffstat (limited to 'Core/Util')
-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) {