From ed1b64877d82af71bc64a48bf914046640e8a270 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Fri, 3 Jul 2015 09:45:03 -0500 Subject: Switch position of ce in exception ce variable names --- ext/snmp/snmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/snmp/snmp.c') diff --git a/ext/snmp/snmp.c b/ext/snmp/snmp.c index 08917ae917..92b7732e67 100644 --- a/ext/snmp/snmp.c +++ b/ext/snmp/snmp.c @@ -1820,7 +1820,7 @@ PHP_METHOD(snmp, __construct) case SNMP_VERSION_3: break; default: - zend_throw_exception(zend_exception_ce, "Unknown SNMP protocol version", 0); + zend_throw_exception(zend_ce_exception, "Unknown SNMP protocol version", 0); return; } @@ -2419,7 +2419,7 @@ PHP_MINIT_FUNCTION(snmp) #ifdef HAVE_SPL php_snmp_exception_ce = zend_register_internal_class_ex(&cex, spl_ce_RuntimeException); #else - php_snmp_exception_ce = zend_register_internal_class_ex(&cex, zend_exception_ce); + php_snmp_exception_ce = zend_register_internal_class_ex(&cex, zend_ce_exception); #endif return SUCCESS; -- cgit v1.2.1