]> granicus.if.org Git - php/commitdiff
fix ZTS build without SPL enabled
authorAntony Dovgal <tony2001@php.net>
Fri, 20 Oct 2006 21:28:31 +0000 (21:28 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 20 Oct 2006 21:28:31 +0000 (21:28 +0000)
ext/sqlite/sqlite.c

index b7a9483342b3d1a88f23c2e71d1f1e998dd72244..7caccb3050b1a8195716dac36aab79d4627531a6 100644 (file)
@@ -1038,7 +1038,7 @@ PHP_MINIT_FUNCTION(sqlite)
 #if defined(HAVE_SPL) && ((PHP_MAJOR_VERSION > 5) || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 1))
        REGISTER_SQLITE_CLASS(Exception,  exception, spl_ce_RuntimeException);
 #else
-       REGISTER_SQLITE_CLASS(Exception,  exception, zend_exception_get_default());
+       REGISTER_SQLITE_CLASS(Exception,  exception, zend_exception_get_default(TSRMLS_C));
 #endif
 
        sqlite_ce_db->ce_flags &= ~ZEND_ACC_FINAL_CLASS;