Fixed #925: [EXPLETIVE] Fucking Debian fucking ruined their fucking PHP package once again, and now we need to waste fucking time to fucking fix it
ported [3659/branches/0.11], refs #925