summaryrefslogtreecommitdiff
path: root/Zend/zend_reflection_api.c
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2005-09-13 21:04:07 +0000
committerAndrei Zmievski <andrei@php.net>2005-09-13 21:04:07 +0000
commit387e3530097c102c9d9070c67cd09fddaa4669e7 (patch)
tree260bb38340e5467c1da2d53cd6b4739df0a5ab45 /Zend/zend_reflection_api.c
parent687f8a33d5970722b794638312b5c6ba8532304f (diff)
downloadphp-git-387e3530097c102c9d9070c67cd09fddaa4669e7.tar.gz
Fix for Unicode access.
Diffstat (limited to 'Zend/zend_reflection_api.c')
-rw-r--r--Zend/zend_reflection_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c
index 970dceff73..1685997e49 100644
--- a/Zend/zend_reflection_api.c
+++ b/Zend/zend_reflection_api.c
@@ -1673,11 +1673,11 @@ ZEND_METHOD(reflection_parameter, __construct)
char *lcname;
convert_to_text_ex(&reference);
- lcname = zend_u_str_case_fold(Z_TYPE_P(reference), Z_STRVAL_P(reference), Z_STRLEN_P(reference), 1, &lcname_len);
+ lcname = zend_u_str_case_fold(Z_TYPE_P(reference), Z_UNIVAL_P(reference), Z_UNILEN_P(reference), 1, &lcname_len);
if (zend_u_hash_find(EG(function_table), Z_TYPE_P(reference), lcname, lcname_len + 1, (void**) &fptr) == FAILURE) {
efree(lcname);
zend_throw_exception_ex(U_CLASS_ENTRY(reflection_exception_ptr), 0 TSRMLS_CC,
- "Function %R() does not exist", Z_TYPE_P(reference), Z_STRVAL_P(reference));
+ "Function %R() does not exist", Z_TYPE_P(reference), Z_UNIVAL_P(reference));
return;
}
efree(lcname);