com php-src: Fix eventual stack overflow after clean cmd: phpdbg.c

From: Date: Sat, 25 Oct 2014 13:28:41 +0000
Subject: com php-src: Fix eventual stack overflow after clean cmd: phpdbg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82664@lists.php.net to get a copy of this message
Commit: e995ad1131781db91fb58002e06d9c638122df3c Author: Bob Weinand <bobwei9@hotmail.com> Sat, 25 Oct 2014 15:28:41 +0200 Parents: b79e9044f90c4335c2a16f65bb31218a22ab282c Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e995ad1131781db91fb58002e06d9c638122df3c Log: Fix eventual stack overflow after clean cmd Changed paths: M phpdbg.c Diff: diff --git a/phpdbg.c b/phpdbg.c index f09dc4e..91133b3 100644 --- a/phpdbg.c +++ b/phpdbg.c @@ -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));

« previous php.cvs (#82664) next »