[FX.php List] Deprecated function in FX.php

Fitzgerald, Theodore C ted-fitzgerald at uiowa.edu
Mon Mar 28 09:12:42 MDT 2016


Bob,

What version of FX.php are you running?  According to the FX.php commit history on GitHub, this issue should have been fixed back in July of 2014.

The syntax of preg_replace_callback is slightly different than preg_replace (because it requires a function to be passed in).

Can you update your FX.php to the latest version from GitHub (https://github.com/yodarunamok/fxphp/)?

In case you were interested, here are the two commits that should have fixed this issue:

https://github.com/yodarunamok/fxphp/commit/6c7f314e3fb15eb2c2e2560664a23a38c1bc4445
https://github.com/yodarunamok/fxphp/commit/6203aba9b374bcbd20042aeb5227aa4c6b85bbda

Ted

From: fx.php_list-bounces at mail.iviking.org [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Bob Patin
Sent: Monday, March 28, 2016 10:04 AM
To: FX.php Discussion List <fx.php_list at mail.iviking.org>
Subject: Re: [FX.php List] Deprecated function in FX.php

Second question:

Am I safe in replacing all preg_replace functions with preg_replace_callback?


Bob Patin
Longterm Solutions
bob at longtermsolutions.com<mailto:bob at longtermsolutions.com>
615-333-6858
FileMaker 9, 10, 11, 12 & 13 Certified Developer
http://www.longtermsolutions.com
-
iChat: bobpatin at me.com<mailto:bobpatin at me.com>
Twitter: bobpatin
—
FileMaker Consulting
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting

On Mar 28, 2016, at 9:48 AM, Bob Patin <bob at patin.com<mailto:bob at patin.com>> wrote:

I’m getting this error this morning:

PHP
Deprecated:  preg_replace(): The /e modifier is deprecated, use
preg_replace_callback instead in…

I can hide the errors with error_reporting(0) but is there an update in the works?

Thanks,

Bob Patin
Longterm Solutions
bob at longtermsolutions.com<mailto:bob at longtermsolutions.com>
615-333-6858
FileMaker 9, 10, 11, 12 & 13 Certified Developer
http://www.longtermsolutions.com<http://www.longtermsolutions.com/>
-
iChat: bobpatin at me.com<mailto:bobpatin at me.com>
Twitter: bobpatin
—
FileMaker Consulting
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting

_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org<mailto:FX.php_List at mail.iviking.org>
http://www.iviking.org/mailman/listinfo/fx.php_list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20160328/8fc25ccf/attachment-0001.html


More information about the FX.php_List mailing list