[wp-trac] [WordPress Trac] #41562: PHP 7.2: create_function deprecation in \Gettext_Translations class

WordPress Trac noreply at wordpress.org
Fri Aug 4 15:54:14 UTC 2017


#41562: PHP 7.2: create_function deprecation in \Gettext_Translations class
----------------------------+-----------------------
 Reporter:  ayeshrajans     |       Owner:  rmccue
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  4.9
Component:  I18N            |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------
Changes (by johnbillion):

 * owner:   => rmccue
 * status:  new => assigned
 * type:  defect (bug) => task (blessed)
 * milestone:  Awaiting Review => 4.9


Comment:

 Thanks for the patch, @ayeshrajans.

 As you noted, `eval()` is no better than `create_function()`, although it
 does get rid of the deprecated notice that's shown in PHP 7.2.

 @rmccue has been working on a comprehensive solution for this for a while,
 which avoids using `create_function()` or `eval()`. I'll ask him to upload
 his patch here along with all the information, research, and testing that
 he's done.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41562#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list