#37426 [NEW]: variable scoping? session?

2006-05-12 Thread winterain at gmail dot com
From: winterain at gmail dot com
Operating system: 
PHP version:  4.4.2
PHP Bug Type: Session related
Bug description:  variable scoping? session?

Description:

hello... i'm having problem here... example, i got 2 files... 1st file
contains (test.php)
".$_SESSION['xxx'];
?>
then the 2nd file (test2.php)
".$_SESSION['xxx'];
?>
if i'm goin to use PHP 4 for those files (say access test.php 1st, then
next test2.php)... test.php would output "world hello"... and test2.php
would output "world hello"... the problem rises when i used PHP 5... 1st
file would output "world hello" but the 2nd file's output is "world
world"... apparently, the $_SESSION['xxx'] value changed whenever $xxx
value changes... is this some kind of bug under variable scoping?


-- 
Edit bug report at http://bugs.php.net/?id=37426&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37426&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37426&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37426&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37426&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=37426&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=37426&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=37426&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=37426&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=37426&r=support
Expected behavior:http://bugs.php.net/fix.php?id=37426&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=37426&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=37426&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37426&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37426&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37426&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=37426&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=37426&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37426&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=37426&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=37426&r=mysqlcfg


#38278 [NEW]: session_cache_expire()'s value does not match phpinfo's session.cache_expire

2006-07-31 Thread winterain at gmail dot com
From: winterain at gmail dot com
Operating system: Windows
PHP version:  4.4.2
PHP Bug Type: Session related
Bug description:  session_cache_expire()'s value does not match phpinfo's 
session.cache_expire

Description:

I have tried setting the session.cache_expire time to 5 mins with the use
of session_cache_expire(5) function... it does not work... the session
will still expire after 180mins which is the default value for
session.cache_expire.


Reproduce code:
---
session_cache_limiter('private');
session_cache_expire(5);

session_start();

phpinfo();

echo session_cache_expire();


Expected result:

after running the code, i'm expecting that phpinfo()'s
session.cache_expire's local value will be 5. And phpinfo()'s
session.cache_expire's local value should match the value returned by
session_cache_expire().

Actual result:
--
phpinfo's session.cache_expire's local value is 180 and the value of
session_cache_expire() is 5

-- 
Edit bug report at http://bugs.php.net/?id=38278&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38278&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38278&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38278&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38278&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=38278&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=38278&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=38278&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=38278&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=38278&r=support
Expected behavior:http://bugs.php.net/fix.php?id=38278&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=38278&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=38278&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38278&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38278&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38278&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=38278&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=38278&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38278&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=38278&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=38278&r=mysqlcfg


#38278 [Fbk->Opn]: session_cache_expire()'s value does not match phpinfo's session.cache_expire

2006-08-01 Thread winterain at gmail dot com
 ID:   38278
 User updated by:  winterain at gmail dot com
 Reported By:  winterain at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Session related
 Operating System: Windows
 PHP Version:  4.4.2
 New Comment:

this doesn't have to do with php.ini... i wanted to set shorter session
expire time for some webpages... but, other webpages should have the
default session expire time which is 180mins...

Note: (after executing the code... under phpinfo()'s session)
session.cache_limiter's local value is private
session.cache_limiter's master value is nocache

This is the expected and actual output for session.cache_limiter...
which is already correct.

But with session.cache_expire, the local value is not 5 but 180, and
the master value is 180 (which is the default).


Previous Comments:


[2006-08-01 07:29:36] [EMAIL PROTECTED]

Are you sure you changed correct php.ini and restarted the web server
after that?



[2006-08-01 03:25:44] winterain at gmail dot com

Description:

I have tried setting the session.cache_expire time to 5 mins with the
use of session_cache_expire(5) function... it does not work... the
session will still expire after 180mins which is the default value for
session.cache_expire.


Reproduce code:
---
session_cache_limiter('private');
session_cache_expire(5);

session_start();

phpinfo();

echo session_cache_expire();


Expected result:

after running the code, i'm expecting that phpinfo()'s
session.cache_expire's local value will be 5. And phpinfo()'s
session.cache_expire's local value should match the value returned by
session_cache_expire().

Actual result:
--
phpinfo's session.cache_expire's local value is 180 and the value of
session_cache_expire() is 5





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