ID:               46748
 Updated by:       [EMAIL PROTECTED]
 Reported By:      romanf at trash dot net
-Status:           Feedback
+Status:           Closed
 Bug Type:         HTTP related
 Operating System: Linux (OpenSuse 11)
 PHP Version:      5.2CVS-2008-12-04 (snap)
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2008-12-07 09:36:53] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.



------------------------------------------------------------------------

[2008-12-04 07:39:54] romanf at trash dot net

Description:
------------
get_headers() generates segmentation fault on HTTPS-URLs with
"SSLVerifyClient required".

Reproduce code:
---------------
I put up two test-pages to reproduce the bug. One (client_none.php) has
"SSLVerifyClient none" set in .htaccess, the other (client_require.php)
has "SSLVerifyClient required" set.

Use the following to get the segmentation fault:

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'));"


Expected result:
----------------
Second get_headers() should NOT produce a segmentation fault. It should
return a normal error-code instead.

Actual result:
--------------
[EMAIL PROTECTED]:~> 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: Thu, 04 Dec 2008 07:37:52 GMT
    [2] => Server: Apache
    [3] => X-Powered-By: PHP/5.2.8-dev
    [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
Segmentation fault



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=46748&edit=1

Reply via email to