Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

there alots of issues while compiling zephir from converted code #33

Open
surjit opened this issue Mar 31, 2016 · 2 comments
Open

there alots of issues while compiling zephir from converted code #33

surjit opened this issue Mar 31, 2016 · 2 comments
Labels

Comments

@surjit
Copy link

surjit commented Mar 31, 2016

below log, when php to zephir

I have uploaded all code here [](https://github.com/surjit/zephir_ext)

please help me to sort the issues

Convert php to zephir

 81/81 [============================] 100% 4 secs/4 secs

+---------------+-----------------------------+------+-----------------+
| Incompatibility                                                      |
+---------------+-----------------------------+------+-----------------+
| Type          | Message                     | Line | Class           |
+---------------+-----------------------------+------+-----------------+
| ArrayFetchDim | supported funccall in array | 16   | CharCountBased  |
| ArrayFetchDim | supported funccall in array | 16   | CharCountBased  |
| ArrayFetchDim | supported funccall in array | 16   | GroupCountBased |
| ArrayFetchDim | supported funccall in array | 16   | GroupCountBased |
| ArrayFetchDim | supported funccall in array | 630  | Request         |
| ArrayFetchDim | supported funccall in array | 630  | Request         |
| ArrayFetchDim | supported funccall in array | 630  | Request         |
+---------------+-----------------------------+------+-----------------+

this one when I do zephir compile

Zephir\ParseException: Syntax error in /home/php-to-zephir/converted/Zesle/zesle/fastroute/dispatcher/charcountbased.zep on line 7

            var this->staticRouteMap, this->variableRouteData, tmpListThis->staticRouteMapThis->variableRouteData;
    -----------------^

at Library/CompilerFile.php(570)
#0 Library/Compiler.php(318): Zephir\CompilerFile->preCompile(Object(Zephir\Compiler))
#1 Library/Compiler.php(357): Zephir\Compiler->preCompile('zesle/fastroute...')
#2 Library/Compiler.php(904): Zephir\Compiler->recursivePreCompile('zesle')
#3 Library/Compiler.php(1131): Zephir\Compiler->generate(Object(Zephir\Commands\CommandBuild))
#4 Library/Compiler.php(1250): Zephir\Compiler->compile(Object(Zephir\Commands\CommandBuild), false)
#5 Library/Compiler.php(1331): Zephir\Compiler->install(Object(Zephir\Commands\CommandBuild), false)
#6 Library/Commands/CommandAbstract.php(108): Zephir\Compiler->build(Object(Zephir\Commands\CommandBuild))
#7 Library/Bootstrap.php(200): Zephir\Commands\CommandAbstract->execute(Object(Zephir\Config), Object(Zephir\Logger))
#8 compiler.php(21): Zephir\Bootstrap::boot()
#9 {main}
@fezfez fezfez added the bug label Mar 31, 2016
@fezfez
Copy link
Owner

fezfez commented Mar 31, 2016

Thanks for the report, i'll try to take a look this week-end.

@surjit
Copy link
Author

surjit commented Mar 31, 2016

thanks it will help, please suggest me simple routing framework that can be build as zephir ext (few files will work)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants