Bug #68015 [NEW]: Session is not filled in cli script

From: Date: Fri, 12 Sep 2014 20:44:08 +0000
Subject: Bug #68015 [NEW]: Session is not filled in cli script
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187529@lists.php.net to get a copy of this message
From: rmoisto at gmail dot com Operating system: Ubuntu 12 x64 PHP version: 5.5.16 Package: Session related Bug Type: Bug Bug description:Session is not filled in cli script Description: ------------ I have a tiny cli script that accepts a session id as a command line argument. It's job is to fetch that session and print it out. Since upgrading to PHP 5.5.16 the $_SESSION variable is always empty. It did work before. Test script: --------------- <?php session_id($argv[1]); session_start(); var_dump($_SESSION); Expected result: ---------------- $_SESSION is an array filled with session information. Actual result: -------------- $_SESSION is an empty array. -- Edit bug report at https://bugs.php.net/bug.php?id=68015&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68015&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68015&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68015&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68015&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68015&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68015&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68015&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68015&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68015&r=support Expected behavior: https://bugs.php.net/fix.php?id=68015&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68015&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68015&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68015&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68015&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68015&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68015&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68015&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68015&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68015&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68015&r=mysqlcfg

« previous php.bugs (#187529) next »