Skip to content

Commit b63c625

Browse files
committed
Remove hebrevc() function
1 parent d2868ed commit b63c625

File tree

7 files changed

+4
-84
lines changed

7 files changed

+4
-84
lines changed

ext/opcache/Optimizer/zend_func_info.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ static const func_info_t func_infos[] = {
151151
FN("strtolower", MAY_BE_STRING),
152152
F1("strrev", MAY_BE_STRING),
153153
F1("hebrev", MAY_BE_STRING),
154-
F1("hebrevc", MAY_BE_STRING),
155154
FN("nl2br", MAY_BE_STRING),
156155
F1("basename", MAY_BE_STRING),
157156
F1("dirname", MAY_BE_STRING),

ext/standard/basic_functions.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,6 @@ static const zend_function_entry basic_functions[] = { /* {{{ */
914914
PHP_FE(strripos, arginfo_strripos)
915915
PHP_FE(strrev, arginfo_strrev)
916916
PHP_FE(hebrev, arginfo_hebrev)
917-
PHP_DEP_FE(hebrevc, arginfo_hebrevc)
918917
PHP_FE(nl2br, arginfo_nl2br)
919918
PHP_FE(basename, arginfo_basename)
920919
PHP_FE(dirname, arginfo_dirname)

ext/standard/basic_functions.stub.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,6 @@ function str_ireplace(
634634

635635
function hebrev(string $str, int $max_chars_per_line = 0): string {}
636636

637-
function hebrevc(string $str, int $max_chars_per_line = 0): string {}
638-
639637
function nl2br(string $str, bool $is_xhtml = true): string {}
640638

641639
/** @param mixed $allowable_tags */

ext/standard/basic_functions_arginfo.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,8 +981,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_hebrev, 0, 1, IS_STRING, 0)
981981
ZEND_ARG_TYPE_INFO(0, max_chars_per_line, IS_LONG, 0)
982982
ZEND_END_ARG_INFO()
983983

984-
#define arginfo_hebrevc arginfo_hebrev
985-
986984
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_nl2br, 0, 1, IS_STRING, 0)
987985
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
988986
ZEND_ARG_TYPE_INFO(0, is_xhtml, _IS_BOOL, 0)

ext/standard/php_string.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ PHP_FUNCTION(ucwords);
5252
PHP_FUNCTION(strtr);
5353
PHP_FUNCTION(strrev);
5454
PHP_FUNCTION(hebrev);
55-
PHP_FUNCTION(hebrevc);
5655
PHP_FUNCTION(user_sprintf);
5756
PHP_FUNCTION(user_printf);
5857
PHP_FUNCTION(vprintf);

ext/standard/string.c

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4379,12 +4379,9 @@ PHP_FUNCTION(str_ireplace)
43794379
}
43804380
/* }}} */
43814381

4382-
/* {{{ php_hebrev
4383-
*
4384-
* Converts Logical Hebrew text (Hebrew Windows style) to Visual text
4385-
* Cheers/complaints/flames - Zeev Suraski <[email protected]>
4386-
*/
4387-
static void php_hebrev(INTERNAL_FUNCTION_PARAMETERS, int convert_newlines)
4382+
/* {{{ proto string hebrev(string str [, int max_chars_per_line])
4383+
Converts logical Hebrew text to visual text */
4384+
PHP_FUNCTION(hebrev)
43884385
{
43894386
char *str, *heb_str, *target;
43904387
const char *tmp;
@@ -4544,28 +4541,7 @@ static void php_hebrev(INTERNAL_FUNCTION_PARAMETERS, int convert_newlines)
45444541
}
45454542
efree(heb_str);
45464543

4547-
if (convert_newlines) {
4548-
RETVAL_STR(php_char_to_str_ex(broken_str, '\n', "<br />\n", 7, 1, NULL));
4549-
zend_string_release_ex(broken_str, 0);
4550-
} else {
4551-
RETURN_NEW_STR(broken_str);
4552-
}
4553-
}
4554-
/* }}} */
4555-
4556-
/* {{{ proto string hebrev(string str [, int max_chars_per_line])
4557-
Converts logical Hebrew text to visual text */
4558-
PHP_FUNCTION(hebrev)
4559-
{
4560-
php_hebrev(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
4561-
}
4562-
/* }}} */
4563-
4564-
/* {{{ proto string hebrevc(string str [, int max_chars_per_line])
4565-
Converts logical Hebrew text to visual text with newline conversion */
4566-
PHP_FUNCTION(hebrevc)
4567-
{
4568-
php_hebrev(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
4544+
RETURN_NEW_STR(broken_str);
45694545
}
45704546
/* }}} */
45714547

ext/standard/tests/strings/hebrevc_basic.phpt

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)