Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #11423

Re: about php 5.4.20version

Message-ID <2300440.oCfmsFoUjv@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-10-13 23:02 +0200
Subject Re: about php 5.4.20version
Newsgroups comp.lang.php
References <49ce76d6-09eb-4038-aa3a-528d7f13c4ba@googlegroups.com>

Show all headers | View raw


Varsha Shakya wrote:

> about $_SESSION and session_start();
> 
> how to replace SESSION ???

You don't (cookies are a poor substitute, whoever suggests that should be 
ashamed).  PHP 5.4.20 does not remove $_SESSION or session_start(), so there 
is no need to replace it.

That session.auto_start is PHP_INI_PERDIR now does not prevent you from 
calling session_start().  It just means that session_start() will not be 
called *automatically* if, and only if, you have not explicitly set 
session.auto_start to 1 in any of php.ini, .htaccess, httpd.conf, or 
.user.ini.  session.auto_start=0 is the default since at least PHP 5.3, so 
your code should not be affected by the change.

<http://php.net/ChangeLog-5.php#5.4.20>
<http://php.net/manual/en/configuration.changes.modes.php>

> define("VARIABLE", variable) and $GLOBALS not functioning...

The *seeming* “not functioning” might have to do with the fact that define() 
defines _constants_, and that you, not having a minimum clue, are writing 
nonsensical code.  Blame yourself, not PHP.

> will any body provide me sample file ???

My Magic-8 Ball says “Unlikely”.


PointedEars
-- 
    realism:    HTML 4.01 Strict
    evangelism: XHTML 1.0 Strict
    madness:    XHTML 1.1 as application/xhtml+xml
                                                    -- Bjoern Hoehrmann

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

about php 5.4.20version Varsha Shakya <varsha.shakya@gmail.com> - 2013-10-13 11:00 -0700
  Re: about php 5.4.20version "J.O. Aho" <user@example.net> - 2013-10-13 21:17 +0200
  Re: about php 5.4.20version Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-10-13 23:02 +0200
  Re: about php 5.4.20version Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-13 21:53 +0000

csiph-web