logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Deprecated error in php5.3
Author
yangshaoxing



Joined: 08 Jul 2010
Posts: 23

PostPosted: Fri 04 Mar '11 2:24    Post subject: Deprecated error in php5.3 Reply with quote

when i opened my webpage,it said "Deprecated: Function session_is_registered() is deprecated in c:\www\index.PHP on line 38"
web server is apache2.2.17+php5.3,but when i runed in php5.2.17,it didn't.does php5.3 not support session_is_registered() and session_registered() function?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Fri 04 Mar '11 12:21    Post subject: Reply with quote

PHP 5.3 supports that function, but it will not exist in future PHP version aka 5.4 or 6.
Back to top
NewEraCracker



Joined: 23 Aug 2010
Posts: 36

PostPosted: Sat 05 Mar '11 18:54    Post subject: Reply with quote

You can disable deprecation errors in php.ini by setting error_reporting to exclude E_DEPRECATED errors.

Example:
Code:
error_reporting = E_ALL & ~E_DEPRECATED
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 07 Mar '11 15:27    Post subject: Reply with quote

NewEraCracker wrote:
You can disable deprecation errors in php.ini by setting error_reporting to exclude E_DEPRECATED errors.


That doesn't make the code any better nor prevrenting that it won't run in future versions.
Back to top


Reply to topic   Topic: Deprecated error in php5.3 View previous topic :: View next topic
Post new topic   Forum Index -> Other Software