]> granicus.if.org Git - php/commitdiff
allow passing Unicode strings when a boolean is expected
authorAntony Dovgal <tony2001@php.net>
Mon, 14 May 2007 12:47:23 +0000 (12:47 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 14 May 2007 12:47:23 +0000 (12:47 +0000)
Zend/zend_API.c

index 7e7fac2cd1c15f73e34f7138b89358d7d12dce9b..3606241aa18ec5f11fe06351cf17eb08335e664b 100644 (file)
@@ -650,6 +650,7 @@ static char *zend_parse_arg_impl(int arg_num, zval **arg, va_list *va, char **sp
                                switch (Z_TYPE_PP(arg)) {
                                        case IS_NULL:
                                        case IS_STRING:
+                                       case IS_UNICODE:
                                        case IS_LONG:
                                        case IS_DOUBLE:
                                        case IS_BOOL: