Cita:
Iniciado por stock hey, alguien sabe como poder desactivar los warnings que aparecen?? necesito quitar este:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of getimagesize(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in c:\program files\appserver\www\pulsillo\galeria\foto.php on line 73
donde me marca el warning es qui:
Código PHP:
function getCaption($path)
{
$size = GetImageSize ($path,&$info);
if (isset ($info["APP13"]))
{
$iptc = iptcparse ($info["APP13"]);
return $iptc["2#120"][0];
}
else { return(null); }
}
alguien puede ayurme??
El problema está al pasar &$info a la función, pasa el valor a otra variable antes si realmente necesitas que se pase por referencia. Al final del aviso ya te dice que ahora es un Warning, pero con el tiempo se puede convertir en un error que haga que no funcione el script.