How to avoid php parse_url return false when parse ''/s?a=12&b=12.3.3.4:1233" which has ":" in the params?
<?php
var_dump(parse_url('/s?a=12&b=12.3.3.4:1233', PHP_URL_QUERY));
returns
bool(false)
Here is the online run test result:
while test good in php 7.1.7
print_r(parse_url('/s?a=12&b=12.3.3.4:1233', PHP_URL_QUERY));
return good:
a=12&b=12.3.3.4:1233