You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When installing via PECL (and also when trying to install with the install script in the build directory), the install gets stuck in a loop spitting out the following error:
/usr/include/php/20210902/Zend/zend_API.h:1984:76: note: expected 'zend_string **' {aka 'struct _zend_string **'} but argument is of type'zval *' {aka 'struct _zval_struct *'}
1984 | static zend_always_inline bool zend_parse_arg_str(zval *arg, zend_string **dest, bool check_null, uint32_t arg_num)
|~~~~~~~~~~~~~~^~~~
In file included from /usr/include/php/20210902/Zend/zend_types.h:25,
from /usr/include/php/20210902/Zend/zend.h:27,
from /usr/include/php/20210902/main/php.h:32,
from /tmp/pear/temp/phalcon/phalcon.zep.c:46:
/tmp/pear/temp/phalcon/phalcon.zep.c: In function'zim_Phalcon_Db_Dialect_Mysql_createTable':
/usr/include/php/20210902/Zend/zend_API.h:1815:58: warning: passing argument 2 of 'zend_parse_arg_str' from incompatible pointer type [-Wincompatible-pointer-types]
1815 |if (UNEXPECTED(!zend_parse_arg_str(_arg, &dest, check_null, _i))) { \
/usr/include/php/20210902/Zend/zend_portability.h:338:52: note: in definition of macro 'UNEXPECTED'
338 |# define UNEXPECTED(condition) __builtin_expect(!!(condition), 0)| ^~~~~~~~~
/usr/include/php/20210902/Zend/zend_API.h:1822:9: note: in expansion of macro 'Z_PARAM_STR_EX'
1822 | Z_PARAM_STR_EX(dest, 0, 0)
| ^~~~~~~~~~~~~~
/tmp/pear/temp/phalcon/phalcon.zep.c:68603:17: note: in expansion of macro 'Z_PARAM_STR'
68603 | Z_PARAM_STR(tableName)
| ^~~~~~~~~~~
In file included from /usr/include/php/20210902/main/php.h:36,
from /tmp/pear/temp/phalcon/phalcon.zep.c:46:
/usr/include/php/20210902/Zend/zend_API.h:1984:76: note: expected 'zend_string **' {aka 'struct _zend_string **'} but argument is of type'zval *' {aka 'struct _zval_struct *'}
1984 | static zend_always_inline bool zend_parse_arg_str(zval *arg, zend_string **dest, bool check_null, uint32_t arg_num)
Maybe the machine you're using doesn't have enough specs (especially memory)?
I am using Phalcon in a Docker container, and have had the experience of completing compilation by increasing the memory allocated to WSL2 (as a result, increasing the container's memory).
This post states that at least 3Gb of memory is required.
@niden and I were working on a PHP 8.3 build issue and I confirmed that PECL does not work on a small server. I was trying to install with PECL on a 1CPU/2GB server and PECL was failing. When I upgraded to a 2CPU/4GB server, PECL installed Phalcon as expected.
Describe the bug
When installing via PECL (and also when trying to install with the install script in the build directory), the install gets stuck in a loop spitting out the following error:
To Reproduce
Expected behavior
Phalcon installed successfully
Details
Additional context
Install was working last week but as of Friday it stopped working and would encounter this error.
The text was updated successfully, but these errors were encountered: