Re: [Freeswitch-users] Error trying to use PHP ESL

2009-08-10 Thread Tristan Mahé
Hello Mike, No problem to post a patch, but it would break perl/python/etc... as actually there are some functions defined in ESL.i, wouldn't it ? I don't know about swig, never used that. Maybe we could have two swig files instead ? one for generating php and one for the other languages ? I'm

Re: [Freeswitch-users] Error trying to use PHP ESL

2009-08-10 Thread Nicolas Brenner
Hi, I tried the ESL.i modification and when I do make reswig I get: make -C php reswig make[1]: Entering directory `/usr/local/src/freeswitch/libs/esl/php' rm -f esl_wrap.* ESL.so php_ESL.* ESL.php swig -module ESL -php5 -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i swig error :

Re: [Freeswitch-users] Error trying to use PHP ESL

2009-08-10 Thread Brian West
If you're removing the newobject lines you're introducing a huge memory leak :P also I'm guessing your swig is older and doesn't have php5 support. /b On Aug 10, 2009, at 8:39 AM, Nicolas Brenner wrote: Hi, I tried the ESL.i modification and when I do make reswig I get: make -C php

[Freeswitch-users] Error trying to use PHP ESL

2009-08-07 Thread Nicolas Brenner
Hi, I'm trying to get started with the ESL using PHP. I compiled the ESL, then phpmod according to the wiki instructions, but then when I try the examples in the libs/esl/php dir, they fail saying: PHP Fatal error: Cannot redeclare ESLconnection::__construct() in

Re: [Freeswitch-users] Error trying to use PHP ESL

2009-08-07 Thread Andrew Thompson
On Fri, Aug 07, 2009 at 06:10:25PM -0400, Nicolas Brenner wrote: Hi, I'm trying to get started with the ESL using PHP. I compiled the ESL, then phpmod according to the wiki instructions, but then when I try the examples in the libs/esl/php dir, they fail saying: PHP Fatal error: Cannot