Closed Hywan closed 7 years ago
@nikic exit(2)
is valid regarding the spec and Zend Engine implementation. exit 2
is valid regarding the spec but not Zend Engine implementation. Is an issue from the spec?
For the record, the extract from the current spec:
exit-intrinsic:
exit expressionopt
exit ( expressionopt )
die expressionopt
die ( expressionopt )
@Hywan Yeah, spec bug. Should be
exit-intrinsic:
exit
exit ( expressionopt )
die
die ( expressionopt )
@nikic Would you like me to open a PR?
@Hywan Yeah, would be great!
@nikic Thank you for following the project and having a close look at what we are doing :-]. Very much appreciated and precious!
Need to support the long array(…)
form, and by reference.
Address #72. Address https://github.com/tagua-vm/parser/issues/14.
Specification
https://github.com/php/php-langspec/blob/master/spec/10-expressions.md#intrinsics
Progression
array-intrinsic
,empty-intrinsic
,eval-intrinsic
,exit-intrinsic
,isset-intrinsic
,print-intrinsic
.