Try to fix PHP bug #60285
Preserve environment