mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02: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:
parent
efbb2198d4
commit
989205e95c
4 changed files with 6 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue