#22142 [Fbk->Opn]: Error in to register variables of sessions in functions
| From: | zero_bala at uol dot com dot br | Date: | Mon, 10 Feb 2003 04:46:19 +0000 |
| Subject: | #22142 [Fbk->Opn]: Error in to register variables of sessions in functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32623@lists.php.net to get a copy of this message | ||
ID: 22142
User updated by: zero_bala@uol.com.br
Reported By: zero_bala@uol.com.br
-Status: Feedback
+Status: Open
Bug Type: Session related
Operating System: Linux 2.4.18
PHP Version: 4.2.2
New Comment:
yes, meu phpinfo() is: http://www.aguiara.com.br/teste/informa.php
Previous Comments:
------------------------------------------------------------------------
[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