My Dime Is Up
Guest
offline
PHP:
Read more
Continue reading...
Code:
if (!$isWindows)
{
// Only allow the upgrade to run if we're not likely to cause mixed file ownership.
// This is possibly over restrictive. (If relaxed in the future, we should special case
// to prevent using root unless the files are owned by root.)
$uid = function_exists('posix_getuid') ? posix_getuid() : fileowner(File::getTempFile());
if ($uid !== fileowner(__FILE__))
{
$error =...
Read more
Continue reading...