@@ -98,7 +98,7 @@ ZEND_ATTRIBUTE_NONNULL static UriUriA *uriparser_read_uri(uriparser_uris_t *urip
98
98
99
99
ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_scheme (const uri_internal_t * internal_uri , uri_component_read_mode_t read_mode , zval * retval )
100
100
{
101
- UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
101
+ const UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
102
102
ZEND_ASSERT (uriparser_uri != NULL );
103
103
104
104
if (uriparser_uri -> scheme .first != NULL && uriparser_uri -> scheme .afterLast != NULL ) {
@@ -113,7 +113,7 @@ ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_scheme(const uri_intern
113
113
114
114
ZEND_ATTRIBUTE_NONNULL zend_result uriparser_read_userinfo (const uri_internal_t * internal_uri , uri_component_read_mode_t read_mode , zval * retval )
115
115
{
116
- UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
116
+ const UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
117
117
ZEND_ASSERT (uriparser_uri != NULL );
118
118
119
119
if (uriparser_uri -> userInfo .first != NULL && uriparser_uri -> userInfo .afterLast != NULL ) {
@@ -127,7 +127,7 @@ ZEND_ATTRIBUTE_NONNULL zend_result uriparser_read_userinfo(const uri_internal_t
127
127
128
128
ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_username (const uri_internal_t * internal_uri , uri_component_read_mode_t read_mode , zval * retval )
129
129
{
130
- UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
130
+ const UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
131
131
ZEND_ASSERT (uriparser_uri != NULL );
132
132
133
133
if (uriparser_uri -> userInfo .first != NULL && uriparser_uri -> userInfo .afterLast != NULL ) {
@@ -150,7 +150,7 @@ ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_username(const uri_inte
150
150
151
151
ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_password (const uri_internal_t * internal_uri , uri_component_read_mode_t read_mode , zval * retval )
152
152
{
153
- UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
153
+ const UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
154
154
ZEND_ASSERT (uriparser_uri != NULL );
155
155
156
156
if (uriparser_uri -> userInfo .first != NULL && uriparser_uri -> userInfo .afterLast != NULL ) {
@@ -170,7 +170,7 @@ ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_password(const uri_inte
170
170
171
171
ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_host (const uri_internal_t * internal_uri , uri_component_read_mode_t read_mode , zval * retval )
172
172
{
173
- UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
173
+ const UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
174
174
ZEND_ASSERT (uriparser_uri != NULL );
175
175
176
176
if (uriparser_uri -> hostText .first != NULL && uriparser_uri -> hostText .afterLast != NULL ) {
@@ -206,7 +206,7 @@ ZEND_ATTRIBUTE_NONNULL static size_t str_to_int(const char *str, size_t len)
206
206
207
207
ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_port (const uri_internal_t * internal_uri , uri_component_read_mode_t read_mode , zval * retval )
208
208
{
209
- UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
209
+ const UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
210
210
ZEND_ASSERT (uriparser_uri != NULL );
211
211
212
212
if (uriparser_uri -> portText .first != NULL && uriparser_uri -> portText .afterLast != NULL ) {
@@ -220,7 +220,7 @@ ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_port(const uri_internal
220
220
221
221
ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_path (const uri_internal_t * internal_uri , uri_component_read_mode_t read_mode , zval * retval )
222
222
{
223
- UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
223
+ const UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
224
224
ZEND_ASSERT (uriparser_uri != NULL );
225
225
226
226
if (uriparser_uri -> pathHead != NULL ) {
@@ -249,7 +249,7 @@ ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_path(const uri_internal
249
249
250
250
ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_query (const uri_internal_t * internal_uri , uri_component_read_mode_t read_mode , zval * retval )
251
251
{
252
- UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
252
+ const UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
253
253
ZEND_ASSERT (uriparser_uri != NULL );
254
254
255
255
if (uriparser_uri -> query .first != NULL && uriparser_uri -> query .afterLast != NULL ) {
@@ -263,7 +263,7 @@ ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_query(const uri_interna
263
263
264
264
ZEND_ATTRIBUTE_NONNULL static zend_result uriparser_read_fragment (const uri_internal_t * internal_uri , uri_component_read_mode_t read_mode , zval * retval )
265
265
{
266
- UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
266
+ const UriUriA * uriparser_uri = uriparser_read_uri (internal_uri -> uri , read_mode );
267
267
ZEND_ASSERT (uriparser_uri != NULL );
268
268
269
269
if (uriparser_uri -> fragment .first != NULL && uriparser_uri -> fragment .afterLast != NULL ) {
@@ -348,7 +348,7 @@ void *uriparser_parse_uri(const char *uri_str, size_t uri_str_len, const void *b
348
348
* is discarded altogether. */
349
349
ZEND_ATTRIBUTE_NONNULL static void * uriparser_clone_uri (void * uri )
350
350
{
351
- uriparser_uris_t * uriparser_uris = uri ;
351
+ const uriparser_uris_t * uriparser_uris = uri ;
352
352
353
353
uriparser_uris_t * new_uriparser_uris = uriparser_create_uris ();
354
354
uriparser_copy_uri (& new_uriparser_uris -> uri , & uriparser_uris -> uri );
@@ -363,7 +363,7 @@ ZEND_ATTRIBUTE_NONNULL static void *uriparser_clone_uri(void *uri)
363
363
ZEND_ATTRIBUTE_NONNULL static zend_string * uriparser_uri_to_string (void * uri , uri_recomposition_mode_t recomposition_mode , bool exclude_fragment )
364
364
{
365
365
uriparser_uris_t * uriparser_uris = uri ;
366
- UriUriA * uriparser_uri ;
366
+ const UriUriA * uriparser_uri ;
367
367
368
368
if (recomposition_mode == URI_RECOMPOSITION_RAW_ASCII || recomposition_mode == URI_RECOMPOSITION_RAW_UNICODE ) {
369
369
uriparser_uri = & uriparser_uris -> uri ;
0 commit comments