-
Notifications
You must be signed in to change notification settings - Fork 16
/
PHP.INC
159 lines (129 loc) · 4.42 KB
/
PHP.INC
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{*******************************************************}
{ PHP4Delphi }
{ PHP - Delphi interface }
{ }
{ Author: }
{ Serhiy Perevoznyk }
{ serge_perevoznyk@hotmail.com }
{ http://users.chello.be/ws36637 }
{*******************************************************}
{ $Id: PHP.INC,v 6.2 02/2006 delphi32 Exp $ }
{IMPORTANT:
If you are using PHP version 4.2.x...4.3.0 please change $DEFINE PHP433 to $DEFINE PHP430
If you are using PHP version 5.0 please change $DEFINE PHP433 to $DEFINE PHP5 or remove it
If you are using PHP version 5.0.4 please add $DEFINE PHP504
If you are using PHP version 5.1.0 or higher please add $DEFINE PHP510
If you are using PHP version 5.1.1 or higher please add $DEFINE PHP511
If you are using PHP version 5.1.2 or higher please add $DEFINE PHP512
}
{.$DEFINE PHP4}
{.$DEFINE PHP433}
{.$DEFINE PHP430}
{If you are using PHP 4 please comment $DEFINE PHP5}
{PHP5 must be defined if you are using PHP5}
{$DEFINE PHP5}
{For PHP5 you have to define subversion}
{$DEFINE PHP504}
{$DEFINE PHP510}
{$DEFINE PHP511}
{$DEFINE PHP512}
{$IFDEF PHP433}
{$DEFINE PHP4}
{$UNDEF PHP5}
{$UNDEF PHP504}
{$UNDEF PHP510}
{$UNDEF PHP511}
{$UNDEF PHP512}
{$ENDIF}
{$IFDEF PHP430}
{$DEFINE PHP4}
{$UNDEF PHP5}
{$UNDEF PHP504}
{$UNDEF PHP510}
{$UNDEF PHP511}
{$UNDEF PHP512}
{$ENDIF}
{$IFDEF PHP5}
{$UNDEF PHP4}
{$UNDEF PHP430}
{$UNDEF PHP433}
{$ENDIF}
{$DEFINE QUIET_LOAD} //Do not show error while loading php4ts.dll
{.$DEFINE PHP4DELPHI_AUTOLOAD} //Load php4ts.dll at initialization
{.$DEFINE PHP4DELPHI_AUTOUNLOAD} // Unload php4ts.dll at finalization
{$DEFINE REGISTER_COLORS} //register php constants for colors
{$IFNDEF LINUX}
{$DEFINE ZTS} {zts support}
{$ENDIF}
{$IFNDEF VER80} {Delphi 1.0}
{$DEFINE VERSION2} {Delphi 2.0 and BCB 1 or higher}
{$ENDIF}
{$IFDEF VERSION2}
{$IFNDEF VER90} {Delphi 2.0}
{$IFNDEF VER93} {BCB 1.0}
{$DEFINE VERSION3} {Delphi 3.0 or BCB 3.0}
{$ENDIF}
{$ENDIF}
{$ENDIF}
{$IFDEF VERSION3}
{$IFNDEF VER100} {Delphi 3}
{$IFNDEF VER110} {BCB 3}
{$DEFINE VERSION4} {Delphi 4.0 or higher}
{$ENDIF}
{$ENDIF}
{$ENDIF}
{$IFDEF VERSION4}
{$IFNDEF VER120} {Delphi 4}
{$IFNDEF VER125} {BCB 4}
{$DEFINE VERSION5} {Delphi 5.0 or higher}
{$ENDIF}
{$ENDIF}
{$ENDIF}
{$IFDEF VERSION5}
{$IFNDEF VER130} {Delphi 5}
{$IFNDEF VER135} {BCB 5}
{$DEFINE VERSION6} {Delphi 6.0 or higher}
{$ENDIF}
{$ENDIF}
{$ENDIF}
{$IFDEF VERSION6}
{$IFNDEF VER140} {Delphi 6}
{$IFNDEF VER145} {BCB 6}
{$DEFINE VERSION7} {Delphi 7.0 or higher}
{$ENDIF}
{$ENDIF}
{$ENDIF}
{$IFDEF VERSION7}
{$IFNDEF VER150} {Delphi 7}
{$DEFINE VERSION9} {Delphi 2005}
{$ENDIF}
{$ENDIF}
{$IFDEF VERSION9}
{$IFNDEF VER170} {Delphi 2005}
{$DEFINE VERSION10} {Delphi 2006}
{$ENDIF}
{$ENDIF}
{$IFDEF VERSION6}
{$WARN SYMBOL_PLATFORM OFF}
{$IFDEF VERSION7}
{$WARN UNIT_PLATFORM OFF}
{$WARN UNSAFE_CODE OFF}
{$WARN UNSAFE_TYPE OFF}
{$WARN UNSAFE_CAST OFF}
{$WARN UNIT_DEPRECATED OFF}
{$ENDIF}
{$ENDIF}
{$IFDEF VERSION5}
{$IFNDEF VERSION6}
{$DEFINE VERSION5ONLY}
{$ENDIF}
{$ENDIF}
{$IFDEF VERSION6}
{$A8}
{$ELSE}
{$A+}
{$ENDIF}
{$IFDEF VERSION7}
{$J+}
{$WARNINGS OFF}
{$ENDIF}