1 /* 2 +----------------------------------------------------------------------+ 3 | PHP Version 7 | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2017 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 /* $Id$ */ 20 21 #ifndef PHP_COMPAT_H 22 #define PHP_COMPAT_H 23 24 #ifdef PHP_WIN32 25 #include "config.w32.h" 26 #else 27 #include <php_config.h> 28 #endif 29 30 #if defined(HAVE_BUNDLED_PCRE) || !defined(PHP_VERSION) 31 #define pcre_compile php_pcre_compile 32 #define pcre_compile2 php_pcre_compile2 33 #define pcre_copy_substring php_pcre_copy_substring 34 #define pcre_exec php_pcre_exec 35 #define pcre_get_substring php_pcre_get_substring 36 #define pcre_get_substring_list php_pcre_get_substring_list 37 #define pcre_maketables php_pcre_maketables 38 #define pcre_study php_pcre_study 39 #define pcre_version php_pcre_version 40 #define pcre_fullinfo php_pcre_fullinfo 41 #define pcre_free php_pcre_free 42 #define pcre_malloc php_pcre_malloc 43 #define pcre_config php_pcre_config 44 #define pcre_copy_named_substring php_pcre_copy_named_substring 45 #define pcre_free_substring php_pcre_free_substring 46 #define pcre_free_substring_list php_pcre_free_substring_list 47 #define pcre_get_named_substring php_pcre_get_named_substring 48 #define pcre_get_stringnumber php_pcre_get_stringnumber 49 #define pcre_refcount php_pcre_refcount 50 #define _pcre_ord2utf8 php__pcre_ord2utf8 51 #define _pcre_try_flipped php__pcre_try_flipped 52 #define _pcre_valid_utf8 php__pcre_valid_utf8 53 #define _pcre_xclass php__pcre_xclass 54 #define pcre_callout php_pcre_callout 55 #define _pcre_OP_lengths php__pcre_OP_lengths 56 #define _pcre_utt_names php__pcre_utt_names 57 #define _pcre_default_tables php__pcre_default_tables 58 #define pcre_get_stringtable_entries php_pcre_get_stringtable_entries 59 #define _pcre_is_newline php__pcre_is_newline 60 #define pcre_stack_free php_pcre_stack_free 61 #define pcre_stack_malloc php_pcre_stack_malloc 62 #define _pcre_utf8_table1 php__pcre_utf8_table1 63 #define _pcre_utf8_table1_size php__pcre_utf8_table1_size 64 #define _pcre_utf8_table2 php__pcre_utf8_table2 65 #define _pcre_utf8_table3 php__pcre_utf8_table3 66 #define _pcre_utf8_table4 php__pcre_utf8_table4 67 #define _pcre_utt php__pcre_utt 68 #define _pcre_utt_size php__pcre_utt_size 69 #define _pcre_was_newline php__pcre_was_newline 70 #define _pcre_ucd_records php__pcre_ucd_records 71 #define _pcre_ucd_stage1 php__pcre_ucd_stage1 72 #define _pcre_ucd_stage2 php__pcre_ucd_stage2 73 #define _pcre_ucp_gentype php__pcre_ucp_gentype 74 #endif 75 76 #define lookup php_lookup 77 #define hashTableInit php_hashTableInit 78 #define hashTableDestroy php_hashTableDestroy 79 #define hashTableIterInit php_hashTableIterInit 80 #define hashTableIterNext php_hashTableIterNext 81 82 #if defined(HAVE_LIBXML) && (defined(HAVE_XML) || defined(HAVE_XMLRPC)) && !defined(HAVE_LIBEXPAT) 83 #define XML_DefaultCurrent php_XML_DefaultCurrent 84 #define XML_ErrorString php_XML_ErrorString 85 #define XML_ExpatVersion php_XML_ExpatVersion 86 #define XML_ExpatVersionInfo php_XML_ExpatVersionInfo 87 #define XML_ExternalEntityParserCreate php_XML_ExternalEntityParserCreate 88 #define XML_GetBase php_XML_GetBase 89 #define XML_GetBuffer php_XML_GetBuffer 90 #define XML_GetCurrentByteCount php_XML_GetCurrentByteCount 91 #define XML_GetCurrentByteIndex php_XML_GetCurrentByteIndex 92 #define XML_GetCurrentColumnNumber php_XML_GetCurrentColumnNumber 93 #define XML_GetCurrentLineNumber php_XML_GetCurrentLineNumber 94 #define XML_GetErrorCode php_XML_GetErrorCode 95 #define XML_GetIdAttributeIndex php_XML_GetIdAttributeIndex 96 #define XML_GetInputContext php_XML_GetInputContext 97 #define XML_GetSpecifiedAttributeCount php_XML_GetSpecifiedAttributeCount 98 #define XmlGetUtf16InternalEncodingNS php_XmlGetUtf16InternalEncodingNS 99 #define XmlGetUtf16InternalEncoding php_XmlGetUtf16InternalEncoding 100 #define XmlGetUtf8InternalEncodingNS php_XmlGetUtf8InternalEncodingNS 101 #define XmlGetUtf8InternalEncoding php_XmlGetUtf8InternalEncoding 102 #define XmlInitEncoding php_XmlInitEncoding 103 #define XmlInitEncodingNS php_XmlInitEncodingNS 104 #define XmlInitUnknownEncoding php_XmlInitUnknownEncoding 105 #define XmlInitUnknownEncodingNS php_XmlInitUnknownEncodingNS 106 #define XML_ParseBuffer php_XML_ParseBuffer 107 #define XML_Parse php_XML_Parse 108 #define XML_ParserCreate_MM php_XML_ParserCreate_MM 109 #define XML_ParserCreateNS php_XML_ParserCreateNS 110 #define XML_ParserCreate php_XML_ParserCreate 111 #define XML_ParserFree php_XML_ParserFree 112 #define XmlParseXmlDecl php_XmlParseXmlDecl 113 #define XmlParseXmlDeclNS php_XmlParseXmlDeclNS 114 #define XmlPrologStateInitExternalEntity php_XmlPrologStateInitExternalEntity 115 #define XmlPrologStateInit php_XmlPrologStateInit 116 #define XML_SetAttlistDeclHandler php_XML_SetAttlistDeclHandler 117 #define XML_SetBase php_XML_SetBase 118 #define XML_SetCdataSectionHandler php_XML_SetCdataSectionHandler 119 #define XML_SetCharacterDataHandler php_XML_SetCharacterDataHandler 120 #define XML_SetCommentHandler php_XML_SetCommentHandler 121 #define XML_SetDefaultHandlerExpand php_XML_SetDefaultHandlerExpand 122 #define XML_SetDefaultHandler php_XML_SetDefaultHandler 123 #define XML_SetDoctypeDeclHandler php_XML_SetDoctypeDeclHandler 124 #define XML_SetElementDeclHandler php_XML_SetElementDeclHandler 125 #define XML_SetElementHandler php_XML_SetElementHandler 126 #define XML_SetEncoding php_XML_SetEncoding 127 #define XML_SetEndCdataSectionHandler php_XML_SetEndCdataSectionHandler 128 #define XML_SetEndDoctypeDeclHandler php_XML_SetEndDoctypeDeclHandler 129 #define XML_SetEndElementHandler php_XML_SetEndElementHandler 130 #define XML_SetEndNamespaceDeclHandler php_XML_SetEndNamespaceDeclHandler 131 #define XML_SetEntityDeclHandler php_XML_SetEntityDeclHandler 132 #define XML_SetExternalEntityRefHandlerArg php_XML_SetExternalEntityRefHandlerArg 133 #define XML_SetExternalEntityRefHandler php_XML_SetExternalEntityRefHandler 134 #define XML_SetNamespaceDeclHandler php_XML_SetNamespaceDeclHandler 135 #define XML_SetNotationDeclHandler php_XML_SetNotationDeclHandler 136 #define XML_SetNotStandaloneHandler php_XML_SetNotStandaloneHandler 137 #define XML_SetParamEntityParsing php_XML_SetParamEntityParsing 138 #define XML_SetProcessingInstructionHandler php_XML_SetProcessingInstructionHandler 139 #define XML_SetReturnNSTriplet php_XML_SetReturnNSTriplet 140 #define XML_SetStartCdataSectionHandler php_XML_SetStartCdataSectionHandler 141 #define XML_SetStartDoctypeDeclHandler php_XML_SetStartDoctypeDeclHandler 142 #define XML_SetStartElementHandler php_XML_SetStartElementHandler 143 #define XML_SetStartNamespaceDeclHandler php_XML_SetStartNamespaceDeclHandler 144 #define XML_SetUnknownEncodingHandler php_XML_SetUnknownEncodingHandler 145 #define XML_SetUnparsedEntityDeclHandler php_XML_SetUnparsedEntityDeclHandler 146 #define XML_SetUserData php_XML_SetUserData 147 #define XML_SetXmlDeclHandler php_XML_SetXmlDeclHandler 148 #define XmlSizeOfUnknownEncoding php_XmlSizeOfUnknownEncoding 149 #define XML_UseParserAsHandlerArg php_XML_UseParserAsHandlerArg 150 #define XmlUtf16Encode php_XmlUtf16Encode 151 #define XmlUtf8Encode php_XmlUtf8Encode 152 #define XML_FreeContentModel php_XML_FreeContentModel 153 #define XML_MemMalloc php_XML_MemMalloc 154 #define XML_MemRealloc php_XML_MemRealloc 155 #define XML_MemFree php_XML_MemFree 156 #define XML_UseForeignDTD php_XML_UseForeignDTD 157 #define XML_GetFeatureList php_XML_GetFeatureList 158 #define XML_ParserReset php_XML_ParserReset 159 160 #ifdef HAVE_GD_BUNDLED 161 #define any2eucjp php_gd_any2eucjp 162 #define createwbmp php_gd_createwbmp 163 #define empty_output_buffer php_gd_empty_output_buffer 164 #define fill_input_buffer php_gd_fill_input_buffer 165 #define freewbmp php_gd_freewbmp 166 #define gdAlphaBlend php_gd_gdAlphaBlend 167 #define gdCompareInt php_gd_gdCompareInt 168 #define gdCosT php_gd_gdCosT 169 #define gdCtxPrintf php_gd_gdCtxPrintf 170 #define gdDPExtractData php_gd_gdDPExtractData 171 #define gdFontGetGiant php_gd_gdFontGetGiant 172 #define gdFontGetLarge php_gd_gdFontGetLarge 173 #define gdFontGetMediumBold php_gd_gdFontGetMediumBold 174 #define gdFontGetSmall php_gd_gdFontGetSmall 175 #define gdFontGetTiny php_gd_gdFontGetTiny 176 #define gdFontGiant php_gd_gdFontGiant 177 #define gdFontGiantData php_gd_gdFontGiantData 178 #define gdFontGiantRep php_gd_gdFontGiantRep 179 #define gdFontLarge php_gd_gdFontLarge 180 #define gdFontLargeData php_gd_gdFontLargeData 181 #define gdFontLargeRep php_gd_gdFontLargeRep 182 #define gdFontMediumBold php_gd_gdFontMediumBold 183 #define gdFontMediumBoldData php_gd_gdFontMediumBoldData 184 #define gdFontMediumBoldRep php_gd_gdFontMediumBoldRep 185 #define gdFontSmall php_gd_gdFontSmall 186 #define gdFontSmallData php_gd_gdFontSmallData 187 #define gdFontSmallRep php_gd_gdFontSmallRep 188 #define gdFontTiny php_gd_gdFontTiny 189 #define gdFontTinyData php_gd_gdFontTinyData 190 #define gdFontTinyRep php_gd_gdFontTinyRep 191 #define gdGetBuf php_gd_gdGetBuf 192 #define gdGetByte php_gd_gdGetByte 193 #define gdGetC php_gd_gdGetC 194 #define _gdGetColors php_gd__gdGetColors 195 #define gd_getin php_gd_gd_getin 196 #define gdGetInt php_gd_gdGetInt 197 #define gdGetWord php_gd_gdGetWord 198 #define gdImageAABlend php_gd_gdImageAABlend 199 #define gdImageAALine php_gd_gdImageAALine 200 #define gdImageAlphaBlending php_gd_gdImageAlphaBlending 201 #define gdImageAntialias php_gd_gdImageAntialias 202 #define gdImageArc php_gd_gdImageArc 203 #define gdImageBrightness php_gd_gdImageBrightness 204 #define gdImageChar php_gd_gdImageChar 205 #define gdImageCharUp php_gd_gdImageCharUp 206 #define gdImageColor php_gd_gdImageColor 207 #define gdImageColorAllocate php_gd_gdImageColorAllocate 208 #define gdImageColorAllocateAlpha php_gd_gdImageColorAllocateAlpha 209 #define gdImageColorClosest php_gd_gdImageColorClosest 210 #define gdImageColorClosestAlpha php_gd_gdImageColorClosestAlpha 211 #define gdImageColorClosestHWB php_gd_gdImageColorClosestHWB 212 #define gdImageColorDeallocate php_gd_gdImageColorDeallocate 213 #define gdImageColorExact php_gd_gdImageColorExact 214 #define gdImageColorExactAlpha php_gd_gdImageColorExactAlpha 215 #define gdImageColorMatch php_gd_gdImageColorMatch 216 #define gdImageColorResolve php_gd_gdImageColorResolve 217 #define gdImageColorResolveAlpha php_gd_gdImageColorResolveAlpha 218 #define gdImageColorTransparent php_gd_gdImageColorTransparent 219 #define gdImageCompare php_gd_gdImageCompare 220 #define gdImageContrast php_gd_gdImageContrast 221 #define gdImageConvolution php_gd_gdImageConvolution 222 #define gdImageCopy php_gd_gdImageCopy 223 #define gdImageCopyMerge php_gd_gdImageCopyMerge 224 #define gdImageCopyMergeGray php_gd_gdImageCopyMergeGray 225 #define gdImageCopyResampled php_gd_gdImageCopyResampled 226 #define gdImageCopyResized php_gd_gdImageCopyResized 227 #define gdImageCreate php_gd_gdImageCreate 228 #define gdImageCreateFromGd php_gd_gdImageCreateFromGd 229 #define gdImageCreateFromGd2 php_gd_gdImageCreateFromGd2 230 #define gdImageCreateFromGd2Ctx php_gd_gdImageCreateFromGd2Ctx 231 #define gdImageCreateFromGd2Part php_gd_gdImageCreateFromGd2Part 232 #define gdImageCreateFromGd2PartCtx php_gd_gdImageCreateFromGd2PartCtx 233 #define gdImageCreateFromGd2PartPtr php_gd_gdImageCreateFromGd2PartPtr 234 #define gdImageCreateFromGd2Ptr php_gd_gdImageCreateFromGd2Ptr 235 #define gdImageCreateFromGdCtx php_gd_gdImageCreateFromGdCtx 236 #define gdImageCreateFromGdPtr php_gd_gdImageCreateFromGdPtr 237 #define gdImageCreateFromGif php_gd_gdImageCreateFromGif 238 #define gdImageCreateFromGifCtx php_gd_gdImageCreateFromGifCtx 239 #define gdImageCreateFromGifSource php_gd_gdImageCreateFromGifSource 240 #define gdImageCreateFromJpeg php_gd_gdImageCreateFromJpeg 241 #define gdImageCreateFromJpegCtx php_gd_gdImageCreateFromJpegCtx 242 #define gdImageCreateFromJpegPtr php_gd_gdImageCreateFromJpegPtr 243 #define gdImageCreateFromPng php_gd_gdImageCreateFromPng 244 #define gdImageCreateFromPngCtx php_gd_gdImageCreateFromPngCtx 245 #define gdImageCreateFromPngPtr php_gd_gdImageCreateFromPngPtr 246 #define gdImageCreateFromPngSource php_gd_gdImageCreateFromPngSource 247 #define gdImageCreateFromWBMP php_gd_gdImageCreateFromWBMP 248 #define gdImageCreateFromWBMPCtx php_gd_gdImageCreateFromWBMPCtx 249 #define gdImageCreateFromWBMPPtr php_gd_gdImageCreateFromWBMPPtr 250 #define gdImageCreateFromXbm php_gd_gdImageCreateFromXbm 251 #define gdImageCreatePaletteFromTrueColor php_gd_gdImageCreatePaletteFromTrueColor 252 #define gdImageCreateTrueColor php_gd_gdImageCreateTrueColor 253 #define gdImageDashedLine php_gd_gdImageDashedLine 254 #define gdImageDestroy php_gd_gdImageDestroy 255 #define gdImageEdgeDetectQuick php_gd_gdImageEdgeDetectQuick 256 #define gdImageEllipse php_gd_gdImageEllipse 257 #define gdImageEmboss php_gd_gdImageEmboss 258 #define gdImageFill php_gd_gdImageFill 259 #define gdImageFilledArc php_gd_gdImageFilledArc 260 #define gdImageFilledEllipse php_gd_gdImageFilledEllipse 261 #define gdImageFilledPolygon php_gd_gdImageFilledPolygon 262 #define gdImageFilledRectangle php_gd_gdImageFilledRectangle 263 #define _gdImageFillTiled php_gd__gdImageFillTiled 264 #define gdImageFillToBorder php_gd_gdImageFillToBorder 265 #define gdImageGaussianBlur php_gd_gdImageGaussianBlur 266 #define gdImageGd php_gd_gdImageGd 267 #define gdImageGd2 php_gd_gdImageGd2 268 #define gdImageGd2Ptr php_gd_gdImageGd2Ptr 269 #define gdImageGdPtr php_gd_gdImageGdPtr 270 #define gdImageGetClip php_gd_gdImageGetClip 271 #define gdImageGetPixel php_gd_gdImageGetPixel 272 #define gdImageGetTrueColorPixel php_gd_gdImageGetTrueColorPixel 273 #define gdImageGif php_gd_gdImageGif 274 #define gdImageGifCtx php_gd_gdImageGifCtx 275 #define gdImageGifPtr php_gd_gdImageGifPtr 276 #define gdImageGrayScale php_gd_gdImageGrayScale 277 #define gdImageInterlace php_gd_gdImageInterlace 278 #define gdImageJpeg php_gd_gdImageJpeg 279 #define gdImageJpegCtx php_gd_gdImageJpegCtx 280 #define gdImageJpegPtr php_gd_gdImageJpegPtr 281 #define gdImageLine php_gd_gdImageLine 282 #define gdImageMeanRemoval php_gd_gdImageMeanRemoval 283 #define gdImageNegate php_gd_gdImageNegate 284 #define gdImagePaletteCopy php_gd_gdImagePaletteCopy 285 #define gdImagePng php_gd_gdImagePng 286 #define gdImagePngCtx php_gd_gdImagePngCtx 287 #define gdImagePngCtxEx php_gd_gdImagePngCtxEx 288 #define gdImagePngEx php_gd_gdImagePngEx 289 #define gdImagePngPtr php_gd_gdImagePngPtr 290 #define gdImagePngPtrEx php_gd_gdImagePngPtrEx 291 #define gdImagePngToSink php_gd_gdImagePngToSink 292 #define gdImagePolygon php_gd_gdImagePolygon 293 #define gdImageRectangle php_gd_gdImageRectangle 294 #define gdImageRotate php_gd_gdImageRotate 295 #define gdImageRotate180 php_gd_gdImageRotate180 296 #define gdImageRotate270 php_gd_gdImageRotate270 297 #define gdImageRotate45 php_gd_gdImageRotate45 298 #define gdImageRotate90 php_gd_gdImageRotate90 299 #define gdImageSaveAlpha php_gd_gdImageSaveAlpha 300 #define gdImageSelectiveBlur php_gd_gdImageSelectiveBlur 301 #define gdImageSetAntiAliased php_gd_gdImageSetAntiAliased 302 #define gdImageSetAntiAliasedDontBlend php_gd_gdImageSetAntiAliasedDontBlend 303 #define gdImageSetBrush php_gd_gdImageSetBrush 304 #define gdImageSetClip php_gd_gdImageSetClip 305 #define gdImageSetPixel php_gd_gdImageSetPixel 306 #define gdImageSetStyle php_gd_gdImageSetStyle 307 #define gdImageSetThickness php_gd_gdImageSetThickness 308 #define gdImageSetTile php_gd_gdImageSetTile 309 #define gdImageSkewX php_gd_gdImageSkewX 310 #define gdImageSkewY php_gd_gdImageSkewY 311 #define gdImageSmooth php_gd_gdImageSmooth 312 #define gdImageString php_gd_gdImageString 313 #define gdImageString16 php_gd_gdImageString16 314 #define gdImageStringFT php_gd_gdImageStringFT 315 #define gdImageStringFTEx php_gd_gdImageStringFTEx 316 #define gdImageStringTTF php_gd_gdImageStringTTF 317 #define gdImageStringUp php_gd_gdImageStringUp 318 #define gdImageStringUp16 php_gd_gdImageStringUp16 319 #define gdImageTrueColorToPalette php_gd_gdImageTrueColorToPalette 320 #define gdImageWBMP php_gd_gdImageWBMP 321 #define gdImageWBMPCtx php_gd_gdImageWBMPCtx 322 #define gdImageWBMPPtr php_gd_gdImageWBMPPtr 323 #define gdImageXbmCtx php_gd_gdImageXbmCtx 324 #define gdNewDynamicCtx php_gd_gdNewDynamicCtx 325 #define gdNewDynamicCtxEx php_gd_gdNewDynamicCtxEx 326 #define gdNewFileCtx php_gd_gdNewFileCtx 327 #define gdNewSSCtx php_gd_gdNewSSCtx 328 #define gdPutBuf php_gd_gdPutBuf 329 #define gdPutC php_gd_gdPutC 330 #define _gdPutColors php_gd__gdPutColors 331 #define gdPutInt php_gd_gdPutInt 332 #define gd_putout php_gd_gd_putout 333 #define gdPutWord php_gd_gdPutWord 334 #define gdSeek php_gd_gdSeek 335 #define gdSinT php_gd_gdSinT 336 #define gd_strtok_r php_gd_gd_strtok_r 337 #define gdTell php_gd_gdTell 338 #define getmbi php_gd_getmbi 339 #define init_destination php_gd_init_destination 340 #define init_source php_gd_init_source 341 #define jpeg_gdIOCtx_dest php_gd_jpeg_gdIOCtx_dest 342 #define jpeg_gdIOCtx_src php_gd_jpeg_gdIOCtx_src 343 #define lsqrt php_gd_lsqrt 344 #define printwbmp php_gd_printwbmp 345 #define Putchar php_gd_Putchar 346 #define putmbi php_gd_putmbi 347 #define Putword php_gd_Putword 348 #define readwbmp php_gd_readwbmp 349 #define skipheader php_gd_skipheader 350 #define skip_input_data php_gd_skip_input_data 351 #define term_destination php_gd_term_destination 352 #define term_source php_gd_term_source 353 #define writewbmp php_gd_writewbmp 354 #define ZeroDataBlock php_gd_ZeroDataBlock 355 #define gdCacheCreate php_gd_gdCacheCreate 356 #define gdCacheDelete php_gd_gdCacheDelete 357 #define gdCacheGet php_gd_gdCacheGet 358 #define gdFontCacheSetup php_gd_gdFontCacheSetup 359 #define gdFontCacheShutdown php_gd_gdFontCacheShutdown 360 #define gdFreeFontCache php_gd_gdFreeFontCache 361 #endif /* HAVE_GD_BUNDLED */ 362 363 /* Define to specify how much context to retain around the current parse 364 point. */ 365 #define XML_CONTEXT_BYTES 1024 366 367 /* Define to make parameter entity parsing functionality available. */ 368 #define XML_DTD 1 369 370 /* Define to make XML Namespaces functionality available. */ 371 #define XML_NS 1 372 #endif 373 374 #ifdef PHP_EXPORTS 375 #define PCRE_STATIC 376 #endif 377 378 #endif 379