PHP 4.0 Bug #5870 Updated: Variable variables cannot be registered

From: Date: Tue, 05 Sep 2000 02:35:15 +0000
Subject: PHP 4.0 Bug #5870 Updated: Variable variables cannot be registered
Groups: php.dev 
Request: Send a blank email to php-dev+get-32059@lists.php.net to get a copy of this message
ID: 5870 Updated by: sniper Reported By: f.lovergine@iesi.ba.cnr.ti Status: Closed Bug Type: Session related Assigned To: Comments: I can not reproduce this with latest CVS. Please try php4.0.2 or latest CVS and reopen if problem still exists. (And check that your browser has cookies enabled..) --Jani Previous Comments: [2000-08-28 04:33:42] f.lovergine@iesi.ba.cnr.ti both the two variable you cited are ON. As in the example, the variable 'variable' is saved, but its value (should be 'value') is empty. --------------------------------------------------------------------------- [2000-08-28 03:53:08] f.lovergine@iesi.ba.cnr.ti both the two variable you cited are ON. As in the example, the variable 'variable' is saved, but its value (should be 'value') is empty. --------------------------------------------------------------------------- [2000-08-25 16:20:35] waldschrott@php.net I still can´t reproduce this, are you sure a cookie gets set? --------------------------------------------------------------------------- [2000-08-25 12:22:54] f.lovergine@iesi.ba.cnr.ti both the two variable you cited are ON. As in the example, the variable 'variable' is saved, but its value (should be 'value') is empty. --------------------------------------------------------------------------- [2000-07-31 14:01:31] waldschrott@php.net could not verify please check if track_vars is "on" and register_globals is "off", then you're only able to access them via $HTTP_SESSION_VARS['variable']='test'; --------------------------------------------------------------------------- [2000-07-31 13:47:22] f.lovergine@iesi.ba.cnr.ti The code should be read: ession_start(); $var="variable"; $$var="value"; echo "$variable=".$$var; session_register($var); --------------------------------------------------------------------------- [2000-07-31 13:44:45] f.lovergine@iesi.ba.cnr.ti This code: session_start(); $var="variable"; $variable="value"; $$var="value"; session_register($var); does not work: the content of $variable is not saved in current session. transparent session id is enabled. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=5870

« previous php.dev (#32059) next »