Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Output Data #2336

Closed
JREAM opened this issue Apr 14, 2014 · 7 comments
Closed

Cannot Output Data #2336

JREAM opened this issue Apr 14, 2014 · 7 comments

Comments

@JREAM
Copy link

JREAM commented Apr 14, 2014

When I compile Phalcon 1.3.2 (Master branch) I get a illegal signal error.

It happens when I am able to write to the volt directory:

Apache Error Log:
child pid 22024 exit signal Illegal instruction (4)

I am using a Debian x64 Wheezy server and have tried:
PHP 5.4.4-14+deb7u8
PHP 5.5.11+dotdeb

I'm not sure how to get around it.
This is happening when I echo out the application->getContent();

@phalcon
Copy link
Collaborator

phalcon commented Apr 14, 2014

Try compiling it this way:

cd cphalcon/build/safe
phpize
./configure --enable-phalcon
make
sudo make install

@JREAM
Copy link
Author

JREAM commented Apr 14, 2014

That appears to fix it. How come it has to be done this way?

I did a make test and received the following: (I have PDO enabled though)

[ ok ] Restarting web server: apache2 ... waiting .
root@li661-20:~/cphalcon/build/safe# make test

Build complete.
Don't forget to run 'make test'.

PHP Warning:  PHP Startup: Unable to load dynamic library '/root/cphalcon/build/safe/modules/phalcon.so' - /root/cphalcon/build/safe/modules/phalcon.so: undefined symbol: php_pdo_get_dbh_ce in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/root/cphalcon/build/safe/modules/phalcon.so' - /root/cphalcon/build/safe/modules/phalcon.so: undefined symbol: php_pdo_get_dbh_ce in Unknown on line 0

=====================================================================
PHP         : /usr/bin/php
Warning: PHP Startup: Unable to load dynamic library '/root/cphalcon/build/safe/modules/phalcon.so' - /root/cphalcon/build/safe/modules/phalcon.so: undefined symbol: php_pdo_get_dbh_ce in Unknown on line 0

PHP_SAPI    : cli
PHP_VERSION : 5.4.4-14+deb7u8
ZEND_VERSION: 2.4.0
PHP_OS      : Linux - Linux li661-20 3.13.7-x86_64-linode38 #1 SMP Tue Mar 25 12:59:48
EDT 2014 x86_64
INI actual  : /root/cphalcon/build/safe/tmp-php.ini
More .INIs  :
CWD         : /root/cphalcon/build/safe
Extra dirs  :
VALGRIND    : Not used
=====================================================================
TIME START 2014-04-14 05:14:02
=====================================================================
No tests were run.

@phalcon
Copy link
Collaborator

phalcon commented Apr 14, 2014

"make test" is not necessary, you have to load phalcon creating a file in /etc/php5/apache2/conf.d/50-phalcon.ini or /etc/php5/cli/conf.d/50-phalcon.ini with extension=phalcon.so

@JREAM
Copy link
Author

JREAM commented Apr 14, 2014

I think you should put this on the main site for other people that might have to do this!

@JREAM JREAM closed this as completed Apr 14, 2014
@wonbin2011
Copy link

/usr/lib64/php/modules/phalcon.so: undefined symbol: php_pdo_get_dbh_ce in Unknown on line 0

@sjinks
Copy link
Contributor

sjinks commented Apr 20, 2017

@wonbin2011 please make sure Phalcon is loaded after PDO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants