Edit report at http://bugs.php.net/bug.php?id=46748&edit=1
ID: 46748 Comment by: mrhat at bk dot ru Reported by: romanf at trash dot net Summary: get_headers generates segmentation fault on HTTPS with SSLVerifyClient required Status: Closed Type: Bug Package: HTTP related Operating System: Linux (OpenSuse 11) PHP Version: 5.2CVS-2008-12-08 Assigned To: scottmac New Comment: Hello When a request print_r (get_headers ('http://domain/error.php')); Browser issues: Warning: get_headers (http://domain/error.php) [function.get-headers]: failed to open stream: HTTP request failed! in X: \ home \ domain \ www \ error.php on line 7 Fatal error: Maximum execution time of 30 seconds exceeded in X: \ home \ domain \ www \ error.php on line 7 What is this bug? PHP 5.2.12 Previous Comments: ------------------------------------------------------------------------ [2008-12-30 10:32:29] romanf at trash dot net Tested: - Still open in http://snaps.php.net/php5.2-200812300730.tar.gz - Fixed in http://snaps.php.net/php5.3-200812300730.tar.gz Thanks! Roman ------------------------------------------------------------------------ [2008-12-29 14:57:30] scott...@php.net scott-mbp:php5_3 scott$ sapi/cli/php -r "print_r(get_headers('https://fish- serv.dyndns.org/php_test/client_none.php'));print_r(get_headers('https ://fish-serv.dyndns.org/php_test/client_require.php'));" Array ( [0] => HTTP/1.1 200 OK [1] => Date: Mon, 29 Dec 2008 14:56:39 GMT [2] => Server: Apache [3] => X-Powered-By: PHP/5.2.8 [4] => Content-Length: 136 [5] => Connection: close [6] => Content-Type: text/html; charset=ISO-8859-1 ) Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:func(148):reason(1040) error:140940E5:SSL routines:func(148):reason(229) in Command line code on line 1 Warning: get_headers(https://fish- serv.dyndns.org/php_test/client_require.php): failed to open stream: HTTP request failed! in Command line code on line 1 This is definitely fixed. ------------------------------------------------------------------------ [2008-12-12 07:40:26] romanf at trash dot net What output -do- you get when you run the two tests? -Roman ------------------------------------------------------------------------ [2008-12-12 04:10:47] crrodriguez at opensuse dot org Cannot reproduce in 5_2 nor 5_3. ------------------------------------------------------------------------ [2008-12-08 13:51:50] scott...@php.net I can't reproduce this on any of the branches now, though I only have x86 to test. Jani, any chance of a backtrace on HEAD? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=46748 -- Edit this bug report at http://bugs.php.net/bug.php?id=46748&edit=1