Skip to content

Commit e5a7ab3

Browse files
committed
Fix [-Wundef] warning in SOAP extension
1 parent 336998f commit e5a7ab3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ext/soap/php_soap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "php_globals.h"
2424
#include "ext/standard/info.h"
2525
#include "ext/standard/php_standard.h"
26-
#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
26+
#if defined(HAVE_PHP_SESSION) && !defined(COMPILE_DL_SESSION)
2727
#include "ext/session/php_session.h"
2828
#endif
2929
#include "zend_smart_str.h"

ext/soap/soap.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "config.h"
2121
#endif
2222
#include "php_soap.h"
23-
#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
23+
#if defined(HAVE_PHP_SESSION) && !defined(COMPILE_DL_SESSION)
2424
#include "ext/session/php_session.h"
2525
#endif
2626
#include "soap_arginfo.h"
@@ -1403,7 +1403,7 @@ PHP_METHOD(SoapServer, handle)
14031403
soap_obj = &service->soap_object;
14041404
function_table = &((Z_OBJCE_P(soap_obj))->function_table);
14051405
} 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)
14071407
/* If persistent then set soap_obj from from the previous created session (if available) */
14081408
if (service->soap_class.persistence == SOAP_PERSISTENCE_SESSION) {
14091409
zval *session_vars, *tmp_soap_p;
@@ -1475,7 +1475,7 @@ PHP_METHOD(SoapServer, handle)
14751475
}
14761476
efree(class_name);
14771477
}
1478-
#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1478+
#if defined(HAVE_PHP_SESSION) && !defined(COMPILE_DL_SESSION)
14791479
/* If session then update session hash with new object */
14801480
if (service->soap_class.persistence == SOAP_PERSISTENCE_SESSION) {
14811481
zval *session_vars = &PS(http_session_vars), *tmp_soap_p;
@@ -1566,7 +1566,7 @@ PHP_METHOD(SoapServer, handle)
15661566
if (service->type == SOAP_CLASS || service->type == SOAP_OBJECT) {
15671567
call_status = call_user_function(NULL, soap_obj, &function_name, &retval, num_params, params);
15681568
if (service->type == SOAP_CLASS) {
1569-
#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1569+
#if defined(HAVE_PHP_SESSION) && !defined(COMPILE_DL_SESSION)
15701570
if (service->soap_class.persistence != SOAP_PERSISTENCE_SESSION) {
15711571
zval_ptr_dtor(soap_obj);
15721572
soap_obj = NULL;
@@ -1588,7 +1588,7 @@ PHP_METHOD(SoapServer, handle)
15881588
php_output_discard();
15891589
_soap_server_exception(service, function, ZEND_THIS);
15901590
if (service->type == SOAP_CLASS) {
1591-
#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1591+
#if defined(HAVE_PHP_SESSION) && !defined(COMPILE_DL_SESSION)
15921592
if (soap_obj && service->soap_class.persistence != SOAP_PERSISTENCE_SESSION) {
15931593
#else
15941594
if (soap_obj) {
@@ -1627,7 +1627,7 @@ PHP_METHOD(SoapServer, handle)
16271627
php_output_discard();
16281628
_soap_server_exception(service, function, ZEND_THIS);
16291629
if (service->type == SOAP_CLASS) {
1630-
#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION)
1630+
#if defined(HAVE_PHP_SESSION) && !defined(COMPILE_DL_SESSION)
16311631
if (soap_obj && service->soap_class.persistence != SOAP_PERSISTENCE_SESSION) {
16321632
#else
16331633
if (soap_obj) {

0 commit comments

Comments
 (0)