mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
418da85f15
The HTML decoding filter uses the `opaque` member of mbfl_convert_filter as buffer, but there was no copy constructor defined, what caused double frees when the filter is copied (what happens multiple times in mb_strcut(), for instance).
14 lines
271 B
PHP
14 lines
271 B
PHP
--TEST--
|
|
Bug #71606 (Segmentation fault mb_strcut + mb_list_encodings)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('mbstring')) die('skip ext/mbstring not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
echo mb_strcut('"', 0, 0, 'HTML-ENTITIES');
|
|
echo 'DONE', PHP_EOL;
|
|
?>
|
|
--EXPECT--
|
|
DONE
|