VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
nicolas at medularis.com Guest
|
Posted: Fri Aug 07, 2009 5:20 pm Post subject: [Freeswitch-users] Error trying to use PHP ESL |
|
|
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 /usr/local/src/freeswitch/libs/esl/php/ESL.php on line 132
Checking ESL.php on line 132, I see there are several different declarations for the function __construct() with different parameters each, which makes sense, but doens't work. I am using PHP 5.1.6, is there a required minimum higher than that or something? What could be the problem?
Thanks!
Nicolas |
|
Back to top |
|
|
andrew at hijacked.us Guest
|
Posted: Fri Aug 07, 2009 10:00 pm Post subject: [Freeswitch-users] Error trying to use PHP ESL |
|
|
On Fri, Aug 07, 2009 at 06:10:25PM -0400, Nicolas Brenner wrote:
Quote: | 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
/usr/local/src/freeswitch/libs/esl/php/ESL.php on line 132
Checking ESL.php on line 132, I see there are several different declarations
for the function __construct() with different parameters each, which makes
sense, but doens't work. I am using PHP 5.1.6, is there a required minimum
higher than that or something? What could be the problem?
|
Someone in the IRC channel mentioned this too. I looked at it briefly
and it looks like the latest 'swigall' screwed it up. The original
reporter said he'd file a jira, but you may want to check yourself and
if not make one yourself. In the meantime, the previous version of the
file was reported to work if you really need it.
Andrew
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
t.mahe at telemaque.fr Guest
|
Posted: Mon Aug 10, 2009 7:11 am Post subject: [Freeswitch-users] Error trying to use PHP ESL |
|
|
Morning guys,
Yes the latest make swigall broke php code generation.
Simple workaround:
edit libs/esl/ESL.i to this content:
----------------------Cut----------------------
%{
#include "esl.h"
#include "esl_oop.h"
%}
%include "esl_oop.h"
---------------------Cut-----------------------
and make reswig
It should be a swig bug, but I'm not sure.
Regards,
Gled
Andrew Thompson a écrit : Quote: | Quote: | On Fri, Aug 07, 2009 at 06:10:25PM -0400, Nicolas Brenner wrote:
Quote: | 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
/usr/local/src/freeswitch/libs/esl/php/ESL.php on line 132
Checking ESL.php on line 132, I see there are several different declarations
for the function __construct() with different parameters each, which makes
sense, but doens't work. I am using PHP 5.1.6, is there a required minimum
higher than that or something? What could be the problem?
|
Someone in the IRC channel mentioned this too. I looked at it briefly
and it looks like the latest 'swigall' screwed it up. The original
reporter said he'd file a jira, but you may want to check yourself and
if not make one yourself. In the meantime, the previous version of the
file was reported to work if you really need it.
Andrew
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
| |
|
|
Back to top |
|
|
mike at jerris.com Guest
|
Posted: Mon Aug 10, 2009 7:25 am Post subject: [Freeswitch-users] Error trying to use PHP ESL |
|
|
Can you please post a patch to Jira.freswitch.org and assign it to me.
Mike
On Aug 10, 2009, at 5:00 AM, Tristan Mahé <t.mahe@telemaque.fr (t.mahe@telemaque.fr)> wrote:
Quote: | Morning guys,
Yes the latest make swigall broke php code generation.
Simple workaround:
edit libs/esl/ESL.i to this content:
----------------------Cut----------------------
%{
#include "esl.h"
#include "esl_oop.h"
%}
%include "esl_oop.h"
---------------------Cut-----------------------
and make reswig
It should be a swig bug, but I'm not sure.
Regards,
Gled
Andrew Thompson a écrit : Quote: | Quote: | On Fri, Aug 07, 2009 at 06:10:25PM -0400, Nicolas Brenner wrote:
Quote: | 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
/usr/local/src/freeswitch/libs/esl/php/ESL.php on line 132
Checking ESL.php on line 132, I see there are several different declarations
for the function __construct() with different parameters each, which makes
sense, but doens't work. I am using PHP 5.1.6, is there a required minimum
higher than that or something? What could be the problem?
| Someone in the IRC channel mentioned this too. I looked at it briefly
and it looks like the latest 'swigall' screwed it up. The original
reporter said he'd file a jira, but you may want to check yourself and
if not make one yourself. In the meantime, the previous version of the
file was reported to work if you really need it.
Andrew
_______________________________________________
FreeSWITCH-users mailing list
[url=mailto:FreeSWITCH-users@lists.freeswitch.org]FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)[/url]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
| |
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
t.mahe at telemaque.fr Guest
|
Posted: Mon Aug 10, 2009 7:41 am Post subject: [Freeswitch-users] Error trying to use PHP ESL |
|
|
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 on IRC if you want to discuss it.
Gled.
Michael Jerris a écrit : Quote: | Can you please post a patch to Jira.freswitch.org and assign it to me.
Mike
On Aug 10, 2009, at 5:00 AM, Tristan Mahé <t.mahe@telemaque.fr (t.mahe@telemaque.fr)> wrote:
Quote: | Morning guys,
Yes the latest make swigall broke php code generation.
Simple workaround:
edit libs/esl/ESL.i to this content:
----------------------Cut----------------------
%{
#include "esl.h"
#include "esl_oop.h"
%}
%include "esl_oop.h"
---------------------Cut-----------------------
and make reswig
It should be a swig bug, but I'm not sure.
Regards,
Gled
Andrew Thompson a écrit : Quote: | Quote: | On Fri, Aug 07, 2009 at 06:10:25PM -0400, Nicolas Brenner wrote:
Quote: | 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
/usr/local/src/freeswitch/libs/esl/php/ESL.php on line 132
Checking ESL.php on line 132, I see there are several different declarations
for the function __construct() with different parameters each, which makes
sense, but doens't work. I am using PHP 5.1.6, is there a required minimum
higher than that or something? What could be the problem?
| Someone in the IRC channel mentioned this too. I looked at it briefly
and it looks like the latest 'swigall' screwed it up. The original
reporter said he'd file a jira, but you may want to check yourself and
if not make one yourself. In the meantime, the previous version of the
file was reported to work if you really need it.
Andrew
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
| |
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
| |
|
|
Back to top |
|
|
nicolas at medularis.com Guest
|
Posted: Mon Aug 10, 2009 8:43 am Post subject: [Freeswitch-users] Error trying to use PHP ESL |
|
|
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 : Unrecognized option -php5
Use 'swig -help' for available options.
make[1]: *** [esl_wrap.cpp] Error 1
make[1]: Leaving directory `/usr/local/src/freeswitch/libs/esl/php'
make: *** [reswig] Error 2
On Mon, Aug 10, 2009 at 8:34 AM, Tristan Mahé <t.mahe@telemaque.fr (t.mahe@telemaque.fr)> wrote:
Quote: | 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 on IRC if you want to discuss it.
Gled.
Michael Jerris a écrit : Quote: |
Can you please post a patch to Jira.freswitch.org and assign it to me.
Mike
On Aug 10, 2009, at 5:00 AM, Tristan Mahé <t.mahe@telemaque.fr (t.mahe@telemaque.fr)> wrote:
Quote: | Morning guys,
Yes the latest make swigall broke php code generation.
Simple workaround:
edit libs/esl/ESL.i to this content:
----------------------Cut----------------------
%{
#include "esl.h"
#include "esl_oop.h"
%}
%include "esl_oop.h"
---------------------Cut-----------------------
and make reswig
It should be a swig bug, but I'm not sure.
Regards,
Gled
Andrew Thompson a écrit : Quote: | Quote: | On Fri, Aug 07, 2009 at 06:10:25PM -0400, Nicolas Brenner wrote:
Quote: | 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
/usr/local/src/freeswitch/libs/esl/php/ESL.php on line 132
Checking ESL.php on line 132, I see there are several different declarations
for the function __construct() with different parameters each, which makes
sense, but doens't work. I am using PHP 5.1.6, is there a required minimum
higher than that or something? What could be the problem?
| Someone in the IRC channel mentioned this too. I looked at it briefly
and it looks like the latest 'swigall' screwed it up. The original
reporter said he'd file a jira, but you may want to check yourself and
if not make one yourself. In the meantime, the previous version of the
file was reported to work if you really need it.
Andrew
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
| |
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
| |
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Mon Aug 10, 2009 8:45 am Post subject: [Freeswitch-users] Error trying to use PHP ESL |
|
|
If you're removing the newobject lines you're introducing a huge
memory leak 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:
Quote: | 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 : Unrecognized option -php5
Use 'swig -help' for available options.
make[1]: *** [esl_wrap.cpp] Error 1
make[1]: Leaving directory `/usr/local/src/freeswitch/libs/esl/php'
make: *** [reswig] Error 2
|
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|