@@ -460,7 +460,7 @@ int make_http_soap_request(
460460 if (request != buf ) {
461461 zend_string_release_ex (request , 0 );
462462 }
463- add_soap_fault (this_ptr , "HTTP" , "Unable to parse URL" , NULL , NULL , SOAP_GLOBAL ( lang_en ) );
463+ add_soap_fault (this_ptr , "HTTP" , "Unable to parse URL" , NULL , NULL , soap_lang_en );
464464 smart_str_free (& soap_headers_z );
465465 efree (http_msg );
466466 return FALSE;
@@ -474,7 +474,7 @@ int make_http_soap_request(
474474 if (request != buf ) {
475475 zend_string_release_ex (request , 0 );
476476 }
477- add_soap_fault (this_ptr , "HTTP" , "Unknown protocol. Only http and https are allowed." , NULL , NULL , SOAP_GLOBAL ( lang_en ) );
477+ add_soap_fault (this_ptr , "HTTP" , "Unknown protocol. Only http and https are allowed." , NULL , NULL , soap_lang_en );
478478 smart_str_free (& soap_headers_z );
479479 efree (http_msg );
480480 return FALSE;
@@ -487,7 +487,7 @@ int make_http_soap_request(
487487 if (request != buf ) {
488488 zend_string_release_ex (request , 0 );
489489 }
490- add_soap_fault (this_ptr , "HTTP" , "SSL support is not available in this build" , NULL , NULL , SOAP_GLOBAL ( lang_en ) );
490+ add_soap_fault (this_ptr , "HTTP" , "SSL support is not available in this build" , NULL , NULL , soap_lang_en );
491491 PG (allow_url_fopen ) = old_allow_url_fopen ;
492492 smart_str_free (& soap_headers_z );
493493 efree (http_msg );
@@ -540,7 +540,7 @@ int make_http_soap_request(
540540 if (request != buf ) {
541541 zend_string_release_ex (request , 0 );
542542 }
543- add_soap_fault (this_ptr , "HTTP" , "Could not connect to host" , NULL , NULL , SOAP_GLOBAL ( lang_en ) );
543+ add_soap_fault (this_ptr , "HTTP" , "Could not connect to host" , NULL , NULL , soap_lang_en );
544544 PG (allow_url_fopen ) = old_allow_url_fopen ;
545545 smart_str_free (& soap_headers_z );
546546 efree (http_msg );
@@ -911,14 +911,14 @@ int make_http_soap_request(
911911 php_stream_close (stream );
912912 convert_to_null (Z_CLIENT_HTTPURL_P (this_ptr ));
913913 ZVAL_NULL (Z_CLIENT_USE_PROXY_P (this_ptr ));
914- add_soap_fault (this_ptr , "HTTP" , "Failed Sending HTTP SOAP request" , NULL , NULL , SOAP_GLOBAL ( lang_en ) );
914+ add_soap_fault (this_ptr , "HTTP" , "Failed Sending HTTP SOAP request" , NULL , NULL , soap_lang_en );
915915 smart_str_free (& soap_headers_z );
916916 efree (http_msg );
917917 return FALSE;
918918 }
919919 smart_str_free (& soap_headers );
920920 } else {
921- add_soap_fault (this_ptr , "HTTP" , "Failed to create stream??" , NULL , NULL , SOAP_GLOBAL ( lang_en ) );
921+ add_soap_fault (this_ptr , "HTTP" , "Failed to create stream??" , NULL , NULL , soap_lang_en );
922922 smart_str_free (& soap_headers_z );
923923 efree (http_msg );
924924 return FALSE;
@@ -935,7 +935,7 @@ int make_http_soap_request(
935935 ZVAL_NULL (Z_CLIENT_HTTPSOCKET_P (this_ptr ));
936936 php_stream_close (stream );
937937 ZVAL_NULL (Z_CLIENT_USE_PROXY_P (this_ptr ));
938- add_soap_fault (this_ptr , "HTTP" , "Error Fetching http headers" , NULL , NULL , SOAP_GLOBAL ( lang_en ) );
938+ add_soap_fault (this_ptr , "HTTP" , "Error Fetching http headers" , NULL , NULL , soap_lang_en );
939939 smart_str_free (& soap_headers_z );
940940 efree (http_msg );
941941 return FALSE;
@@ -1124,7 +1124,7 @@ int make_http_soap_request(
11241124 php_stream_close (stream );
11251125 zend_string_release_ex (http_headers , 0 );
11261126 ZVAL_NULL (Z_CLIENT_USE_PROXY_P (this_ptr ));
1127- add_soap_fault (this_ptr , "HTTP" , "Error Fetching http body, No Content-Length, connection closed or chunked data" , NULL , NULL , SOAP_GLOBAL ( lang_en ) );
1127+ add_soap_fault (this_ptr , "HTTP" , "Error Fetching http body, No Content-Length, connection closed or chunked data" , NULL , NULL , soap_lang_en );
11281128 if (http_msg ) {
11291129 efree (http_msg );
11301130 }
@@ -1190,7 +1190,7 @@ int make_http_soap_request(
11901190 uri = new_uri ;
11911191
11921192 if (-- redirect_max < 1 ) {
1193- add_soap_fault (this_ptr , "HTTP" , "Redirection limit reached, aborting" , NULL , NULL , SOAP_GLOBAL ( lang_en ) );
1193+ add_soap_fault (this_ptr , "HTTP" , "Redirection limit reached, aborting" , NULL , NULL , soap_lang_en );
11941194 smart_str_free (& soap_headers_z );
11951195 efree (http_msg );
11961196 return FALSE;
@@ -1326,7 +1326,7 @@ int make_http_soap_request(
13261326 if (http_msg ) {
13271327 efree (http_msg );
13281328 }
1329- add_soap_fault (this_ptr , "HTTP" , "Unknown Content-Encoding" , NULL , NULL , SOAP_GLOBAL ( lang_en ) );
1329+ add_soap_fault (this_ptr , "HTTP" , "Unknown Content-Encoding" , NULL , NULL , soap_lang_en );
13301330 return FALSE;
13311331 }
13321332 zend_call_known_function (decompression_fn , NULL , NULL , & retval , 1 , params , NULL );
@@ -1338,7 +1338,7 @@ int make_http_soap_request(
13381338 efree (content_encoding );
13391339 zend_string_release_ex (http_headers , 0 );
13401340 zend_string_release_ex (http_body , 0 );
1341- add_soap_fault (this_ptr , "HTTP" , "Can't uncompress compressed response" , NULL , NULL , SOAP_GLOBAL ( lang_en ) );
1341+ add_soap_fault (this_ptr , "HTTP" , "Can't uncompress compressed response" , NULL , NULL , soap_lang_en );
13421342 if (http_msg ) {
13431343 efree (http_msg );
13441344 }
@@ -1372,7 +1372,7 @@ int make_http_soap_request(
13721372 if (error ) {
13731373 zval_ptr_dtor (return_value );
13741374 ZVAL_UNDEF (return_value );
1375- add_soap_fault (this_ptr , "HTTP" , http_msg , NULL , NULL , SOAP_GLOBAL ( lang_en ) );
1375+ add_soap_fault (this_ptr , "HTTP" , http_msg , NULL , NULL , soap_lang_en );
13761376 efree (http_msg );
13771377 return FALSE;
13781378 }
0 commit comments