get_magic_quotes_gpc() creating problem

Issue #394 resolved
Hem Roy created an issue

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

if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
while (list($key, $val) = each($process)) {
foreach ($val as $k => $v) {
if (is_array($v)) {
$process[$key][stripslashes($k)] = $v;
$process[] = &$process[$key][stripslashes($k)];
} else {
$process[$key][stripslashes($k)] = stripslashes($v);

Hope this issue reporting will help others. Thanks.

Comments (2)

  1. Log in to comment