![]() |
PHP5 problem
Hi
I updated my server PHP version to PHP5, and get error in one of the addons regarding to preg_replace function, could you please to recode the function using preg_replace_callback function? The old code is PHP Code: PHP Code:
|
Replace preg_replace() e modifier with preg_replace_callback
|
What version of Vbulletin are you using?
|
Quote:
--------------- Added [DATE]1465317190[/DATE] at [TIME]1465317190[/TIME] --------------- Quote:
|
You need to contact the author of the add-on, and/or post in its thread.
|
I want just to replace the function preg_replace with preg_replace_callback function.
|
What you are most likely getting is a warning similar to this...
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead That warning is simply telling you that preg_replace will not be supported in future versions of PHP. That is a WARNING, not an error. You can safely turn off deprecated warnings using something like this as the first line of the code... error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); |
change php version to 5.4 rather then 5.5 try that
|
Quote:
|
Quote:
|
Our codes ?? To who are you referring ?
|
All times are GMT. The time now is 04:55 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|