Fix bug: invalid cache name then templates extends via array

This commit is contained in:
bzick
2015-01-06 21:35:42 +03:00
parent 2fbb6b44e4
commit ae592d22c7
8 changed files with 45 additions and 154 deletions

27
tests/tools.php Normal file
View File

@ -0,0 +1,27 @@
<?php
function drop()
{
call_user_func_array("var_dump", func_get_args());
$e = new Exception();
echo "-------\nDump trace: \n" . $e->getTraceAsString() . "\n";
exit();
}
function dump()
{
foreach (func_get_args() as $arg) {
fwrite(STDERR, "DUMP: " . call_user_func("print_r", $arg, true) . "\n");
}
}
function dumpt()
{
foreach (func_get_args() as $arg) {
fwrite(STDERR, "DUMP: " . call_user_func("print_r", $arg, true) . "\n");
}
$e = new Exception();
echo "-------\nDump trace: \n" . $e->getTraceAsString() . "\n";
}