com php-src: Remove not necessary checks: ext/curl/interface.c

From: Date: Fri, 08 May 2015 05:54:28 +0000
Subject: com php-src: Remove not necessary checks: ext/curl/interface.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86652@lists.php.net to get a copy of this message
Commit: 33097bcff6c38f4493a0c5b7d697fe10a8c6867f Author: Xinchen Hui <laruence@php.net> Fri, 8 May 2015 13:54:28 +0800 Parents: f05baec0db453d03be15303409341abb53efb9d9 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=33097bcff6c38f4493a0c5b7d697fe10a8c6867f Log: Remove not necessary checks Changed paths: M ext/curl/interface.c Diff: diff --git a/ext/curl/interface.c b/ext/curl/interface.c index a9b7edc..e0b9176 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -225,9 +225,8 @@ static int php_curl_option_url(php_curl *ch, const char *url, const int len) /* void _php_curl_verify_handlers(php_curl *ch, int reporterror) /* {{{ */ { php_stream *stream; - if (!ch || !ch->handlers) { - return; - } + + ZEND_ASSERT(ch && ch->handlers); if (!Z_ISUNDEF(ch->handlers->std_err)) { stream = (php_stream *)zend_fetch_resource2_ex(&ch->handlers->std_err, NULL, php_file_le_stream(), php_file_le_pstream());

« previous php.cvs (#86652) next »