Description

Comments

Use a real function instead because:
- the function byte code can't cache by apc and others
- the return value is only a link the the function after removing this you can't call the function but it is in memory.
(This seduce developers to to create a function on each function call like preg_match_callback)

The places where create_function() are used are (a) not used for many situations, and (b) appropriate use cases. When we move to PHP 5.3 as the minimum supported version, these will be replaced with closures, but until then, there is no reason to change.