68 Commits

Author SHA1 Message Date
Remi Collet
5bb707e3af use zend_ce_exception instead of zend_exception_get_default() 2025-07-17 15:37:07 +02:00
Remi Collet
e083b058d4 Release 2.0.3 2022-05-31 10:53:22 +02:00
Remi Collet
380e82bba1 only add the ack if not already in the headers 2021-09-27 16:01:59 +02:00
Remi Collet
5e438eaa57 allow NULL for transaction_id 2021-09-27 15:40:19 +02:00
Remi Collet
13681a79d9 Fix compatibility with PHP 8 - cleanup remaining TSRMLS macros - fix read/update_property parameters - adapt test suite for exception in arg. parsing - fix callback 2020-09-25 16:09:41 +02:00
Peter Kokot
6847067569 Trim trailing whitespace 2018-10-03 09:43:57 +02:00
Peter Kokot
7b066620af Remove unused Git attributes ident
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifes handling of $Id$ keywords by removing them since
they are not used anymore.
2018-10-03 09:08:48 +02:00
Remi Collet
7f96e617e1 bump copyright in headers 2018-06-29 11:01:52 +02:00
Remi Collet
9f0f5e450b fix for 7.3 php_url fields are zend_string + some -Wformat issues 2018-06-29 09:36:49 +02:00
Xinchen Hui
a502f111ba prepare for 2.0.1 2017-05-04 14:26:43 +08:00
Pierrick Charron
bd384b27c1 get rid of EG(scope). zend_get_executed_scope() should be used instead 2016-06-09 13:32:55 -04:00
Pierrick Charron
2a6ef9570e Remove useless zend_fcall_info.function_table 2016-06-09 13:27:54 -04:00
Xinchen Hui
00d905f38d No need to be NULL 2016-05-20 11:05:57 +08:00
Xinchen Hui
b9ed24d491 micro optimization 2016-05-20 11:03:46 +08:00
Xinchen Hui
eebb749c55 Destructor has done the work 2016-05-20 10:54:00 +08:00
Xinchen Hui
c6af25e62e Don't touch the val in array 2016-05-20 10:51:34 +08:00
Xinchen Hui
e338378382 Fixed various bugs 2016-05-19 21:23:32 +08:00
Xinchen Hui
78f21f8c9d Cleanup! 2016-05-19 15:50:19 +08:00
Xinchen Hui
5c700a0bf7 Merge branch 'master' into seven
Conflicts:
	php_stomp.c
2016-05-18 15:13:55 +08:00
Xinchen Hui
7568d646c8 Fixed paramenter parsing 2016-05-18 13:01:36 +08:00
Xinchen Hui
a92bbe0a7b Fixed problems 2016-05-18 11:25:52 +08:00
Xinchen Hui
3b33618b89 Fixed stomp object handlers 2016-05-17 21:03:20 +08:00
Xinchen Hui
13998b92d2 Fixed segfault 2016-05-17 20:23:21 +08:00
Gennady Feldman
2999ec0106 Code cleanup, removing some obscure function alias. 2015-12-29 04:11:25 -05:00
Gennady Feldman
c3c62735af Adding .travis.yml to enable Travis CI test runner. WIP 2015-12-29 04:11:15 -05:00
Bob Weinand
f2cf97412b Compatibility with PHP 7 2015-12-08 16:40:29 +01:00
Gennady Feldman
f310a9229c Commenting out activemq.prefetchSize hardcoded header for SUBSCRIBE frame. 2015-11-18 16:12:23 -05:00
Gennady Feldman
84e46b6305 Make login and passcode headers optional (if no creds provided).
This makes "make test" pass for me running against RabbitMQ 3.5.6
with the "guest" user.

Also Stomp 1.1 says that the headers "MAY" be passed in.

See: https://stomp.github.io/stomp-specification-1.1.html#CONNECT_or_STOMP_Frame
2015-11-18 15:49:42 -05:00
Gennady Feldman
61dfdc2c75 Fixing type cast warning, introduced a new int variable. 2015-11-18 13:55:20 -05:00
Remi Collet
bf4539e523 fix perm on source files 2015-05-16 07:18:45 +02:00
Gennady Feldman
fbacdccd37 Fix error checking after stomp_send().
This one has been in there for a while and would hang for me in
1.0.6 release if the connection was refused.

Some tests would fail too. This error was also somewhat masked in
previous release. We should abort and throw an exception if send
fails.
2015-05-05 10:17:49 -04:00
Pierrick Charron
d37e34917d Make sure connection is closed on error 2014-12-07 14:40:23 -05:00
Pierrick Charron
189b8dcfc2 Fixed bug #64671 (Add stomp_nack and Stomp::nack functions). 2014-12-07 13:22:01 -05:00
Lorenzo Fontana
8e18eb079d Fix Bug #68497 Stomp client doesn't parse ERROR response on CONNECT 2014-12-02 19:28:20 +01:00
Peter Petermann
beb86e70fe added fix be marcelog, see #59970 2013-03-17 17:33:02 +01:00
Pierrick Charron
71caee45bc Add two new ini config default_username and default_password 2012-11-18 19:33:12 -05:00
Pierrick Charron
7d61983988 Fixed bug #59972 - Make body binary safe 2012-11-18 17:05:32 -05:00
Pierrick Charron
4886ef7435 Fixed bug #62831 (Stomp module seems not initializing SSL library first). (Patch by lwhsu at lwhsu dot org) 2012-08-16 03:23:42 +00:00
Pierrick Charron
4afeec47b5 Fix macros 2011-09-01 14:19:38 +00:00
Pierrick Charron
e95a759e70 Modify the phpinfo to display either or not the SSL support is enabled 2010-10-16 03:50:50 +00:00
Pierrick Charron
90ef82399f Remove useless call to zend_hash_internal_pointer_reset 2010-08-20 05:36:18 +00:00
Pierrick Charron
078bac3324 New details property in the StompException class
New method StompException::getDetails()
Add the body content in the Stomp::Error() method
2010-07-27 05:48:59 +00:00
Pierrick Charron
56c9d3d3f9 Fixed bug #17262 (Server is not responding on win32). 2010-06-07 02:31:30 +00:00
Pierrick Charron
3c59221f67 Remove unused variable 2010-06-07 01:06:18 +00:00
Pierrick Charron
994b70f0b6 Make the php_stomp.c compile with the new runtime cache 2010-06-06 18:22:03 +00:00
Pierrick Charron
3b33476692 Add headers param to the constructor to allow things like activemq durable/retroactive client support 2010-03-17 08:28:53 +00:00
Pierrick Charron
7293ab3977 Fix compilation issue on 5.2.x 2010-01-18 13:53:47 +00:00
Pierrick Charron
3b149a22b1 Add new methods/functions arg info 2010-01-18 02:42:16 +00:00
Pierrick Charron
3e73da930b Adds the ability to specify an alternative class for readFrame 2010-01-16 06:07:42 +00:00
Pierrick Charron
f50e766836 New copyright for 2010 2010-01-04 20:22:09 +00:00