Skip to content

Commit be5fd30

Browse files
committed
Fix Windows debug builds
`ZEND_ATOL` doesn't accept a size argument.
1 parent 1f9b044 commit be5fd30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/cli/php_cli.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ int main(int argc, char *argv[])
11971197
#if defined(PHP_WIN32) && defined(_DEBUG)
11981198
{
11991199
char *tmp = getenv("PHP_WIN32_DEBUG_HEAP");
1200-
if (tmp && ZEND_ATOL(tmp, 0)) {
1200+
if (tmp && ZEND_ATOL(tmp)) {
12011201
int tmp_flag;
12021202
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
12031203
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);

0 commit comments

Comments
 (0)