-
Notifications
You must be signed in to change notification settings - Fork 1
/
php_ibmi_int.h
58 lines (52 loc) · 2.1 KB
/
php_ibmi_int.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
51
52
53
54
55
56
57
58
/*
+----------------------------------------------------------------------+
| Copyright (c) Seiden 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: |
| https://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: Calvin Buckley <calvin@cmpct.info> |
+----------------------------------------------------------------------+
*/
/* Internal header for sharing imports, since php_ibmi.h can be public */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "php.h"
#include "ext/standard/info.h"
#include "SAPI.h"
#include "php_ibmi.h"
#if PHP_MAJOR_VERSION >= 8
#include "ibmi_arginfo.h"
#else
#include "ibmi_legacy_arginfo.h"
#endif
/* For compatibility with older PHP versions */
#ifndef ZEND_PARSE_PARAMETERS_NONE
#define ZEND_PARSE_PARAMETERS_NONE() \
ZEND_PARSE_PARAMETERS_START(0, 0) \
ZEND_PARSE_PARAMETERS_END()
#endif
#if PHP_MAJOR_VERSION < 8
/*
* Not the right semantics (returns false instead of throws) but matches other
* functions' behaviour in 7.x. The ##__VA_ARGS__ trick is an extension that's
* supported in GNU C. Since things built for the RPM world in PASE use GCC,
* this is no problem.
*/
#define zend_argument_value_error(arg, msg, ...) php_error_docref(NULL, E_WARNING, "Argument %d " msg, arg ##__VA_ARGS__)
#endif
#ifndef RETURN_THROWS
#define RETURN_THROWS() RETURN_FALSE
#endif
/* Enum definitions */
typedef enum _PhpSystemClFlags {
IBMI_CL_EBCDIC_OUTPUT = 0x1,
IBMI_CL_SPAWN = 0x2,
IBMI_CL_NO_MESSAGES = 0x4,
} PhpSystemClFlags;