PHP function `php_uname` blocked for security reasons
Opened this issue · 4 comments
- SDK/Library version: 1.14.0
- Environment: Both production and sandbox
Issue description
The SDK uses php_uname
here https://github.com/paypal/PayPal-PHP-SDK/blob/1.14.0/lib/PayPal/Common/PayPalUserAgent.php#L27-L28 which is blocked on some servers.
I would like to ask that you consider alternatives to php_uname
to prevent failures. Thanks.
@WillBrubaker
May I know in which server it's blocking?
Thanks
@sucithrashanu I don't know, I got this in a support ticket for a product that uses this library - the site experiencing the troubles is andyfronius.com
@WillBrubaker
If we know which server it will be helpful for proceed with the issue to give solution.
Thanks
@sucithrashanu this is everything I know:
Server Info: nginx/1.17.5
PHP Version: 7.3.12-1+ubuntu16.04.1+deb.sury.org+1
PHP Post Max Size: 2 GB
PHP Time Limit: 20
PHP Max Input Vars: 10000
cURL Version: 7.47.0
OpenSSL/1.0.2g
SUHOSIN Installed: –
MySQL Version: 5.5.5-10.2.29-MariaDB-10.2.29+maria~xenial-log
Max Upload Size: 2 GB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