From:             ian at snork dot net
Operating system: Debian sarge (i386)
PHP version:      5CVS-2005-03-01 (dev)
PHP Bug Type:     Reproducible crash
Bug description:  sqlite extension causes crash at PHP startup

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 bug report at http://bugs.php.net/?id=32144&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32144&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32144&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32144&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32144&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32144&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32144&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32144&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32144&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32144&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32144&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32144&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32144&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32144&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32144&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32144&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32144&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32144&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32144&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32144&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32144&r=mysqlcfg

Reply via email to