Closed julianaEngelmann closed 5 years ago
Thank you for finding this!
In PHP 5.x - 7.1 , this will always pass (since count
returns 1
for all non-array arguments, as far as I can tell).
In PHP 7.2, this throws an error.
Fixed in master
Thank you!
If we go to the site http://php.net/manual/pt_BR/function.parse-url.php (parse_url function) we can see that the query position is a string. Is it correct to use the count ($parts ['query']) function? Because it is not an array, an error occurs. This is taking effect in the php7 version. In php5 this count is accepted.