mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
5a9f5a6514
Relates to #14461 and https://wiki.php.net/rfc/url_parsing_api Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Co-authored-by: Tim Düsterhus <tim@tideways-gmbh.com>
18 lines
426 B
PHP
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) "{}"
|