PHP Warnings on every update
-
Hi,
I get the following PHP error every time I update a plugin (not from WordPress repository) using your plugin:
PHP Warning: php_uname() has been disabled for security reasons in /var/www/wptbox/wp-admin/includes/class-pclzip.php on line 5677Also, this error is reported hundreds of times on each update! I have to scroll all the way down to click the “Activate” button.
Here’s the section of the file’s referenced line:
// -------------------------------------------------------------------------------- // -------------------------------------------------------------------------------- // Function : PclZipUtilTranslateWinPath() // Description : // Translate windows path by replacing '\' by '/' and optionally removing // drive letter. // Parameters : // $p_path : path to translate. // $p_remove_disk_letter : true | false // Return Values : // The path translated. // -------------------------------------------------------------------------------- function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true) { if (stristr(php_uname(), 'windows')) { // ----- Look for potential disk letter if (($p_remove_disk_letter) && (($v_position = strpos($p_path, ':')) != false)) { $p_path = substr($p_path, $v_position+1); } // ----- Change potential windows directory separator if ((strpos($p_path, '\\') > 0) || (substr($p_path, 0,1) == '\\')) { $p_path = strtr($p_path, '\\', '/'); } } return $p_path; } // --------------------------------------------------------------------------------
Do you know why this happens? It’s quite annoying, could you do something about it?
Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘PHP Warnings on every update’ is closed to new replies.