diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2014-10-25 15:28:41 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2014-10-25 15:28:41 +0200 |
commit | e995ad1131781db91fb58002e06d9c638122df3c (patch) | |
tree | c986a37843fd1502c9d3cae9e6d863dfbe3d6f52 /phpdbg.c | |
parent | b79e9044f90c4335c2a16f65bb31218a22ab282c (diff) | |
download | php-git-e995ad1131781db91fb58002e06d9c638122df3c.tar.gz |
Fix eventual stack overflow after clean cmd
Diffstat (limited to 'phpdbg.c')
-rw-r--r-- | phpdbg.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1532,6 +1532,11 @@ phpdbg_out: efree(SG(request_info).argv); } +#ifndef _WIN32 + /* reset it... else we risk a stack overflow upon next run (when clean'ing) */ + php_stream_stdio_ops.write = PHPDBG_G(php_stdiop_write); +#endif + #ifndef ZTS /* force cleanup of auto and core globals */ zend_hash_clean(CG(auto_globals)); |