mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 02:13:17 +08:00
Fixes #4823 and #6005: yii message accuracy and error handling were improved by using PHP tokenizer instead of regular expressions. Removed eval() as well.
This commit is contained in:
@ -86,7 +86,7 @@ abstract class BaseMessageControllerTest extends TestCase
|
||||
protected function createSourceFile($content)
|
||||
{
|
||||
$fileName = $this->sourcePath . DIRECTORY_SEPARATOR . md5(uniqid()) . '.php';
|
||||
file_put_contents($fileName, $content);
|
||||
file_put_contents($fileName, "<?php\n" . $content);
|
||||
return $fileName;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user