version 1.1.1.1, 2012/02/21 23:47:53
|
version 1.1.1.4, 2014/06/15 20:03:41
|
Line 2
|
Line 2
|
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| PHP Version 5 | |
| PHP Version 5 | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| Copyright (c) 1997-2012 The PHP Group | | | Copyright (c) 1997-2014 The PHP Group | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| This source file is subject to version 3.01 of the PHP license, | |
| This source file is subject to version 3.01 of the PHP license, | |
| that is bundled with this package in the file LICENSE, and is | |
| that is bundled with this package in the file LICENSE, and is | |
Line 191 PHP_FUNCTION(curl_multi_select)
|
Line 191 PHP_FUNCTION(curl_multi_select)
|
FD_ZERO(&exceptfds); |
FD_ZERO(&exceptfds); |
|
|
curl_multi_fdset(mh->multi, &readfds, &writefds, &exceptfds, &maxfd); |
curl_multi_fdset(mh->multi, &readfds, &writefds, &exceptfds, &maxfd); |
|
if (maxfd == -1) { |
|
RETURN_LONG(-1); |
|
} |
RETURN_LONG(select(maxfd + 1, &readfds, &writefds, &exceptfds, &to)); |
RETURN_LONG(select(maxfd + 1, &readfds, &writefds, &exceptfds, &to)); |
} |
} |
/* }}} */ |
/* }}} */ |
Line 250 PHP_FUNCTION(curl_multi_getcontent)
|
Line 253 PHP_FUNCTION(curl_multi_getcontent)
|
smart_str_0(&ch->handlers->write->buf); |
smart_str_0(&ch->handlers->write->buf); |
RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 1); |
RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 1); |
} |
} |
|
|
|
RETURN_EMPTY_STRING(); |
} |
} |
/* }}} */ |
/* }}} */ |
|
|