Adding warnings and notices to load_wsdl()
| From: | Justin Dearing | Date: | Sun, 17 Jan 2010 16:03:19 +0000 |
| Subject: | Adding warnings and notices to load_wsdl() | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-3028@lists.php.net to get a copy of this message | ||
I have begun hacking at the 5.3 branch of the code in an attempt to create a
patch for 50698. I'd like to employ the "debug by printf()" method of
development. However, it seems that all the warning/notices I generate
inside the load_wsdl() function do not get displayed. I know its not a
config error because a call to trigger_error() will display a notice.
So how do I either get php notices/warning to display inside of that
function, or get debug into via some other method?
Example of how I am trying to add debug info:
Index: php_sdl.c
===================================================================
--- php_sdl.c (revision 293642)
+++ php_sdl.c (working copy)
@@ -699,6 +699,9 @@
sdlCtx ctx;
int i,n;
+ /* Debug information */
+ soap_error1(E_NOTICE, "PHP-SOAP Using uri of '%s'", struri);
+
memset(&ctx,0,sizeof(ctx));
ctx.sdl = emalloc(sizeof(sdl));
memset(ctx.sdl, 0, sizeof(sdl));
@@ -834,9 +837,9 @@
} else {
soap_error1(E_ERROR, "Parsing WSDL:
PHP-SOAP doesn't support transport '%s'", tmp->children->content);
}
+ tmpbinding->bindingAttributes = (void
*)soapBinding;
}
}
- tmpbinding->bindingAttributes = (void *)soapBinding;
}
name = get_attribute(binding->properties, "name");