rfc:forbid_dynamic_scope_introspection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:forbid_dynamic_scope_introspection [2016/05/15 20:44] – voting nikicrfc:forbid_dynamic_scope_introspection [2017/09/22 13:28] (current) – external edit 127.0.0.1
Line 3: Line 3:
   * Date: 2016-05-01   * Date: 2016-05-01
   * Author: Nikita Popov <nikic@php.net>   * Author: Nikita Popov <nikic@php.net>
-  * Status: In voting +  * Status: Implemented (in PHP 7.1)
-  * Target version: PHP 7.1+
  
 ===== Introduction ===== ===== Introduction =====
  
-Dynamic calls to functions like ''extract()'', which either inspect or modify the parent scope or stack frame, have unclear behavior (with disagreements between PHP versions and runtimes and dependence on surrounding code), may result in highly unexpected scope modifications (e.g. when used as an autoloader) and for this reason also pose a signficant reason for the optimization of PHP. This RFC aims to forbid dynamic calls to such functions.+Dynamic calls to functions like ''extract()'', which either inspect or modify the parent scope or stack frame, have unclear behavior (with disagreements between PHP versions and runtimes and dependence on surrounding code), may result in highly unexpected scope modifications (e.g. when used as an autoloader) and for this reason also pose a significant problem for the optimization of PHP. This RFC aims to forbid dynamic calls to such functions.
  
 ===== Proposal ===== ===== Proposal =====
Line 19: Line 18:
   * parse_str() with one arg   * parse_str() with one arg
   * mb_parse_str() with one arg   * mb_parse_str() with one arg
 +  * assert() with string argument (eval)
   * func_get_args()   * func_get_args()
   * func_get_arg()   * func_get_arg()
Line 125: Line 125:
 ===== Vote ===== ===== Vote =====
  
-The vote requires a 2/3 majority. Voting closes on 2016-05-24.+The vote requires a 2/3 majority. Voting closed on 2016-05-24.
  
-<doodle title="Forbid dynamic calls to scope introspection functions?" auth="nikic" voteType="single" closed="false">+<doodle title="Forbid dynamic calls to scope introspection functions?" auth="nikic" voteType="single" closed="true">
    * Yes    * Yes
    * No    * No
rfc/forbid_dynamic_scope_introspection.1463345059.txt.gz · Last modified: 2017/09/22 13:28 (external edit)