mirror of
https://github.com/apache/thrift.git
synced 2026-10-29 00:46:21 +08:00
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>
23 lines
978 B
PHP
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();
|