[appveyor] set memory_limit=-1
This commit is contained in:
parent
2a9915e6da
commit
10e33acf42
|
@ -31,6 +31,7 @@ install:
|
|||
- 7z x php_memcache-3.0.8-5.3-nts-vc9-x86.zip -y >nul
|
||||
- cd ..
|
||||
- copy /Y php.ini-development php.ini-min
|
||||
- echo memory_limit=-1 >> php.ini-min
|
||||
- echo serialize_precision=14 >> php.ini-min
|
||||
- echo max_execution_time=1200 >> php.ini-min
|
||||
- echo date.timezone="America/Los_Angeles" >> php.ini-min
|
||||
|
|
|
@ -39,8 +39,6 @@ class ContextListener implements ListenerInterface
|
|||
private $dispatcher;
|
||||
private $registered;
|
||||
|
||||
private static $unserializeExceptionCode = 0x37313bc;
|
||||
|
||||
public function __construct(TokenStorageInterface $tokenStorage, array $userProviders, $contextKey, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null)
|
||||
{
|
||||
if (empty($contextKey)) {
|
||||
|
@ -180,7 +178,7 @@ class ContextListener implements ListenerInterface
|
|||
$prevUnserializeHandler = ini_set('unserialize_callback_func', __CLASS__.'::handleUnserializeCallback');
|
||||
$prevErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = array()) use (&$prevErrorHandler) {
|
||||
if (__FILE__ === $file) {
|
||||
throw new \UnexpectedValueException($msg, self::$unserializeExceptionCode);
|
||||
throw new \UnexpectedValueException($msg, 0x37313bc);
|
||||
}
|
||||
|
||||
return $prevErrorHandler ? $prevErrorHandler($type, $msg, $file, $line, $context) : false;
|
||||
|
@ -194,7 +192,7 @@ class ContextListener implements ListenerInterface
|
|||
restore_error_handler();
|
||||
ini_set('unserialize_callback_func', $prevUnserializeHandler);
|
||||
if ($e) {
|
||||
if (!$e instanceof \UnexpectedValueException || self::$unserializeExceptionCode !== $e->getCode()) {
|
||||
if (!$e instanceof \UnexpectedValueException || 0x37313bc !== $e->getCode()) {
|
||||
throw $e;
|
||||
}
|
||||
if ($this->logger) {
|
||||
|
@ -210,6 +208,6 @@ class ContextListener implements ListenerInterface
|
|||
*/
|
||||
public static function handleUnserializeCallback($class)
|
||||
{
|
||||
throw new \UnexpectedValueException('Class not found: '.$class, self::$unserializeExceptionCode);
|
||||
throw new \UnexpectedValueException('Class not found: '.$class, 0x37313bc);
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue