svn: /pecl/stomp/trunk/ php_stomp.c
| From: | Kalle Sommer Nielsen | Date: | Wed, 04 Nov 2009 13:52:58 +0000 |
| Subject: | svn: /pecl/stomp/trunk/ php_stomp.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-13227@lists.php.net to get a copy of this message | ||
kalle Wed, 04 Nov 2009 13:52:58 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290201
Log:
These should be either E_WARNING or E_RECORABLE_ERROR, they are non-fatal show-stoppers :)
Changed paths:
U pecl/stomp/trunk/php_stomp.c
Modified: pecl/stomp/trunk/php_stomp.c
===================================================================
--- pecl/stomp/trunk/php_stomp.c 2009-11-04 13:45:16 UTC (rev 290200)
+++ pecl/stomp/trunk/php_stomp.c 2009-11-04 13:52:58 UTC (rev 290201)
@@ -613,8 +613,9 @@
FRAME_HEADER_FROM_HASHTABLE(frame.headers, Z_ARRVAL_P(frame_obj_prop));
}
} else {
- php_error_docref(NULL TSRMLS_CC, E_ERROR, "Expects parameter %d to be a string or a
StompFrame object.", stomp_object?2:3);
- }
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Expects parameter %d to be a string or a
StompFrame object.", stomp_object?2:3);
+ RETURN_NULL();
+ }
if (stomp_send(stomp, &frame TSRMLS_CC) > 0) {
success = stomp_valid_receipt(stomp, &frame);
@@ -917,8 +918,9 @@
FRAME_HEADER_FROM_HASHTABLE(frame.headers, Z_ARRVAL_P(frame_obj_prop));
}
} else {
- php_error_docref(NULL TSRMLS_CC, E_ERROR, "Expects parameter %d to be a string or a
StompFrame object.", stomp_object?2:3);
- }
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Expects parameter %d to be a string or a
StompFrame object.", stomp_object?2:3);
+ RETURN_NULL();
+ }
if (stomp_send(stomp, &frame TSRMLS_CC) > 0) {
success = stomp_valid_receipt(stomp, &frame);