You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2013/02/15 21:06:39 UTC
svn commit: r1446749 - /qpid/proton/trunk/proton-c/bindings/php/proton.php
Author: rhs
Date: Fri Feb 15 20:06:38 2013
New Revision: 1446749
URL: http://svn.apache.org/r1446749
Log:
added an error check
Modified:
qpid/proton/trunk/proton-c/bindings/php/proton.php
Modified: qpid/proton/trunk/proton-c/bindings/php/proton.php
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/php/proton.php?rev=1446749&r1=1446748&r2=1446749&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/php/proton.php (original)
+++ qpid/proton/trunk/proton-c/bindings/php/proton.php Fri Feb 15 20:06:38 2013
@@ -116,6 +116,9 @@ class Messenger
}
public function subscribe($source) {
+ if ($source == null) {
+ throw new MessengerException("null source passed to subscribe");
+ }
$this->_check(pn_messenger_subscribe($this->impl, $source));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org