1 /* 2 +----------------------------------------------------------------------+ 3 | Copyright (c) The PHP Group | 4 +----------------------------------------------------------------------+ 5 | This source file is subject to version 3.01 of the PHP license, | 6 | that is bundled with this package in the file LICENSE, and is | 7 | available through the world-wide-web at the following url: | 8 | http://www.php.net/license/3_01.txt | 9 | If you did not receive a copy of the PHP license and are unable to | 10 | obtain it through the world-wide-web, please send a note to | 11 | license@php.net so we can mail you a copy immediately. | 12 +----------------------------------------------------------------------+ 13 | Author: | 14 +----------------------------------------------------------------------+ 15 */ 16 17 #ifndef PHP_TEST_H 18 #define PHP_TEST_H 19 20 extern zend_module_entry zend_test_module_entry; 21 #define phpext_zend_test_ptr &zend_test_module_entry 22 23 #define PHP_ZEND_TEST_VERSION "0.1.0" 24 25 #ifdef ZTS 26 #include "TSRM.h" 27 #endif 28 29 #if defined(ZTS) && defined(COMPILE_DL_ZEND_TEST) 30 ZEND_TSRMLS_CACHE_EXTERN() 31 #endif 32 33 struct bug79096 { 34 uint64_t a; 35 uint64_t b; 36 }; 37 38 #ifdef PHP_WIN32 39 # define PHP_ZEND_TEST_API __declspec(dllexport) 40 #elif defined(__GNUC__) && __GNUC__ >= 4 41 # define PHP_ZEND_TEST_API __attribute__ ((visibility("default"))) 42 #else 43 # define PHP_ZEND_TEST_API 44 #endif 45 46 PHP_ZEND_TEST_API struct bug79096 bug79096(void); 47 PHP_ZEND_TEST_API void bug79532(off_t *array, size_t elems); 48 49 extern PHP_ZEND_TEST_API int *(*bug79177_cb)(void); 50 PHP_ZEND_TEST_API void bug79177(void); 51 52 #endif 53