Project

General

Profile

Actions

Feature proposal #6751

closed

create_function deprecated in PHP 7.2

Added by krileon over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
Start date:
28 March 2016
Due date:
28 March 2016
% Done:

100%

Estimated time:

Description

Replace create_function usages as this function is deprecated in PHP 7.2 and eventually will be removed.

Actions #2

Updated by krileon over 6 years ago

Possible solution is a splat operator available in PHP 5.6+, but due to CB using call_user_func_array the reference usecase for splat operator does not appear to work.

http://php.net/manual/en/functions.arguments.php#functions.variable-arg-list.new

Actions #3

Updated by krileon over 6 years ago

  • Target version changed from 7.0.0 to 7.1.0
Actions #4

Updated by krileon over 6 years ago

  • Due date set to 28 March 2016
  • Start date changed from 01 September 2017 to 28 March 2016
  • Follows Feature proposal #6754: Replace plugin call user func with variable calls added
Actions #5

Updated by krileon over 6 years ago

  • Status changed from Assigned to Resolved
  • Target version changed from 7.1.0 to 7.0.0
  • % Done changed from 0 to 100

Will fallback to a tmpfile usage that mimics eval if create_function is disabled or on PHP 7.2 or greater.

Actions #6

Updated by krileon over 6 years ago

Actions #7

Updated by krileon over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF