Segmentation Fault

12 views
Skip to first unread message

Tim Koop

unread,
Feb 4, 2014, 2:13:38 PM2/4/14
to ja...@googlegroups.com
I'm getting a Segmentation Fault when using jaxl in a threaded environment.

Consider this simple code.  PHP itself dies a horrible death when trying to run it.

<?
require("jaxl.php");

class SegFault extends Thread {
    private $client = null;
   
    public function connect($jid, $password) {
        $this->client = new JAXL(array(
            'jid' => $jid,
            'pass' => $password
        ));
       
        $this->client->require_xep(array(
            '0199'    // XMPP Ping
        ));

    }

    public function run() {
    }
}

$segFault = new SegFault();
$segFault->connect($argv[1], $argv[2]);


Anybody have any ideas?

I'm trying to maintain a number of connections at once.  If anyone knows any other way to do this, besides using threads, please let me know.

--
Tim


Reply all
Reply to author
Forward
0 new messages