-.
: disable_functions = "".
, var_dump ($ output) , , php.
, :
$output="just before exec";
var_dump($output);
exec('php -l /path/to/file.php', $output);
var_dump($output);
p.s.
echo exec('php -l /path/to/file.php');
: , exec.
, * nix .
2 > & 1
$to_run = '/path/to/bin/php -l /path/to/file 2>&1';
$output ="" ; //init
var_dump(exec($to_run, $output));
root- , , strace
.
'/path/to/bin/strace -o/path/to/strace.log php -l /path/to/file.php'
UPD: var_dump (exec ('php -l'. FILE. '2 > & 1', $output));// unix