richthegeek / phpsass

A compiler for SASS/SCSS written in PHP, brought up to date (approx 3.2) from a fork of PHamlP: http://code.google.com/p/phamlp/
http://phpsass.com/
382 stars 83 forks source link

Small PHP7 compatibility fix #180

Closed dotterian closed 8 years ago

dotterian commented 8 years ago

In PHP5 substr($a, strlen($a)) will return false.

In PHP7 it will return empty string, causing endless loop in condition

while ($string !== false) { /*...*/ }

So i made a quick fix

richthegeek commented 8 years ago

Build failed. Perhaps while ($string !== false && strlen($string))

joejoseph00 commented 8 years ago

Please close this pull request, see pull request #184 instead