<email>mike@php.net</email>
<active>yes</active>
</lead>
- <date>2016-08-22</date>
+ <date>2016-09-07</date>
<version>
- <release>2.6.0beta2</release>
- <api>2.6.0</api>
+ <release>3.1.0beta2</release>
+ <api>3.1.0</api>
</version>
<stability>
<release>beta</release>
* Fix gh-issue #36: Unexpected cookies sent if persistent_handle_id is used (Mike, @rcanavan, @afflerbach)
* Fix gh-issue #34: allow setting multiple headers with the same name (Mike, @rcanavan)
* Fix gh-issue #33: allow setting prodyhost request option to NULL (Mike, @rcanavan)
-* Fix gh-issue #31: add/improve configure checks for default CA bundle/path (Mike, @rcanavan)
+* Fix gh-issue #31: add/improve configure checks for default CA bundle/path (Mike, @rcanavan)
+
+ Changes from beta1:
-* Fixed PHP-5.3 compatibility
+ * Fixed recursive calls to the event loop dispatcher
]]></notes>
<contents>
<dir name="/">
"enable_maintainer_zts",
"enable_json",
"enable_hash" => ["yes"],
- "enable_iconv" => ["yes"]
+ "enable_iconv" => ["yes"],
- "enable_phar" => ["yes"],
- "enable_posix" => ["yes"]
]);
foreach ($env as $e) {
printf(" - %s\n", $e);
return &php_http_client_curl_user_ops;
}
-zend_class_entry *php_http_client_curl_user_class_entry;
+static zend_class_entry *php_http_client_curl_user_class_entry;
+
+zend_class_entry *php_http_client_curl_user_get_class_entry()
+{
+ return php_http_client_curl_user_class_entry;
+}
ZEND_BEGIN_ARG_INFO_EX(ai_init, 0, 0, 1)
- ZEND_ARG_TYPE_INFO(0, run, IS_CALLABLE, 0)
+ /* using IS_CALLABLE type hint would create a forwards compatibility break */
+ ZEND_ARG_INFO(0, run)
ZEND_END_ARG_INFO();
ZEND_BEGIN_ARG_INFO_EX(ai_timer, 0, 0, 1)
#if PHP_VERSION_ID >= 70000
$this->client = $client;
}
-- function init(callable $run) {
++ function init($run) {
$this->run = $run;
}
<?php
echo "Test\n";
- $urls = [
+ $urls = array(
"",
"? = ="
- ];
+ );
-$url0=new http\Url($urls[0]);
+$url0=new http\Url($urls[0], null, http\Url::FROM_ENV);
$url1=$url0->mod($urls[1]);
echo $url1;
===DONE===
--EXPECTF--
Test
-exception 'http\Exception\RuntimeException' with message 'http\Client::dequeue(): Could not dequeue request while executing callbacks' in %sgh-issue50.php:9
+http\Exception\RuntimeException: http\Client::dequeue(): Could not dequeue request while executing callbacks in %sgh-issue50.php:9
Stack trace:
#0 %sgh-issue50.php(9): http\Client->dequeue(Object(http\Client\Request))
- #1 [internal function]: {closure}(Object(http\Client), Object(http\Client\Request), 18, 'GET / HTTP/1.1\r...')
+ #1 [internal function]: {closure}(Object(http\Client), Object(http\Client\Request), 18, 'GET / HTTP/1.1%s...')
#2 %sgh-issue50.php(14): http\Client->send()
#3 {main}
===DONE===