-
Notifications
You must be signed in to change notification settings - Fork 582
Labels
status: waiting for feedbackwaiting for feedback from the submitterwaiting for feedback from the submitter
Description
In many shared hosting environments (vhosts), the php_uname() function is disabled for security reasons.
Currently, the only usage of php_uname() in this library is in the construction of the User-Agent header:
twilio-php/src/Twilio/Base/BaseClient.php
Line 177 in e714991
| $headers['User-Agent'] = 'twilio-php/' . VersionInfo::string() . |
To make the SDK work in such restricted environments, we had to modify the source code locally.
It would be great if this could be handled more gracefully in the core — for example, by falling back to predefined strings or detecting whether the function is available before calling it.
Thank you for your consideration!
Metadata
Metadata
Assignees
Labels
status: waiting for feedbackwaiting for feedback from the submitterwaiting for feedback from the submitter