]> granicus.if.org Git - php/commit
Fix misleading error message in `ZendAccelerator.c`.
authorAdam Saponara <as@php.net>
Tue, 26 Nov 2019 22:21:16 +0000 (17:21 -0500)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 2 Dec 2019 09:06:32 +0000 (10:06 +0100)
commitb35acd30f2d15092717c222a4fcff838bfcb7b41
tree34f13a4dcf67fdd9c22dd13344959461700235b4
parent2a742546bfb40fe241c5e5b972aeaa61a77fb634
Fix misleading error message in `ZendAccelerator.c`.

Currently this error emits something like...

`Error Cannot kill process 12345: Success!`

...due to calling `time` before `strerror` which clears `errno`. This
patch adds an error log immediately after both `kill` calls which gives
us better indication of what exactly failed.
ext/opcache/ZendAccelerator.c