ID:               32144
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ian at snork dot net
 Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Debian sarge (i386)
 PHP Version:      5CVS-2005-03-01 (dev)
-Assigned To:      
+Assigned To:      helly
 New Comment:

What is the configure line used? Especially i am interested if spl or
sqlite are build shared. And is this a clean cvs checkout or patched
somewhere? The reason i ask is that for your problem we have a
mechanismn in place already.

Also what is the order of 'phpext_spl_ptr' and 
'phpext_sqlite_ptr' in main/internal_functions_*.c's
'php_builtin_extensions' array?



Previous Comments:
------------------------------------------------------------------------

[2005-03-01 09:28:29] ian at snork dot net

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 
$ 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32144&edit=1

Reply via email to