Bug #16800 Updated: problem with registration an array variable in session

2002-04-24 Thread daniel

 ID:   16800
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Documentation problem
 Operating System: linux
 PHP Version:  4.1.2
 New Comment:

It was not meant to be entertaining. I was serious, but it turned out
to be an user error - sorry for the false alarm.

Here's the typo:

  session_register("arr");

instead of

  session_register($arr);

damn :)


Previous Comments:


[2002-04-24 14:23:24] [EMAIL PROTECTED]

Just my 2cents: I also hope this is a bad joke. I haven't used sessions
for quite some time but I know definitely that I've fucked the
session_register() function with all kind of variables including arrays
and objects and it worked (without needing to serialize them before
) back when I used them.



[2002-04-24 13:44:20] [EMAIL PROTECTED]

@ [EMAIL PROTECTED]:

I hope that should be a bad joke ...

I've tested the code below with 4.1.1 and it worked.
(session support is broken in 4.1.2 AFAIK)

$bar = array(
'something' => array( 1,2,3,4 ),
'nothing' => NULL,
'test' => true,
'test2' => array( 'x','y'=>2 )
);
session_register('bar');



[2002-04-24 12:49:19] [EMAIL PROTECTED]

I made it a documentation problem. The manual page for
'session_register()' should explicitly mention this.



[2002-04-24 12:47:56] [EMAIL PROTECTED]

arrays can't be registered in sessions. However, you can store a
serialized array:

  $arr = serialize($array);
  session_register($arr);

-daniel



[2002-04-24 12:46:52] [EMAIL PROTECTED]

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16800

-- 
Edit this bug report at http://bugs.php.net/?id=16800&edit=1




Bug #16800 Updated: problem with registration an array variable in session

2002-04-24 Thread mfischer

 ID:   16800
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Documentation problem
 Operating System: linux
 PHP Version:  4.1.2
 New Comment:

Just my 2cents: I also hope this is a bad joke. I haven't used sessions
for quite some time but I know definitely that I've fucked the
session_register() function with all kind of variables including arrays
and objects and it worked (without needing to serialize them before
) back when I used them.


Previous Comments:


[2002-04-24 13:44:20] [EMAIL PROTECTED]

@ [EMAIL PROTECTED]:

I hope that should be a bad joke ...

I've tested the code below with 4.1.1 and it worked.
(session support is broken in 4.1.2 AFAIK)

$bar = array(
'something' => array( 1,2,3,4 ),
'nothing' => NULL,
'test' => true,
'test2' => array( 'x','y'=>2 )
);
session_register('bar');



[2002-04-24 12:49:19] [EMAIL PROTECTED]

I made it a documentation problem. The manual page for
'session_register()' should explicitly mention this.



[2002-04-24 12:47:56] [EMAIL PROTECTED]

arrays can't be registered in sessions. However, you can store a
serialized array:

  $arr = serialize($array);
  session_register($arr);

-daniel



[2002-04-24 12:46:52] [EMAIL PROTECTED]

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php



[2002-04-24 12:28:56] [EMAIL PROTECTED]

I've tried to register a seesion variable $array[$i] with
sessionn_register(), where $i is an integer index, but failed. In a
temporary session file in my /tmp directory I found a declaration like
!array[0]|, and now values.
Please help! Thanks




-- 
Edit this bug report at http://bugs.php.net/?id=16800&edit=1




Bug #16800 Updated: problem with registration an array variable in session

2002-04-24 Thread postings . php . net

 ID:   16800
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Documentation problem
 Operating System: linux
 PHP Version:  4.1.2
 New Comment:

@ [EMAIL PROTECTED]:

I hope that should be a bad joke ...

I've tested the code below with 4.1.1 and it worked.
(session support is broken in 4.1.2 AFAIK)

$bar = array(
'something' => array( 1,2,3,4 ),
'nothing' => NULL,
'test' => true,
'test2' => array( 'x','y'=>2 )
);
session_register('bar');


Previous Comments:


[2002-04-24 12:49:19] [EMAIL PROTECTED]

I made it a documentation problem. The manual page for
'session_register()' should explicitly mention this.



[2002-04-24 12:47:56] [EMAIL PROTECTED]

arrays can't be registered in sessions. However, you can store a
serialized array:

  $arr = serialize($array);
  session_register($arr);

-daniel



[2002-04-24 12:46:52] [EMAIL PROTECTED]

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php



[2002-04-24 12:28:56] [EMAIL PROTECTED]

I've tried to register a seesion variable $array[$i] with
sessionn_register(), where $i is an integer index, but failed. In a
temporary session file in my /tmp directory I found a declaration like
!array[0]|, and now values.
Please help! Thanks




-- 
Edit this bug report at http://bugs.php.net/?id=16800&edit=1




Bug #16800 Updated: problem with registration an array variable in session

2002-04-24 Thread daniel

 ID:   16800
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Bogus
+Status:   Open
-Bug Type: Session related
+Bug Type: Documentation problem
 Operating System: linux
 PHP Version:  4.1.2
 New Comment:

I made it a documentation problem. The manual page for
'session_register()' should explicitly mention this.


Previous Comments:


[2002-04-24 12:47:56] [EMAIL PROTECTED]

arrays can't be registered in sessions. However, you can store a
serialized array:

  $arr = serialize($array);
  session_register($arr);

-daniel



[2002-04-24 12:46:52] [EMAIL PROTECTED]

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php



[2002-04-24 12:28:56] [EMAIL PROTECTED]

I've tried to register a seesion variable $array[$i] with
sessionn_register(), where $i is an integer index, but failed. In a
temporary session file in my /tmp directory I found a declaration like
!array[0]|, and now values.
Please help! Thanks




-- 
Edit this bug report at http://bugs.php.net/?id=16800&edit=1




Bug #16800 Updated: problem with registration an array variable in session

2002-04-24 Thread daniel

 ID:   16800
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Session related
 Operating System: linux
 PHP Version:  4.1.2
 New Comment:

arrays can't be registered in sessions. However, you can store a
serialized array:

  $arr = serialize($array);
  session_register($arr);

-daniel


Previous Comments:


[2002-04-24 12:46:52] [EMAIL PROTECTED]

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php



[2002-04-24 12:28:56] [EMAIL PROTECTED]

I've tried to register a seesion variable $array[$i] with
sessionn_register(), where $i is an integer index, but failed. In a
temporary session file in my /tmp directory I found a declaration like
!array[0]|, and now values.
Please help! Thanks




-- 
Edit this bug report at http://bugs.php.net/?id=16800&edit=1




Bug #16800 Updated: problem with registration an array variable in session

2002-04-24 Thread derick

 ID:   16800
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Session related
 Operating System: linux
 PHP Version:  4.1.2
 New Comment:

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php


Previous Comments:


[2002-04-24 12:28:56] [EMAIL PROTECTED]

I've tried to register a seesion variable $array[$i] with
sessionn_register(), where $i is an integer index, but failed. In a
temporary session file in my /tmp directory I found a declaration like
!array[0]|, and now values.
Please help! Thanks




-- 
Edit this bug report at http://bugs.php.net/?id=16800&edit=1