$value) { if (is_string($key)) { $key = relocate_string($key); } $result[$key] = relocate_value($value); } return $result; } $input = file_get_contents($file); # Special case for /etc/pear.conf. if (strncmp($input, "#PEAR_Config 0.9\n", 17) == 0) { echo substr($input, 0, 17); $s = substr($input, 17); } else { $s = $input; } echo serialize(relocate_value(unserialize($s))); ?>