Skip to content

Commit

Permalink
apparently magic quotes are not shown with ini_get in PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bef committed Aug 29, 2014
1 parent 2416c67 commit 2d45fd4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion phpconfigcheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,19 @@ function is_writable_or_chmodable($fn)
}
break;
case 'magic_quotes_gpc':
if (get_magic_quotes_gpc()) {
list($result, $reason) = array(TEST_HIGH, "magic quotes activated.");
$recommendation = $helptext['magic_quotes'];
}
break;
case 'magic_quotes_runtime':
if (get_magic_quotes_runtime()) {
list($result, $reason) = array(TEST_HIGH, "magic quotes activated.");
$recommendation = $helptext['magic_quotes'];
}
break;
case 'magic_quotes_sybase':
if ($v == "1") {
if ($v != "0") {
list($result, $reason) = array(TEST_HIGH, "magic quotes activated.");
$recommendation = $helptext['magic_quotes'];
}
Expand Down

0 comments on commit 2d45fd4

Please sign in to comment.