summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-08-30 10:34:12 +0000
committerAntony Dovgal <tony2001@php.net>2007-08-30 10:34:12 +0000
commitdf3ab167eb020ccc00db1725958d225fbeb2921f (patch)
treeb926230e30e4f79577fa96e3d1649bec84333d63
parent9ad07186b6af25c9247e7aa5ebe0b37a87a5b63f (diff)
downloadphp-git-df3ab167eb020ccc00db1725958d225fbeb2921f.tar.gz
fix C++ extensions build
C++ doesn't allow implicit casting of void* to Uchar*, we have to do it explicitly
-rw-r--r--Zend/zend_API.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index 2200d7c283..40fd16deaf 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -134,7 +134,7 @@ typedef struct _zend_function_entry {
{ \
int _len = class_name_len; \
if (UG(unicode)) { \
- class_container.name.u = malloc(UBYTES(_len+1)); \
+ class_container.name.u = (UChar *)malloc(UBYTES(_len+1)); \
u_charsToUChars(class_name, class_container.name.u, _len+1); \
} else { \
class_container.name.s = zend_strndup(class_name, _len); \