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