ID: 36084 Updated by: [EMAIL PROTECTED] Reported By: clive at darkarts dot co dot za -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: FreeBSD PHP Version: 5.1.2 New Comment:
Now try the same but add --with-apxs2=/usr/local/sbin/apxs to the configure options. Previous Comments: ------------------------------------------------------------------------ [2006-01-20 08:19:42] clive at darkarts dot co dot za commandline as follows was used: % rm config.cache ; ./configure --disable-all --disable-cgi --enable-maintainer-zts && make clean && make && sapi/cli/php -r 'phpinfo();' this runs fine, without segfaulting, on both 5.1.2 as well as the snapshot 5.1-200601191130. 'sapi/cli/php -v' on 5.1.2 gives: PHP 5.1.2 (cli) (built: Jan 20 2006 09:28:25) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies 'sapi/cli/php -v' on 5.1.200601191130 gives: PHP 5.1.3-dev (cli) (built: Jan 20 2006 09:19:48) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies ------------------------------------------------------------------------ [2006-01-19 16:16:41] [EMAIL PROTECTED] Try adding --enable-maintainer-zts to that previous configure line. Does it still crash? What does this output: # sapi/cli/php -v And 'make clean' is _mandatory_ always. (remember to 'rm config.cache' before running the configure line too!) ------------------------------------------------------------------------ [2006-01-19 16:11:40] [EMAIL PROTECTED] >undefined reference to `spl_ce_Countable' Yeah, `make clean` is required before `make`. ------------------------------------------------------------------------ [2006-01-19 16:07:54] clive at darkarts dot co dot za Ah, I did not know about ZTS, thank you. as per your instructions:: on php-5.1.2: ext/standard/.libs/array.o(.text+0x5ba): In function `zif_count': /usr/ports/lang/php5/work/php-5.1.2/ext/standard/array.c:326: undefined reference to `spl_ce_Countable' on php-5.1-200601191130: runs perfectly, no segfault (I'm sorry if my next answers come much later, I have to leave now and wont be near a PC again for about 16 hours. I will answer any questions then as fully as possible. Thanks ) ------------------------------------------------------------------------ [2006-01-19 15:56:07] [EMAIL PROTECTED] It doesn't matter if you run CLI if it's still compiled with ZTS enabled. Which it is if you use the one you build when building the Apache module. Does this work without crashing: # rm config.cache ; ./configure --disable-all --disable-cgi && make && sapi/cli/php -r 'phpinfo();' ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/36084 -- Edit this bug report at http://bugs.php.net/?id=36084&edit=1