It might be safer to also test against the php version.  So defined('PHP_QUERY_RFC3986') && version_compare(...) because if a user defines the constant in PHP 5.3, it will generate an error: "http_build_query() expects at most 3 parameters, 4 given"