[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2012-11-06 Thread Darryl L. Pierce (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13491486#comment-13491486
 ] 

Darryl L. Pierce commented on QPID-3027:


No, that was a mistaken. I must have selected the description by accident while 
adding my comment yesterday. My apologies.

I'll apply and build the 20121106 patch in my development repo and give it some 
preliminary testing. Do you feel this is a work in progress or is the patch 
close to if not totally working at this point?

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Darryl L. Pierce
 Attachments: cqpid_php.20110220.diff, cqpid_php.20110301.diff, 
 cqpid_php.20110328.diff, cqpid_php.20110415.diff, cqpid_php.20120406.diff, 
 cqpid_php.20121105.diff, cqpid_php.20121105-qpid-0.19.diff, 
 cqpid_php.20121106.diff, cqpid_php.diff, FindPHPDev.cmake, Makefile


   

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2012-11-06 Thread Paul Colby (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13491939#comment-13491939
 ] 

Paul Colby commented on QPID-3027:
--

bq. No, that was a mistake. I must have selected the description by accident 
while adding my comment yesterday.

No problem.  I've very nearly done the same thing a few times.  I've restored 
the original description from the history tab (not that I would have been upset 
if you'd removed it intentionally either).

bq. Do you feel this is a work in progress or is the patch close to if not 
totally working at this point?

I'd say close to if not totally working at this point.

Both the cqpid and cqmf2 PHP modules should be fully working, there's just a 
few areas (particularly in cqmf2) that I've never used, thus never tested.  For 
example, while I have tested the QMF2 client support, I've never tried writing 
a QMF2 agent in PHP... _should_ work though.

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Darryl L. Pierce
 Attachments: cqpid_php.20110220.diff, cqpid_php.20110301.diff, 
 cqpid_php.20110328.diff, cqpid_php.20110415.diff, cqpid_php.20120406.diff, 
 cqpid_php.20121105.diff, cqpid_php.20121105-qpid-0.19.diff, 
 cqpid_php.20121106.diff, cqpid_php.diff, FindPHPDev.cmake, Makefile


 Working on a PHP binding for the Qpid Messaging API via SWIG. There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress. 
 The rough plan: 
 1. report relevant bugs / feature requests to SWIG (done). 
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces). 
 3. implement qpid::types::Variant - PHP typemapping (not started). 
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include). 
 5. create relevant [auto]makefile. 
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2012-11-05 Thread Darryl L. Pierce (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13490947#comment-13490947
 ] 

Darryl L. Pierce commented on QPID-3027:


