Bug #16299: session no save data with global_vars=off

From: Date: Wed, 27 Mar 2002 03:56:51 +0000
Subject: Bug #16299: session no save data with global_vars=off
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3449@lists.php.net to get a copy of this message
From: cesar@fastlink.com.uy Operating system: win98-redhat7.2 PHP version: 4.1.2 PHP Bug Type: Session related Bug description: session no save data with global_vars=off Tengo la siguiente duda sobre el manejo de sesiones en php4, todo funciona muy bien cuando habilito las variables globales en el php.ini, pero cuando las pongo en off, no funciona. Agradezco su revision. Saludos y gracias. cesar Ahh por cierto estas pruebas la realize en: Win98-PWS4-PHP4.1.2 y en RedHat7.2-Apache1.3-PHP406 Les paso 2 ejemplos en uno NO funciona y en otro si. session_start(); //EJEMPLO QUE NO FUNCIONA !isset($_SESSION['count']) ? $_SESSION['count'] = 0 : $_SESSION['count']++; // idem con $HTTP_SESSION_VARS echo $_SESSION['count']; =============================================== session_start(); //EJEMPLO QUE FUNCIONA if(!session_is_registered('count')){ session_register('count'); $count = 0; }else{ $count++; } echo $count; -- Edit bug report at http://bugs.php.net/?id=16299&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16299&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16299&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16299&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16299&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16299&r=support Expected behavior: http://bugs.php.net/fix.php?id=16299&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16299&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16299&r=submittedtwice

« previous php.bugs (#3449) next »