1.0.0
#2597
Replies: 1 comment
-
|
Wou! Congratulations 🎊 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Added
.zept(Zephir Test) format and azephir test <path>command: a single file bundles the Zephir implementation (--FILE--, repeatable), the PHP usage (--USAGE--) and the expected output (--EXPECT--/--EXPECTF--). Each case is compiled into a throwaway extension (pure-PHP parser forced) and its output checked, so a.zeptdoubles as an end-to-end parser test. A dependency-free runner (Zephir\Zept\) backs both the CLI and thetests/Zephir/BlackBox/ZeptSuiteTest.phpbridge #1098ext-zephir_parserPECL C extension. The parser produces the identical intermediate representation (IR) the compiler already consumes verified byte-for-byte (json_encodeequality) against the C extension over the fullstub/corpus, the extractedphp-zephir-parsertest snippets, and the entire Phalcon framework (930/930.zepfiles). Building the bundled stub extension with the PHP parser generates a byte-identical C tree and passes the Extension test suite identically to the C-extension build #2495RedisClusterprototype (inprototypes/redis.php), so Zephir code can resolve its methods and constants when ext-redis is not installedChanged
ext-zephir_parserC extension is now optional: it is used as a fast path when loaded, otherwise the built-in PHP parser handles parsing. Set theZEPHIR_FORCE_PHP_PARSERenvironment variable to force the PHP backend even when the extension is present (useful for differential testing and deterministic builds).Zephir\Parser\Manager::isAvailable()is now alwaystrue#2495Deprecated
!(strict type) modifier on argument types (e.g.int! a) now emits a deprecation notice duringzephir generate. A future parser will no longer recognize it. Suppress with-Wdeprecated-strict-type#2274This discussion was created from the release 1.0.0.
Beta Was this translation helpful? Give feedback.
All reactions