1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00

fix #40915 (addcslashes unexpected behavior with binary input)

This commit is contained in:
Antony Dovgal
2007-03-26 10:23:50 +00:00
parent 93a1275f8a
commit c9b1ff5080
2 changed files with 2 additions and 2 deletions

View File

@@ -4555,8 +4555,8 @@ PHP_FUNCTION(addcslashes)
RETURN_STRINGL(str, str_len, 1);
}
RETURN_STRING(php_addcslashes(str, str_len, &Z_STRLEN_P(return_value), 0,
what, what_len TSRMLS_CC), 0);
Z_STRVAL_P(return_value) = php_addcslashes(str, str_len, &Z_STRLEN_P(return_value), 0, what, what_len TSRMLS_CC);
RETURN_STRINGL(Z_STRVAL_P(return_value), Z_STRLEN_P(return_value), 0);
}
/* }}} */

Binary file not shown.