]> granicus.if.org Git - php/commitdiff
- Fixed bug #33185 (--enable-session=shared does not build)
authorfoobar <sniper@php.net>
Mon, 30 May 2005 15:14:12 +0000 (15:14 +0000)
committerfoobar <sniper@php.net>
Mon, 30 May 2005 15:14:12 +0000 (15:14 +0000)
ext/soap/soap.c
ext/sqlite/sess_sqlite.c
ext/sqlite/sqlite.c
ext/wddx/wddx.c

index 5ff9ad60cf9bc158df765f7d7515fa025a091fda..5f7acc27842fbd61f48a3b9016ae18494d6852e2 100644 (file)
@@ -1479,7 +1479,7 @@ PHP_METHOD(SoapServer, handle)
 
        if (service->type == SOAP_CLASS) {
                soap_obj = NULL;
-#if HAVE_PHP_SESSION
+#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
                /* If persistent then set soap_obj from from the previous created session (if available) */
                if (service->soap_class.persistance == SOAP_PERSISTENCE_SESSION) {
                        zval **tmp_soap;
@@ -1568,7 +1568,7 @@ PHP_METHOD(SoapServer, handle)
                                }
                                efree(class_name);
                        }
-#if HAVE_PHP_SESSION
+#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
                        /* If session then update session hash with new object */
                        if (service->soap_class.persistance == SOAP_PERSISTENCE_SESSION) {
                                zval **tmp_soap_pp;
@@ -1661,7 +1661,7 @@ PHP_METHOD(SoapServer, handle)
             zend_hash_exists(function_table, ZEND_CALL_FUNC_NAME, sizeof(ZEND_CALL_FUNC_NAME)))) {
                if (service->type == SOAP_CLASS) {
                        call_status = call_user_function(NULL, &soap_obj, &function_name, &retval, num_params, params TSRMLS_CC);
-#if HAVE_PHP_SESSION
+#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
                        if (service->soap_class.persistance != SOAP_PERSISTENCE_SESSION) {
                                zval_ptr_dtor(&soap_obj);
                        }
index 8789cd61095a973df12e88824ffb1ea711de2376..d3cb132f1039e8a2805959ba0ca31380a21213eb 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "php.h"
 
-#if HAVE_PHP_SESSION
+#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
 
 #include "ext/session/php_session.h"
 #include "ext/standard/php_lcg.h"
@@ -185,7 +185,7 @@ PS_GC_FUNC(sqlite)
        return SQLITE_RETVAL(rv);
 }
 
-#endif /* HAVE_PHP_SESSION */
+#endif /* HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION) */
 
 /*
  * Local variables:
index ad4d060d4e14a6bade9ce28c9f891bc3348b0883..839ae73583dd2b6cb423f25f159607f7d5ad59c5 100644 (file)
@@ -61,7 +61,7 @@ extern pdo_driver_t pdo_sqlite2_driver;
 
 ZEND_DECLARE_MODULE_GLOBALS(sqlite)
 
-#if HAVE_PHP_SESSION
+#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
 extern ps_module ps_mod_sqlite;
 #define ps_sqlite_ptr &ps_mod_sqlite
 #endif
@@ -1036,7 +1036,7 @@ PHP_MINIT_FUNCTION(sqlite)
 
        REGISTER_INI_ENTRIES();
 
-#if HAVE_PHP_SESSION
+#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
        php_session_register_module(ps_sqlite_ptr);
 #endif
        
index 47c5755f7f4acb127d58210d46d81bfe39653d45..80f9ab3215384fd3f5c81411ad039c07ffc3bf23 100644 (file)
@@ -223,7 +223,7 @@ static void release_wddx_packet_rsrc(zend_rsrc_list_entry *rsrc TSRMLS_DC)
 
 #include "ext/session/php_session.h"
 
-#if HAVE_PHP_SESSION
+#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
 /* {{{ PS_SERIALIZER_ENCODE_FUNC
  */
 PS_SERIALIZER_ENCODE_FUNC(wddx)
@@ -302,7 +302,7 @@ PHP_MINIT_FUNCTION(wddx)
 {
        le_wddx = zend_register_list_destructors_ex(release_wddx_packet_rsrc, NULL, "wddx", module_number);
 
-#if HAVE_PHP_SESSION
+#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
        php_session_register_serializer("wddx",
                                                                        PS_SERIALIZER_ENCODE_NAME(wddx),
                                                                        PS_SERIALIZER_DECODE_NAME(wddx));
@@ -317,7 +317,7 @@ PHP_MINIT_FUNCTION(wddx)
 PHP_MINFO_FUNCTION(wddx)
 {
        php_info_print_table_start();
-#if HAVE_PHP_SESSION
+#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
        php_info_print_table_header(2, "WDDX Support", "enabled" );
        php_info_print_table_row(2, "WDDX Session Serializer", "enabled" );
 #else