Remove incorrect uses of zend_atoi()

zend_atoi() parses integers with size suffixes (like "128M").
These just want to use a plain number, so use ZEND_ATOL instead.
This commit is contained in:
Nikita Popov 2021-07-12 16:56:00 +02:00
parent efbb2198d4
commit 989205e95c
4 changed files with 6 additions and 7 deletions

View file

@ -1196,7 +1196,7 @@ int main(int argc, char *argv[])
#if defined(PHP_WIN32) && defined(_DEBUG)
{
char *tmp = getenv("PHP_WIN32_DEBUG_HEAP");
if (tmp && zend_atoi(tmp, 0)) {
if (tmp && ZEND_ATOL(tmp, 0)) {
int tmp_flag;
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);