quickbooks-php icon indicating copy to clipboard operation
quickbooks-php copied to clipboard

preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

Open Sladewill opened this issue 11 years ago • 2 comments

preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

\vendor\consolibyte\quickbooks\QuickBooks\Cast.php:530

    $string = preg_replace(
        "/([\360-\367])([\200-\277])([\200-\277])([\200-\277])/e",
        "'&#'.((ord('\\1')-240)*262144+(ord('\\2')-128)*4096+(ord('\\3')-128)*64+(ord('\\4')-128)).';'", $string);

Sladewill avatar Mar 26 '15 10:03 Sladewill

I believe this will be an issue with PHP7 is released.

angelomandato avatar Sep 11 '15 16:09 angelomandato

I ended up forking this and fixing it on there. Doesn't appear the owner/collaborators are even doing anything with this anymore.

Sladewill avatar Sep 11 '15 17:09 Sladewill