From:             
Operating system: Server Version: Apache/2.2.11
PHP version:      5.3.10
Package:          Session related
Bug Type:         Bug
Bug description:session_strat gives error

Description:
------------
---
>From manual page: http://www.php.net/function.session-start
---
I'm using session_start(); and some times when a $_SESSION param is EMPTY I
get this error:

Warning: Unknown: Your script possibly relies on a session side-effect
which existed until PHP 4.2.3. Please be advised that the session extension
does not consider global variables as a source of data, unless
register_globals is enabled. You can disable this functionality and this
warning by setting session.bug_compat_42 or session.bug_compat_warn to off,
respectively. in Unknown on line 0



Test script:
---------------
session_start();
//error_reporting(0);
//session_unset ();


$_SESSION['product'] = $_SESSION['form'];//received from prev. page this is
the bug when ['form'] is empty or not defined

include('do-csv.php');// save $_GET in a csv file
include('do-Scsv.php');// save $_SESSION in a csv file

Expected result:
----------------
no warning should be output.

Actual result:
--------------
Warning: Unknown: Your script possibly relies on a session side-effect
which existed until PHP 4.2.3. Please be advised that the session extension
does not consider global variables as a source of data, unless
register_globals is enabled. You can disable this functionality and this
warning by setting session.bug_compat_42 or session.bug_compat_warn to off,
respectively. in Unknown on line 0

-- 
Edit bug report at https://bugs.php.net/bug.php?id=61155&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=61155&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=61155&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=61155&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=61155&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=61155&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=61155&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=61155&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=61155&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=61155&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=61155&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=61155&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=61155&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=61155&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=61155&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=61155&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61155&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=61155&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=61155&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=61155&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=61155&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=61155&r=mysqlcfg

Reply via email to