Skip to content
This repository was archived by the owner on Sep 3, 2026. It is now read-only.

EZP-27092: Remove eZAutoLink operator usage of preg_replace and PREG_REPLACE_EVAL - #1286

Merged
andrerom merged 2 commits into
ezsystems:masterfrom
brookinsconsulting:preg_replace_slash_e_modifier_deprecation_since_php55
Mar 15, 2017
Merged

andrerom merged 2 commits into
ezsystems:masterfrom
brookinsconsulting:preg_replace_slash_e_modifier_deprecation_since_php55

Conversation

@brookinsconsulting

Copy link
Copy Markdown
Contributor

Issue: https://jira.ez.no/browse/EZP-27092

Remove eZAutoLink operator usage of preg_replace usage of "\e" (PREG_REPLACE_EVAL) to properly support php 5.5+ and php 7.0+

Since PHP 5.5.x the usage of preg_replace() function no longer supports "\e" (PREG_REPLACE_EVAL) and preg_replace_callback() should be used instead. IE: Deprecation of feature usage.

Since PHP 7.x the usage of preg_replace() function no longer supports "\e" (PREG_REPLACE_EVAL) and preg_replace_callback() must be used instead. IE: Removal of feature usage.

Source #1, Deprecated features in PHP 5.5.x: http://php.net/manual/en/migration55.deprecated.php

Source #2, Changed functions in PHP 7.x: http://php.net/manual/en/migration70.changed-functions.php
Description Summary: preg_replace() function no longer supports "\e" (PREG_REPLACE_EVAL). preg_replace_callback() should be used instead.

Our pull request will address these problems by refactoring the affected code and add phpunit tests to ensure the results remain the same through these code changes.

Cheers,
Brookins Consulting

@brookinsconsulting brookinsconsulting changed the title Fix EZP-27092: Remove eZAutoLink operator usage of preg_replace and PREG_REPLACE_EVAL EZP-27092: Remove eZAutoLink operator usage of preg_replace and PREG_REPLACE_EVAL Mar 9, 2017
@pkamps

pkamps commented Mar 9, 2017

Copy link
Copy Markdown
Contributor

+1

@brookinsconsulting

Copy link
Copy Markdown
Contributor Author

Hello eZ Community,

@pkamps Thank you for your show of support.

Question: What more can we do to here in this pull request to move it forward and for it to be merged?

Cheers,
Brookins Consulting

@andrerom andrerom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 with 5,4 backport.

@brookinsconsulting

Copy link
Copy Markdown
Contributor Author

@andrerom and @pkamps Thank you for your continued support!

@brookinsconsulting
brookinsconsulting deleted the preg_replace_slash_e_modifier_deprecation_since_php55 branch March 15, 2017 19:29
petrmifek added a commit to petrmifek/ezpublish-legacy that referenced this pull request May 23, 2017
* master: (40 commits)
  A quick hack to support html entities in RSS imported item descriptions.
  Fix EZP-27321: Update TinyMCE to 3.5.12 and patch for "Uncaught DOMEx… (ezsystems#1297)
  EZP-27011: Solr index not updated when changing a content priority (ezsystems#1283)
  EZP-15983 - Only include ezp_override when present (ezsystems#1270)
  Add state change/assign to the audit log (ezsystems#1285)
  EZP-27092: Remove eZAutoLink operator usage of preg_replace and PREG_REPLACE_EVAL (ezsystems#1286)
  Fix EZP-26911: Embedded PDF files are downloadable though they are in trash
  EZP-27000: Remove uploader.swf from all repos/branches
  Fix EZP-26659: The package component is vulnerable to arbitrary file upload
  Fix EZP-26405: SQL Injection in Search Component (ezsearchengine)
  Setting to have different cache based on the request protocol
  Fix EZP-26832: Enabling editor causes error on links with "&" (ezsystems#1278)
  Making sure all affected PHP versions are handled
  Fix EZP-26798: Query parameters get lost when being redirected with mobile device detect filter
  Fix EZP-26405: SQL Injection in Search Component (ezsearchengine) (ezsystems#105)
  Fix EZP-26449: Wrong version translation list in eZContentOperationCollection
  Fix EZP-26427: ezoe popup search string not urlencoded
  Fix EZP-26354: Autolink fails if you try to link content in your own site (ezsystems#1263)
  Fix EZP-25031: eZContentUpload is not providing original file name to custom UploadHandler (ezsystems#1228)
  Fix EZP-26276: Exclamation mark followed by non-chars at end of URL does not work in emails (ezsystems#1260)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants