From 7aa7627172c11979ec45c2db85f99182812ee59d Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 30 Jun 2015 13:59:27 +0300 Subject: Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes). --- sapi/phpdbg/phpdbg_out.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sapi/phpdbg/phpdbg_out.c') diff --git a/sapi/phpdbg/phpdbg_out.c b/sapi/phpdbg/phpdbg_out.c index 3fa421ad33..cd9a4acaa0 100644 --- a/sapi/phpdbg/phpdbg_out.c +++ b/sapi/phpdbg/phpdbg_out.c @@ -1032,8 +1032,8 @@ static int phpdbg_process_print(int fd, int type, const char *tag, const char *m PHPDBG_G(in_script_xml) = type; } encoded = php_escape_html_entities((unsigned char *) msg, msglen, 0, ENT_NOQUOTES, PG(internal_encoding) && PG(internal_encoding)[0] ? PG(internal_encoding) : (SG(default_charset) ? SG(default_charset) : "UTF-8")); - buflen = encoded->len; - memcpy(buf = emalloc(buflen + 1), encoded->val, buflen); + buflen = ZSTR_LEN(encoded); + memcpy(buf = emalloc(buflen + 1), ZSTR_VAL(encoded), buflen); phpdbg_encode_ctrl_chars(&buf, &buflen); phpdbg_mixed_write(fd, buf, buflen); efree(buf); -- cgit v1.2.1