From: Rasmus Lerdorf Date: Thu, 24 May 2007 21:31:35 +0000 (+0000) Subject: MFB 5_2 X-Git-Tag: RELEASE_1_4~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b1466fdbe0859874d3183bc680d777b697d3f32;p=php MFB 5_2 --- diff --git a/ext/standard/string.c b/ext/standard/string.c index f06c1be578..584b98cf13 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -4735,6 +4735,7 @@ PHPAPI char *php_addcslashes(char *str, int length, int *new_length, int should_ php_charmask((unsigned char*)what, wlength, flags TSRMLS_CC); for (source = str, end = source + length, target = new_str; source < end; source++) { + c = *source; if (flags[(unsigned char)c]) { if ((unsigned char) c < 32 || (unsigned char) c > 126) { *target++ = '\\';