File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,15 @@ static zend_string *get_http_headers(php_stream *socketd);
28
28
smart_str_appendl(str,const,sizeof(const)-1)
29
29
30
30
/* Proxy HTTP Authentication */
31
- int proxy_authentication (zval * this_ptr , smart_str * soap_headers )
31
+ bool proxy_authentication (const zval * this_ptr , smart_str * soap_headers )
32
32
{
33
- zval * login = Z_CLIENT_PROXY_LOGIN_P (this_ptr );
33
+ const zval * login = Z_CLIENT_PROXY_LOGIN_P (this_ptr );
34
34
if (Z_TYPE_P (login ) == IS_STRING ) {
35
35
smart_str auth = {0 };
36
36
smart_str_append (& auth , Z_STR_P (login ));
37
37
smart_str_appendc (& auth , ':' );
38
38
39
- zval * password = Z_CLIENT_PROXY_PASSWORD_P (this_ptr );
39
+ const zval * password = Z_CLIENT_PROXY_PASSWORD_P (this_ptr );
40
40
if (Z_TYPE_P (password ) == IS_STRING ) {
41
41
smart_str_append (& auth , Z_STR_P (password ));
42
42
}
@@ -47,9 +47,9 @@ int proxy_authentication(zval* this_ptr, smart_str* soap_headers)
47
47
smart_str_append_const (soap_headers , "\r\n" );
48
48
zend_string_release_ex (buf , 0 );
49
49
smart_str_free (& auth );
50
- return 1 ;
50
+ return true ;
51
51
}
52
- return 0 ;
52
+ return false ;
53
53
}
54
54
55
55
/* HTTP Authentication */
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ int make_http_soap_request(zval *this_ptr,
26
26
int soap_version ,
27
27
zval * response );
28
28
29
- int proxy_authentication (zval * this_ptr , smart_str * soap_headers );
29
+ bool proxy_authentication (const zval * this_ptr , smart_str * soap_headers );
30
30
int basic_authentication (zval * this_ptr , smart_str * soap_headers );
31
31
void http_context_headers (php_stream_context * context ,
32
32
bool has_authorization ,
You can’t perform that action at this time.
0 commit comments