[PHP-ES] Problema a partir de la actualizacion de PHP

[email protected] (Alejandro Tesone)
Newsgroups php.general.es
Message-ID <[email protected]>
Mi sitio funcionaba perfecto hasta la actualizacion por parte del
administrador del PHP a 5.2
Ahora no registra las variables.
Todo recae en este segmento del sitio.
Alguien tiene idea de la posible solucion?

Gracias,

Alejandro

<?
// FUNCION PARA EVITAR EL REGISTER_GLOBALS = OFF  --->
function process_array ($arr_vars, $method) {
	
	GLOBAL $HTTP_GET_VARS, $HTTP_POST_VARS, $_SESSION;
	
//	reset($arr_vars);
	for ($x=0; $x<count($arr_vars);$x++) {
		
			$key = key($arr_vars);	
			if ($key != ""){
		$str_to_eval = "GLOBAL \$" . $key . ";";
		if ($method=="POST" || $method=="GET") {
			$str_to_eval.= "\$" . $key . "=\$HTTP_" . $method . "_VARS[\"" .
$key . "\"];";
		} else {
			$str_to_eval.= "\$" . $key . "=\$_SESSION[\"" . $key . "\"];";
			//echo $str_to_eval." - ".$_SESSION[$key]."<BR>";
		}
		//echo "-->" . $str_to_eval . "<--" ;
		eval ($str_to_eval);}
		next($arr_vars);
	}

	
};

?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.