forked from NoiseByNorthwest/php-spx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
php_spx.h
50 lines (40 loc) · 1.56 KB
/
php_spx.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/* SPX - A simple profiler for PHP
* Copyright (C) 2017-2024 Sylvain Lassaut <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef PHP_SPX_H
#define PHP_SPX_H
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "main/php.h"
/* linux 2.6+ or OSX */
#if !defined(linux) && !(defined(__APPLE__) && defined(__MACH__)) && !defined(__FreeBSD__)
# error "Only Linux-based OSes, Apple MacOS and FreeBSD are supported"
#endif
#if !defined(__x86_64__) && !defined(__aarch64__)
# error "Only x86-64 and ARM64 architectures are supported"
#endif
#if ZEND_MODULE_API_NO < 20100525 || ZEND_MODULE_API_NO > 20230831 // 8.3-RC5
# error "Only the following PHP versions are supported: 5.4 to 8.3"
#endif
#if defined(ZTS) && !defined(CONTINUOUS_INTEGRATION)
# error "ZTS is not yet supported"
#endif
#define PHP_SPX_EXTNAME "SPX"
#define PHP_SPX_VERSION "0.4.15"
extern zend_module_entry spx_module_entry;
#define phpext_spx_ptr &spx_module_entry
#endif