Skip to content

Commit 04df992

Browse files
committed
Fall back to driver's RuntimeException instead of SPL
1 parent 6bafc95 commit 04df992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php_phongo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ zend_class_entry* phongo_exception_from_phongo_domain(php_phongo_error_domain_t
106106
}
107107

108108
MONGOC_ERROR("Resolving unknown exception domain!!!");
109-
return spl_ce_RuntimeException;
109+
return php_phongo_runtimeexception_ce;
110110
}
111111
zend_class_entry* phongo_exception_from_mongoc_domain(uint32_t /* mongoc_error_domain_t */ domain, uint32_t /* mongoc_error_code_t */ code)
112112
{
@@ -166,7 +166,7 @@ zend_class_entry* phongo_exception_from_mongoc_domain(uint32_t /* mongoc_error_d
166166
return phongo_ce_mongo_connection_exception;
167167
#endif
168168
default:
169-
return spl_ce_RuntimeException;
169+
return php_phongo_runtimeexception_ce;
170170
}
171171
}
172172
PHONGO_API zval* phongo_throw_exception(php_phongo_error_domain_t domain TSRMLS_DC, const char *format, ...)

0 commit comments

Comments
 (0)