From: Ilia Alshanetsky Date: Wed, 13 Dec 2006 15:39:12 +0000 (+0000) Subject: Removed deadcode found by Ron Korving X-Git-Tag: php-5.2.1RC1~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=563221783a9879813202fc3d43a69deb8bc2037d;p=php Removed deadcode found by Ron Korving --- diff --git a/ext/standard/string.c b/ext/standard/string.c index d7f4b62324..4221be91f4 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2995,10 +2995,6 @@ PHPAPI char *php_addcslashes(char *str, int length, int *new_length, int should_ wlength = strlen(what); } - if (!length) { - length = strlen(str); - } - php_charmask(what, wlength, flags TSRMLS_CC); for (source = str, end = source + length, target = new_str; (c = *source) || (source < end); source++) {