1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 09:28:21 +02:00

fix C++ extensions build

C++ doesn't allow implicit casting of void* to Uchar*, we have to do it explicitly
This commit is contained in:
Antony Dovgal
2007-08-30 10:34:12 +00:00
parent 9ad07186b6
commit df3ab167eb
+1 -1
View File
@@ -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); \