From bf16e86999873fd16805fe6782a65e3e79acb0d4 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 11 Jul 2007 15:52:44 +0000 Subject: [PATCH] Unicode support --- ext/standard/basic_functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index cbd989ea13..cc01619e7e 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -5030,8 +5030,8 @@ PHP_FUNCTION(error_get_last) if (PG(last_error_message)) { array_init(return_value); add_ascii_assoc_long_ex(return_value, "type", sizeof("type"), PG(last_error_type)); - add_ascii_assoc_string_ex(return_value, "message", sizeof("message"), PG(last_error_message), 1); - add_ascii_assoc_string_ex(return_value, "file", sizeof("file"), PG(last_error_file)?PG(last_error_file):"-", 1 ); + add_ascii_assoc_rt_string_ex(return_value, "message", sizeof("message"), PG(last_error_message), 1); + add_ascii_assoc_rt_string_ex(return_value, "file", sizeof("file"), PG(last_error_file)?PG(last_error_file):"-", 1 ); add_ascii_assoc_long_ex(return_value, "line", sizeof("line"), PG(last_error_lineno)); } } -- 2.40.0