mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

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.
12 lines
226 B
PHP
12 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) ""
|