cvs: ZendEngine2 / zend_highlight.c

From: Date: Tue, 10 Aug 2004 22:16:46 +0000
Subject: cvs: ZendEngine2 / zend_highlight.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2855@lists.php.net to get a copy of this message
iliaa Tue Aug 10 18:16:46 2004 EDT Modified files: /ZendEngine2 zend_highlight.c Log: Fixed bug #29606 (php_strip_whitespace() prints to stdout rather then returning the value). http://cvs.php.net/diff.php/ZendEngine2/zend_highlight.c?r1=1.43&r2=1.44&ty=u Index: ZendEngine2/zend_highlight.c diff -u ZendEngine2/zend_highlight.c:1.43 ZendEngine2/zend_highlight.c:1.44 --- ZendEngine2/zend_highlight.c:1.43 Wed Feb 25 09:14:47 2004 +++ ZendEngine2/zend_highlight.c Tue Aug 10 18:16:46 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_highlight.c,v 1.43 2004/02/25 14:14:47 derick Exp $ */ +/* $Id: zend_highlight.c,v 1.44 2004/08/10 22:16:46 iliaa Exp $ */ #include "zend.h" #include "zend_language_parser.h" @@ -203,7 +203,7 @@ switch (token_type) { case T_WHITESPACE: if (!prev_space) { - putchar(' '); + zend_write(" ", sizeof(" ") - 1); prev_space = 1; } /* lack of break; is intentional */ @@ -215,9 +215,9 @@ case T_END_HEREDOC: { char *ptr = LANG_SCNG(yy_text); - fwrite(ptr, LANG_SCNG(yy_leng) - 1, 1, stdout); + zend_write(ptr, LANG_SCNG(yy_leng) - 1); /* The ensure that we only write one ; and that it followed by the required newline */ - putchar('\n'); + zend_write("\n", sizeof("\n") - 1); if (ptr[LANG_SCNG(yy_leng) - 1] == ';') { lex_scan(&token TSRMLS_CC); } @@ -226,7 +226,7 @@ break; default: - fwrite(LANG_SCNG(yy_text), LANG_SCNG(yy_leng), 1, stdout); + zend_write(LANG_SCNG(yy_text), LANG_SCNG(yy_leng)); break; }

« previous php.zend-engine.cvs (#2855) next »