diff options
author | Alex Dupre <ale@FreeBSD.org> | 2006-01-24 07:16:40 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2006-01-24 07:16:40 +0000 |
commit | 98bb6c6c4ce9ed1a0f141b6cd3617db209f403bf (patch) | |
tree | cbafefb66ce710f53adebafc56fc06c1221cc84f /net/php5-soap | |
parent | 41ce2d5cf9cd883be0c24d1252e662619e3faefa (diff) | |
download | ports-98bb6c6c4ce9ed1a0f141b6cd3617db209f403bf.tar.gz ports-98bb6c6c4ce9ed1a0f141b6cd3617db209f403bf.zip |
Add a fix to another deficency of php devs that think FreeBSD is (D)evil:
- re-enable persistence support in soap extension
Notes
Notes:
svn path=/head/; revision=154319
Diffstat (limited to 'net/php5-soap')
-rw-r--r-- | net/php5-soap/files/patch-soap.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/net/php5-soap/files/patch-soap.c b/net/php5-soap/files/patch-soap.c new file mode 100644 index 000000000000..df3735357d7c --- /dev/null +++ b/net/php5-soap/files/patch-soap.c @@ -0,0 +1,38 @@ +--- soap.c.orig Tue Jan 24 08:02:15 2006 ++++ soap.c Tue Jan 24 08:03:06 2006 +@@ -23,7 +23,7 @@ + #include "config.h" + #endif + #include "php_soap.h" +-#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION) ++#if HAVE_PHP_SESSION + #include "ext/session/php_session.h" + #endif + #ifdef ZEND_ENGINE_2 +@@ -1509,7 +1509,7 @@ + + if (service->type == SOAP_CLASS) { + soap_obj = NULL; +-#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION) ++#if HAVE_PHP_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; +@@ -1598,7 +1598,7 @@ + } + efree(class_name); + } +-#if HAVE_PHP_SESSION && !defined(COMPILE_DL_SESSION) ++#if HAVE_PHP_SESSION + /* If session then update session hash with new object */ + if (service->soap_class.persistance == SOAP_PERSISTENCE_SESSION) { + zval **tmp_soap_pp; +@@ -1691,7 +1691,7 @@ + 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 && !defined(COMPILE_DL_SESSION) ++#if HAVE_PHP_SESSION + if (service->soap_class.persistance != SOAP_PERSISTENCE_SESSION) { + zval_ptr_dtor(&soap_obj); + } |