xwp/stream

PHP 5.3.3 compatibility issue with filter constant

fjarrett opened this issue · 3 comments

A user reported in the support forum that they were receiving the following debug notice:

Notice: Use of undefined constant FILTER_SANITIZE_FULL_SPECIAL_CHARS - assumed 'FILTER_SANITIZE_FULL_SPECIAL_CHARS' in /var/www/vhosts/domain.com/httpdocs/main/wp-content/plugins/stream/includes/filters.php on line 61

This is because the FILTER_SANITIZE_FULL_SPECIAL_CHARS filter constant was added in PHP 5.3.3 and the user's environment was running PHP 5.3.2.

We need to remove the use of this constant and rework the code to sanitize this data another way.

Roughly 78% of PHP 5.3.x users are < 5.3.3 so this needs to be fixed ASAP.

@powelski Can you work on a fix for this one?

Thanks for fixing this!

@ammist No problem! Thank you for using Stream! /five