File tree 4 files changed +19
-0
lines changed
ext/standard/tests/strings
4 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ PHP NEWS
25
25
. Fixed bug #71724 (yield from does not count EOLs). (Nikita)
26
26
. Fixed bug #71767 (ReflectionMethod::getDocComment returns the wrong
27
27
comment). (Grigorii Sokolik)
28
+ . Fixed bug #71806 (php_strip_whitespace() fails on some numerical values).
29
+ (Nikita)
28
30
29
31
- Curl:
30
32
. Fixed bug #71694 (Support constant CURLM_ADDED_ALREADY). (mpyw)
Original file line number Diff line number Diff line change @@ -228,6 +228,9 @@ ZEND_API void zend_strip(void)
228
228
prev_space = 0 ;
229
229
ZVAL_UNDEF (& token );
230
230
}
231
+
232
+ /* Discard parse errors thrown during tokenization */
233
+ zend_clear_exception ();
231
234
}
232
235
233
236
/*
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /* comment */
3
+ echo 098 ;
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #71806 (php_strip_whitespace() fails on some numerical values)
3
+ --FILE--
4
+ <?php
5
+
6
+ echo php_strip_whitespace (__DIR__ . '/bug71806.dat ' );
7
+
8
+ ?>
9
+ --EXPECT--
10
+ <?php
11
+ echo 0 98 ;
You can’t perform that action at this time.
0 commit comments