summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-09-02 20:02:17 +0000
committerPierre Joye <pajoye@php.net>2009-09-02 20:02:17 +0000
commit4417646d720d9e0ca1ddd492cf2b734738b8a78a (patch)
tree5150f68e2cc42d0ea2db9ca7ed291f7342647ee3 /sapi/cli/php_cli.c
parent556dde6a34f64acc5b60d041bc2927e64451c045 (diff)
downloadphp-git-4417646d720d9e0ca1ddd492cf2b734738b8a78a.tar.gz
- be sure to get all crt dbg errors in stderr
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 71e0fd98ac..c4474d4c4e 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -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;