Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Deprecated error in php5.3 |
|
Author |
|
yangshaoxing
Joined: 08 Jul 2010 Posts: 23
|
Posted: Fri 04 Mar '11 2:24 Post subject: Deprecated error in php5.3 |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 04 Mar '11 12:21 Post subject: |
|
|
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
|
Posted: Sat 05 Mar '11 18:54 Post subject: |
|
|
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: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 07 Mar '11 15:27 Post subject: |
|
|
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 |
|
|
|
|
|
|