Problem/Motivation
If an error occurs during the preg_replace() function a WSOD may occur. This seems to be especially true for pages with a lot of HTML. I ran into a PREG_JIT_STACKLIMIT_ERROR error code (failure due to limited JIT stack space) under those conditions.
Proposed resolution
Check for an error before setting the minified HTML since un-minified HTML is better than no HTML at all.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | check-for-preg-replace-error-3000443-2.patch | 689 bytes | daniel korte |
Comments
Comment #2
daniel korteComment #3
wim leersLGTM!
Comment #4
daniel korteThanks, Wim!
Comment #6
slydevil commentedComment #7
slydevil commented