php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/ext/mbstring/tests/ |
| files >> //var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/ext/mbstring/tests/bug26639.phpt |
--TEST--
Bug #26639 (mb_convert_variables() clutters variables beyond the references)
--SKIPIF--
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
--FILE--
<?php
$a = "";
$b = $a;
mb_convert_variables("EUC-JP", "Shift_JIS", $b);
debug_zval_dump($a);
debug_zval_dump($b);
unset($a);
unset($b);
$a = "";
$b = &$a;
mb_convert_variables("EUC-JP", "Shift_JIS", $b);
debug_zval_dump($a);
debug_zval_dump($b);
unset($a);
unset($b);
$a = "";
$b = array($a);
$c = $b;
mb_convert_variables("EUC-JP", "Shift_JIS", $c);
debug_zval_dump($b);
debug_zval_dump($c);
unset($a);
unset($b);
unset($c);
$a = "";
$b = array(&$a);
$c = $b;
mb_convert_variables("EUC-JP", "Shift_JIS", $c);
debug_zval_dump($b);
debug_zval_dump($c);
unset($a);
unset($b);
unset($c);
$a = "";
$b = array($a);
$c = &$b;
mb_convert_variables("EUC-JP", "Shift_JIS", $c);
debug_zval_dump($b);
debug_zval_dump($c);
unset($a);
unset($b);
unset($c);
$a = "";
$b = array(&$a);
$c = &$b;
mb_convert_variables("EUC-JP", "Shift_JIS", $c);
debug_zval_dump($b);
debug_zval_dump($c);
unset($a);
unset($b);
unset($c);
$a = array(array(""));
$b = $a;
$c = $b;
mb_convert_variables("EUC-JP", "Shift_JIS", $c);
debug_zval_dump($b);
debug_zval_dump($c);
unset($a);
unset($b);
unset($c);
?>
--EXPECTF--
string(10) "" refcount(%d)
string(10) "" refcount(%d)
string(10) "" refcount(%d)
string(10) "" refcount(%d)
array(1) refcount(%d){
[0]=>
string(10) "" refcount(%d)
}
array(1) refcount(%d){
[0]=>
string(10) "" refcount(%d)
}
array(1) refcount(%d){
[0]=>
&string(10) "" refcount(%d)
}
array(1) refcount(%d){
[0]=>
string(10) "" refcount(%d)
}
array(1) refcount(%d){
[0]=>
string(10) "" refcount(%d)
}
array(1) refcount(%d){
[0]=>
string(10) "" refcount(%d)
}
array(1) refcount(%d){
[0]=>
string(10) "" refcount(%d)
}
array(1) refcount(%d){
[0]=>
string(10) "" refcount(%d)
}
array(1) refcount(%d){
[0]=>
array(1) refcount(%d){
[0]=>
string(10) "" refcount(%d)
}
}
array(1) refcount(%d){
[0]=>
array(1) refcount(%d){
[0]=>
string(10) "" refcount(%d)
}
}
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`