Originally Posted by
QuickBooksDev
We recently created a new ZenCart 1.5.7b system on Linux from ZenCart 1.5.4 on Windows.
We see this message
PHP Warning: php_uname() has been disabled for security reasons
php_uname() called at [/home/aaatexus/public_html/ZenCart/test2files/includes/functions/general.php:960]
in the
myDEBUG-adm-20210107-125243-000000-warning.log
file.
How can we fix this? Should we just comment out that line or is there alternative code that should be used?
I'm pretty sure that you can just suppress that error (the value returned is used for display only):
Code:
list($system, $host, $kernel) = array('', $_SERVER['SERVER_NAME'], @php_uname());
Be sure to wrap your change with comments, so you remember that YOU made that change!
Bookmarks