Describe the bug
When using Ubuntu 20.04 (along with Nginx & PHP FPM 7.4), we can't use both pecl installation (gives error) and the apt packages (is not ready #14958).
So the solution is to build from source. But when running zephir build, it gives me error. I use phalcon 4.0.6 (though 4.0.0 gives the same result)
[ERROR] Class 'Memcached' does not implement method: 'setSaslAuthData' in
/app/cphalcon/phalcon/Storage/Adapter/Libmemcached.zep on line 156
Here's the screenshot:

To Reproduce
zephir buildProvide minimal script to reproduce the issue
git clone https://github.com/phalcon/cphalcon
cd cphalcon/
git checkout tags/v4.0.6 ./
zephir fullclean
zephir build
Expected behavior
@ruudboon had a success installation using this env. Then i re-install the server and start from beginning and got error above.
Details
Additional context
I can provide the _ssh root_ for testing this bug.
What version of Zephir are you using? Please use 0.12.17
Hi @Jeckerson ,
Ow yea, i was like in 0.11.12 . After switching to 0.12.17 and 0.12.19, the _Compiling..._ stucked and never finished (until the ssh disconnected)
Might be because of insufficient RAM. Try to create swap with 1Gb.
@contactjavas Does problem still exist?
Hi @Jeckerson , you're correct, it was because of insufficient memory.
Thanks for helping
Also, here is example how to create swap:
https://gist.github.com/Jeckerson/2322849d9f5dbbc9543c99e49341177e
Well im not sure if it's really insufficient. I had the same issue because i was compiling memcache from source without sasl support and had the same error, after remove from memcache configure --disable-memcached-sasl it worked correctly
Most helpful comment
Hi @Jeckerson , you're correct, it was because of insufficient memory.
Thanks for helping