@@ -460,7 +460,7 @@ int make_http_soap_request(
460
460
if (request != buf ) {
461
461
zend_string_release_ex (request , 0 );
462
462
}
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 );
464
464
smart_str_free (& soap_headers_z );
465
465
efree (http_msg );
466
466
return FALSE;
@@ -474,7 +474,7 @@ int make_http_soap_request(
474
474
if (request != buf ) {
475
475
zend_string_release_ex (request , 0 );
476
476
}
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 );
478
478
smart_str_free (& soap_headers_z );
479
479
efree (http_msg );
480
480
return FALSE;
@@ -487,7 +487,7 @@ int make_http_soap_request(
487
487
if (request != buf ) {
488
488
zend_string_release_ex (request , 0 );
489
489
}
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 );
491
491
PG (allow_url_fopen ) = old_allow_url_fopen ;
492
492
smart_str_free (& soap_headers_z );
493
493
efree (http_msg );
@@ -540,7 +540,7 @@ int make_http_soap_request(
540
540
if (request != buf ) {
541
541
zend_string_release_ex (request , 0 );
542
542
}
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 );
544
544
PG (allow_url_fopen ) = old_allow_url_fopen ;
545
545
smart_str_free (& soap_headers_z );
546
546
efree (http_msg );
@@ -911,14 +911,14 @@ int make_http_soap_request(
911
911
php_stream_close (stream );
912
912
convert_to_null (Z_CLIENT_HTTPURL_P (this_ptr ));
913
913
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 );
915
915
smart_str_free (& soap_headers_z );
916
916
efree (http_msg );
917
917
return FALSE;
918
918
}
919
919
smart_str_free (& soap_headers );
920
920
} 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 );
922
922
smart_str_free (& soap_headers_z );
923
923
efree (http_msg );
924
924
return FALSE;
@@ -935,7 +935,7 @@ int make_http_soap_request(
935
935
ZVAL_NULL (Z_CLIENT_HTTPSOCKET_P (this_ptr ));
936
936
php_stream_close (stream );
937
937
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 );
939
939
smart_str_free (& soap_headers_z );
940
940
efree (http_msg );
941
941
return FALSE;
@@ -1124,7 +1124,7 @@ int make_http_soap_request(
1124
1124
php_stream_close (stream );
1125
1125
zend_string_release_ex (http_headers , 0 );
1126
1126
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 );
1128
1128
if (http_msg ) {
1129
1129
efree (http_msg );
1130
1130
}
@@ -1190,7 +1190,7 @@ int make_http_soap_request(
1190
1190
uri = new_uri ;
1191
1191
1192
1192
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 );
1194
1194
smart_str_free (& soap_headers_z );
1195
1195
efree (http_msg );
1196
1196
return FALSE;
@@ -1326,7 +1326,7 @@ int make_http_soap_request(
1326
1326
if (http_msg ) {
1327
1327
efree (http_msg );
1328
1328
}
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 );
1330
1330
return FALSE;
1331
1331
}
1332
1332
zend_call_known_function (decompression_fn , NULL , NULL , & retval , 1 , params , NULL );
@@ -1338,7 +1338,7 @@ int make_http_soap_request(
1338
1338
efree (content_encoding );
1339
1339
zend_string_release_ex (http_headers , 0 );
1340
1340
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 );
1342
1342
if (http_msg ) {
1343
1343
efree (http_msg );
1344
1344
}
@@ -1372,7 +1372,7 @@ int make_http_soap_request(
1372
1372
if (error ) {
1373
1373
zval_ptr_dtor (return_value );
1374
1374
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 );
1376
1376
efree (http_msg );
1377
1377
return FALSE;
1378
1378
}
0 commit comments