<?php
$root=getenv('GP_ROOT');$runtime=__DIR__;require $root.'/env.php';require $root.'/external_stubs.php';putenv('PHP_APP_DEBUG=false');
define('APP_PATH',$runtime.'/source/application/');define('RUNTIME_PATH',$runtime.'/runtime/');define('EXTEND_PATH',$root.'/extend/');define('VENDOR_PATH',$root.'/vendor/');require $root.'/thinkphp/base.php';\think\App::initCommon();
$reflection=new ReflectionClass('think\\Db');$property=$reflection->getProperty('instance');$property->setAccessible(true);$connections=$property->getValue();
if(count($connections)!==0)throw new RuntimeException('Init unexpectedly opened Db connection');
echo json_encode(['App_initialized'=>true,'DB_connections'=>0,'PDO'=>0,'SQL'=>0,'HTTP'=>0,'private_debug'=>\think\App::$debug,'source_config_poc_inherited'=>true]),"\n";
