Skip to content

Commit 4e4d8a4

Browse files
committed
Deprecate hebrevc()
1 parent e9e2fa4 commit 4e4d8a4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ext/standard/basic_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2784,7 +2784,7 @@ static const zend_function_entry basic_functions[] = { /* {{{ */
27842784
PHP_FE(strripos, arginfo_strripos)
27852785
PHP_FE(strrev, arginfo_strrev)
27862786
PHP_FE(hebrev, arginfo_hebrev)
2787-
PHP_FE(hebrevc, arginfo_hebrevc)
2787+
PHP_DEP_FE(hebrevc, arginfo_hebrevc)
27882788
PHP_FE(nl2br, arginfo_nl2br)
27892789
PHP_FE(basename, arginfo_basename)
27902790
PHP_FE(dirname, arginfo_dirname)

ext/standard/tests/strings/hebrevc_basic.phpt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,18 @@ var_dump(hebrevc($hebrew_text, 15));
1717

1818
?>
1919
===DONE===
20-
--EXPECT--
20+
--EXPECTF--
2121
*** Testing hebrevc() : basic functionality ***
22+
23+
Deprecated: Function hebrevc() is deprecated in %s on line %d
2224
string(239) ".The hebrevc function converts logical Hebrew text to visual text<br />
2325
) This function is similar to hebrev() with the difference that it converts newlines<br />
2426
<to '<br (<br />
2527
.'<br />
2628
.The function tries to avoid breaking words<br />
2729
"
30+
31+
Deprecated: Function hebrevc() is deprecated in %s on line %d
2832
string(317) "to visual text<br />
2933
Hebrew text<br />
3034
logical<br />

0 commit comments

Comments
 (0)