This repository has been archived by the owner on Jun 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Issues with the for loop and the unset statement #13
Comments
fezfez
added a commit
that referenced
this issue
Jul 16, 2015
Hi ! I fix the for loop. For the unset statement, the translation is correct maybe open a ticket at https://github.com/phalcon/zephir/issues/ Thanks for the report ! |
Thank you for a such quick reply. The unset() in PHP is more like a language expression than a function. unset($a); However in Zephir to unset a variable you have to use it without brackets (like an echo): unset a; So maybe you can change the conversion |
I cant test Zephir compilation right now, so i trust you and i change the unset translation. Thanks ! |
Now the unset works only for the array elements, but not for variables. I will notify the Zephir devs. Thanks. |
Thanks ! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
it seems that the library doesn't manage with the "for" loop and the "unset" statement.
This is my PHP code:
Output is:
Trying to build:
After changed to for i in range(0,1000) there is a problem with unset:
The text was updated successfully, but these errors were encountered: