summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-08-08 16:58:06 +0000
committerAntony Dovgal <tony2001@php.net>2006-08-08 16:58:06 +0000
commitf5715ee86f241510cf51c9ed17aa456eb19d1ac2 (patch)
treea2fa164c7e36976b00fc208b48fc068f22c4aacb /Zend/zend_exceptions.c
parente9aaf0b16b85ec350fe97acb8afeaa06328c7365 (diff)
downloadphp-git-f5715ee86f241510cf51c9ed17aa456eb19d1ac2.tar.gz
implement zend_unicode_to_string() and zend_string_to_unicode()
part #1 (of 2)
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r--Zend/zend_exceptions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 502ba6047f..7d9d1739b6 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -145,7 +145,7 @@ ZEND_METHOD(exception, __construct)
UChar *u_str;
int u_len;
- zend_convert_to_unicode(ZEND_U_CONVERTER(UG(runtime_encoding_conv)), &u_str, &u_len, message, message_len, &status);
+ zend_string_to_unicode_ex(ZEND_U_CONVERTER(UG(runtime_encoding_conv)), &u_str, &u_len, message, message_len, &status);
zend_update_property_unicodel(default_exception_ce, object, "message", sizeof("message")-1, u_str, u_len TSRMLS_CC);
efree(u_str);
} else {
@@ -184,7 +184,7 @@ ZEND_METHOD(error_exception, __construct)
UChar *u_str;
int u_len;
- zend_convert_to_unicode(ZEND_U_CONVERTER(UG(runtime_encoding_conv)), &u_str, &u_len, message, message_len, &status);
+ zend_string_to_unicode_ex(ZEND_U_CONVERTER(UG(runtime_encoding_conv)), &u_str, &u_len, message, message_len, &status);
zend_update_property_unicodel(default_exception_ce, object, "message", sizeof("message")-1, u_str, u_len TSRMLS_CC);
efree(u_str);
} else {