Skip to content

Add php-src PHPT compatibility runner #9

Description

@TrixNEW

What do you want?

Run PHP's official PHP 8.4.16 test suite against zphp.

Tasks
Implement enough PHPT parsing to support:

  • --FILE--
  • --EXPECT--
  • --EXPECTF--
  • --EXPECTREGEX--
  • --INI--
  • --ENV--
  • --SKIPIF--
  • --CLEAN--
    Import tests from the PHP 8.4.16 tag.
    Start with:
  • Zend/tests
  • tests/lang
  • ext/standard/tests
  • ext/json/tests
  • ext/pcre/tests
  • ext/spl/tests
  • ext/reflection/tests
  • ext/date/tests
  • ext/hash/tests
    Produce pass/fail/skip statistics.
    Add a CI regression threshold so compatibility cannot silently decrease.

Done when:
zphp can continuously compare itself against upstream PHP 8.4.16 PHPT behavior.

Why does it belong here?

The custom tests are useful but cannot cover the thousands of edge cases tested by php-src.

Alternatives considered

No response

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions