Skip to content

Commit

Permalink
Merge branch 'master' of https://git.php.net/repository/php-src
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Mar 19, 2015
2 parents 61e31b6 + ca78321 commit ecd6de1
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 @@ -966,6 +966,12 @@ PHP_METHOD(SoapFault, __toString)

zval_ptr_dtor(&fci.function_name);

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

str = strpprintf(0, "SoapFault exception: [%s] %s in %s:%pd\nStack trace:\n%s",
Z_STRVAL_P(faultcode), Z_STRVAL_P(faultstring), Z_STRVAL_P(file), Z_LVAL_P(line),
Z_STRLEN(trace) ? Z_STRVAL(trace) : "#0 {main}\n");
Expand Down

0 comments on commit ecd6de1

Please sign in to comment.