|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-16 21:46 UTC] felipe@php.net
[2009-11-24 01:00 UTC] php-bugs at lists dot php dot net
[2009-12-12 22:20 UTC] felipe@php.net
[2009-12-20 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 03:00:01 2025 UTC |
Description: ------------ This error occures both in CLI and Apache PHP module. If I use SoapClient with client certificate I get segmentation fault. Soap call(s) and all the script logic behaves as expected, but during PHP shutdown there's segmentation fault occured. I reproduced this on two workstations with the same Fedora Core 6 and tried PHP versions 5.2.6 - 5.2.11 and 5.2.current. Reproduce code: --------------- <?php // Program requires client certificate (I can send the one) try { $soap = new SoapClient('https://host/soap/?wsdl', array( 'exceptions' => 1, 'wsdl_cache' => WSDL_CACHE_NONE, 'local_cert' => dirname(__FILE__) . '/client-cert.pem', 'passphrase' => 'piglet' )); $res = $soap->userLogin(array('login' => 'bugonek', 'password' => md5('000'), 'save_session' => false)); if ($res !== false && $res->errorCode == 0) echo "SID: {$res->sid}\n"; else echo "Login error: {$res->errorMessage}\n"; } catch (Exception $e) { echo 'Exception [' . $e->getCode() . '] ' . $e->getMessage() . "\n"; } ?> Expected result: ---------------- SID: 3092b3e454a6f4c9bb8ccab01adce34c (this value is generated at runtime and not exactly should be the one) Actual result: -------------- SID: 3092b3e454a6f4c9bb8ccab01adce34c Segmentation fault (core dumped) gdb backtrace ------------------------------------- Core was generated by `/usr/local/bin/php index-simple.php'. Program terminated with signal 11, Segmentation fault. #0 0x08412c9d in php_stream_context_del_link (context=0x88a06bc, stream=0x88a1078) at /usr/src/Software/php5.2-200910081030/main/streams/streams.c:2044 2044 for(zend_hash_internal_pointer_reset(Z_ARRVAL_P(context->links));