From: Marcus Boerger Date: Wed, 6 Feb 2008 22:00:21 +0000 (+0000) Subject: - Is there an easier way to figure out something is a string? X-Git-Tag: RELEASE_2_0_0a1~591 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cbf04002c48fb895c271eda46b9276e1f891f4f8;p=php - Is there an easier way to figure out something is a string? --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 91c2ef242c..499aa2d475 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -3016,7 +3016,7 @@ ZEND_API zend_bool zend_is_callable_ex(zval *callable, uint check_flags, zval *c if (ce) { return zend_is_callable_check_func(check_flags, zobj_ptr_ptr, ce, *method, ce_ptr, fptr_ptr, error TSRMLS_CC); } else { - if (error) zend_spprintf(error, 0, "first array member is not a valid %s", Z_TYPE_PP(obj) == IS_STRING ? "class name" : "object"); + if (error) zend_spprintf(error, 0, "first array member is not a valid %s", (Z_TYPE_PP(obj) == IS_STRING || Z_TYPE_PP(obj) == IS_UNICODE) ? "class name" : "object"); } } else { if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2) {