From bbb44cb96ea4809978ff73b7f7455eab2ed41408 Mon Sep 17 00:00:00 2001 From: Dave Fletcher Date: Wed, 8 Nov 2017 14:21:37 -0500 Subject: [PATCH] Fix for PHP 7. substr() now returns empty string instead of false so remove the type strict check. Without this the loop never ends and the script runs out of memory. --- sass/script/SassScriptLexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sass/script/SassScriptLexer.php b/sass/script/SassScriptLexer.php index 98dbe91..d5b0771 100644 --- a/sass/script/SassScriptLexer.php +++ b/sass/script/SassScriptLexer.php @@ -49,7 +49,7 @@ public function __construct($parser) { */ public function lex($string, $context) { $tokens = array(); - while ($string !== false) { + while ($string != false) { if (($match = $this->isWhitespace($string)) !== false) { $tokens[] = null; }