atom/language-php

filter_var() Constant missing

Opened this issue · 1 comments

Description

Many constant missing in filter_var() function, php

Visual Studio Code Version : 1.70.0

Steps to Reproduce

Write this code :

<?php
// Validate filters
// https://www.php.net/manual/en/filter.filters.validate.php#filter.filters.validate

filter_var(true, FILTER_VALIDATE_BOOL);

filter_var('www.google.com', FILTER_VALIDATE_DOMAIN);
filter_var('www.google.com', FILTER_FLAG_HOSTNAME);
filter_var('test@google.com', FILTER_FLAG_EMAIL_UNICODE);
filter_var('00:00:5e:00:53:af', FILTER_VALIDATE_MAC);

// Sanitize filters
// https://www.php.net/manual/en/filter.filters.sanitize.php

filter_var('Is Peter <smart> & funny?', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
filter_var('foo "bar" !', FILTER_FLAG_NO_ENCODE_QUOTES);

// Filter flags
// https://www.php.net/manual/en/filter.filters.flags.php

filter_var('https://www.google��.co�m', FILTER_SANITIZE_RAW);

Examples

Multiple variables, functions and classes are missing, I'm working to extract all of them from php source.