Re: Warning problemático
| From: | Rafael | Date: | Sat, 11 Feb 2006 15:17:07 +0000 |
| Subject: | Re: Warning problemático | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-57772@lists.php.net to get a copy of this message | ||
¿Cómo es que buscas? En mi primer intento encontré un comentario de Christian Boltz del 28/jul/05 y dice que...
"Conclusion and test results:
"You'll get this warning if $_SESSION['var'] contains NULL and you assign anything (except NULL) to the global variable $var.
"The warning will _not_ appear:
- if $_SESSION['var'] contains anything else - or -
- if you don't use a global variable named $var"
Nota: quiero imaginar que es en servidores con 'register_globals'=on
Ref: http://es.php.net/session
Por cierto, aún cuando no puedas "modificar el PHP.ini" puedes cambiar algunas directivas; en particular, tanto 'session.bug_compat_42' como 'session.bug_compat_warn' pueden ser modificadas por cualquier medio, incluyendo (pero no limitado a) ini_set()
Ref: http://es.php.net/manual/en/ini.php
PD No es recomendable usar 'register_globals'=On (no importa si el servidor tiene la opción o no, simplemente no utilizarla y hacer referencia al origen del dato, e.g: $_SESSION, $_POST, $_GET, etc.)
marolijo@yahoo.es wrote:
Hola, al colgar un proyecto en el servidor ( http://www.suris-sa.com/ ) me produce un warning problemático... Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0 Saben que puedo hacer? es un error de sesiones creo, he buscado en php.net y no encuentro la solucion sin tenen que editar el php.ini (no puedo hacerlo pues es un alojamiento compartido ) -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE rsalazar@innox.com.mx http://www.innox.com.mx