nyx/tests/dynamic_fixtures/deserialize/php/benign.php
2026-06-05 10:16:30 -05:00

8 lines
289 B
PHP

<?php
// Phase 03 (Track J.1) — PHP deserialize benign fixture.
//
// Passes `allowed_classes => false` so every object becomes a
// `__PHP_Incomplete_Class` instead of materialising the gadget.
function run(string $blob) {
return unserialize($blob, ['allowed_classes' => false]);
}