[PHP] Fix wrapping director constructors with default parameters with a ZTS-enabled build of PHP.