]> 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 43da12d6c307bdd0beb3f8169f0ad4d65aa1ce43..4867c91b1a75acb9609d7a0bc955da172818d121 100644 (file)
@@ -677,10 +677,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;