#22142 [Opn->Bgs]: Error in to register variables of sessions in functions

From: Date: Mon, 10 Feb 2003 16:29:29 +0000
Subject: #22142 [Opn->Bgs]: Error in to register variables of sessions in functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32651@lists.php.net to get a copy of this message
ID: 22142 Updated by: sniper@php.net Reported By: zero_bala@uol.com.br -Status: Open +Status: Bogus Bug Type: Session related Operating System: Linux 2.4.18 PHP Version: 4.2.2 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. PHP 4.3.0 was released long time ago.. Previous Comments: ------------------------------------------------------------------------ [2003-02-09 22:46:19] zero_bala@uol.com.br yes, meu phpinfo() is: http://www.aguiara.com.br/teste/informa.php ------------------------------------------------------------------------ [2003-02-09 22:21:09] magnus@php.net Do you have register_globals = on ? ------------------------------------------------------------------------ [2003-02-09 22:04:05] zero_bala@uol.com.br file1.php ---------- <? session_start(); function inicio() { $name="Paulo"; session_register("name"); } inicio(); ?> ---------- file2.php ---------- <? session_start(); echo "Name: " . $name; session_destroy(); ?> ---------- The list of modules ------------------- ./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--enable-ftp' '--with-gd=../gd-1.8.4' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-imap=../imap-2001.BETA.SNAP-0105220031' '--with-mcrypt' '--with-ming=../ming-0.1.1' '--enable-magic-quotes' '--with-mysql' '--with-pear' '--enable-safe-mode' '--enable-track-vars' '--with-ttf' '--enable-versioning' '--with-zlib' Thank's by Paulo Augusto Borges Soares ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22142&edit=1

« previous php.bugs (#32651) next »