Closed stof closed 8 years ago
@tijsverkoyen anything blocking this PR ? It fixes an annoying bug, which happens much more frequently on PHP 7
Please merge this fix! I was about to issue a pull request doing the exact same thing.
Dudes, really... I only have limited time. @stof are you interested in becoming a collaborator?
@tijsverkoyen yeah, I could. I already have lots of projects, but I'm using this one at work, so I can dedicate some work time to it from times to times (this is how I sent this bunch of PRs for instance, when migrating our prod to PHP 7)
On big CSS files, the regex deleting media queries was reaching the pcre jit stack limit, breaking the library on PHP 7 by default (as pcre.jit is enabled by default).
Note that this could also reach the PCRE backtracking limit in non-JIT mode (so both on 5.x and 7.x), but this would require a file much bigger than the one I added in the testsuite (because PHP configures the PCRE backtrack limit to 1000000 by default, but it would fail on this big file when setting it to 1000 without my patch, while it works with the patch)