/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/uri/tests/032.phpt
17 строк
426 B
Máté Kocsis
Add the Uri\Rfc3986\Uri class to ext/uri without wither support (#18836)
05 июл 2025, 11:00
Не верифицирован
05 июл 2025, 11:00
5a9f5a6
Код
Авторство
О чём код?
--TEST-- Test JSON encoding --EXTENSIONS-- uri --FILE-- <?php $uri = new Uri\Rfc3986\Uri("https://username:password@www.google.com:8080/pathname1/pathname2/pathname3?query=true#hash-exists"); var_dump(json_encode($uri)); $url = new Uri\WhatWg\Url("https://username:password@www.google.com:8080/pathname1/pathname2/pathname3?query=true#hash-exists"); var_dump(json_encode($url)); ?> --EXPECT-- string(2) "{}" string(2) "{}"