New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Important bug in yii\log\Target::getTime() #16861

Closed
hightman opened this Issue Nov 4, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@hightman

hightman commented Nov 4, 2018

$parts = explode('.', StringHelper::floatToString($timestamp));

In extremely special circumstances, microtime(true) returns an integer value without a decimal point. In this case, it will cause a PHP exception: undefined index '1', then the log target will be disabled.

@hightman hightman closed this Nov 4, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment