diff options
| author | Andrei Zmievski <andrei@php.net> | 2005-08-19 17:53:03 +0000 |
|---|---|---|
| committer | Andrei Zmievski <andrei@php.net> | 2005-08-19 17:53:03 +0000 |
| commit | 676a3cf46e6a7c144f9eb28dd7dc5bec4deee38b (patch) | |
| tree | fdc794b38df52e54ea29c3c3c1fe2356437e6a18 | |
| parent | 1b2e69a8086341fbe6c408ddaa627c0d4658e237 (diff) | |
| download | php-git-676a3cf46e6a7c144f9eb28dd7dc5bec4deee38b.tar.gz | |
Use RETVAL_ASCII_STRINGL() here.
| -rw-r--r-- | ext/standard/string.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 2e6dcf4861..1b8d6bfe49 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -200,12 +200,9 @@ PHP_FUNCTION(bin2hex) RETURN_FALSE; } + RETVAL_ASCII_STRINGL(result, newlen, 0); if (UG(unicode)) { - UChar *u_temp = zend_ascii_to_unicode(result, newlen+1 ZEND_FILE_LINE_CC); efree(result); - RETVAL_UNICODEL(u_temp, newlen, 0); - } else { - RETURN_STRINGL(result, newlen, 0); } } /* }}} */ |
