php-native-symbols
Copyright the php-native-symbols authors.

This product is licensed under your choice of MIT or Apache-2.0 (see
LICENSE-MIT and LICENSE-APACHE). The committed lookup tables under
src/generated/ are machine-written from the third-party sources below by the
offline generator in tools/regenerate. Version numbers are facts and are not
copyrightable; the attributions here cover the selection and arrangement that
the permissive sources allow us to redistribute.

-------------------------------------------------------------------------------
JetBrains phpstorm-stubs  (primary data source)
  Licence: Apache-2.0
  Source:  https://github.com/JetBrains/phpstorm-stubs
  Pinned:  commit 7f1c9cada07266d488698b6c9128503d6c94e58b
  Used for: native function, constant and class/interface/enum names and
            per-version presence (derived by diffing the per-version reflection
            caches tests/cache/Reflection*.json: presence gives added and
            removed) plus, for functions, the isDeprecated flag (gives
            deprecated). Each symbol's extension and corroborating @since/@removed
            come from tests/cache/StubsFunctions.json, StubsConstants.json and
            StubsClasses.json. Methods are the declared methods arrays in
            StubsClasses.json (the declared class body only, never the
            inherited-inclusive reflection method list); a method's added is its
            @since or its class's added, its removed its @removed capped by the
            class's removal. The reflection caches carry no isDeprecated flag for
            constants or classes.
  No NOTICE file is distributed with phpstorm-stubs at the pinned commit.

PHP-CS-Fixer  (compiler_optimized flag)
  Licence: MIT
  Copyright (c) Fabien Potencier <fabien@symfony.com> and
                Dariusz Ruminski <dariusz.ruminski@gmail.com>
  Source:  https://github.com/PHP-CS-Fixer/PHP-CS-Fixer
  Pinned:  tag v3.95.11
  Used for: the @compiler_optimized function set from
            src/Fixer/FunctionNotation/NativeFunctionInvocationFixer.php,
            embedded as a constant in tools/regenerate and overlaid as the
            compiler_optimized flag.
  MIT permission notice (carried per the MIT licence):

    Permission is hereby granted, free of charge, to any person obtaining a
    copy of this software and associated documentation files (the "Software"),
    to deal in the Software without restriction, including without limitation
    the rights to use, copy, modify, merge, publish, distribute, sublicense,
    and/or sell copies of the Software, and to permit persons to whom the
    Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in
    all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
    DEALINGS IN THE SOFTWARE.

PHPCompatibility  (verification only)
  Licence: LGPL-3.0
  Source:  https://github.com/PHPCompatibility/PHPCompatibility
  Pinned:  develop commit d9a91bdf66d39fbd5c22272a592c8b63a1d0954f
  Used for: cross-checking the cache-derived versions only. For functions,
            NewFunctionsSniff verifies added; RemovedFunctionsSniff verifies
            removed (its true version) and deprecated (its false version) and
            guards membership. For constants, NewConstantsSniff verifies added
            and RemovedConstantsSniff verifies removed and guards membership. For
            classes, NewClassesSniff verifies added and RemovedClassesSniff
            verifies removed and guards membership. PHPCompatibility ships no
            constant-deprecation, class-deprecation or method sniff, so constant
            and class deprecation and all method availability are not cross-checked
            here (methods rest on the single authoritative stub @since/@removed).
            Only the version numbers (facts) are read; no PHPCompatibility array,
            code, or curated alternative text is copied into this crate or its
            generated tables. It never contributes shipped data, only a pass/fail
            verification.

The PHP manual  (https://www.php.net/manual)  (editorial authority)
  Used for: the authority behind every reviewed, hand-maintained value in the
            generator. Three kinds:
            1. Reviewed version overrides (the *_ADDED_OVERRIDES and
               *_REMOVED_OVERRIDES lists and the artefact-extension allowlists):
               PHP-manual facts that resolve a cache/cross-check disagreement,
               for example odbc connection-string functions added 8.2 or the DOM
               Level 3 classes removed 8.0. Each must agree with PHPCompatibility
               where PHPCompatibility has an opinion; an override never overrules
               it. These are version facts (not copyrightable), cross-checked, and
               fact-locked in tests.
            2. Curated deprecation versions for constants, classes and methods.
               The reflection caches carry no usable deprecation flag for
               constants or classes (and methods carry a flag with no version),
               and PHPCompatibility ships no constant-, class- or method-
               deprecation sniff, so these have neither a machine source nor a
               second structured source: they are reviewed PHP-manual facts,
               fact-locked, not cross-checked.
            3. The is_core_extension default-build set: an editorial assumption
               about which extensions a default PHP build ships, not a runtime
               guarantee.

Deprecation replacements  (editorial)
  Source:  the PHP manual deprecation pages
           (https://www.php.net/manual) and the phpstorm-stubs @deprecated
           docblock messages (Apache-2.0, the source above).
  Used for: the replacement field for every kind, a terse canonical label for a
            deprecation's single successor (a function, a method, or a short
            construct hint), present only where one clear successor exists.
            Hand-curated as our own short labels, not copied prose; `Some` only
            where the symbol is deprecated; not cross-checked. PHPCompatibility's
            curated alternative text is never used.

-------------------------------------------------------------------------------
Regeneration (maintainers only; never needed by consumers):

  cargo run -p regenerate -- <phpstorm-stubs checkout> <phpcompatibility checkout>

The generator verifies the phpstorm-stubs checkout is at the pinned commit,
fails on any unresolved disagreement with PHPCompatibility, and rewrites the
tables under src/generated/. See tools/regenerate/README.md for the full pipeline.
