|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-07-09 12:35 UTC] jani dot ollikainen at mmd dot net
Description: ------------ PHP version is not irrelevant, but as on the page: http://pecl.php.net/package/APC says "Release 3.1.10: PHP Version: PHP 5.1.0 or newer" so also I think that reporting bug with older PHP is acceptable, or they should at least change that to PHP 5.3.0 or newer. Put anything to apc.filters and run php-cgi. PHP 5.1.6 (cli) (built: Jun 27 2012 12:21:13) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies Test script: --------------- <?php phpinfo(); ?> Expected result: ---------------- No segfault as situation is with PHP 5.3 Actual result: -------------- Segmentation fault. Program received signal SIGSEGV, Segmentation fault. pcre_get_compiled_regex_ex ( regex=0x1696078 "/((.*liteconf\\.php|.*datafiles\\/config\\/.*))/", extra=0x0, preg_options=0x0, compile_options=0x7fffffffbbe4) at /usr/src/debug/php-5.1.6/ext/pcre/php_pcre.c:253 253 *preg_options = 0; (gdb) backtrace #0 pcre_get_compiled_regex_ex ( regex=0x1696078 "/((.*liteconf\\.php|.*datafiles\\/config\\/.*))/", extra=0x0, preg_options=0x0, compile_options=0x7fffffffbbe4) at /usr/src/debug/php-5.1.6/ext/pcre/php_pcre.c:253 #1 0x000000000044260e in pcre_get_compiled_regex (regex=0x166bab3 "", extra=0x16960a4, preg_options=0x16960a5) at /usr/src/debug/php-5.1.6/ext/pcre/php_pcre.c:134 #2 0x00002aaab1923150 in apc_regex_compile_array ( patterns=<value optimized out>) at /usr/src/debug/php-pecl-apc-3.1.10/APC-3.1.10/apc.c:456 #3 0x00002aaab192cd00 in apc_request_init () at /usr/src/debug/php-pecl-apc-3.1.10/APC-3.1.10/apc_main.c:972 #4 0x00002aaab1923ae5 in zm_activate_apc (type=23509683, module_number=23683236) at /usr/src/debug/php-pecl-apc-3.1.10/APC-3.1.10/php_apc.c:393 #5 0x000000000057fbd9 in module_registry_request_startup (module=0x929e80) at /usr/src/debug/php-5.1.6/Zend/zend_API.c:1835 #6 0x000000000058575f in zend_hash_apply (ht=0x8b7260, apply_func=0x57fbc0 <module_registry_request_startup>) at /usr/src/debug/php-5.1.6/Zend/zend_hash.c:670 #7 0x00000000005408bc in php_request_startup () at /usr/src/debug/php-5.1.6/main/main.c:1122 #8 0x00000000005f699c in main (argc=1, argv=0x7fffffffea08) at /usr/src/debug/php-5.1.6/sapi/cgi/cgi_main.c:1595 Program received signal SIGSEGV, Segmentation fault. pcre_get_compiled_regex_ex (regex=0x16960b8 "/(liteconf\\.php)/", extra=0x0, preg_options=0x0, compile_options=0x7fffffffbbe4) at /usr/src/debug/php-5.1.6/ext/pcre/php_pcre.c:253 253 *preg_options = 0; Program received signal SIGSEGV, Segmentation fault. pcre_get_compiled_regex_ex (regex=0x1696078 "/(a)/", extra=0x0, preg_options=0x0, compile_options=0x7fffffffbbe4) at /usr/src/debug/php-5.1.6/ext/pcre/php_pcre.c:253 253 *preg_options = 0; Patchesapc-3.1.12-regex-no-pefree.patch (last revision 2012-08-29 19:53 UTC by bof at bof dot de)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 06:00:01 2025 UTC |
I am. Tested with: # php-cgi --version PHP 5.3.3 (cgi-fcgi) (built: May 7 2012 19:57:05) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies # echo '<?php echo phpversion("apc")."\n";?>'|php-cgi -q 3.1.9 And no segfault with apc.filters="a": # php-cgi -i |grep apc.filters <tr><td class="e">apc.filters</td><td class="v">a</td><td class="v">a</td></tr>