File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 3
3
?? ??? ????, PHP 7.1.22
4
4
5
5
- Core:
6
+ . Fixed bug #76754 (parent private constant in extends class memory leak).
7
+ (Laruence)
6
8
. Fixed bug #72443 (Generate enabled extension). (petk)
7
9
8
10
- Bz2:
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #76754 (parent private constant in extends class memory leak)
3
+ --INI--
4
+ opcache.enable=0
5
+ opcache.enable_cli=0
6
+ --FILE--
7
+ <?php
8
+
9
+ class FOO
10
+ {
11
+ private const FOO = 'BAR ' ;
12
+ }
13
+
14
+ class BAR extends FOO { }
15
+ ?>
16
+ okey
17
+ --EXPECT--
18
+ okey
Original file line number Diff line number Diff line change @@ -296,8 +296,8 @@ ZEND_API void destroy_zend_class(zval *zv)
296
296
}
297
297
}
298
298
} ZEND_HASH_FOREACH_END ();
299
- zend_hash_destroy (& ce -> constants_table );
300
299
}
300
+ zend_hash_destroy (& ce -> constants_table );
301
301
if (ce -> num_interfaces > 0 && ce -> interfaces ) {
302
302
efree (ce -> interfaces );
303
303
}
You can’t perform that action at this time.
0 commit comments