This file is indexed.

/usr/share/php/PHP/Compat/Environment/magic_quotes_sybase_on.php is in php-compat 1.6.0a3-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
 * Emulate enviroment magic_quotes_sybase=on
 *
 * See _magic_quotes_inputs.php for more details.
 *
 * @category    PHP
 * @package     PHP_Compat
 * @license     LGPL - http://www.gnu.org/licenses/lgpl.html
 * @copyright   2004-2007 Aidan Lister <aidan@php.net>, Arpad Ray <arpad@php.net>
 * @link        http://php.net/manual/en/ref.sybase.php#ini.magic-quotes-sybase
 * @author      Arpad Ray <arpad@php.net>
 * @version     $Revision: 274851 $
 */

// wrap everything in a function to keep global scope clean
function php_compat_magic_quotes_sybase_on()
{
    $stripping = false;
	// Require Inputs - Assumes file is in the same directory
    require_once '_magic_quotes_inputs.php';

    if (!$sybaseOn || !$allWorks && $magicOn) {
    
        if ($magicOn) {
			// Require Inputs - Assumes file is in the same directory
			require_once 'magic_quotes_gpc_off.php';
        }
        
        $inputCount = count($inputs);
        while (list($k, $v) = each($inputs)) {
            foreach ($v as $var => $value) {
                $isArray = is_array($value);
                $order1 = $k < $inputCount;
                $escapeKeys = $phpLt50 || !$phpLt51 || $isArray;
                if ($escapeKeys || $compatMagicOn) {
                    $tvar = str_replace('\'', '\'\'', $var);
                    if ($var != $tvar) {
                        $tvalue = $inputs[$k][$var];
                        $inputs[$k][$tvar] = $tvalue;
                        unset($inputs[$k][$var]);
                        $var = $tvar;
                    }
                }
                if ($isArray) {
                    $inputs[] = &$inputs[$k][$var];
                } else {
                    $inputs[$k][$var] = $sybaseOn ? $value : str_replace('\'', '\'\'', $value);
                }
            }
        }
    }
}

php_compat_magic_quotes_sybase_on();
   
// Register the change
//ini_set('magic_quotes_sybase', 1); // Cannot be set at runtime (bug 15532)
$GLOBALS['__PHP_Compat_ini']['magic_quotes_sybase'] = true;