Skip to content

Commit 68a73ce

Browse files
committed
fixed parameter order for zend_throw_exception_ex call
1 parent 1b3e2c2 commit 68a73ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/snmp/snmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ static void php_snmp_error(zval *object, const char *docref TSRMLS_DC, int type,
533533
}
534534

535535
if (object && (snmp_object->exceptions_enabled & type)) {
536-
zend_throw_exception_ex(php_snmp_exception_ce, type, snmp_object->snmp_errstr TSRMLS_CC);
536+
zend_throw_exception_ex(php_snmp_exception_ce, type TSRMLS_CC, snmp_object->snmp_errstr);
537537
} else {
538538
va_start(args, format);
539539
php_verror(docref, "", E_WARNING, format, args TSRMLS_CC);

0 commit comments

Comments
 (0)