projects
/
php
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f05baec
)
Remove not necessary checks
author
Xinchen Hui
<laruence@php.net>
Fri, 8 May 2015 05:54:28 +0000
(13:54 +0800)
committer
Xinchen Hui
<laruence@php.net>
Fri, 8 May 2015 05:54:28 +0000
(13:54 +0800)
ext/curl/interface.c
patch
|
blob
|
history
diff --git
a/ext/curl/interface.c
b/ext/curl/interface.c
index a9b7edced3609494495956b27857f24cc654c5b9..e0b917620071f833dd025f20b004c570a99bbdfc 100644
(file)
--- 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());