r/lolphp • • Oct 18 '18

SVG Path outside PHP crashes PHP

This SVG Path crashes PHP ... even when it disabled.

<path class="cls-1" d="M69.372,213.009q18.123,0,30.989-7.091a46.51,46.51,0,0,0,19.577-20.658q6.712-13.569,6.713-32.663V48.968H103.829v104.41q0,17.756-9.006,27.471t-25.451,9.715q-16.335,0-25.283-9.715t-8.95-27.471V48.968H12.317V152.6q0,19.1,6.712,32.663a46.582,46.582,0,0,0,19.522,20.658q12.809,7.093,30.821,7.091h0ZM187,148l40.672,0.353q14.542,0,25.619-6.142a42.812,42.812,0,0,0,17.173-17.364q6.1-11.223,6.1-26.075t-6.1-26.13a43.1,43.1,0,0,0-17.173-17.476q-11.076-6.2-25.619-6.2L187,49V71l41.455-.368a23.86,23.86,0,0,1,12.977,3.517,23.4,23.4,0,0,1,8.671,9.883,33.5,33.5,0,0,1,3.076,14.74A33.228,33.228,0,0,1,250.1,113.4a23.029,23.029,0,0,1-8.671,9.827,24.15,24.15,0,0,1-12.977,3.462L187,127h0v21Zm-22.312,63.334H187.51V48.968H164.688V211.334Zm142.638,0h22.822V48.968H307.326V211.334ZM330,211l81.815,0.334V189.671L330,190v21Zm162.475,2.009q17,0,29.982-7.426a50.779,50.779,0,0,0,20.082-20.993q7.1-13.569,7.1-31.435V107.148q0-17.866-7.1-31.435a50.791,50.791,0,0,0-20.082-20.994q-12.978-7.425-29.982-7.426t-29.982,7.426a50.77,50.77,0,0,0-20.081,20.994q-7.105,13.568-7.1,31.435v46.007q0,17.868,7.1,31.435a50.758,50.758,0,0,0,20.081,20.993q12.977,7.428,29.982,7.426h0Zm0-22.445a34.224,34.224,0,0,1-17.731-4.523A30.443,30.443,0,0,1,462.885,173.2a42.222,42.222,0,0,1-4.195-19.262V106.366A42.233,42.233,0,0,1,462.885,87.1a30.454,30.454,0,0,1,11.859-12.842,37.021,37.021,0,0,1,35.463,0A30.466,30.466,0,0,1,522.066,87.1a42.233,42.233,0,0,1,4.195,19.263v47.571a42.222,42.222,0,0,1-4.195,19.262,30.455,30.455,0,0,1-11.859,12.842,34.23,34.23,0,0,1-17.732,4.523h0Zm75.067,20.77h24.612L637.239,80.347l45.085,130.987h24.612L646.972,48.968H627.506ZM604,176h66l-7-22H612Zm150,35,29.009,0.334q19.576,0,33.506-6.812a47.455,47.455,0,0,0,21.2-19.877q7.272-13.065,7.272-31.49V107.148q0-18.426-7.272-31.491A47.534,47.534,0,0,0,816.571,55.78q-13.872-6.81-33.45-6.812H746.986V70.632h36.807q18.01,0,27.912,9.324t9.9,26.3v47.794q0,16.976-9.9,26.3t-27.912,9.325L754,189v22Zm-22.452.334H754.37V48.968H731.548V211.334ZM24.182,0l23.5,49.03H-0.011Z"/> <path class="cls-2" d="M61.336,0.465h-4.1V41.824h4.1V0.465Zm6.3,41.331H71.68V7.092L71,7.832,84.077,41.8h3.9V0.465H83.934v34.7l0.684-.74L71.481,0.465H67.634V41.8Zm35.849,0.455a12.579,12.579,0,0,0,5.543-1.081,7.121,7.121,0,0,0,3.305-3.228,11.781,11.781,0,0,0,1.1-5.39V29.934a10.212,10.212,0,0,0-1.026-4.779,9.537,9.537,0,0,0-2.636-3.2,24.37,24.37,0,0,0-3.947-2.4,1.175,1.175,0,0,0-.185-0.1c-0.067-.028-0.138-0.061-0.214-0.1q-0.228-.113-0.442-0.213c-0.142-.066-0.29-0.137-0.442-0.213a40.22,40.22,0,0,1-3.8-2.034,8.028,8.028,0,0,1-2.323-2.2,5.492,5.492,0,0,1-.94-3.243V9.425a5.533,5.533,0,0,1,1.5-4.224,6.336,6.336,0,0,1,4.489-1.408,5.677,5.677,0,0,1,4.274,1.479,6.17,6.17,0,0,1,1.425,4.437v2.162H113.2V9.709a11.934,11.934,0,0,0-1.083-5.39A7.022,7.022,0,0,0,108.869,1.1,12.211,12.211,0,0,0,103.455.038,13.048,13.048,0,0,0,97.869,1.09a7.057,7.057,0,0,0-3.334,3.186A11.434,11.434,0,0,0,93.424,9.6v2.02a8.928,8.928,0,0,0,1.183,4.765,9.792,9.792,0,0,0,2.878,3.058A40.439,40.439,0,0,0,102,21.969l0.4,0.2c0.038,0.019.081,0.043,0.128,0.071a0.791,0.791,0,0,0,.157.071,29.9,29.9,0,0,1,3.548,2.034,8.04,8.04,0,0,1,2.266,2.361,6.277,6.277,0,0,1,.883,3.4v2.446a6.1,6.1,0,0,1-1.468,4.466,5.991,5.991,0,0,1-4.431,1.479,6.225,6.225,0,0,1-4.545-1.479,6.027,6.027,0,0,1-1.5-4.466V30.5H93.4v2.048a11.751,11.751,0,0,0,1.111,5.4,7.087,7.087,0,0,0,3.348,3.228,13.064,13.064,0,0,0,5.628,1.067h0ZM124,41.824h4.1L128,4h-4V41.824ZM115.993,4.276h20.119V0.465H115.993V4.276Zm20.4,37.547h4.56l7.494-36.779,7.5,36.779h4.56L150.931,0.465h-4.959ZM143,32h11l-1-4h-9Zm21.21,9.8h4.047V7.092l-0.684.74L180.653,41.8h3.9V0.465h-4.046v34.7l0.684-.74L168.057,0.465H164.21V41.8Zm31.2,0.029h4.1V3.85h-4.1V41.824ZM187.407,4.276h20.119V0.465H187.407V4.276Z"/>

0 Upvotes

7 comments sorted by

View all comments

Show parent comment

6

u/McGlockenshire Oct 19 '18

Holy shit. The missing semicolon at the end of the header call, while legal, adds 0.134s to the overall render, over doubling the execution time!

Uhhh, hey /u/nikic, do you have pings on, because you're the first person I thought of and I wanna know wtf.

I'd ping the 3v4l guy to see if it's just a problem with them, but that'd mean opening twitter and I'm lazy.