zendframework / zend-diactoros

PSR-7 HTTP Message implementation
BSD 3-Clause "New" or "Revised" License
1.55k stars 152 forks source link

make string comparison more strict #301

Closed nyamsprod closed 6 years ago

nyamsprod commented 6 years ago

This PR resolves the following bug in the Uri class:

<?php

use Zend\Diactoros\Uri;
$uri = new Uri('https://0:0@0:1/0?0#0'); // display https:/0'
// expected 'https://0:0@0:1/0?0#0'

All string comparison are made more strict now.

Maybe other PRs may look and fix this issue in other classes as well.