rfc:too_few_args
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
rfc:too_few_args [2016/06/01 10:48] – created dmitry | rfc:too_few_args [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2016-06-01 | * Date: 2016-06-01 | ||
* Author: Dmitry Stogov, dmitry@zend.com | * Author: Dmitry Stogov, dmitry@zend.com | ||
- | * Status: | + | * Status: Accepted |
* First Published at: https:// | * First Published at: https:// | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | Historically, | + | Historically, |
<code php> | <code php> | ||
function foo($a) { | function foo($a) { | ||
- | | + | |
- | | + | |
} | } | ||
foo(); | foo(); | ||
Line 21: | Line 21: | ||
* doesn' | * doesn' | ||
* may lead to warning bloating | * may lead to warning bloating | ||
- | * disables obvious | + | * disables obvious |
===== Proposal ===== | ===== Proposal ===== | ||
- | I propose to disable calling functions with insufficient actual parameters. PHP will throw a " | + | I propose to disable calling |
<code php> | <code php> | ||
Line 34: | Line 34: | ||
</ | </ | ||
- | Using this approach, all attempts to call function | + | Using this approach, all attempts to call functions |
+ | |||
+ | Behavior of internal functions is not going to be changed. | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 43: | Line 45: | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | The vote is a straight Yes/No vote, that requires a 2/3 majority. | + | The vote is a straight Yes/No vote, that requires a 2/3 majority. |
+ | The voting began on Jun 6 and will close on Jun 16. | ||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
Line 51: | Line 58: | ||
After the project is implemented, | After the project is implemented, | ||
- the version(s) it was merged to | - the version(s) it was merged to | ||
- | - a link to the git commit(s) | + | - a link to the git commit |
- a link to the PHP manual entry for the feature | - a link to the PHP manual entry for the feature | ||
rfc/too_few_args.1464778137.txt.gz · Last modified: 2017/09/22 13:28 (external edit)