]> granicus.if.org Git - php/commitdiff
- be sure to get all crt dbg errors in stderr
authorPierre Joye <pajoye@php.net>
Wed, 2 Sep 2009 20:02:17 +0000 (20:02 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 2 Sep 2009 20:02:17 +0000 (20:02 +0000)
sapi/cli/php_cli.c

index 71e0fd98ac023b39bbc978290586985b360d66c8..c4474d4c4e7015a4e41a7d7153a2be186c8cf1e8 100644 (file)
@@ -672,10 +672,12 @@ int main(int argc, char *argv[])
 #if defined(PHP_WIN32) && defined(_DEBUG) && defined(PHP_WIN32_DEBUG_HEAP)
        {
                int tmp_flag;
-               
+               _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
+               _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
                _CrtSetReportMode(_CRT_ERROR, _CRTDBG_MODE_FILE);
                _CrtSetReportFile(_CRT_ERROR, _CRTDBG_FILE_STDERR);
-
+               _CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_FILE);
+               _CrtSetReportFile(_CRT_ASSERT, _CRTDBG_FILE_STDERR);
                tmp_flag = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
                tmp_flag |= _CRTDBG_DELAY_FREE_MEM_DF;
                tmp_flag |= _CRTDBG_LEAK_CHECK_DF;