Bound recording loading, terminal allocation, markers and upload JSON complexity

This commit is contained in:
2026-10-15 10:13:55 +08:00
parent ffff9704e5
commit 92de7f86f4
24 changed files with 1831 additions and 115 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
/** Test-only decoder instrumentation, loaded before production calls. */
namespace LamGC\Asciiplayer {
// Instrument the real decoder without adding a production test hook. A gate
// failure must not build the rejected whole-document object graph.
function json_decode( $json, $associative = null, $depth = 512, $flags = 0 ) {
$GLOBALS['cast_decode_lengths'][] = strlen( $json );
return \json_decode( $json, $associative, $depth, $flags );
}
}