mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 08:58:25 +00:00
Added in code to parse the submitted command for tokens
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4614 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
32887a68ec
commit
c07021b2bc
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@ class Console extends ConsoleScript {
|
|||
}
|
||||
break;
|
||||
default:
|
||||
print_r(eval('return ' . $command));
|
||||
$command = "<?php " . $command . "?>";
|
||||
$tokens = token_get_all($command);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue