Skip to content

Commit

Permalink
Fixed bug #69152
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Mar 19, 2015
1 parent 4c3b73b commit 51856a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/soap/soap.c
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,12 @@ PHP_METHOD(SoapFault, __toString)

zend_call_function(&fci, NULL TSRMLS_CC);

convert_to_string(faultcode);
convert_to_string(faultstring);
convert_to_string(file);
convert_to_long(line);
convert_to_string(trace);

len = spprintf(&str, 0, "SoapFault exception: [%s] %s in %s:%ld\nStack trace:\n%s",
Z_STRVAL_P(faultcode), Z_STRVAL_P(faultstring), Z_STRVAL_P(file), Z_LVAL_P(line),
Z_STRLEN_P(trace) ? Z_STRVAL_P(trace) : "#0 {main}\n");
Expand Down

0 comments on commit 51856a7

Please sign in to comment.