[xdebug-dev] xdebug xdebug/xdebug.c - Fixed bug #249: Xdebug's error handler messes up with the SOAP extension's

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sat, 17 Oct 2009 17:52:08 +0200

Date: Sat Oct 17 17:52:08 CEST 2009
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Fixed bug #249: Xdebug's error handler messes up with the SOAP extension's
  error handler.

Modified files:
           xdebug/xdebug.c (version: 1.459)

[FILE: /xdebug/xdebug.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.458
retrieving revision 1.459
diff -u -r1.458 -r1.459
--- xdebug/xdebug.c:1.458 Thu Oct 08 13:31:17 2009 GMT
+++ xdebug/xdebug.c Sat Oct 17 13:52:08 2009 GMT
@@ -972,7 +972,9 @@
         CG(extended_info) = XG(extended_info);
 #endif
 
- if (XG(default_enable)) {
+ /* Hack: We check for a soap header here, if that's existing, we don't use
+ * Xdebug's error handler to keep soap fault from fucking up. */
+ if (XG(default_enable) && zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "HTTP_SOAPACTION", 16, (void**)&dummy) == FAILURE) {
                 zend_error_cb = new_error_cb;
                 zend_throw_exception_hook = xdebug_throw_exception_hook;
         }
Received on Sat Oct 17 2009 - 17:52:24 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST