Closed ghost closed 8 years ago
Are you using zephir to build the extension? The standard way to compile does not work
refs #11550
which php
and which php-config
should point to php7 btw, compilation works. Its just the result that doesnt work.
also make sure to use
zephir fullclean
zephir build --zendEngine=3
What version of zephir are you using?
please see https://gist.github.com/Lewiscowles1986/4928f7dd04c599b64ba041fd7334f9c3 for compilation in a ubuntu environment, as long as you get the deps right, you should be able to use the other steps to build on any OS
I can confirm this doesn't work on ubuntu 16.04 php 7.0.4
zephir fullclean
zephir build --backend=ZendEngine3
Segmentation fault (core dumped)
@stefanchiriac are you using docker per-chance?
If so, I get the same error in docker, but I'm pretty sure it's an issue with docker, not the build
no docker. Is a fresh Ubuntu 16.04 x64 install on my main desktop
any more info on the error, anyone have any ideas what could cause this? https://kb.iu.edu/d/aqsj
I don't think it's a phalcon problem (it's compiling, so must be a compiler issue)
Try updating Zephir to the latest commit on master and then try compiling again.
I am already on latest version of master. The problem must be somewhere else.
Can confirm. Fresh install of Ubuntu 16.04 and getting the same SEGFAULT error.
Phalcon is not working using windows 10 PHP 7.0.4
What you mean it's not working ?
PHP Version 7.0.4 Downloaded DLL:
Phalcon 2.1.0.RC1 - Windows x86 for PHP 5.6.0 NTS (vc11) March 22 2016 22:25:40 EDT / sha1: b19581586af38a60cee50f30e77f3f639c15da7a
C:\xampp\php\php.ini extension=php_phalcon.dll
DLL is not available for php 7 so i tried latest 5.6.0 but i cant see phalcon loaded in phpinfo
that dll is for PHP 5.6. Is not possible to work on PHP 7.0. Downgrade your php to 5.6. Phalcon for PHP 7.0 is not yet stable and is not yet recommended. Wait until everything is fixed on zephir and 2.1 will be released
You cannot use DLLs built for older versions of php. That doesn't work for any extensions.
If you want to try phalcon 2.1.x on windows (it has known bugs), then you need to build it from source.
downgrade is problem now because many of my project are associated with 7... i've to find out other solution.
Thanks friends (y)
now back to topic, any news about the segmentation fault on ubuntu 16.04?
@abdul-khaliq
Wait a minute. You were writing whole project on phalcon and php7 and you are checking now if it's working ?
@stefanchiriac I still don't see the stack trace. No one even posted it. We can't figure out what causing a seg fault without stack trace. Install gdb and write:
gdb php /path/to/crash and then write bt and post here result
@Jurigag
no i didn't write on php 7 and phalcon. Before i was using ubuntu 14.04 and php 5.6. Now i switched to windows and installed php 7 (xampp). so now i'm facing problem because there is no phalcon dll available for php 7.
Thanks
@abdul-khaliq on windows you can run on the same time another xampp with php 5.6. Just make sure you change the apache port to something else and don't start mysql.
@stefanchiriac so just switch to php 5.6
@Jurigag I did a gdb php /path/to/cphalcon but it says
is not a core dump: Is a directory
so what should be the path? I never done this before
When it says segmentation fault it doesn't give any other details
It should be path to crash dump. Read more here:
Not sure why this was closed? It's still broken.
I guess no information was provided.
current branch
PHP version
can not build, and error log