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 2012/10/16 22:49:17 UTC

svn commit: r1398989 - /qpid/proton/trunk/proton-c/bindings/php/proton.php

Author: rhs
Date: Tue Oct 16 20:49:16 2012
New Revision: 1398989

URL: http://svn.apache.org/viewvc?rev=1398989&view=rev
Log:
tweaked php bindings

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=1398989&r1=1398988&r2=1398989&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/php/proton.php (original)
+++ qpid/proton/trunk/proton-c/bindings/php/proton.php Tue Oct 16 20:49:16 2012
@@ -29,7 +29,7 @@ class MessengerException extends ProtonE
 
 class MessageException extends ProtonException {}
 
-$EXCEPTIONS = array(PN_TIMEOUT => Timeout);
+$EXCEPTIONS = array(PN_TIMEOUT => "Timeout");
 
 class Messenger
 {
@@ -50,7 +50,7 @@ class Messenger
   private function _check($value) {
     if ($value < 0) {
       $exc = $EXCEPTIONS[$value];
-      if ($exc == null) $exc = MessengerException;
+      if ($exc == null) $exc = "MessengerException";
       throw new $exc("[$value]: " . pn_messenger_error($this->impl));
     } else {
       return $value;
@@ -162,7 +162,7 @@ class Message {
   private function _check($value) {
     if ($value < 0) {
       $exc = $EXCEPTIONS[$value];
-      if ($exc == null) $exc = MessageException;
+      if ($exc == null) $exc = "MessageException";
       throw new $exc("[$value]: " . pn_message_error($this->impl));
     } else {
       return $value;
@@ -471,7 +471,7 @@ class Data {
   public function _check($value) {
     if ($value < 0) {
       $exc = $EXCEPTIONS[$value];
-      if ($exc == null) $exc = DataException;
+      if ($exc == null) $exc = "DataException";
       throw new $exc("[$value]");
     } else {
       return $value;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org