|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2006-10-04 19:08 UTC] david at acz dot org
 Description:
------------
PHP issues the warning "SSL: fatal protocol error" when fetching certain HTTPS URLs, including Google AdSense.
The file_get_contents() function works correctly if errors are suppressed, but I am aware of no way to fix SoapClient.
Since PHP seems capable of working around the error (and other HTTPS libraries work fine), it would be useful to have a global option (perhaps enabled by default) to disable the warning.
Reproduce code:
---------------
file_get_contents("https://adsense.google.com/api/adwords/v6/InfoService?wsdl");
new SoapClient("https://adsense.google.com/api/adwords/v6/InfoService?wsdl");
Expected result:
----------------
The functions should work correctly with no warnings.
Actual result:
--------------
PHP Warning:  file_get_contents(): SSL: fatal protocol error
PHP Warning:  SoapClient::__construct(): SSL: fatal protocol error
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
Sorry, I copied the wrong URL. Correct certificate, same warning: file_get_contents("https://adwords.google.com/api/adwords/v6/InfoService?wsdl"); new SoapClient("https://adwords.google.com/api/adwords/v6/InfoService?wsdl");