Skip to content

Call to undefined function Twilio\Base\php_uname() #869

@selimanac

Description

@selimanac

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:

$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

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions