by Matteo Scaramuccia.
Hi Romano,
you should open an issue in https://tracker.moodle.org/browse/CONTRIB/component/10295 to ask the mantainer if it is possible to avoid that call.
Otherwise the solution is to ask your administrator/hosting provider to unset the PHP safe mode for your Moodle installation.
HTH,
Matteo