software: MacOS
Phalcon: 5.0.x
PHP: 8.1
Zephir: 0.16.0
brew: phalcon@4.1.0
Location: ~/Documents/cphalcon
I have just cloned phalcon following the instructions here.
I have already installed zhephir_phar and set up zephir.phar to make it executable.
Then I cloned the repo and ran these:
cd cphalcon/
git checkout tags/v5.0.0 ./
zephir fullclean
zephir build
However the second command throws
error: pathspec 'tags/v5.0.0' did not match any file(s) known to git
(and there is indeed no folder named tags)
As for the fourth command, (zephir build
) throws:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in phar:///usr/local/bin/zephir/Library/Statements/ForStatement.php on line 631
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in phar:///usr/local/bin/zephir/Library/Statements/ForStatement.php on line 631
This is a newly cloned repo, and I have not yet changed anything.
Any clues as to what is throwing this error?
(I removed the update, as it did not have any connection to the fix for this issue)
I tried the following steps, and it worked!
zephir compile
will take a long time):cd cphalcon/
zephir fullclean
zephir compile
cd ext
phpize
./configure
make && make install
cd ..
zephir install
extension="phalcon.so"
inside the php.ini file.sudo apachectl restart
public/index.php
and .htrouter.php
as instructed here, and started the webserver:$(which php) -S localhost:8000 -t public .htrouter.php
It seems the only issue was with zephir generate
. The framework seemed to work perfectly fine so long ad I skipped that command (zephir build
ran zephir generate
as well).
But this might be more of a way to avoid the issue rather than fixing it...