Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

filter_var() Constant missing #460

Open
Machou opened this issue Aug 10, 2022 · 1 comment
Open

filter_var() Constant missing #460

Machou opened this issue Aug 10, 2022 · 1 comment

Comments

@Machou
Copy link

Machou commented Aug 10, 2022

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

@KapitanOczywisty
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants