SnippetMaster Support Forums
Return to main website
 
May 24, 2012, 08:12:20 AM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 08:12:20 AM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: PHP 5.3 & deprecated warnings. [SOLVED] « previous next »
Pages: [1] Print
Author Topic: PHP 5.3 & deprecated warnings. [SOLVED]  (Read 898 times)
Rezman

Posts: 3


[-] PHP 5.3 & deprecated warnings. [SOLVED]
« on: July 25, 2011, 11:38:00 AM »

Getting some deprecated messages on some of the files.  I understand I can disable this message using error_reporting(^ E_DEPRECATED ^ E_USER_DEPRECATED) but don't want to do a server wide for this reason, to point out code for customers that need to update.

Quote
Deprecated: Function ereg_replace() is deprecated in /home/abwebage/public_html/change2/includes/filebrowser/functions.php on line 0
Quote
Deprecated: Function split() is deprecated in /home/abwebage/public_html/change2/includes/filebrowser/functions.php on line 0

I'm running php as suphp so I go to add 'error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED' to the php.ini within the same directory and I get nothing but a blank page.  I have also tried adding "error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED)" to the top of the 'insimage.php' or 'functions.php' file but then I get an 'is corrupted' error.

Running SnippetMaster PRO v2.2.3.3
« Last Edit: July 25, 2011, 01:05:42 PM by Rezman » Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3070

SnippetMaster Author


WWW
[-] Re: PHP 5.3 & deprecated warnings.
« Reply #1 on: July 25, 2011, 11:49:48 AM »

Hello,

You can add the error_reporting() function into the /snippetmaster/db.inc.php file and it will work.  Smile

Thanks!
Report to moderator   Logged
Rezman

Posts: 3


[-] Re: PHP 5.3 & deprecated warnings.
« Reply #2 on: July 25, 2011, 01:05:18 PM »

Thank you very much.  That did the trick!
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: PHP 5.3 & deprecated warnings. [SOLVED] « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!