@@ -606,7 +606,7 @@ PHP_MINIT_FUNCTION(mysqli)
606606#ifdef HAVE_SPL
607607 mysqli_exception_class_entry = zend_register_internal_class_ex (& cex , spl_ce_RuntimeException );
608608#else
609- mysqli_exception_class_entry = zend_register_internal_class_ex (& cex , zend_exception_get_default () );
609+ mysqli_exception_class_entry = zend_register_internal_class_ex (& cex , zend_exception_ce );
610610#endif
611611 mysqli_exception_class_entry -> ce_flags |= ZEND_ACC_FINAL ;
612612 zend_declare_property_long (mysqli_exception_class_entry , "code" , sizeof ("code" )- 1 , 0 , ZEND_ACC_PROTECTED );
@@ -1302,7 +1302,7 @@ void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int override_flags
13021302 * single value is an array. Also we'd have to make that one
13031303 * argument passed by reference.
13041304 */
1305- zend_throw_exception (zend_exception_get_default () , "Parameter ctor_params must be an array" , 0 );
1305+ zend_throw_exception (zend_exception_ce , "Parameter ctor_params must be an array" , 0 );
13061306 return ;
13071307 }
13081308 }
@@ -1314,15 +1314,15 @@ void php_mysqli_fetch_into_hash(INTERNAL_FUNCTION_PARAMETERS, int override_flags
13141314 fcc .object = Z_OBJ_P (return_value );
13151315
13161316 if (zend_call_function (& fci , & fcc ) == FAILURE ) {
1317- zend_throw_exception_ex (zend_exception_get_default () , 0 , "Could not execute %s::%s()" , ZSTR_VAL (ce -> name ), ZSTR_VAL (ce -> constructor -> common .function_name ));
1317+ zend_throw_exception_ex (zend_exception_ce , 0 , "Could not execute %s::%s()" , ZSTR_VAL (ce -> name ), ZSTR_VAL (ce -> constructor -> common .function_name ));
13181318 } else {
13191319 zval_ptr_dtor (& retval );
13201320 }
13211321 if (fci .params ) {
13221322 efree (fci .params );
13231323 }
13241324 } else if (ctor_params ) {
1325- zend_throw_exception_ex (zend_exception_get_default () , 0 , "Class %s does not have a constructor hence you cannot use ctor_params" , ZSTR_VAL (ce -> name ));
1325+ zend_throw_exception_ex (zend_exception_ce , 0 , "Class %s does not have a constructor hence you cannot use ctor_params" , ZSTR_VAL (ce -> name ));
13261326 }
13271327 }
13281328}
0 commit comments