Okay, this time it's built fine using CMake. I'd like to spend some time 
testing it, but am unsure what would be the best route. Can you ping me in IRC 
(Freenode #qpid channel) to go over a test approach? Then we can get this 
integrated.

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Darryl L. Pierce
 Attachments: cqpid_php.20110220.diff, cqpid_php.20110301.diff, 
 cqpid_php.20110328.diff, cqpid_php.20110415.diff, cqpid_php.20120406.diff, 
 cqpid_php.20121105.diff, cqpid_php.20121105-qpid-0.19.diff, cqpid_php.diff, 
 FindPHPDev.cmake, Makefile


   

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2012-11-05 Thread Paul Colby (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13491096#comment-13491096
 ] 

Paul Colby commented on QPID-3027:
--

bq. Can you ping me in IRC

I tried that, but you were away... I suspect our timezone differences will make 
IRC tricky (I'm UTC+11 at the moment).  Let me know you're timezone and I'll 
see if I can workout a convenient time for chatting.

In the meantime, here's some basic ways you can test the PHP code.

h3. PHP Info
The first thing to check, is that the {{cqpid}} and {{cqmf2}} PHP modules are 
loaded by PHP.  The easiest way to do this is to run the following command: 

{{php -i}}

This will produce a whole lot of text output describing PHP's configuration and 
modules, etc.  If you pipe it to a command like {{less}}, and then search for 
{{cqmf2}}, you will see the following details that have been added by the 
{{cqmf2}} and {{cqpid}} modules:

{noformat}
cqmf2

SWIG Version = 2.0.8
Targeted PHP Version = 5.4.7 (5.4.7)
PHP Thread Safety = disabled
Compiler Version = gcc 4.7.2
Build Date = Nov  5 2012 02:53:38

cqpid

SWIG Version = 2.0.8
Targeted PHP Version = 5.4.7 (5.4.7)
PHP Thread Safety = disabled
Compiler Version = gcc 4.7.2
Build Date = Nov  5 2012 02:53:34
{noformat}

If that information is not present, then the module was not loaded (the 
{{install}} target should have created relevant {{/etc/php.d/cqpid.ini}} and 
{{/etc/php.d/cqmf2.ini}} files to load the module).  Such as:

{code:title=cqpid.ini}
; configuration for PHP Qpid module
extension=/usr/lib64/php/modules/cqpid.so
{code}

If you want some (slightly) prettier output, instead of running {{php -i}} you 
could setup a simple PHP webpage and run the {{phpinfo()}} function to see the 
same output as above, but in HTML tables instead.

h3. CLI Examples
Once the modules are loaded (should happen automatically if you do a {{make 
install}}), the next thing I do is run some of the PHP examples.

First, run a qpidd broker in one terminal:

{{qpidd --auth=no}}

Then, run some of the examples under 
{{qpid/cpp/bindings/qpid/examples/php/cli}} - these are PHP ports of the 
existing Qpid examples, so work the same way.

For example:

{code}
[paul@fepoch cli]$ php -f map_sender.php   # Will send a PHP associative array 
as a map message to the broker.
[paul@fepoch cli]$ php -f map_receiver.php # Will print_r the next message from 
the broker.
Array
(
[colours] = Array
(
[0] = red
[1] = green
[2] = white
)

[id] = 987654321
[name] = Widget
[percent] = 0.99
[uuid] = 773bb118-286c-435e-8948-71e57f9e2f97
)
[paul@fepoch cli]$
{code}

This example is particularly interesting since it shows the marshalling of 
different QVariant types from/to PHP types :)

h3. Web Example
There's also a very basic hello world web-based exmaple in 
{{qpid/cpp/bindings/qpid/examples/php/web}}.  To run that example, simply drop 
the PHP file into a directory being hosted by a webserver with PHP enabled.  It 
will present an HTML form allowing you to specify some basic broker parameters, 
and will then send/receive a message.

h3.  Unit Testing
I'm quite a fan of {{phpunit}} for PHP unit testing, so I'll create some PHP 
unit tests for this sometime.  Perhaps I'll create them as a separate diff 
though, since the above patch is already 70kB (and the PHP unit tests will not 
require any direct code linkage to the Qpid / PHP module source, so can be 
entirely independent).

h3. Other Issues
The other issue I see, is the requirement for a custom {{FindPHPDev}} CMake 
module.  I've begun talks on the CMake mailing list in hopes of getting the 
module included there.  Is this a blocker in the meantime?  There might 
(probably should) be a way to include the custom CMake module in the Qpid 
source / build tree for now, but this is not something I've looked into yet.

I look forward to chatting on IRC sometime.

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Darryl L. Pierce
 Attachments: cqpid_php.20110220.diff, cqpid_php.20110301.diff, 
 cqpid_php.20110328.diff, cqpid_php.20110415.diff, cqpid_php.20120406.diff, 
 cqpid_php.20121105.diff, cqpid_php.20121105-qpid-0.19.diff, cqpid_php.diff, 
 FindPHPDev.cmake, Makefile


   

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org

[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2012-11-05 Thread Paul Colby (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13491170#comment-13491170
 ] 

Paul Colby commented on QPID-3027:
--

Hey Darryl, it appears that you blanked the Description field this morning / 
last night... was that intentional?

Paul.

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Darryl L. Pierce
 Attachments: cqpid_php.20110220.diff, cqpid_php.20110301.diff, 
 cqpid_php.20110328.diff, cqpid_php.20110415.diff, cqpid_php.20120406.diff, 
 cqpid_php.20121105.diff, cqpid_php.20121105-qpid-0.19.diff, cqpid_php.diff, 
 FindPHPDev.cmake, Makefile


   

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2012-11-04 Thread Paul Colby (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13490165#comment-13490165
 ] 

Paul Colby commented on QPID-3027:
--

Ok, so the build error is the result of changes in the PHP development headers.

Somewhere between PHP 5.3.8 and 5.4.7, the signature of the following functions 
changed:
* {{zend_get_object_classname}}
* {{zend_rsrc_list_get_rsrc_type}}

Now to track down the exact PHP version that changed, and #ifdef some variable 
declarations...

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Darryl L. Pierce
 Attachments: cqpid_php.20110220.diff, cqpid_php.20110301.diff, 
 cqpid_php.20110328.diff, cqpid_php.20110415.diff, cqpid_php.20120406.diff, 
 cqpid_php.diff, FindPHPDev.cmake, Makefile


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2012-11-04 Thread Paul Colby (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13490197#comment-13490197
 ] 

Paul Colby commented on QPID-3027:
--

Hmm... does (or will) the PHP work as part of [Apache Qpid 
Proton|http://qpid.apache.org/proton/] make this SWIG-based PHP binding 
redundant?

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Darryl L. Pierce
 Attachments: cqpid_php.20110220.diff, cqpid_php.20110301.diff, 
 cqpid_php.20110328.diff, cqpid_php.20110415.diff, cqpid_php.20120406.diff, 
 cqpid_php.20121105.diff, cqpid_php.diff, FindPHPDev.cmake, Makefile


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2012-10-01 Thread Paul Colby (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13466700#comment-13466700
 ] 

Paul Colby commented on QPID-3027:
--

Works fine on all of my existing test boxes.  I'll setup an FC17 VM to test.

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Darryl L. Pierce
 Attachments: cqpid_php.20110220.diff, cqpid_php.20110301.diff, 
 cqpid_php.20110328.diff, cqpid_php.20110415.diff, cqpid_php.20120406.diff, 
 cqpid_php.diff, FindPHPDev.cmake, Makefile


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2012-09-28 Thread Darryl L. Pierce (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13465628#comment-13465628
 ] 

Darryl L. Pierce commented on QPID-3027:


The patch fails to build for me on Fedora 17 x86_64 with Cmake. The steps I 
took:

1. Copy FindPHPDev.cmake to /usr/share/cmake/Modules/
2. Applied cqpid_php.20120406.diff in the $REPO/qpid directory: patch -p0  
cqpid_php.20120406.diff
3. Created an out-of-tree build environment: mkdir cmake; cd cmake; cmake 
../qpid/cpp
4. Run the build: make

The result I see is:

[100%] Building CXX object 
bindings/qpid/php/CMakeFiles/cqpid_php.dir/phpPHP_wrap.o
/home/mcpierce/Programming/Qpid/cmake/bindings/qpid/php/phpPHP_wrap.cxx: In 
function ‘qpid::types::Variant zvalToVariant(zval**)’:
/home/mcpierce/Programming/Qpid/cmake/bindings/qpid/php/phpPHP_wrap.cxx:1544:107:
 error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive]
In file included from 
/home/mcpierce/Programming/Qpid/cmake/bindings/qpid/php/phpPHP_wrap.cxx:742:0:
/usr/include/php/Zend/zend_API.h:337:45: error:   initializing argument 2 of 
‘int zend_get_object_classname(const zval*, const char**, zend_uint*)’ 
[-fpermissive]
/home/mcpierce/Programming/Qpid/cmake/bindings/qpid/php/phpPHP_wrap.cxx:1555:91:
 error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make[3]: *** [bindings/qpid/php/CMakeFiles/cqpid_php.dir/phpPHP_wrap.o] Error 1
make[2]: *** [bindings/qpid/php/CMakeFiles/cqpid_php.dir/all] Error 2
make[1]: *** [bindings/qpid/php/CMakeFiles/cqpid_php.dir/rule] Error 2
make: *** [cqpid_php] Error 2

Building with automake tools I get:


/bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. 
-I../../../../qpid/cpp/bindings/qpid/php -I../../../src 
-I../../../../qpid/cpp/include -I../../../include   -fpic 
-I../../../../qpid/cpp/include -I../../../include -I/usr/include/php 
-I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend 
-I/usr/include/php/ext -I/usr/include/php/ext/date/lib 
-DPHP_QPID_VERSION='0.19' -Wno-write-strings -g -O2 -MT cqpid_la-cqpid.lo -MD 
-MP -MF .deps/cqpid_la-cqpid.Tpo -c -o cqpid_la-cqpid.lo `test -f 'cqpid.cpp' 
|| echo '../../../../qpid/cpp/bindings/qpid/php/'`cqpid.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. 
-I../../../../qpid/cpp/bindings/qpid/php -I../../../src 
-I../../../../qpid/cpp/include -I../../../include -fpic 
-I../../../../qpid/cpp/include -I../../../include -I/usr/include/php 
-I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend 
-I/usr/include/php/ext -I/usr/include/php/ext/date/lib 
-DPHP_QPID_VERSION=\0.19\ -Wno-write-strings -g -O2 -MT cqpid_la-cqpid.lo -MD 
-MP -MF .deps/cqpid_la-cqpid.Tpo -c cqpid.cpp  -fPIC -DPIC -o 
.libs/cqpid_la-cqpid.o
cqpid.cpp: In function 'qpid::types::Variant zvalToVariant(zval**)':
cqpid.cpp:1544:107: error: invalid conversion from 'char**' to 'const char**' 
[-fpermissive]
In file included from cqpid.cpp:742:0:
/usr/include/php/Zend/zend_API.h:337:45: error:   initializing argument 2 of 
'int zend_get_object_classname(const zval*, const char**, zend_uint*)' 
[-fpermissive]
cqpid.cpp:1555:91: error: invalid conversion from 'const char*' to 'char*' 
[-fpermissive]
make[3]: *** [cqpid_la-cqpid.lo] Error 1
make[3]: Leaving directory 
`/home/mcpierce/Programming/Qpid/automake/bindings/qpid/php'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/home/mcpierce/Programming/Qpid/automake/bindings/qpid'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/home/mcpierce/Programming/Qpid/automake/bindings/qpid'
make: *** [all-recursive] Error 1


 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Darryl L. Pierce
 Attachments: cqpid_php.20110220.diff, cqpid_php.20110301.diff, 
 cqpid_php.20110328.diff, cqpid_php.20110415.diff, cqpid_php.20120406.diff, 
 cqpid_php.diff, FindPHPDev.cmake, Makefile


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they 

[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2012-09-28 Thread Paul Colby (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13466073#comment-13466073
 ] 

Paul Colby commented on QPID-3027:
--

Thanks Darryl.  I'll look into it :)

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Darryl L. Pierce
 Attachments: cqpid_php.20110220.diff, cqpid_php.20110301.diff, 
 cqpid_php.20110328.diff, cqpid_php.20110415.diff, cqpid_php.20120406.diff, 
 cqpid_php.diff, FindPHPDev.cmake, Makefile


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2011-07-28 Thread David Simon (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13072337#comment-13072337
 ] 

David Simon commented on QPID-3027:
---

thank you for the effort.

it works fine with cmake.

David

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Ted Ross
 Attachments: FindPHPDev.cmake, Makefile, cqpid_php.20110220.diff, 
 cqpid_php.20110301.diff, cqpid_php.20110328.diff, cqpid_php.20110415.diff, 
 cqpid_php.diff


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
Apache Qpid - AMQP Messaging Implementation
Project:  http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org



[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2011-07-19 Thread Paul Colby (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13067633#comment-13067633
 ] 

Paul Colby commented on QPID-3027:
--

Regarding the segfault, I've created a very small test case that reproduces the 
same fault without involving PHP or swig at all, and reported it as a separate 
issue - https://issues.apache.org/jira/browse/QPID-3364

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Ted Ross
 Attachments: FindPHPDev.cmake, Makefile, cqpid_php.20110220.diff, 
 cqpid_php.20110301.diff, cqpid_php.20110328.diff, cqpid_php.20110415.diff, 
 cqpid_php.diff


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
Apache Qpid - AMQP Messaging Implementation
Project:  http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org



[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2011-06-27 Thread David Simon (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13055613#comment-13055613
 ] 

David Simon commented on QPID-3027:
---

hey Paul,

it is a 32 bit debian squeeze in VirtualBox, just for test it. The debug 
version of the php was only for the backtrace.

I have just now made a brand new deployment again.

here is your request (though I know that you wanted it about the last 
deployment):
david@qpid4:~$ which -a php php-config
/usr/bin/php
/usr/bin/php-config

david@qpid4:~$ php -r 'phpinfo();' | grep -A7 '^cqpid$'
cqpid

Qpid Version = 0.11
SWIG Version = 2.0.4
Targeted PHP Version = 5.3.3 (5.3.3-7+squeeze1)
PHP Thread Safety = disabled
Compiler Version = gcc 4.4.5
Build Date = Jun 27 2011 17:27:45

here is my installation process (mostly the relevant lines are copied from the 
.bash_history):
cd ~

sudo apt-get install cmake libopenais-dev uuid-dev libboost-all-dev php5-cli 
php5-dev subversion build-essential automake autoconf libtool ruby python 
sasl2-bin libpcre3-dev 

svn co http://svn.apache.org/repos/asf/qpid/trunk/qpid -r r1092662

cd ~

wget https://issues.apache.org/jira/secure/attachment/12476447/FindPHPDev.cmake

sudo cp FindPHPDev.cmake /usr/share/cmake-2.8/Modules/

wget 
https://issues.apache.org/jira/secure/attachment/12476446/cqpid_php.20110415.diff
patch -p0 cqpid_php.20110415.diff 
cd qpid/cpp
./bootstrap 
./configure 
make
sudo make install

here there is a Makefile problem:

libtool: install: warning: relinking `acl.la'
libtool: install: (cd /home/david/qpid/cpp/src; /bin/bash 
/home/david/qpid/cpp/libtool  --tag CXX --mode=relink g++ -Werror -pedantic 
-Wall -Wextra -Wno-shadow -Wpointer-arith -Wcast-qual -Wcast-align 
-Wno-long-long -Wvolatile-register-var -Winvalid-pch -Wno-system-headers 
-Woverloaded-virtual -DQPID_LIBEXEC_DIR=\/usr/local/libexec/qpid\ 
-DBOOST_FILESYSTEM_VERSION=2 -g -O2 -no-undefined -module -avoid-version -o 
acl.la -rpath /usr/local/lib/qpid/daemon qpid/acl/Acl.lo qpid/acl/AclData.lo 
qpid/acl/AclPlugin.lo qpid/acl/AclReader.lo qpid/acl/AclValidator.lo 
libqpidbroker.la )
libtool: relink: g++ -shared -nostdlib 
/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/crti.o 
/usr/lib/gcc/i486-linux-gnu/4.4.5/crtbeginS.o  qpid/acl/.libs/Acl.o 
qpid/acl/.libs/AclData.o qpid/acl/.libs/AclPlugin.o qpid/acl/.libs/AclReader.o 
qpid/acl/.libs/AclValidator.o   -L/usr/local/lib -lqpidbroker 
-L/usr/lib/gcc/i486-linux-gnu/4.4.5 
-L/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib -L/lib/../lib 
-L/usr/lib/../lib -L/usr/lib/gcc/i486-linux-gnu/4.4.5/../../.. -lstdc++ -lm -lc 
-lgcc_s /usr/lib/gcc/i486-linux-gnu/4.4.5/crtendS.o 
/usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/crtn.o-Wl,-soname 
-Wl,acl.so -o .libs/acl.so
/usr/bin/ld: cannot find -lqpidbroker
collect2: ld returned 1 exit status
libtool: install: error: relink `acl.la' with the above command before 
installing it
make[3]: *** [install-dmoduleexecLTLIBRARIES] Error 1
make[3]: Leaving directory `/home/david/qpid/cpp/src'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/david/qpid/cpp/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/david/qpid/cpp/src'
make: *** [install-recursive] Error 1

# that's why I do:

sudo cp src/.libs/libq*.so /lib/

and somehow it hasnt created the cqpid.ini under the /etc/php5/conf.d

I create it.

and the result:

david@qpid4:~$ php -r 
Segmentation fault

best regards,
David

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Ted Ross
 Attachments: FindPHPDev.cmake, Makefile, cqpid_php.20110220.diff, 
 cqpid_php.20110301.diff, cqpid_php.20110328.diff, cqpid_php.20110415.diff, 
 cqpid_php.diff


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2011-06-27 Thread Paul Colby (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13056218#comment-13056218
 ] 

Paul Colby commented on QPID-3027:
--

Thanks David!  I'm now able to reproduce the segfault... I'll investigate 
further :)

Paul.

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Ted Ross
 Attachments: FindPHPDev.cmake, Makefile, cqpid_php.20110220.diff, 
 cqpid_php.20110301.diff, cqpid_php.20110328.diff, cqpid_php.20110415.diff, 
 cqpid_php.diff


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
Apache Qpid - AMQP Messaging Implementation
Project:  http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org



[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2011-04-15 Thread jirapos...@reviews.apache.org (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13020273#comment-13020273
 ] 

jirapos...@reviews.apache.org commented on QPID-3027:
-


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/462/
---

(Updated 2011-04-15 11:43:31.835386)


Review request for qpid.


Changes
---

Implemented CMake support.  Note, update also requires a custom CMake module if 
building with CMake.  See https://issues.apache.org/jira/browse/QPID-3027 for 
details, and to download FindPHPDev.cmake.


Summary
---

A SWIG-based PHP binding for the Qpid Messaging API.

The SWIG-based binding itself is complete, and working (hence needing review).

This diff includes integration with Qpid's autoconf build system.  I've only 
just begun learning autoconf / automake, so the build integration definitely 
needs review too :)


This addresses bug QPID-3027.
https://issues.apache.org/jira/browse/QPID-3027


Diffs (updated)
-

  http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/CMakeLists.txt 1092659 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/CMakeLists.txt
 PRE-CREATION 
  http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/Makefile.am 
1092659 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/examples/php/cli/list_agents.php
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/php/CMakeLists.txt
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/php/Makefile.am
 PRE-CREATION 
  http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/php/php.i 
PRE-CREATION 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/CMakeLists.txt
 1092659 
  http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/Makefile.am 
1092659 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/client.php
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/hello_world.php
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/map_receiver.php
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/map_sender.php
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/server.php
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/web/hello_world.php
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/php/CMakeLists.txt
 PRE-CREATION 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/php/Makefile.am
 PRE-CREATION 
  http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/php/php.i 
PRE-CREATION 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/php/phpinfo.i 
PRE-CREATION 
  
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/swig_php_typemaps.i
 PRE-CREATION 
  http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/configure.ac 1092659 

Diff: https://reviews.apache.org/r/462/diff


Testing
---


Thanks,

Paul



 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Ted Ross
 Attachments: FindPHPDev.cmake, Makefile, cqpid_php.20110220.diff, 
 cqpid_php.20110301.diff, cqpid_php.20110328.diff, cqpid_php.20110415.diff, 
 cqpid_php.diff


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
Apache Qpid - AMQP Messaging Implementation
Project:  http://qpid.apache.org
Use/Interact: 

[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2011-04-05 Thread jirapos...@reviews.apache.org (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13015832#comment-13015832
 ] 

jirapos...@reviews.apache.org commented on QPID-3027:
-



bq.  On 2011-04-04 17:36:13, Steve Huston wrote:
bq.   Could you also please add the needed pieces for cmake builds?

Will do... I'm working on them at the moment ;)


- Paul


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/462/#review378
---


On 2011-03-29 14:07:55, Paul Colby wrote:
bq.  
bq.  ---
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/462/
bq.  ---
bq.  
bq.  (Updated 2011-03-29 14:07:55)
bq.  
bq.  
bq.  Review request for qpid.
bq.  
bq.  
bq.  Summary
bq.  ---
bq.  
bq.  A SWIG-based PHP binding for the Qpid Messaging API.
bq.  
bq.  The SWIG-based binding itself is complete, and working (hence needing 
review).
bq.  
bq.  This diff includes integration with Qpid's autoconf build system.  I've 
only just begun learning autoconf / automake, so the build integration 
definitely needs review too :)
bq.  
bq.  
bq.  This addresses bug QPID-3027.
bq.  https://issues.apache.org/jira/browse/QPID-3027
bq.  
bq.  
bq.  Diffs
bq.  -
bq.  
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/Makefile.am 
1086164 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/examples/php/cli/list_agents.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/php/Makefile.am
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/php/php.i 
PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/Makefile.am 
1086164 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/client.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/hello_world.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/map_receiver.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/map_sender.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/server.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/web/hello_world.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/php/Makefile.am
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/php/php.i 
PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/php/phpinfo.i 
PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/swig_php_typemaps.i
 PRE-CREATION 
bq.http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/configure.ac 1086164 
bq.  
bq.  Diff: https://reviews.apache.org/r/462/diff
bq.  
bq.  
bq.  Testing
bq.  ---
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Paul
bq.  
bq.



 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Ted Ross
 Attachments: Makefile, cqpid_php.20110220.diff, 
 cqpid_php.20110301.diff, cqpid_php.20110328.diff, cqpid_php.diff


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
Apache Qpid - AMQP Messaging Implementation
Project:  http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org


[jira] [Commented] (QPID-3027) PHP binding of Qpid Messaging API

2011-04-04 Thread jirapos...@reviews.apache.org (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13015510#comment-13015510
 ] 

jirapos...@reviews.apache.org commented on QPID-3027:
-


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/462/#review378
---


Could you also please add the needed pieces for cmake builds?

- Steve


On 2011-03-29 14:07:55, Paul Colby wrote:
bq.  
bq.  ---
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/462/
bq.  ---
bq.  
bq.  (Updated 2011-03-29 14:07:55)
bq.  
bq.  
bq.  Review request for qpid.
bq.  
bq.  
bq.  Summary
bq.  ---
bq.  
bq.  A SWIG-based PHP binding for the Qpid Messaging API.
bq.  
bq.  The SWIG-based binding itself is complete, and working (hence needing 
review).
bq.  
bq.  This diff includes integration with Qpid's autoconf build system.  I've 
only just begun learning autoconf / automake, so the build integration 
definitely needs review too :)
bq.  
bq.  
bq.  This addresses bug QPID-3027.
bq.  https://issues.apache.org/jira/browse/QPID-3027
bq.  
bq.  
bq.  Diffs
bq.  -
bq.  
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/Makefile.am 
1086164 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/examples/php/cli/list_agents.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/php/Makefile.am
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qmf2/php/php.i 
PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/Makefile.am 
1086164 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/client.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/hello_world.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/map_receiver.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/map_sender.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/cli/server.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/examples/php/web/hello_world.php
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/php/Makefile.am
 PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/php/php.i 
PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/qpid/php/phpinfo.i 
PRE-CREATION 
bq.
http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/bindings/swig_php_typemaps.i
 PRE-CREATION 
bq.http://svn.apache.org/repos/asf/qpid/trunk/qpid/cpp/configure.ac 1086164 
bq.  
bq.  Diff: https://reviews.apache.org/r/462/diff
bq.  
bq.  
bq.  Testing
bq.  ---
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Paul
bq.  
bq.



 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
Assignee: Ted Ross
 Attachments: Makefile, cqpid_php.20110220.diff, 
 cqpid_php.20110301.diff, cqpid_php.20110328.diff, cqpid_php.diff


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
Apache Qpid - AMQP Messaging Implementation
Project:  http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org



[jira] Commented: (QPID-3027) PHP binding of Qpid Messaging API

2011-02-18 Thread Paul Colby (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12996673#comment-12996673
 ] 

Paul Colby commented on QPID-3027:
--

The SWIG Segfault on overloaded methods with different return types issue I 
reported has just been fixed :)

This means that we won't need to rename/ignore certain overloaded methods when 
using SWIG 2.0.2+ (when its released; or r12471 in the meantime). So I think 
the least confusing thing to do is %ignore the offending overloads on for 
earlier versions of SWIG, rather than %rename them (which would introduce 
entirely new function names - worth avoiding).

