From:             matthias at pc-intern dot com
Operating system: Debian Etch, PHP 5.2.0-8+etch11
PHP version:      5.2CVS-2008-11-11 (CVS)
PHP Bug Type:     HTTP related
Bug description:  get_headers() has problems when get redirected from http to 
https

Description:
------------
If you check an HTTP URL with get_headers() function which redirects to
another HTTPS URL, NULL will returned. If the redirect-HTTPS-URL is checked
directly, there is no error. extension=php_openssl.dll is enabled.

Reproduce code:
---------------
works: get_headers('http://foo.com');
works: get_headers('http://foo.com?redirect=http://foo2.com');
don't work: get_headers('http://foo.com?redirect=https://foo2.com');

Expected result:
----------------
array (HEADERS);
There should be no problem when a HTTP URL redirectes to an HTTPS URL

Actual result:
--------------
NULL

-- 
Edit bug report at http://bugs.php.net/?id=46545&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=46545&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=46545&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=46545&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=46545&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=46545&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=46545&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=46545&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=46545&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=46545&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=46545&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=46545&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=46545&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=46545&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=46545&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=46545&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=46545&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=46545&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=46545&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=46545&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=46545&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=46545&r=mysqlcfg

Reply via email to