Skip to content

Commit

Permalink
Another one
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Dec 31, 2013
1 parent e48f18a commit 408d481
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yar_client.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 408d481

Please sign in to comment.