Comments (5)
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 !
from php-to-zephir.
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 unset($a)
to unset a
?
from php-to-zephir.
I cant test Zephir compilation right now, so i trust you and i change the unset translation.
Can you test with master ?
Thanks !
from php-to-zephir.
Now the unset works only for the array elements, but not for variables. I will notify the Zephir devs. Thanks.
from php-to-zephir.
Thanks !
from php-to-zephir.
Related Issues (20)
- Composer Install Error HOT 2
- Fix zephir version in composer.json
- Clean up code
- Add unit test
- Ingore class that implements unknow interface
- Include not supported? HOT 4
- Printer "pExpr_List" does not exist HOT 9
- Support func call in array
- "and" not converted
- String indexing not converted
- Does not declare variable when used in preg_match function call
- docblock hint applied without warning
- Closure numbering is not working correctly
- String Escape Character is not converted
- Printer "pExpr_BinaryOp_Coalesce" does not exist /src/PhpToZephir/Converter/Dispatcher.php 117 HOT 2
- Assign dynamic expression to Array as second argument - doesn't work
- Fatal error:: Cannot use 'PhpParser\Node\Expr\Cast\Bool' as class name as it is reserved HOT 5
- there alots of issues while compiling zephir from converted code HOT 2
- Abandoned project? HOT 1
- Support for Php7.1 and Php7.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-to-zephir.