You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by Yarek Tyshchenko <ya...@affiliatewindow.com> on 2013/07/24 19:22:54 UTC

PHP5 Proton bindings

Hi. I'm trying to compile Proton for PHP5.
I can't seem to find cproton.so PHP loadable module anywhere after building from source.
Am I missing something thats really obvious and not mentioned in the readme
or does the php binding not build anymore?

This is the output of the build process:

http://pastie.org/pastes/8171487/text

Best Regards
Yarek Tyshchenko
Affiliate Window
__________________________________________________________________________
Affiliate Window (a division of Digital Window Limited) disclaimer: 
This e-mail is confidential to the intended recipient. If you have 
received it in error, please notify the sender and delete it from your 
system. Any unauthorised use, disclosure, or copying is not permitted. 
This e-mail has been scanned for viruses, but no liability is accepted 
for any damage caused by any content transmitted by this e-mail. 

Digital Window Limited is registered as a private limited company in 
England and Wales with number 04010229.

Registered Address:

3rd Floor
100 Leman Street
London
E1 8EU
United Kingdom

VAT No: GB766 0309 30
__________________________________________________________________________
This email message has been scanned by the Mimecast Email Security System.
__________________________________________________________________________


Re: PHP5 Proton bindings

Posted by Ken Giusti <kg...@redhat.com>.
H Yarek,

You're correct- the PHP bindings have not been kept up to date with the C API.

I've opened a bug report to track this:  https://issues.apache.org/jira/browse/PROTON-365

-K

----- Original Message -----
> From: "Yarek Tyshchenko" <ya...@affiliatewindow.com>
> To: proton@qpid.apache.org
> Sent: Thursday, July 25, 2013 2:35:42 PM
> Subject: Re: Re: PHP5 Proton bindings
> 
> Hi Ken,
> I can't believe I've missed that.
> 
> Compiles fine and i've successfully sent some messages around.
> 
> I've got another question though. I'm looking to send persistent messages,
> and it looks like the message disposition API wasn't implemented in PHP, Is
> this the case or am I missing something?
> 
> http://qpid.apache.org/components/messenger/book/message-disposition.html
> 
> Namely methods pn_messenger_accept(messenger, tracker, 0); and
> pn_messenger_reject(messenger, tracker, 0);
> 
> Thanks for your help
> Yarek Tyshchenko
> Digital Window
> 
> > Hi,
> > 
> > >From your output it appears that the SWIG tool is not available on your
> > >system:
> > 
> >   -- SWIG was not found. Please specify Swig executable location
> > 
> > swig is used to generate the PHP bindings, so you'll need to install swig,
> > then re-run cmake
> > to re-generate your makefiles.
> > 
> > For more info on swig, see:
> > 
> > http://www.swig.org/
> __________________________________________________________________________
> Affiliate Window (a division of Digital Window Limited) disclaimer:
> This e-mail is confidential to the intended recipient. If you have
> received it in error, please notify the sender and delete it from your
> system. Any unauthorised use, disclosure, or copying is not permitted.
> This e-mail has been scanned for viruses, but no liability is accepted
> for any damage caused by any content transmitted by this e-mail.
> 
> Digital Window Limited is registered as a private limited company in
> England and Wales with number 04010229.
> 
> Registered Address:
> 
> 3rd Floor
> 100 Leman Street
> London
> E1 8EU
> United Kingdom
> 
> VAT No: GB766 0309 30
> __________________________________________________________________________
> This email message has been scanned by the Mimecast Email Security System.
> __________________________________________________________________________
> 
> 

-- 
-K

Re: Re: PHP5 Proton bindings

Posted by Yarek Tyshchenko <ya...@affiliatewindow.com>.
Hi Ken,
I can't believe I've missed that.

Compiles fine and i've successfully sent some messages around.

I've got another question though. I'm looking to send persistent messages, and it looks like the message disposition API wasn't implemented in PHP, Is this the case or am I missing something?

http://qpid.apache.org/components/messenger/book/message-disposition.html

Namely methods pn_messenger_accept(messenger, tracker, 0); and pn_messenger_reject(messenger, tracker, 0);

Thanks for your help
Yarek Tyshchenko
Digital Window

> Hi,
> 
> >From your output it appears that the SWIG tool is not available on your system:
> 
>   -- SWIG was not found. Please specify Swig executable location
> 
> swig is used to generate the PHP bindings, so you'll need to install swig, then re-run cmake
> to re-generate your makefiles.
> 
> For more info on swig, see:
> 
> http://www.swig.org/
__________________________________________________________________________
Affiliate Window (a division of Digital Window Limited) disclaimer: 
This e-mail is confidential to the intended recipient. If you have 
received it in error, please notify the sender and delete it from your 
system. Any unauthorised use, disclosure, or copying is not permitted. 
This e-mail has been scanned for viruses, but no liability is accepted 
for any damage caused by any content transmitted by this e-mail. 

Digital Window Limited is registered as a private limited company in 
England and Wales with number 04010229.

Registered Address:

3rd Floor
100 Leman Street
London
E1 8EU
United Kingdom

VAT No: GB766 0309 30
__________________________________________________________________________
This email message has been scanned by the Mimecast Email Security System.
__________________________________________________________________________


Re: PHP5 Proton bindings

Posted by Ken Giusti <kg...@redhat.com>.
Hi,

>From your output it appears that the SWIG tool is not available on your system:

  -- SWIG was not found. Please specify Swig executable location

swig is used to generate the PHP bindings, so you'll need to install swig, then re-run cmake to re-generate your makefiles.

For more info on swig, see:

http://www.swig.org/

----- Original Message -----
> From: "Yarek Tyshchenko" <ya...@affiliatewindow.com>
> To: proton@qpid.apache.org
> Sent: Wednesday, July 24, 2013 1:22:54 PM
> Subject: PHP5 Proton bindings
> 
> Hi. I'm trying to compile Proton for PHP5.
> I can't seem to find cproton.so PHP loadable module anywhere after building
> from source.
> Am I missing something thats really obvious and not mentioned in the readme
> or does the php binding not build anymore?
> 
> This is the output of the build process:
> 
> http://pastie.org/pastes/8171487/text
> 
> Best Regards
> Yarek Tyshchenko
> Affiliate Window
> __________________________________________________________________________
> Affiliate Window (a division of Digital Window Limited) disclaimer:
> This e-mail is confidential to the intended recipient. If you have
> received it in error, please notify the sender and delete it from your
> system. Any unauthorised use, disclosure, or copying is not permitted.
> This e-mail has been scanned for viruses, but no liability is accepted
> for any damage caused by any content transmitted by this e-mail.
> 
> Digital Window Limited is registered as a private limited company in
> England and Wales with number 04010229.
> 
> Registered Address:
> 
> 3rd Floor
> 100 Leman Street
> London
> E1 8EU
> United Kingdom
> 
> VAT No: GB766 0309 30
> __________________________________________________________________________
> This email message has been scanned by the Mimecast Email Security System.
> __________________________________________________________________________
> 
> 

-- 
-K