8000 minor #25813 [appveyor] set memory_limit=-1 (nicolas-grekas) · symfony/symfony@95c6193 · GitHub
[go: up one dir, main page]

Skip to content

Commit 95c6193

Browse files
minor #25813 [appveyor] set memory_limit=-1 (nicolas-grekas)
This PR was merged into the 2.7 branch. Discussion ---------- [appveyor] set memory_limit=-1 | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 10e33ac [appveyor] set memory_limit=-1
2 parents 01de7ad + 10e33ac commit 95c6193

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ install:
3131
- 7z x php_memcache-3.0.8-5.3-nts-vc9-x86.zip -y >nul
3232
- cd ..
3333
- copy /Y php.ini-development php.ini-min
34+
- echo memory_limit=-1 >> php.ini-min
3435
- echo serialize_precision=14 >> php.ini-min
3536
- echo max_execution_time=1200 >> php.ini-min
3637
- echo date.timezone="America/Los_Angeles" >> php.ini-min

src/Symfony/Component/Security/Http/Firewall/ContextListener.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ class ContextListener implements ListenerInterface
3939
private $dispatcher;
4040
private $registered;
4141

42-
private static $unserializeExceptionCode = 0x37313bc;
43-
4442
public function __construct(TokenStorageInterface $tokenStorage, array $userProviders, $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null)
4543
{
4644
if (empty($contextKey)) {
@@ -180,7 +178,7 @@ private function safelyUnserialize($serializedToken)
180178
$prevUnserializeHandler = ini_set('unserialize_callback_func', __CLASS__.'::handleUnserializeCallback');
181179
$prevErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = array()) use (&$prevErrorHandler) {
182180
if (__FILE__ === $file) {
183-
throw new \UnexpectedValueException($msg, self::$unserializeExceptionCode);
181+
throw new \UnexpectedValueException($msg, 0x37313bc);
184182
}
185183

186184
return $prevErrorHandler ? $prevErrorHandler($type, $msg, $file, $line, $context) : false;
@@ -194,7 +192,7 @@ private function safelyUnserialize($serializedToken)
194192
restore_error_handler();
195193
ini_set('unserialize_callback_func', $prevUnserializeHandler);
196194
if ($e) {
197-
if (!$e instanceof \UnexpectedValueException || self::$unserializeExceptionCode !== $e->getCode()) {
195+
if (!$e instanceof \UnexpectedValueException || 0x37313bc !== $e->getCode()) {
198196
throw $e;
199197
}
200198
if ($this->logger) {
@@ -210,6 +208,6 @@ private function safelyUnserialize($serializedToken)
210208
*/
211209
public static function handleUnserializeCallback($class)
212210
{
213-
throw new \UnexpectedValueException('Class not found: '.$class, self::$unserializeExceptionCode);
211+
throw new \UnexpectedValueException('Class not found: '.$class, 0x37313bc);
214212
}
215213
}

0 commit comments

Comments
 (0)
0