summaryrefslogtreecommitdiff
path: root/ext/zend_test/php_test.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2017-03-11 00:33:32 +0100
committerJoe Watkins <krakjoe@php.net>2017-03-12 18:58:50 +0000
commitb3ca0c25003e5e9279159aa2e6460b25908332c4 (patch)
treeb47666ad94b030fe31820d3e4f325788f5ae1a5f /ext/zend_test/php_test.h
parentea91c082328c6f93f20a078896c16c2051061f47 (diff)
downloadphp-git-b3ca0c25003e5e9279159aa2e6460b25908332c4.tar.gz
zend-test extension to house code that is required for testing internal APIs, but that we would not want to expose for regular builds
Diffstat (limited to 'ext/zend_test/php_test.h')
-rw-r--r--ext/zend_test/php_test.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/ext/zend_test/php_test.h b/ext/zend_test/php_test.h
new file mode 100644
index 0000000000..fe8c5e47e4
--- /dev/null
+++ b/ext/zend_test/php_test.h
@@ -0,0 +1,47 @@
+/*
+ +----------------------------------------------------------------------+
+ | PHP Version 7 |
+ +----------------------------------------------------------------------+
+ | Copyright (c) 1997-2017 The PHP Group |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 3.01 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available through the world-wide-web at the following url: |
+ | http://www.php.net/license/3_01.txt |
+ | If you did not receive a copy of the PHP license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@php.net so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Author: |
+ +----------------------------------------------------------------------+
+*/
+
+/* $Id$ */
+
+#ifndef PHP_TEST_H
+#define PHP_TEST_H
+
+extern zend_module_entry zend_test_module_entry;
+#define phpext_zend_test_ptr &zend_test_module_entry
+
+#define PHP_ZEND_TEST_VERSION "0.1.0"
+
+#ifdef ZTS
+#include "TSRM.h"
+#endif
+
+#if defined(ZTS) && defined(COMPILE_DL_ZEND_TEST)
+ZEND_TSRMLS_CACHE_EXTERN()
+#endif
+
+#endif
+
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ * vim600: noet sw=4 ts=4 fdm=marker
+ * vim<600: noet sw=4 ts=4
+ */