1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 16:38:25 +02:00
Files

18 lines
428 B
PHP

--TEST--
Test JSON encoding
--EXTENSIONS--
uri
--FILE--
<?php
$uri = new Uri\Rfc3986\Uri("https://username:password@www.example.com:8080/pathname1/pathname2/pathname3?query=true#hash-exists");
var_dump(json_encode($uri));
$url = new Uri\WhatWg\Url("https://username:password@www.example.com:8080/pathname1/pathname2/pathname3?query=true#hash-exists");
var_dump(json_encode($url));
?>
--EXPECT--
string(2) "{}"
string(2) "{}"