File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 3
3
?? ??? 2017 PHP 7.0.25
4
4
5
5
- Core:
6
+ . Fixed bug #75241 (Null pointer dereference in zend_mm_alloc_small()).
7
+ (Laruence)
6
8
. Fixed bug #75236 (infinite loop when printing an error-message). (Andrea)
7
9
. Fixed bug #75252 (Incorrect token formatting on two parse errors in one
8
10
request). (Nikita)
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #75241 (Null pointer dereference in zend_mm_alloc_small())
3
+ --FILE--
4
+ <?php
5
+ function eh (){}
6
+
7
+ set_error_handler ('eh ' );
8
+
9
+ $ d ->d = &$ d + $ d ->d /=0 ;
10
+ var_dump ($ d );
11
+ ?>
12
+ --EXPECT--
13
+ float(INF)
Original file line number Diff line number Diff line change @@ -221,8 +221,10 @@ ZEND_API void ZEND_FASTCALL convert_scalar_to_number(zval *op) /* {{{ */
221
221
if (Z_TYPE(holder) == IS_LONG) { \
222
222
if (op == result) { \
223
223
zval_ptr_dtor(op); \
224
+ ZVAL_LONG(op, Z_LVAL(holder)); \
225
+ } else { \
226
+ (op) = &(holder); \
224
227
} \
225
- (op) = &(holder); \
226
228
} \
227
229
break; \
228
230
} \
You can’t perform that action at this time.
0 commit comments