We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Recompiling Phalcon from updated ZEP files

Hi all,

Can anyone point me to a page that explains how Phalcon extension can be rebuilt following an update to phalcon/*.zep files?

Thanks!

First you need to install::

  • re2c
  • Zephir Parser
  • g++ >= 4.4 | clang++ >= 3.x | vc++ >= 11
  • GNU make >= 3.81
  • automake
  • PHP development headers and tools

To install zephir parser:

git clone https://github.com/phalcon/php-zephir-parser
cd php-zephir-parser
sudo ./install

Add to php.ini for cli:

extension=zephir_parser.so

Then:

git clone https://github.com/phalcon/zephir
cd zephir
./install -c

Then goto phalcon project and just type zephir build



51.3k

Thanks a lot,

I was wondering if there's a doc page that explains all this. Especially the php-zephir-parser part.

Yes, just repo page.



85.5k

the parser part is quite strange for me, i cloned the parser repo, i compiled with my php and installed the extension

phpize
./configure
make && make install

then put the parser in my php.ini

then i was able to use zephir