Deprecate hebrevc()

This commit is contained in:
Nikita Popov 2019-07-11 17:06:54 +02:00
parent e9e2fa4ad4
commit 4e4d8a4a6c
2 changed files with 6 additions and 2 deletions

View File

@ -2784,7 +2784,7 @@ static const zend_function_entry basic_functions[] = { /* {{{ */
PHP_FE(strripos, arginfo_strripos)
PHP_FE(strrev, arginfo_strrev)
PHP_FE(hebrev, arginfo_hebrev)
PHP_FE(hebrevc, arginfo_hebrevc)
PHP_DEP_FE(hebrevc, arginfo_hebrevc)
PHP_FE(nl2br, arginfo_nl2br)
PHP_FE(basename, arginfo_basename)
PHP_FE(dirname, arginfo_dirname)

View File

@ -17,14 +17,18 @@ var_dump(hebrevc($hebrew_text, 15));
?>
===DONE===
--EXPECT--
--EXPECTF--
*** Testing hebrevc() : basic functionality ***
Deprecated: Function hebrevc() is deprecated in %s on line %d
string(239) ".The hebrevc function converts logical Hebrew text to visual text<br />
) This function is similar to hebrev() with the difference that it converts newlines<br />
<to '<br (<br />
.'<br />
.The function tries to avoid breaking words<br />
"
Deprecated: Function hebrevc() is deprecated in %s on line %d
string(317) "to visual text<br />
Hebrew text<br />
logical<br />