Warning:
Strict warning: Creating default object from empty value in httprl_request() (line 281 of \drupal7\sites\all\modules\httprl\httprl.module).
Repro case:
function httprl_admin_settings_form() {
$headers = array();
$headers['User-Agent'] = 'User-Agent: Drupal (+http://drupal.org/)';
// Add in the headers and enable blocking mode.
$options = array(
'blocking' => TRUE,
'headers' => $headers,
'method' => 'HEAD',
'max_redirects' => 1,
);
$urls = array(
'http://www.bma.bund.de/index.cfm?8AC792DB077C4AB5BDB675A52577F0BE',
);
foreach ($urls as $url) {
// Queue up the requests.
httprl_request($url, $options);
// Compare to core:
krumo(drupal_http_request($url, $options));
}
// Execute requests.
$responses = httprl_send_request();
foreach ($responses as $response) {
krumo($response);
}
Reason:
The site that has been called redirects to a HOST that does not exists. php_network_getaddresses: getaddrinfo failed: No such host is known.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | httprl-1429256-3-fix-strict-warning.patch | 1.38 KB | mikeytown2 |
| #2 | Strict_warning_line_281_Creating_default_object_from_empty_value.patch | 955 bytes | hass |
Comments
Comment #0.0
hass commenteda
Comment #1
hass commentedRelated to #1419728: Use drupal_convert_to_utf8() for UTF8 conversion
Comment #2
hass commentedWorkaround... however I'm asking me more - if there should be an error message...
Comment #3
mikeytown2 commentedThis patch has been committed.
Comment #4.0
(not verified) commentedg