@@ -135,13 +135,13 @@ static php_stream *php_ftp_fopen_connect(php_stream_wrapper *wrapper, const char
135135 char * transport ;
136136 int transport_len ;
137137
138- uri_handler_t * uri_handler = php_stream_context_get_uri_handler ("ftp" , context );
139- if (uri_handler == NULL ) {
138+ uri_parser_t * uri_parser = php_stream_context_get_uri_parser ("ftp" , context );
139+ if (uri_parser == NULL ) {
140140 zend_value_error ("%s(): Provided stream context has invalid value for the \"uri_parser_class\" option" , get_active_function_name ());
141141 return NULL ;
142142 }
143143
144- resource = php_uri_parse_to_struct (uri_handler , path , strlen (path ), URI_COMPONENT_READ_RAW , true);
144+ resource = php_uri_parse_to_struct (uri_parser , path , strlen (path ), URI_COMPONENT_READ_RAW , true);
145145 if (resource == NULL || resource -> path == NULL ) {
146146 if (resource && presource ) {
147147 * presource = resource ;
@@ -956,18 +956,18 @@ static int php_stream_ftp_rename(php_stream_wrapper *wrapper, const char *url_fr
956956 int result ;
957957 char tmp_line [512 ];
958958
959- uri_handler_t * uri_handler = php_stream_context_get_uri_handler ("ftp" , context );
960- if (uri_handler == NULL ) {
959+ uri_parser_t * uri_parser = php_stream_context_get_uri_parser ("ftp" , context );
960+ if (uri_parser == NULL ) {
961961 zend_value_error ("%s(): Provided stream context has invalid value for the \"uri_parser_class\" option" , get_active_function_name ());
962962 return 0 ;
963963 }
964964
965- resource_from = php_uri_parse_to_struct (uri_handler , url_from , strlen (url_from ), URI_COMPONENT_READ_RAW , true);
965+ resource_from = php_uri_parse_to_struct (uri_parser , url_from , strlen (url_from ), URI_COMPONENT_READ_RAW , true);
966966 if (!resource_from ) {
967967 return 0 ;
968968 }
969969
970- resource_to = php_uri_parse_to_struct (uri_handler , url_to , strlen (url_to ), URI_COMPONENT_READ_RAW , true);
970+ resource_to = php_uri_parse_to_struct (uri_parser , url_to , strlen (url_to ), URI_COMPONENT_READ_RAW , true);
971971 if (!resource_to ) {
972972 goto rename_errexit ;
973973 }
0 commit comments