20
20
#include "config.h"
21
21
#endif
22
22
#include "php_soap.h"
23
- #if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION )
23
+ #if defined( HAVE_PHP_SESSION ) && !defined(COMPILE_DL_SESSION )
24
24
#include "ext/session/php_session.h"
25
25
#endif
26
26
#include "soap_arginfo.h"
@@ -1403,7 +1403,7 @@ PHP_METHOD(SoapServer, handle)
1403
1403
soap_obj = & service -> soap_object ;
1404
1404
function_table = & ((Z_OBJCE_P (soap_obj ))-> function_table );
1405
1405
} else if (service -> type == SOAP_CLASS ) {
1406
- #if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION )
1406
+ #if defined( HAVE_PHP_SESSION ) && !defined(COMPILE_DL_SESSION )
1407
1407
/* If persistent then set soap_obj from from the previous created session (if available) */
1408
1408
if (service -> soap_class .persistence == SOAP_PERSISTENCE_SESSION ) {
1409
1409
zval * session_vars , * tmp_soap_p ;
@@ -1475,7 +1475,7 @@ PHP_METHOD(SoapServer, handle)
1475
1475
}
1476
1476
efree (class_name );
1477
1477
}
1478
- #if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION )
1478
+ #if defined( HAVE_PHP_SESSION ) && !defined(COMPILE_DL_SESSION )
1479
1479
/* If session then update session hash with new object */
1480
1480
if (service -> soap_class .persistence == SOAP_PERSISTENCE_SESSION ) {
1481
1481
zval * session_vars = & PS (http_session_vars ), * tmp_soap_p ;
@@ -1566,7 +1566,7 @@ PHP_METHOD(SoapServer, handle)
1566
1566
if (service -> type == SOAP_CLASS || service -> type == SOAP_OBJECT ) {
1567
1567
call_status = call_user_function (NULL , soap_obj , & function_name , & retval , num_params , params );
1568
1568
if (service -> type == SOAP_CLASS ) {
1569
- #if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION )
1569
+ #if defined( HAVE_PHP_SESSION ) && !defined(COMPILE_DL_SESSION )
1570
1570
if (service -> soap_class .persistence != SOAP_PERSISTENCE_SESSION ) {
1571
1571
zval_ptr_dtor (soap_obj );
1572
1572
soap_obj = NULL ;
@@ -1588,7 +1588,7 @@ PHP_METHOD(SoapServer, handle)
1588
1588
php_output_discard ();
1589
1589
_soap_server_exception (service , function , ZEND_THIS );
1590
1590
if (service -> type == SOAP_CLASS ) {
1591
- #if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION )
1591
+ #if defined( HAVE_PHP_SESSION ) && !defined(COMPILE_DL_SESSION )
1592
1592
if (soap_obj && service -> soap_class .persistence != SOAP_PERSISTENCE_SESSION ) {
1593
1593
#else
1594
1594
if (soap_obj ) {
@@ -1627,7 +1627,7 @@ PHP_METHOD(SoapServer, handle)
1627
1627
php_output_discard ();
1628
1628
_soap_server_exception (service , function , ZEND_THIS );
1629
1629
if (service -> type == SOAP_CLASS ) {
1630
- #if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION )
1630
+ #if defined( HAVE_PHP_SESSION ) && !defined(COMPILE_DL_SESSION )
1631
1631
if (soap_obj && service -> soap_class .persistence != SOAP_PERSISTENCE_SESSION ) {
1632
1632
#else
1633
1633
if (soap_obj ) {
0 commit comments