summaryrefslogtreecommitdiff
path: root/ext/curl/interface.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-05-08 13:54:28 +0800
committerXinchen Hui <laruence@php.net>2015-05-08 13:54:28 +0800
commit33097bcff6c38f4493a0c5b7d697fe10a8c6867f (patch)
tree192c431691f6ece27ed121f198380125782cd06f /ext/curl/interface.c
parentf05baec0db453d03be15303409341abb53efb9d9 (diff)
downloadphp-git-33097bcff6c38f4493a0c5b7d697fe10a8c6867f.tar.gz
Remove not necessary checks
Diffstat (limited to 'ext/curl/interface.c')
-rw-r--r--ext/curl/interface.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index a9b7edced3..e0b9176200 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());