Skip to content

Commit 7ccba66

Browse files
author
Andrei Zmievski
committed
Use 'S' for escaped binary strings and 's' for non-escaped.
1 parent c27c966 commit 7ccba66

File tree

3 files changed

+398
-313
lines changed

3 files changed

+398
-313
lines changed

‎ext/standard/var.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ static inline void php_var_serialize_string(smart_str *buf, char *str, int len)
718718
unsigned char c;
719719
int i;
720720

721-
smart_str_appendl(buf, "s:", 2);
721+
smart_str_appendl(buf, "S:", 2);
722722
smart_str_append_long(buf, len);
723723
smart_str_appendl(buf, ":\"", 2);
724724

0 commit comments

Comments
 (0)