-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Labels
Description
Expected and Actual Behavior
Expecting syntax of for loops with parentheses to work as they do with if statements and while loops.
class ForParentheses
{
public function alpha(string $str)
{
char $ch;
for ($ch in $str) {
echo $ch, "\n";
}
}
}
Build output.
vagrant@zephir:~/zephir/utils$ zephir build
Zephir\Exception: Cannot parse file: /home/vagrant/zephir/utils/utils/forparentheses.zep
Details
ubuntu-16.04
vagrant@zephir:~/zephir/utils$ php -v
PHP 7.0.15-0ubuntu0.16.04.4 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.15-0ubuntu0.16.04.4, Copyright (c) 1999-2017, by Zend Technologies
vagrant@zephir:~/zephir/utils$
vagrant@zephir:~/zephir/utils$ zephir
Zephir version 0.9.7-6608033934
Compiled from source.