From 408d481f5ef58e4973f06227187c71274d29cb8a Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Tue, 31 Dec 2013 18:25:01 +0800 Subject: [PATCH] Another one --- yar_client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yar_client.c b/yar_client.c index fcf46a6..b60f79e 100644 --- a/yar_client.c +++ b/yar_client.c @@ -616,7 +616,8 @@ PHP_METHOD(yar_concurrent_client, call) { return; } - if (strncasecmp(uri, ZEND_STRL("http://")) && strncasecmp(uri, ZEND_STRL("https://"))) { + if (strncasecmp(uri, "http://", sizeof("http://") - 1) + && strncasecmp(uri, "https://", sizeof("https://") - 1)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "only http protocol is supported in concurrent client for now"); return; }