Type-mapping is 99% done... will upload soon! :)

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
 Attachments: cqpid_php.diff


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
Apache Qpid - AMQP Messaging Implementation
Project:  http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org



[jira] Commented: (QPID-3027) PHP binding of Qpid Messaging API

2011-02-08 Thread Paul Colby (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12991848#comment-12991848
 ] 

Paul Colby commented on QPID-3027:
--

I've just attached an initial PHP binding.  This includes:
* the basic SWIG interface files.
* three PHP CLI examples (ports of the hello_world, client and server examples 
from C++ to PHP).
* a basic temporary Makefile (just for initial development).

Still to go:
* Variant mapping.
* map_sender and map_receiver examples (depends on Variant mapping).
* phpinfo implementation.
* integration into Qpid's build system.

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby
 Attachments: cqpid_php.diff


 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
Apache Qpid - AMQP Messaging Implementation
Project:  http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org



[jira] Commented: (QPID-3027) PHP binding of Qpid Messaging API

2011-02-01 Thread Paul Colby (JIRA)

[ 
https://issues.apache.org/jira/browse/QPID-3027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12989121#comment-12989121
 ] 

Paul Colby commented on QPID-3027:
--

Another related SWIG bug report:
* %nspace does not work for PHP - 
https://sourceforge.net/tracker/?func=detailaid=3169536group_id=1645atid=101645

 PHP binding of Qpid Messaging API
 -

 Key: QPID-3027
 URL: https://issues.apache.org/jira/browse/QPID-3027
 Project: Qpid
  Issue Type: New Feature
  Components: C++ Client
Affects Versions: 0.8
Reporter: Paul Colby

 Working on a PHP binding for the Qpid Messaging API via SWIG.  There are 
 several PHP-specific issues with C++ and SWIG which I've managed to 
 workaround, so the binding is starting to take shape, but still very much a 
 work in progress.
 The rough plan:
 1. report relevant bugs / feature requests to SWIG (done).
 2. clean-up Qpid php.i SWIG interface file (mostly done - just need to 
 implement PHP namespaces).
 3. implement qpid::types::Variant - PHP typemapping (not started).
 4. implement printinfo pragma (should be easy, just need to choose what info 
 to include).
 5. create relevant [auto]makefile.
 Of course, there's lots of things to discuss / decide along the way... so 
 I'll post 'em here as they come up.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



-
Apache Qpid - AMQP Messaging Implementation
Project:  http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org