Skip to content

PHP

Unit top-level functions கொண்ட ஒரு folder
Bridge ext-ffi மேல JSON dispatcher
Record மற்றும் replay செய்றது FFI extension (ext-ffi) கொண்ட PHP 8+
இப்போதைக்கு units (bridge, record, diff, gate) மற்றும் முழு apps: CLIs மற்றும் servers (php -S)-க்காக app record, app replay மற்றும் front door
நிலை Verified (PEAR XML_Util 1.4.5, 1,838/1,838) · top-level functions (ext-ffi); shadow மற்றும் --batch இல்ல

analyze ஒரு PHP app-ஐ plan பண்ணும்: Composer packages மற்றும் PSR-4 autoloading, loose comparison மற்றும் integer overflow ஆகி floats ஆகுறது போன்ற risks, மற்றும் crates-க்கு map பண்ணப்பட்ட Composer packages. Types PHP types மற்றும் phpdoc-ல இருந்து வரும்.

Top-level PHP units ext-ffi வழியா bridge மூலம் port ஆகும் (scalar, string, list மற்றும் assoc-array parameters உட்பட); static methods, classes, objects, references, variadics, callables மற்றும் generators காரணத்தோட PHP-லயே இருக்கும், மேலும் shadow மற்றும் --batch கிடையாது. ஒரு PHP CLI அல்லது server-ஐ record பண்ணி, replay பண்ணி, Rust front door-க்கு பின்னாடி வைக்கலாம்:

sh
rust-anything bridge . <unit>
rust-anything app record . -- php cli.php
rust-anything app record . --http -- php -S 127.0.0.1:{port} router.php
rust-anything app replay .
rust-anything app front-door .

CI PHP-ஐ install பண்ணாது, அதனால PHP tests அது உள்ள machine-ல மட்டும் தான் run ஆகும்.

GitHub-ல இந்தப் பக்கத்தை edit பண்ணுங்க →