|
| 1 | +/* |
| 2 | + +---------------------------------------------------------------------------+ |
| 3 | + | PHP Driver for MongoDB | |
| 4 | + +---------------------------------------------------------------------------+ |
| 5 | + | Copyright 2013-2014 MongoDB, Inc. | |
| 6 | + | | |
| 7 | + | Licensed under the Apache License, Version 2.0 (the "License"); | |
| 8 | + | you may not use this file except in compliance with the License. | |
| 9 | + | You may obtain a copy of the License at | |
| 10 | + | | |
| 11 | + | http://www.apache.org/licenses/LICENSE-2.0 | |
| 12 | + | | |
| 13 | + | Unless required by applicable law or agreed to in writing, software | |
| 14 | + | distributed under the License is distributed on an "AS IS" BASIS, | |
| 15 | + | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 16 | + | See the License for the specific language governing permissions and | |
| 17 | + | limitations under the License. | |
| 18 | + +---------------------------------------------------------------------------+ |
| 19 | + | Copyright (c) 2014, MongoDB, Inc. | |
| 20 | + +---------------------------------------------------------------------------+ |
| 21 | +*/ |
| 22 | + |
| 23 | +#ifdef HAVE_CONFIG_H |
| 24 | +# include "config.h" |
| 25 | +#endif |
| 26 | + |
| 27 | +/* External libs */ |
| 28 | +#include <bson.h> |
| 29 | +#include <mongoc.h> |
| 30 | + |
| 31 | +/* PHP Core stuff */ |
| 32 | +#include <php.h> |
| 33 | +#include <php_ini.h> |
| 34 | +#include <ext/standard/info.h> |
| 35 | +#include <Zend/zend_interfaces.h> |
| 36 | +#include <ext/spl/spl_iterators.h> |
| 37 | +/* Our Compatability header */ |
| 38 | +#include "php_compat_53.h" |
| 39 | + |
| 40 | +/* Our stuffz */ |
| 41 | +#include "php_phongo.h" |
| 42 | +#include "php_bson.h" |
| 43 | +#include <ext/spl/spl_exceptions.h> |
| 44 | + |
| 45 | + |
| 46 | +PHONGO_API zend_class_entry *php_phongo_invalidargumentexception_ce; |
| 47 | + |
| 48 | +/* {{{ MongoDB\Driver\InvalidArgumentException */ |
| 49 | + |
| 50 | +static zend_function_entry php_phongo_invalidargumentexception_me[] = { |
| 51 | + PHP_FE_END |
| 52 | +}; |
| 53 | + |
| 54 | +/* }}} */ |
| 55 | + |
| 56 | + |
| 57 | +/* {{{ PHP_MINIT_FUNCTION */ |
| 58 | +PHP_MINIT_FUNCTION(InvalidArgumentException) |
| 59 | +{ |
| 60 | + (void)type; (void)module_number; |
| 61 | + zend_class_entry ce; |
| 62 | + |
| 63 | + INIT_NS_CLASS_ENTRY(ce, "MongoDB\\Driver", "InvalidArgumentException", php_phongo_invalidargumentexception_me); |
| 64 | + php_phongo_invalidargumentexception_ce = zend_register_internal_class_ex(&ce, spl_ce_InvalidArgumentException, NULL TSRMLS_CC); |
| 65 | + zend_class_implements(php_phongo_invalidargumentexception_ce TSRMLS_CC, 1, php_phongo_exception_ce); |
| 66 | + |
| 67 | + return SUCCESS; |
| 68 | +} |
| 69 | +/* }}} */ |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | +/* |
| 74 | + * Local variables: |
| 75 | + * tab-width: 4 |
| 76 | + * c-basic-offset: 4 |
| 77 | + * End: |
| 78 | + * vim600: noet sw=4 ts=4 fdm=marker |
| 79 | + * vim<600: noet sw=4 ts=4 |
| 80 | + */ |
0 commit comments