Patch soap-faultstring-not-set-patch.diff for SOAP related Bug #51273
Patch version 2010-03-11 12:55 UTC
Return to Bug #51273 |
Download this patch
Patch Revisions:
Developer: dennis@transip.nl
Index: soap.c
===================================================================
--- soap.c (revision 296066)
+++ soap.c (working copy)
@@ -3238,12 +3238,12 @@
if (Z_TYPE_P(obj) != IS_OBJECT) {
object_init_ex(obj, soap_fault_class_entry);
}
- if (fault_string != NULL) {
- add_property_string(obj, "faultstring", fault_string, 1);
+
+ add_property_string(obj, "faultstring", fault_string ? fault_string : "", 1);
#ifdef ZEND_ENGINE_2
- zend_update_property_string(zend_exception_get_default(TSRMLS_C), obj, "message", sizeof("message")-1, fault_string TSRMLS_CC);
+ zend_update_property_string(zend_exception_get_default(TSRMLS_C), obj, "message", sizeof("message")-1, (fault_string ? fault_string : "") TSRMLS_CC);
#endif
- }
+
if (fault_code != NULL) {
int soap_version = SOAP_GLOBAL(soap_version);
|