mirror of
https://github.com/php/php-src.git
synced 2026-04-23 07:58:20 +02:00
2b383848a7
This API can't handle references, yet everyone keeps forgetting that it can't and that you should DEREF upfront. Fix every type of this issue once and for all by moving the reference handling to this Zend API. Closes GH-18761.
13 lines
226 B
PHP
13 lines
226 B
PHP
--TEST--
|
|
mb_encode_numericentity() reference handling
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--FILE--
|
|
<?php
|
|
$n = 0;
|
|
$convmap = [&$n, 0x1FFFFF, 0, 0x10FFFF];
|
|
var_dump(mb_encode_numericentity("", $convmap, "utf8"));
|
|
?>
|
|
--EXPECT--
|
|
string(0) ""
|