[FX.php List] preg_replace_callback()

Chris Hansen chris at iViking.org
Mon Jul 28 09:17:31 MDT 2014

Sorry folks, I had posted a request for a tweak on the branch, then missed the email notifying me of that tweak.  The fixed code is now part of FX.php!  Huzzah!

On Jul 26, 2014, at 10:52 AM, Robert Fox <rfox at innerfile.com> wrote:

> Hi Denis, 
> I also used the fork and resolved the error with a slight change:
> The callback that used to be: 
>   $this->utf8HTMLEntities
> I changed to: 
>   'self::utf8HTMLEntities'
> The root cause of the error, of course, is a deprecated function in the latest version of PHP. So you could also get around this by just using an older PHP version and not worrying about the fork. But where's the fun in that?? ;)
> Cheers
> Rob
> ________________________________________
> From: fx.php_list-bounces at mail.iviking.org [fx.php_list-bounces at mail.iviking.org] On Behalf Of Denis Somar [dsomar at gmail.com]
> Sent: Friday, July 25, 2014 12:04 PM
> To: FX.php Discussion List
> Subject: [FX.php List] preg_replace_callback()
> Warning: preg_replace_callback(): Requires argument 2, '', to be a valid callback in /Volumes/Mac17/Users/denis2/Sites/sellFC v1/includes/datasource_classes/RetrieveFMXML.class.php on line 216
> I know there was a fork for this on Github but that was ALSO causing warnings.  Any ideas?
> Thanks,
> Denis_______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

More information about the FX.php_List mailing list