|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-01 10:27 UTC] helly@php.net
[2005-03-01 11:37 UTC] ian at snork dot net
[2005-03-01 11:43 UTC] ian at snork dot net
[2005-03-09 14:31 UTC] helly@php.net
[2005-03-09 16:58 UTC] ian at snork dot net
[2005-06-17 16:04 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 16:00:01 2025 UTC |
Description: ------------ A PHP build with --with-spl and --with-sqlite will segfault at startup in all SAPIs because the SPL extension is not initialized at all. The following patch appears to fix the problem: --- php5-200503010530.orig/ext/standard/basic_functions.c 2005-01-18 11:30:05.000000000 +0000 +++ php5-200503010530/ext/standard/basic_functions.c 2005-03-01 08:03:14.578643275 +0000 @@ -1094,6 +1094,9 @@ PHP_MINIT(syslog)(INIT_FUNC_ARGS_PASSTHRU); #endif PHP_MINIT(array)(INIT_FUNC_ARGS_PASSTHRU); +#ifdef HAVE_SPL + PHP_MINIT(spl)(INIT_FUNC_ARGS_PASSTHRU); +#endif PHP_MINIT(assert)(INIT_FUNC_ARGS_PASSTHRU); PHP_MINIT(url_scanner_ex) (INIT_FUNC_ARGS_PASSTHRU); #ifdef PHP_CAN_SUPPORT_PROC_OPEN Expected result: ---------------- $ sapi/cli/php /dev/null $ Actual result: -------------- $ sapi/cli/php /dev/null Segmentation fault $