declare(ticks=1) . /, , .., , , , , .
PHP Xdebug. :
, , PHP, , (, /).
PHP Userland ( tick)
, declare(ticks=1); ( # 71448), " " ( , ), .
, , , - proxy. PoC (Gist on Github) , , . test.php , , other.php declare(ticks=1); , include, :
...
tick_handler() called
#0 tick_handler(1) called at [/home/hakre/stream-wrapper-default-files/test.php:18]
#1 tick_handler() called at [/home/hakre/stream-wrapper-default-files/other.php:2]
#2 include(/home/hakre/stream-wrapper-default-files/other.php) called at [/home/hakre/stream-wrapper-default-files/test.php:24]
...
tick (: test.php):
<?php
declare(ticks=1);
require __DIR__ . '/streamwrapper.php';
FileStreamWrapper::init();
register_tick_function('tick_handler', true);
function tick_handler()
{
echo "tick_handler() called\n";
debug_print_backtrace();
}
register_tick_function('tick_handler');
include "other.php";
include "another.php";
gist , include, PHP / . .., .., (), , . / - , ( , ...). PoC , .
() , PoC .