mirror of
https://github.com/php/php-src.git
synced 2026-03-25 08:42:29 +01:00
* uri: Make the `.free_uri` handlers safe to call with `NULL` The `php_uri_free()` function already unconditionally called `->free_uri()` and thus couldn't be safely used when the `->uri` was `NULL` for some reason. The lexbor implementation was already safe, because `lxb_url_destroy()` is guaranteed to be a noop for `NULL`. * uri: Stop checking for `NULL` before calling `->free_uri()` This implicitly fixes an `UNEXPECTED(…->uri != NULL)` in `uri_free_obj_handler` that likely should have read `EXPECTED` instead. * uri: Remove unnecessary reset of `->uri` to `NULL` in `php_uri_object_handler_free()` * uri: Document the requirement of `free_uri()` being safe with `NULL`