Home
last modified time | relevance | path

Searched refs:FILTER_FLAG_HOSTNAME (Results 1 – 6 of 6) sorted by relevance

/php-src/ext/filter/tests/
H A D056.phpt28 var_dump(filter_var($value, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME));
32 var_dump(filter_var('_example.com', FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME));
34 var_dump(filter_var('test_.example.com', FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME));
36 var_dump(filter_var('te_st.example.com', FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME));
38 var_dump(filter_var('test._example.com', FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME));
H A Dgh16523.phpt2 GH-16523 (FILTER_FLAG_HOSTNAME accepts ending hyphen)
14 var_dump(filter_var($domain, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME));
/php-src/ext/filter/
H A Dfilter_private.h55 #define FILTER_FLAG_HOSTNAME 0x100000 macro
H A Dfilter.stub.php289 const FILTER_FLAG_HOSTNAME = UNKNOWN; define
H A Dfilter_arginfo.h115 REGISTER_LONG_CONSTANT("FILTER_FLAG_HOSTNAME", FILTER_FLAG_HOSTNAME, CONST_PERSISTENT); in register_filter_symbols()
H A Dlogical_filters.c511 int hostname = flags & FILTER_FLAG_HOSTNAME; in _php_filter_validate_domain()
626 !_php_filter_validate_domain(ZSTR_VAL(url->host), l, FILTER_FLAG_HOSTNAME) in php_filter_validate_url()

Completed in 10 milliseconds