<?php
require __DIR__.'/oracle.php';$readSource=$source;$readGuard=$guard;$before=$source();$guard($before);require __DIR__.'/init.php';\think\Config::set('database.debug',true);\think\Db::clear();$proof=[];\think\Db::listen(static function($display)use(&$proof):void{$connection=\think\Db::connect();$stmtProperty=new ReflectionProperty(\think\db\Connection::class,'PDOStatement');$stmtProperty->setAccessible(true);$statement=$stmtProperty->getValue($connection);$bindProperty=new ReflectionProperty(\think\db\Connection::class,'bind');$bindProperty->setAccessible(true);ob_start();$statement->debugDumpParams();$dump=ob_get_clean();$proof[]=['legacy_debug_display'=>$display,'actual_PDOStatement_queryString'=>$statement->queryString,'connection_current_bind'=>$bindProperty->getValue($connection),'PDO_debugDumpParams'=>$dump];});$logic=new \app\p\logic\Weight();$result=$logic->show(['a.staff_uuid'=>$fixture['staff']['uuid']],1,10,['a.create_time'=>'desc'],['a.create_time,b.name,a.status,a.energy_value']);$after=$readSource();$readGuard($after);$check($before===$after,'Diagnostic no original source mutation');$save('private-SQL-proof.json',['lane'=>$lane,'diagnostic_new_CLI_Logic_show_count'=>1,'result'=>$result,'source_before'=>$before,'source_after'=>$after,'proof'=>$proof]);echo json_encode(['lane'=>$lane,'CLI_show_calls'=>1,'HTTP'=>0,'DML'=>0,'proof_count'=>count($proof),'query_heads'=>array_map(static function($p){return substr($p['actual_PDOStatement_queryString'],0,6);},$proof),'source_unchanged'=>true]),"\n";
