|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-05-07 09:45 UTC] soenke dot ruempler at northclick dot de
Description:
------------
The extension gets an segfault when join() is called:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46917698445296 (LWP 2972)]
0x00000000006376ea in add_next_index_string ()
(gdb) bt
#0 0x00000000006376ea in add_next_index_string ()
#1 0x00002aabe25043a0 in zif_spread_join (ht=<value optimized out>, return_value=0x2aabdef78728, return_value_ptr=<value optimized out>,
this_ptr=<value optimized out>, return_value_used=<value optimized out>) at /root/pecl/spread/php_spread.c:600
#2 0x000000000065f6d7 in execute ()
#3 0x000000000064f0f3 in execute ()
#4 0x0000000000632169 in zend_execute_scripts ()
#5 0x00000000005f2968 in php_execute_script ()
#6 0x00000000006b89e5 in main ()
Reproduce code:
---------------
<?php
$blah = spread_connect('4803', 'bb');
spread_join($blah, array('gruppe'));
Expected result:
----------------
No segfault.
Actual result:
--------------
Segfault :)
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 19:00:01 2025 UTC |
Hi, After applying the patch, and using OOP instead of procedural function calling, I've receive the following warning: PHP Warning: Spread::join(): SP_Join: expect groups to an array of strings or a string in /home/test/test.php on line 6 Source: <? $a = new Spread (); $a->connect ("4803@192.168.0.8"); $a->join ("test"); ?>