Req #68782 [NEW]: http_connect should provide more context when failing
| From: | andrew dot hoffmann at wisc dot edu | Date: | Fri, 09 Jan 2015 17:12:33 +0000 |
| Subject: | Req #68782 [NEW]: http_connect should provide more context when failing | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-189848@lists.php.net to get a copy of this message | ||
From: andrew dot hoffmann at wisc dot edu
Operating system: N/A
PHP version: master-Git-2015-01-09 (Git)
Package: SOAP related
Bug Type: Feature/Change Request
Bug description:http_connect should provide more context when failing
Description:
------------
Line 508 (master-Git-2015-01-09) of /ext/soap/php_http.c:
add_soap_fault(this_ptr, "HTTP", "Could not connect to host", NULL,
NULL);
This is a generic error message issued when http_connect() does not a
return a stream on line 502.
http_connect() is a 150-line method that can fail for many possible
reasons. More context as to why the HTTP connection attempt failed would
improve debugging SOAP connections using SSL.
http_connect() could benefit from having some of its work encapsulated
into smaller functions.
--
Edit bug report at https://bugs.php.net/bug.php?id=68782&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68782&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68782&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68782&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68782&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68782&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68782&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68782&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68782&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68782&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68782&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68782&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68782&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68782&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68782&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68782&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68782&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68782&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68782&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68782&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68782&r=mysqlcfg