Skip to content

[PHP] DNS_CAA type constant missing from PHP/PHP Source.sublime-syntax #991

Closed

Description

@alister
echo DNS_CAA, DNS_A, DNS_CNAME, DNS_HINFO, DNS_MX, DNS_NS, 
     DNS_PTR, DNS_SOA, DNS_TXT, DNS_AAAA, DNS_SRV, DNS_NAPTR,
     DNS_A6, DNS_ALL, DNS_ANY;

If the above line is put into PHP/syntax_test_php.php, the first item, DNS_CAA is highlighted differently to the rest of the line. According to the dns_get_record#type parameter list, it is a valid constant.

Activity

  1. jfcherng commented on May 23, 2017

    @jfcherng
    Collaborator

    We can show all PHP constants by

    <?php
    
    print_r(get_defined_constants(true));

    Here's the output on my machine.
    Maybe we can add/check missing built-in (and/or some common extensions) constants.

  2. added a commit that references this issue on Jun 7, 2020
  3. added a commit that references this issue on Jul 21, 2020
  4. added a commit that references this issue on Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions