From: xingg_wu at yahoo dot com dot cn
Operating system: redhat linux 9
PHP version: 4.3.3
PHP Bug Type: Session related
Bug description: Session not work well
Description:
------------
hi,sniper!
can you tell me how to solve this problem?
The php.ini is fault.But the session create two files in /tmp.One is the
correct,the other is empty.
Thanks!
---------------------login.php-------------------
...
$user_array1=sybase_fetch_row($result);
print $user_array1[1];/*not null--right*/
sybase_close($dbHandle);
session_start();
session_register("user_array1");
....
-----------------end----------------------------
-------------------the other file---------------
session_start();
print $user_array1[1];/*null-not right*/
.....
----------------------end----------------
thanks!
Reproduce code:
---------------
---------------------login.php-------------------
...
$user_array1=sybase_fetch_row($result);
print $user_array1[1];/*not null--right*/
sybase_close($dbHandle);
session_start();
session_register("user_array1");
....
-----------------end----------------------------
-------------------the other file---------------
session_start();
print $user_array1[1];/*null-not right*/
.....
----------------------end----------------
Expected result:
----------------
i want "print $user_array1[1];" not null;
Actual result:
--------------
null
And the session create two file in /tmp.
--
Edit bug report at http://bugs.php.net/?id=26497&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26497&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26497&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26497&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26497&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26497&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26497&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26497&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26497&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26497&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26497&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26497&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26497&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26497&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26497&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26497&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26497&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26497&r=float