1 /**
2  * Copyright 2015-2017 DataStax, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "php_driver.h"
18 #include "php_driver_types.h"
19 
20 zend_class_entry *php_driver_invalid_argument_exception_ce = NULL;
21 
22 static zend_function_entry InvalidArgumentException_methods[] = {
23   PHP_FE_END
24 };
25 
php_driver_define_InvalidArgumentException(TSRMLS_D)26 void php_driver_define_InvalidArgumentException(TSRMLS_D)
27 {
28   zend_class_entry ce;
29 
30   INIT_CLASS_ENTRY(ce, PHP_DRIVER_NAMESPACE "\\Exception\\InvalidArgumentException", InvalidArgumentException_methods);
31   php_driver_invalid_argument_exception_ce = php5to7_zend_register_internal_class_ex(&ce, spl_ce_InvalidArgumentException);
32   zend_class_implements(php_driver_invalid_argument_exception_ce TSRMLS_CC, 1, php_driver_exception_ce);
33 }
34