#22142 [Opn->Fbk]: Error in to register variables of sessions in functions
| From: | magnus@php.net | Date: | Mon, 10 Feb 2003 04:21:10 +0000 |
| Subject: | #22142 [Opn->Fbk]: Error in to register variables of sessions in functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32621@lists.php.net to get a copy of this message | ||
ID: 22142
Updated by: magnus@php.net
Reported By: zero_bala@uol.com.br
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: Linux 2.4.18
PHP Version: 4.2.2
New Comment:
Do you have register_globals = on ?
Previous Comments:
------------------------------------------------------------------------
[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