- changed status to resolved
get_magic_quotes_gpc() creating problem
Hello Devs,
It is worth to inform you from my side that with the latest build of php 8.0.3 function get_magic_quotes_gpc() creates error. Following is the error message,
Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in C:\Bitnami\apachephp\Apache24\htdocs\vnd\phpliteadmin.php:529 Stack trace: #0 {main} thrown in C:\Bitnami\apachephp\Apache24\htdocs\vnd\phpliteadmin.php on line 529
So, to solve it I then commented the get_magic_quotes_gpc checker, and then the phpliteadmin worked perfectly.
Here is the function which I commented
// stripslashes if MAGIC QUOTES is turned on
// This is only a workaround. Please better turn off magic quotes!
// This code is from http://php.net/manual/en/security.magicquotes.disabling.php
if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
while (list($key, $val) = each($process)) {
foreach ($val as $k => $v) {
unset($process[$key][$k]);
if (is_array($v)) {
$process[$key][stripslashes($k)] = $v;
$process[] = &$process[$key][stripslashes($k)];
} else {
$process[$key][stripslashes($k)] = stripslashes($v);
}
}
}
unset($process);
}
Hope this issue reporting will help others. Thanks.
Comments (2)
-
repo owner -
repo owner - changed milestone to 1.9.9
-
assigned issue to
- Log in to comment
Thanks for reporting. This is fixed with this commit: https://bitbucket.org/phpliteadmin/public/commits/855d580e8f12a011d4d005b287a57a0e7d60c6e5
The development version is PHP 8 compatible: https://www.phpliteadmin.org/phpliteadmin-dev.zip
We really need to release a new stable release.