isset variable list may include trialing ','
zhujinxuan opened this issue · 3 comments
zhujinxuan commented
In php 7.3.0, isset is legal for the following code:
isset($a,);
However, the isset variable list is defined by
isset-intrinsic:
isset ( variable-list )
variable-list:
variable
variable-list , variable
in 10-expression.md.
If we plan to make the spec consistent with current PHP, I can submit a PR to change it as
isset-intrinsic:
isset ( isset-variable-list ','? )
variable-list:
variable
variable-list , variable
nikic commented
If we plan to make the spec consistent with current PHP, I can submit a PR to change it as
Looks right, please do so :)
zhujinxuan commented
zhujinxuan commented
Merged, Close this issue
