1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00
Files
archived-php-src/ext/uri/tests/032.phpt
T
2025-07-05 10:00:20 +02:00

18 lines
426 B
PHP

--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) "{}"