Please help - building Phalcon from ZEP files

Guys,

I'm trying to work on a fix in Phalcon 2.1.x - editing a .zep file.

However, after compiling with ./install from build folder I do not see any changes to Phalcon's behaviour.

What am I missing?

Thanks!



11.1k

if you modified a .zep you need to rebuild compiling with zephir, not build or ext folder



30.0k

I've installed Zephir globally following the instructions at https://github.com/phalcon/zephir.

Here's what happens when I try to build Phalcon:

Any ideas?

Thanks!

[email protected]:~/install/cphalcon# zephir build PHP Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723

Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723 PHP Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723

Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723 PHP Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723

Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723 PHP Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723

Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723 PHP Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723

Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723 PHP Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723

Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723 Warning: Variable "_SESSION" assigned but not used in Phalcon\Session\Adapter::remove in /root/install/cphalcon/phalcon/session/adapter.zep on 207 [unused-variable]

PHP Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723

Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723 PHP Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723

Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723 PHP Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723

Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723 PHP Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723

Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723 PHP Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723

Notice: Undefined variable: exprValue in /root/.composer/vendor/phalcon/zephir/Library/Backends/ZendEngine2/Backend.php on line 723 Warning: Variable "beforeLine" assigned but not used in Phalcon\Debug::showTraceItem in /root/install/cphalcon/phalcon/debug.zep on 339 [unused-variable]

       beforeLine, firstLine, afterLine, lastLine, i, linePosition, currentLine;
    -------------^

PHP Warning: Illegal offset type in isset or empty in /root/.composer/vendor/phalcon/zephir/Library/SymbolTable.php on line 90

Warning: Illegal offset type in isset or empty in /root/.composer/vendor/phalcon/zephir/Library/SymbolTable.php on line 90 PHP Catchable fatal error: Object of class Zephir\CompiledExpression could not be converted to string in /root/.composer/vendor/phalcon/zephir/Library/SymbolTable.php on line 207

Catchable fatal error: Object of class Zephir\CompiledExpression could not be converted to string in /root/.composer/vendor/phalcon/zephir/Library/SymbolTable.php on line 207

Are you sure you have the latest version of Zephir?



30.0k

yes, I'm pretty sure it is the latest version. I followed installation instructions at https://github.com/phalcon/zephir.

but then, I reinstalled zephir using instructions provided at http://docs.zephir-lang.com/en/latest/install.html and was able to compile Phalcon.

So, composer-based installation did not work for me.

Paths in the notices mention composer paths: /root/.composer/vendor/phalcon/zephir/, maybe a full fresh installation fix the issue