mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user