File tree 3 files changed +17
-1
lines changed
ext/standard/tests/strings
3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 3
3
?? ??? 201?, PHP 5.5.0 Alpha 3
4
4
5
5
- General improvements:
6
+ . Fixed bug #63874 (Segfault if php_strip_whitespace has heredoc). (Pierrick)
6
7
. Fixed bug #63822 (Crash when using closures with ArrayAccess).
7
8
(Nikita Popov)
8
9
. Add Generator::throw() method. (Nikita Popov)
Original file line number Diff line number Diff line change @@ -186,7 +186,6 @@ ZEND_API void zend_strip(TSRMLS_D)
186
186
187
187
case T_END_HEREDOC :
188
188
zend_write ((char * )LANG_SCNG (yy_text ), LANG_SCNG (yy_leng ));
189
- efree (token .value .str .val );
190
189
/* read the following character, either newline or ; */
191
190
if (lex_scan (& token TSRMLS_CC ) != T_WHITESPACE ) {
192
191
zend_write ((char * )LANG_SCNG (yy_text ), LANG_SCNG (yy_leng ));
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #63874 (Segfault if php_strip_whitespace has heredoc)
3
+ --FILE--
4
+ <?php
5
+ echo php_strip_whitespace (__FILE__ );
6
+
7
+ return <<<A
8
+ a
9
+ A ;
10
+ ?>
11
+ --EXPECT--
12
+ <?php
13
+ echo php_strip_whitespace (__FILE__ ); return <<<A
14
+ a
15
+ A ;
16
+ ?>
You can’t perform that action at this time.
0 commit comments