Files
Jens GeyerandClaude Opus 5 fd57bb32c0 Count the recursion depth on the inlined read path
Client: php

The struct readers of code generated with "--gen php:inlined" and
TProtocol::skipBinary() now count the nesting depth on the transport they
read from, with the same limit, DEFAULT_RECURSION_DEPTH, and the same
TProtocolException (DEPTH_LIMIT) as the other generated modes and skip().

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-23 00:54:06 +02:00

23 lines
978 B
PHP

<?php
declare(strict_types=1);
use Thrift\ClassLoader\ThriftClassLoader;
require_once __DIR__ . '/../../../vendor/autoload.php';
$loader = new ThriftClassLoader();
$loader->registerNamespace('Basic', __DIR__ . '/Resources/packages/php');
$loader->registerNamespace('BasicInline', __DIR__ . '/Resources/packages/phpi');
$loader->registerNamespace('Validate', __DIR__ . '/Resources/packages/phpv');
$loader->registerNamespace('ValidateOop', __DIR__ . '/Resources/packages/phpvo');
$loader->registerNamespace('Json', __DIR__ . '/Resources/packages/phpjs');
$loader->registerNamespace('PhpRec', __DIR__ . '/Resources/packages/phprec');
$loader->registerNamespace('PhpRecOop', __DIR__ . '/Resources/packages/phprecoop');
$loader->registerNamespace('PhpRecInline', __DIR__ . '/Resources/packages/phpreci');
#do not load this namespace here, it will be loaded in ClassLoaderTest
//$loader->registerNamespace('Server', __DIR__ . '/Resources/packages/phpcm');
$loader->register();