We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b78347b commit 2505edbCopy full SHA for 2505edb
ext/standard/string.c
@@ -223,7 +223,7 @@ PHP_MSHUTDOWN_FUNCTION(localeconv)
223
/* }}} */
224
#endif
225
226
-/* {{{ proto string|false bin2hex(string data)
+/* {{{ proto string bin2hex(string data)
227
Converts the binary representation of data to hex */
228
PHP_FUNCTION(bin2hex)
229
{
@@ -236,10 +236,6 @@ PHP_FUNCTION(bin2hex)
236
237
result = php_bin2hex((unsigned char *)ZSTR_VAL(data), ZSTR_LEN(data));
238
239
- if (!result) {
240
- RETURN_FALSE;
241
- }
242
-
243
RETURN_STR(result);
244
}
245
0 commit comments