PHP5.5 - The /e modifier is deprecated in preg_replace()

Bug #1160768 reported by fisharebest
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
webtrees
Fix Released
Low
fisharebest

Bug Description

For example,

PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/username/public_html/familytree/includes/functions/functions_date.php on line 62

PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/username/public_html/familytree/library/WT/GedcomRecord.php on line 445

Revision history for this message
fisharebest (fisharebest) wrote :

The prefered solution to this (an anonymous callback function) isn't available in PHP5.2

We may need to wait a few months, when we will raise the minimum PHP version from 5.2 to 5.3

Revision history for this message
fisharebest (fisharebest) wrote :

Some of these are in 3rd party code

Zend/Ldap/Converter.php (not used by webtrees)
library/WT/Report/Base.php - needs fixing
library/WT/GedcomRecord.php - needs fixing
library/phpmailer/class.phpmailer.php - appears to be fixed in later version; need to upgrade and test
includes/functions/functions_rtl.php - can we use html_entity_decode() here instead?

Changed in webtrees:
status: New → Triaged
Changed in webtrees:
status: Triaged → Fix Committed
Revision history for this message
fisharebest (fisharebest) wrote :

Fix released in webtrees 1.5.0

Changed in webtrees:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.