|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-11-12 15:16 UTC] pajoye@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: pajoye
[2011-11-12 15:16 UTC] pajoye@php.net
[2011-11-12 15:17 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 21:00:01 2025 UTC |
Description: ------------ NPD in the stream_socket_enable_crypto function in case when supplied socket SSL session is not initialized: <?php $ref = ""; $fst = stream_socket_server("",$ref,$ref,0); $snd = stream_socket_server("",$ref,$ref,0); stream_socket_enable_crypto($fst,0,0,$snd); ?> ^D Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 80173d1c0 (LWP 100176)] 0x0000000802af69b0 in SSL_get_session () from /usr/lib/libssl.so.6 (gdb) bt #0 0x0000000802af69b0 in SSL_get_session () from /usr/lib/libssl.so.6 #1 0x0000000802afa311 in SSL_copy_session_id () from /usr/lib/libssl.so.6 #2 0x000000080aa2e8d7 in php_openssl_sockop_set_option () from /usr/local/lib/php/20090626/openssl.so #3 0x000000000050e879 in _php_stream_set_option () #4 0x000000000051958e in php_stream_xport_crypto_setup () #5 0x00000000004dd728 in zif_stream_socket_enable_crypto () #6 0x000000000059a157 in zend_do_fcall_common_helper_SPEC () #7 0x0000000000570d23 in execute () #8 0x000000000054c145 in zend_execute_scripts () #9 0x00000000004fa83c in php_execute_script () #10 0x00000000005d489b in main () #11 0x00000000004170fe in _start () Test script: --------------- <?php $ref = ""; $fst = stream_socket_server("",$ref,$ref,0); $snd = stream_socket_server("",$ref,$ref,0); stream_socket_enable_crypto($fst,0,0,$snd); ?>