芝麻web文件管理V1.00
编辑当前文件:/home/conskgoa/doughi.co.uk/main.tar
build-defs.h 0000644 00000016357 15217713750 0006757 0 ustar 00 /* -*- C -*- +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2007 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: Stig Sther Bakken
| +----------------------------------------------------------------------+ */ /* $Id: build-defs.h.in 292156 2009-12-15 11:17:47Z jani $ */ #define CONFIGURE_COMMAND " './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/opt/alt/php52' '--exec-prefix=/opt/alt/php52' '--bindir=/opt/alt/php52/usr/bin' '--sbindir=/opt/alt/php52/usr/sbin' '--sysconfdir=/opt/alt/php52/etc' '--datadir=/opt/alt/php52/usr/share' '--includedir=/opt/alt/php52/usr/include' '--libdir=/opt/alt/php52/usr/lib64' '--libexecdir=/opt/alt/php52/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/opt/alt/php52/usr/share/man' '--infodir=/opt/alt/php52/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/opt/alt/php52/etc' '--with-config-file-scan-dir=/opt/alt/php52/link/conf' '--with-exec-dir=/usr/bin' '--with-layout=GNU' '--disable-debug' '--without-pear' '--without-gdbm' '--with-pic' '--with-bz2' '--with-zlib' '--with-gettext' '--with-gmp' '--with-iconv' '--with-kerberos=/opt/alt/krb5/usr' '--with-mhash' '--with-readline' '--with-webp=/opt/alt/libwebp' '--with-pcre-regex=/opt/alt/pcre802/usr' '--with-libxml-dir=/opt/alt/libxml2/usr' '--with-curl=/opt/alt/curlssl11/usr' '--with-openssl=/opt/alt/openssl11' '--with-openssl-dir=/opt/alt/openssl11' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-shmop' '--enable-calendar' '--enable-xml' '--enable-force-cgi-redirect' '--enable-bcmath=shared' '--enable-dba=shared' '--enable-dbase=shared' '--enable-dbx=shared,/usr' '--enable-dom=shared' '--enable-fastcgi' '--enable-intl=shared' '--enable-json=shared' '--enable-mbstring=shared' '--enable-mbregex' '--enable-pcntl' '--enable-pdo=shared' '--enable-phar=shared' '--enable-posix=shared' '--enable-soap=shared' '--enable-sockets=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-sysvmsg=shared' '--enable-ucd-snmp-hack' '--enable-wddx=shared' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--enable-zip=shared' '--with-enchant=shared,/usr' '--with-fileinfo=shared' '--with-freetype-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--with-icu-dir=/opt/alt/libicu57/usr' '--with-imap=shared,/opt/alt/libc-client11' '--with-imap-ssl=/opt/alt/openssl11' '--with-jpeg-dir=/usr' '--with-ldap=shared,/opt/alt/openldap11' '--with-ldap-sasl' '--with-mcrypt=shared,/usr' '--with-ncurses=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-sqlite=shared,/usr' '--with-png-dir=/usr' '--with-pspell=shared' '--with-snmp=shared,/opt/alt/net-snmp11/usr' '--with-sqlite=shared' '--enable-sqlite-utf8' '--with-tidy=shared,/usr' '--with-unixODBC=shared,/usr' '--with-xmlrpc=shared' '--with-xpm-dir=/usr' '--with-pdo-pgsql=shared,/usr' '--with-pgsql=shared,/usr' '--with-mssql=shared,/opt/alt/freetds11/usr' '--with-pdo-dblib=shared,/opt/alt/freetds11/usr' '--with-sybase-ct=shared,/opt/alt/freetds11/usr' '--with-t1lib=/opt/alt/t1lib/usr' '--with-interbase=shared,/usr' '--with-pdo-firebird=shared,/usr' '--with-recode=shared,/usr' '--with-unixODBC=shared,/usr' '--with-xsl=shared,/usr'" #define PHP_ADA_INCLUDE "" #define PHP_ADA_LFLAGS "" #define PHP_ADA_LIBS "" #define PHP_APACHE_INCLUDE "" #define PHP_APACHE_TARGET "" #define PHP_FHTTPD_INCLUDE "" #define PHP_FHTTPD_LIB "" #define PHP_FHTTPD_TARGET "" #define PHP_CFLAGS "$(CFLAGS_CLEAN) -prefer-non-pic -static" #define PHP_DBASE_LIB "" #define PHP_BUILD_DEBUG "" #define PHP_GDBM_INCLUDE "" #define PHP_IBASE_INCLUDE "" #define PHP_IBASE_LFLAGS "" #define PHP_IBASE_LIBS "" #define PHP_IFX_INCLUDE "" #define PHP_IFX_LFLAGS "" #define PHP_IFX_LIBS "" #define PHP_INSTALL_IT "@echo "Installing PHP CGI binary: $(INSTALL_ROOT)$(bindir)/"; $(INSTALL) -m 0755 $(SAPI_CGI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php-cgi$(program_suffix)$(EXEEXT)" #define PHP_IODBC_INCLUDE "" #define PHP_IODBC_LFLAGS "" #define PHP_IODBC_LIBS "" #define PHP_MSQL_INCLUDE "" #define PHP_MSQL_LFLAGS "" #define PHP_MSQL_LIBS "" #define PHP_MYSQL_INCLUDE "" #define PHP_MYSQL_LIBS "" #define PHP_MYSQL_TYPE "" #define PHP_ODBC_INCLUDE "-I/usr/include" #define PHP_ODBC_LFLAGS "-L/usr/lib64" #define PHP_ODBC_LIBS "-lodbc" #define PHP_ODBC_TYPE "unixODBC" #define PHP_OCI8_SHARED_LIBADD "" #define PHP_OCI8_DIR "" #define PHP_OCI8_VERSION "" #define PHP_ORACLE_SHARED_LIBADD "@ORACLE_SHARED_LIBADD@" #define PHP_ORACLE_DIR "@ORACLE_DIR@" #define PHP_ORACLE_VERSION "@ORACLE_VERSION@" #define PHP_PGSQL_INCLUDE "" #define PHP_PGSQL_LFLAGS "" #define PHP_PGSQL_LIBS "" #define PHP_PROG_SENDMAIL "/usr/sbin/sendmail" #define PHP_SOLID_INCLUDE "" #define PHP_SOLID_LIBS "" #define PHP_EMPRESS_INCLUDE "" #define PHP_EMPRESS_LIBS "" #define PHP_SYBASE_INCLUDE "" #define PHP_SYBASE_LFLAGS "" #define PHP_SYBASE_LIBS "" #define PHP_DBM_TYPE "" #define PHP_DBM_LIB "" #define PHP_LDAP_LFLAGS "" #define PHP_LDAP_INCLUDE "" #define PHP_LDAP_LIBS "" #define PHP_BIRDSTEP_INCLUDE "" #define PHP_BIRDSTEP_LIBS "" #define PEAR_INSTALLDIR "/opt/alt/php52/usr/share/pear" #define PHP_INCLUDE_PATH ".:/opt/alt/php52/usr/share/pear:/opt/alt/php52/usr/share/php" #define PHP_EXTENSION_DIR "/opt/alt/php52/usr/lib64/php/modules" #define PHP_PREFIX "/opt/alt/php52" #define PHP_BINDIR "/opt/alt/php52/usr/bin" #define PHP_SBINDIR "/opt/alt/php52/usr/sbin" #define PHP_LIBDIR "/opt/alt/php52/usr/lib64" #define PHP_DATADIR "/opt/alt/php52/usr/share" #define PHP_SYSCONFDIR "/opt/alt/php52/etc" #define PHP_LOCALSTATEDIR "/var" #define PHP_CONFIG_FILE_PATH "/opt/alt/php52/etc" #define PHP_CONFIG_FILE_SCAN_DIR "/opt/alt/php52/link/conf" #define PHP_SHLIB_SUFFIX "so" php_compat.h 0000644 00000043304 15217713750 0007063 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: php_compat.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_COMPAT_H #define PHP_COMPAT_H #ifdef PHP_WIN32 #include "config.w32.h" #else #include
#endif #if defined(HAVE_BUNDLED_PCRE) || !defined(PHP_VERSION) #define pcre_compile php_pcre_compile #define pcre_compile2 php_pcre_compile2 #define pcre_copy_substring php_pcre_copy_substring #define pcre_exec php_pcre_exec #define pcre_get_substring php_pcre_get_substring #define pcre_get_substring_list php_pcre_get_substring_list #define pcre_info php_pcre_info #define pcre_maketables php_pcre_maketables #define pcre_study php_pcre_study #define pcre_version php_pcre_version #define pcre_fullinfo php_pcre_fullinfo #define pcre_free php_pcre_free #define pcre_malloc php_pcre_malloc #define pcre_config php_pcre_config #define pcre_copy_named_substring php_pcre_copy_named_substring #define pcre_free_substring php_pcre_free_substring #define pcre_free_substring_list php_pcre_free_substring_list #define pcre_get_named_substring php_pcre_get_named_substring #define pcre_get_stringnumber php_pcre_get_stringnumber #define pcre_refcount php_pcre_refcount #define _pcre_ord2utf8 php__pcre_ord2utf8 #define _pcre_try_flipped php__pcre_try_flipped #define _pcre_valid_utf8 php__pcre_valid_utf8 #define _pcre_xclass php__pcre_xclass #define pcre_callout php_pcre_callout #define _pcre_OP_lengths php__pcre_OP_lengths #define _pcre_utt_names php__pcre_utt_names #define _pcre_default_tables php__pcre_default_tables #define pcre_get_stringtable_entries php_pcre_get_stringtable_entries #define _pcre_is_newline php__pcre_is_newline #define pcre_stack_free php_pcre_stack_free #define pcre_stack_malloc php_pcre_stack_malloc #define _pcre_utf8_table1 php__pcre_utf8_table1 #define _pcre_utf8_table1_size php__pcre_utf8_table1_size #define _pcre_utf8_table2 php__pcre_utf8_table2 #define _pcre_utf8_table3 php__pcre_utf8_table3 #define _pcre_utf8_table4 php__pcre_utf8_table4 #define _pcre_utt php__pcre_utt #define _pcre_utt_size php__pcre_utt_size #define _pcre_was_newline php__pcre_was_newline #define _pcre_ucd_records php__pcre_ucd_records #define _pcre_ucd_stage1 php__pcre_ucd_stage1 #define _pcre_ucd_stage2 php__pcre_ucd_stage2 #define _pcre_ucp_gentype php__pcre_ucp_gentype #endif #define lookup php_lookup #define hashTableInit php_hashTableInit #define hashTableDestroy php_hashTableDestroy #define hashTableIterInit php_hashTableIterInit #define hashTableIterNext php_hashTableIterNext #if defined(HAVE_LIBXML) && (defined(HAVE_XML) || defined(HAVE_XMLRPC)) && !defined(HAVE_LIBEXPAT) #define XML_DefaultCurrent php_XML_DefaultCurrent #define XML_ErrorString php_XML_ErrorString #define XML_ExpatVersion php_XML_ExpatVersion #define XML_ExpatVersionInfo php_XML_ExpatVersionInfo #define XML_ExternalEntityParserCreate php_XML_ExternalEntityParserCreate #define XML_GetBase php_XML_GetBase #define XML_GetBuffer php_XML_GetBuffer #define XML_GetCurrentByteCount php_XML_GetCurrentByteCount #define XML_GetCurrentByteIndex php_XML_GetCurrentByteIndex #define XML_GetCurrentColumnNumber php_XML_GetCurrentColumnNumber #define XML_GetCurrentLineNumber php_XML_GetCurrentLineNumber #define XML_GetErrorCode php_XML_GetErrorCode #define XML_GetIdAttributeIndex php_XML_GetIdAttributeIndex #define XML_GetInputContext php_XML_GetInputContext #define XML_GetSpecifiedAttributeCount php_XML_GetSpecifiedAttributeCount #define XmlGetUtf16InternalEncodingNS php_XmlGetUtf16InternalEncodingNS #define XmlGetUtf16InternalEncoding php_XmlGetUtf16InternalEncoding #define XmlGetUtf8InternalEncodingNS php_XmlGetUtf8InternalEncodingNS #define XmlGetUtf8InternalEncoding php_XmlGetUtf8InternalEncoding #define XmlInitEncoding php_XmlInitEncoding #define XmlInitEncodingNS php_XmlInitEncodingNS #define XmlInitUnknownEncoding php_XmlInitUnknownEncoding #define XmlInitUnknownEncodingNS php_XmlInitUnknownEncodingNS #define XML_ParseBuffer php_XML_ParseBuffer #define XML_Parse php_XML_Parse #define XML_ParserCreate_MM php_XML_ParserCreate_MM #define XML_ParserCreateNS php_XML_ParserCreateNS #define XML_ParserCreate php_XML_ParserCreate #define XML_ParserFree php_XML_ParserFree #define XmlParseXmlDecl php_XmlParseXmlDecl #define XmlParseXmlDeclNS php_XmlParseXmlDeclNS #define XmlPrologStateInitExternalEntity php_XmlPrologStateInitExternalEntity #define XmlPrologStateInit php_XmlPrologStateInit #define XML_SetAttlistDeclHandler php_XML_SetAttlistDeclHandler #define XML_SetBase php_XML_SetBase #define XML_SetCdataSectionHandler php_XML_SetCdataSectionHandler #define XML_SetCharacterDataHandler php_XML_SetCharacterDataHandler #define XML_SetCommentHandler php_XML_SetCommentHandler #define XML_SetDefaultHandlerExpand php_XML_SetDefaultHandlerExpand #define XML_SetDefaultHandler php_XML_SetDefaultHandler #define XML_SetDoctypeDeclHandler php_XML_SetDoctypeDeclHandler #define XML_SetElementDeclHandler php_XML_SetElementDeclHandler #define XML_SetElementHandler php_XML_SetElementHandler #define XML_SetEncoding php_XML_SetEncoding #define XML_SetEndCdataSectionHandler php_XML_SetEndCdataSectionHandler #define XML_SetEndDoctypeDeclHandler php_XML_SetEndDoctypeDeclHandler #define XML_SetEndElementHandler php_XML_SetEndElementHandler #define XML_SetEndNamespaceDeclHandler php_XML_SetEndNamespaceDeclHandler #define XML_SetEntityDeclHandler php_XML_SetEntityDeclHandler #define XML_SetExternalEntityRefHandlerArg php_XML_SetExternalEntityRefHandlerArg #define XML_SetExternalEntityRefHandler php_XML_SetExternalEntityRefHandler #define XML_SetNamespaceDeclHandler php_XML_SetNamespaceDeclHandler #define XML_SetNotationDeclHandler php_XML_SetNotationDeclHandler #define XML_SetNotStandaloneHandler php_XML_SetNotStandaloneHandler #define XML_SetParamEntityParsing php_XML_SetParamEntityParsing #define XML_SetProcessingInstructionHandler php_XML_SetProcessingInstructionHandler #define XML_SetReturnNSTriplet php_XML_SetReturnNSTriplet #define XML_SetStartCdataSectionHandler php_XML_SetStartCdataSectionHandler #define XML_SetStartDoctypeDeclHandler php_XML_SetStartDoctypeDeclHandler #define XML_SetStartElementHandler php_XML_SetStartElementHandler #define XML_SetStartNamespaceDeclHandler php_XML_SetStartNamespaceDeclHandler #define XML_SetUnknownEncodingHandler php_XML_SetUnknownEncodingHandler #define XML_SetUnparsedEntityDeclHandler php_XML_SetUnparsedEntityDeclHandler #define XML_SetUserData php_XML_SetUserData #define XML_SetXmlDeclHandler php_XML_SetXmlDeclHandler #define XmlSizeOfUnknownEncoding php_XmlSizeOfUnknownEncoding #define XML_UseParserAsHandlerArg php_XML_UseParserAsHandlerArg #define XmlUtf16Encode php_XmlUtf16Encode #define XmlUtf8Encode php_XmlUtf8Encode #define XML_FreeContentModel php_XML_FreeContentModel #define XML_MemMalloc php_XML_MemMalloc #define XML_MemRealloc php_XML_MemRealloc #define XML_MemFree php_XML_MemFree #define XML_UseForeignDTD php_XML_UseForeignDTD #define XML_GetFeatureList php_XML_GetFeatureList #define XML_ParserReset php_XML_ParserReset #ifdef HAVE_GD_BUNDLED #define any2eucjp php_gd_any2eucjp #define createwbmp php_gd_createwbmp #define empty_output_buffer php_gd_empty_output_buffer #define fill_input_buffer php_gd_fill_input_buffer #define freewbmp php_gd_freewbmp #define gdAlphaBlend php_gd_gdAlphaBlend #define gdCompareInt php_gd_gdCompareInt #define gdCosT php_gd_gdCosT #define gdCtxPrintf php_gd_gdCtxPrintf #define gdDPExtractData php_gd_gdDPExtractData #define gdFontGetGiant php_gd_gdFontGetGiant #define gdFontGetLarge php_gd_gdFontGetLarge #define gdFontGetMediumBold php_gd_gdFontGetMediumBold #define gdFontGetSmall php_gd_gdFontGetSmall #define gdFontGetTiny php_gd_gdFontGetTiny #define gdFontGiant php_gd_gdFontGiant #define gdFontGiantData php_gd_gdFontGiantData #define gdFontGiantRep php_gd_gdFontGiantRep #define gdFontLarge php_gd_gdFontLarge #define gdFontLargeData php_gd_gdFontLargeData #define gdFontLargeRep php_gd_gdFontLargeRep #define gdFontMediumBold php_gd_gdFontMediumBold #define gdFontMediumBoldData php_gd_gdFontMediumBoldData #define gdFontMediumBoldRep php_gd_gdFontMediumBoldRep #define gdFontSmall php_gd_gdFontSmall #define gdFontSmallData php_gd_gdFontSmallData #define gdFontSmallRep php_gd_gdFontSmallRep #define gdFontTiny php_gd_gdFontTiny #define gdFontTinyData php_gd_gdFontTinyData #define gdFontTinyRep php_gd_gdFontTinyRep #define gdGetBuf php_gd_gdGetBuf #define gdGetByte php_gd_gdGetByte #define gdGetC php_gd_gdGetC #define _gdGetColors php_gd__gdGetColors #define gd_getin php_gd_gd_getin #define gdGetInt php_gd_gdGetInt #define gdGetWord php_gd_gdGetWord #define gdImageAABlend php_gd_gdImageAABlend #define gdImageAALine php_gd_gdImageAALine #define gdImageAlphaBlending php_gd_gdImageAlphaBlending #define gdImageAntialias php_gd_gdImageAntialias #define gdImageArc php_gd_gdImageArc #define gdImageBrightness php_gd_gdImageBrightness #define gdImageChar php_gd_gdImageChar #define gdImageCharUp php_gd_gdImageCharUp #define gdImageColor php_gd_gdImageColor #define gdImageColorAllocate php_gd_gdImageColorAllocate #define gdImageColorAllocateAlpha php_gd_gdImageColorAllocateAlpha #define gdImageColorClosest php_gd_gdImageColorClosest #define gdImageColorClosestAlpha php_gd_gdImageColorClosestAlpha #define gdImageColorClosestHWB php_gd_gdImageColorClosestHWB #define gdImageColorDeallocate php_gd_gdImageColorDeallocate #define gdImageColorExact php_gd_gdImageColorExact #define gdImageColorExactAlpha php_gd_gdImageColorExactAlpha #define gdImageColorMatch php_gd_gdImageColorMatch #define gdImageColorResolve php_gd_gdImageColorResolve #define gdImageColorResolveAlpha php_gd_gdImageColorResolveAlpha #define gdImageColorTransparent php_gd_gdImageColorTransparent #define gdImageCompare php_gd_gdImageCompare #define gdImageContrast php_gd_gdImageContrast #define gdImageConvolution php_gd_gdImageConvolution #define gdImageCopy php_gd_gdImageCopy #define gdImageCopyMerge php_gd_gdImageCopyMerge #define gdImageCopyMergeGray php_gd_gdImageCopyMergeGray #define gdImageCopyResampled php_gd_gdImageCopyResampled #define gdImageCopyResized php_gd_gdImageCopyResized #define gdImageCreate php_gd_gdImageCreate #define gdImageCreateFromGd php_gd_gdImageCreateFromGd #define gdImageCreateFromGd2 php_gd_gdImageCreateFromGd2 #define gdImageCreateFromGd2Ctx php_gd_gdImageCreateFromGd2Ctx #define gdImageCreateFromGd2Part php_gd_gdImageCreateFromGd2Part #define gdImageCreateFromGd2PartCtx php_gd_gdImageCreateFromGd2PartCtx #define gdImageCreateFromGd2PartPtr php_gd_gdImageCreateFromGd2PartPtr #define gdImageCreateFromGd2Ptr php_gd_gdImageCreateFromGd2Ptr #define gdImageCreateFromGdCtx php_gd_gdImageCreateFromGdCtx #define gdImageCreateFromGdPtr php_gd_gdImageCreateFromGdPtr #define gdImageCreateFromGif php_gd_gdImageCreateFromGif #define gdImageCreateFromGifCtx php_gd_gdImageCreateFromGifCtx #define gdImageCreateFromGifSource php_gd_gdImageCreateFromGifSource #define gdImageCreateFromJpeg php_gd_gdImageCreateFromJpeg #define gdImageCreateFromJpegCtx php_gd_gdImageCreateFromJpegCtx #define gdImageCreateFromJpegPtr php_gd_gdImageCreateFromJpegPtr #define gdImageCreateFromPng php_gd_gdImageCreateFromPng #define gdImageCreateFromPngCtx php_gd_gdImageCreateFromPngCtx #define gdImageCreateFromPngPtr php_gd_gdImageCreateFromPngPtr #define gdImageCreateFromPngSource php_gd_gdImageCreateFromPngSource #define gdImageCreateFromWBMP php_gd_gdImageCreateFromWBMP #define gdImageCreateFromWBMPCtx php_gd_gdImageCreateFromWBMPCtx #define gdImageCreateFromWBMPPtr php_gd_gdImageCreateFromWBMPPtr #define gdImageCreateFromXbm php_gd_gdImageCreateFromXbm #define gdImageCreatePaletteFromTrueColor php_gd_gdImageCreatePaletteFromTrueColor #define gdImageCreateTrueColor php_gd_gdImageCreateTrueColor #define gdImageDashedLine php_gd_gdImageDashedLine #define gdImageDestroy php_gd_gdImageDestroy #define gdImageEdgeDetectQuick php_gd_gdImageEdgeDetectQuick #define gdImageEllipse php_gd_gdImageEllipse #define gdImageEmboss php_gd_gdImageEmboss #define gdImageFill php_gd_gdImageFill #define gdImageFilledArc php_gd_gdImageFilledArc #define gdImageFilledEllipse php_gd_gdImageFilledEllipse #define gdImageFilledPolygon php_gd_gdImageFilledPolygon #define gdImageFilledRectangle php_gd_gdImageFilledRectangle #define _gdImageFillTiled php_gd__gdImageFillTiled #define gdImageFillToBorder php_gd_gdImageFillToBorder #define gdImageGaussianBlur php_gd_gdImageGaussianBlur #define gdImageGd php_gd_gdImageGd #define gdImageGd2 php_gd_gdImageGd2 #define gdImageGd2Ptr php_gd_gdImageGd2Ptr #define gdImageGdPtr php_gd_gdImageGdPtr #define gdImageGetClip php_gd_gdImageGetClip #define gdImageGetPixel php_gd_gdImageGetPixel #define gdImageGetTrueColorPixel php_gd_gdImageGetTrueColorPixel #define gdImageGif php_gd_gdImageGif #define gdImageGifCtx php_gd_gdImageGifCtx #define gdImageGifPtr php_gd_gdImageGifPtr #define gdImageGrayScale php_gd_gdImageGrayScale #define gdImageInterlace php_gd_gdImageInterlace #define gdImageJpeg php_gd_gdImageJpeg #define gdImageJpegCtx php_gd_gdImageJpegCtx #define gdImageJpegPtr php_gd_gdImageJpegPtr #define gdImageLine php_gd_gdImageLine #define gdImageMeanRemoval php_gd_gdImageMeanRemoval #define gdImageNegate php_gd_gdImageNegate #define gdImagePaletteCopy php_gd_gdImagePaletteCopy #define gdImagePng php_gd_gdImagePng #define gdImagePngCtx php_gd_gdImagePngCtx #define gdImagePngCtxEx php_gd_gdImagePngCtxEx #define gdImagePngEx php_gd_gdImagePngEx #define gdImagePngPtr php_gd_gdImagePngPtr #define gdImagePngPtrEx php_gd_gdImagePngPtrEx #define gdImagePngToSink php_gd_gdImagePngToSink #define gdImagePolygon php_gd_gdImagePolygon #define gdImageRectangle php_gd_gdImageRectangle #define gdImageRotate php_gd_gdImageRotate #define gdImageRotate180 php_gd_gdImageRotate180 #define gdImageRotate270 php_gd_gdImageRotate270 #define gdImageRotate45 php_gd_gdImageRotate45 #define gdImageRotate90 php_gd_gdImageRotate90 #define gdImageSaveAlpha php_gd_gdImageSaveAlpha #define gdImageSelectiveBlur php_gd_gdImageSelectiveBlur #define gdImageSetAntiAliased php_gd_gdImageSetAntiAliased #define gdImageSetAntiAliasedDontBlend php_gd_gdImageSetAntiAliasedDontBlend #define gdImageSetBrush php_gd_gdImageSetBrush #define gdImageSetClip php_gd_gdImageSetClip #define gdImageSetPixel php_gd_gdImageSetPixel #define gdImageSetStyle php_gd_gdImageSetStyle #define gdImageSetThickness php_gd_gdImageSetThickness #define gdImageSetTile php_gd_gdImageSetTile #define gdImageSkewX php_gd_gdImageSkewX #define gdImageSkewY php_gd_gdImageSkewY #define gdImageSmooth php_gd_gdImageSmooth #define gdImageString php_gd_gdImageString #define gdImageString16 php_gd_gdImageString16 #define gdImageStringFT php_gd_gdImageStringFT #define gdImageStringFTEx php_gd_gdImageStringFTEx #define gdImageStringTTF php_gd_gdImageStringTTF #define gdImageStringUp php_gd_gdImageStringUp #define gdImageStringUp16 php_gd_gdImageStringUp16 #define gdImageTrueColorToPalette php_gd_gdImageTrueColorToPalette #define gdImageWBMP php_gd_gdImageWBMP #define gdImageWBMPCtx php_gd_gdImageWBMPCtx #define gdImageWBMPPtr php_gd_gdImageWBMPPtr #define gdImageXbmCtx php_gd_gdImageXbmCtx #define gdNewDynamicCtx php_gd_gdNewDynamicCtx #define gdNewDynamicCtxEx php_gd_gdNewDynamicCtxEx #define gdNewFileCtx php_gd_gdNewFileCtx #define gdNewSSCtx php_gd_gdNewSSCtx #define gdPutBuf php_gd_gdPutBuf #define gdPutC php_gd_gdPutC #define _gdPutColors php_gd__gdPutColors #define gdPutInt php_gd_gdPutInt #define gd_putout php_gd_gd_putout #define gdPutWord php_gd_gdPutWord #define gdSeek php_gd_gdSeek #define gdSinT php_gd_gdSinT #define gd_strtok_r php_gd_gd_strtok_r #define gdTell php_gd_gdTell #define getmbi php_gd_getmbi #define init_destination php_gd_init_destination #define init_source php_gd_init_source #define jpeg_gdIOCtx_dest php_gd_jpeg_gdIOCtx_dest #define jpeg_gdIOCtx_src php_gd_jpeg_gdIOCtx_src #define lsqrt php_gd_lsqrt #define printwbmp php_gd_printwbmp #define Putchar php_gd_Putchar #define putmbi php_gd_putmbi #define Putword php_gd_Putword #define readwbmp php_gd_readwbmp #define skipheader php_gd_skipheader #define skip_input_data php_gd_skip_input_data #define term_destination php_gd_term_destination #define term_source php_gd_term_source #define writewbmp php_gd_writewbmp #define ZeroDataBlock php_gd_ZeroDataBlock #define gdCacheCreate php_gd_gdCacheCreate #define gdCacheDelete php_gd_gdCacheDelete #define gdCacheGet php_gd_gdCacheGet #define gdFontCacheSetup php_gd_gdFontCacheSetup #define gdFontCacheShutdown php_gd_gdFontCacheShutdown #define gdFreeFontCache php_gd_gdFreeFontCache #endif /* HAVE_GD_BUNDLED */ /* Define to specify how much context to retain around the current parse point. */ #define XML_CONTEXT_BYTES 1024 /* Define to make parameter entity parsing functionality available. */ #define XML_DTD 1 /* Define to make XML Namespaces functionality available. */ #define XML_NS 1 #endif #ifdef PHP_EXPORTS #define PCRE_STATIC #endif #endif streams/php_stream_userspace.h 0000644 00000003122 15217713750 0012615 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Wez Furlong
| +----------------------------------------------------------------------+ */ /* $Id: php_stream_userspace.h 293036 2010-01-03 09:23:27Z sebastian $ */ /* for user-space streams */ PHPAPI extern php_stream_ops php_stream_userspace_ops; PHPAPI extern php_stream_ops php_stream_userspace_dir_ops; #define PHP_STREAM_IS_USERSPACE &php_stream_userspace_ops #define PHP_STREAM_IS_USERSPACE_DIR &php_stream_userspace_dir_ops /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: * vim600: sw=4 ts=4 fdm=marker * vim<600: sw=4 ts=4 */ streams/php_stream_context.h 0000644 00000014376 15217713750 0012324 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Wez Furlong
| +----------------------------------------------------------------------+ */ /* $Id: php_stream_context.h 293036 2010-01-03 09:23:27Z sebastian $ */ /* Stream context and status notification related definitions */ /* callback for status notifications */ typedef void (*php_stream_notification_func)(php_stream_context *context, int notifycode, int severity, char *xmsg, int xcode, size_t bytes_sofar, size_t bytes_max, void * ptr TSRMLS_DC); #define PHP_STREAM_NOTIFIER_PROGRESS 1 /* Attempt to fetch context from the zval passed, If no context was passed, use the default context The the default context has not yet been created, do it now. */ #define php_stream_context_from_zval(zcontext, nocontext) ( \ (zcontext) ? zend_fetch_resource(&(zcontext) TSRMLS_CC, -1, "Stream-Context", NULL, 1, php_le_stream_context()) : \ (nocontext) ? NULL : \ FG(default_context) ? FG(default_context) : \ (FG(default_context) = php_stream_context_alloc()) ) #define php_stream_context_to_zval(context, zval) { ZVAL_RESOURCE(zval, (context)->rsrc_id); zend_list_addref((context)->rsrc_id); } typedef struct _php_stream_notifier php_stream_notifier; struct _php_stream_notifier { php_stream_notification_func func; void (*dtor)(php_stream_notifier *notifier); void *ptr; int mask; size_t progress, progress_max; /* position for progress notification */ }; struct _php_stream_context { php_stream_notifier *notifier; zval *options; /* hash keyed by wrapper family or specific wrapper */ zval *links; /* hash keyed by hostent for connection pooling */ int rsrc_id; /* used for auto-cleanup */ }; BEGIN_EXTERN_C() PHPAPI void php_stream_context_free(php_stream_context *context); PHPAPI php_stream_context *php_stream_context_alloc(void); PHPAPI int php_stream_context_get_option(php_stream_context *context, const char *wrappername, const char *optionname, zval ***optionvalue); PHPAPI int php_stream_context_set_option(php_stream_context *context, const char *wrappername, const char *optionname, zval *optionvalue); PHPAPI int php_stream_context_get_link(php_stream_context *context, const char *hostent, php_stream **stream); PHPAPI int php_stream_context_set_link(php_stream_context *context, const char *hostent, php_stream *stream); PHPAPI int php_stream_context_del_link(php_stream_context *context, php_stream *stream); PHPAPI php_stream_notifier *php_stream_notification_alloc(void); PHPAPI void php_stream_notification_free(php_stream_notifier *notifier); END_EXTERN_C() /* not all notification codes are implemented */ #define PHP_STREAM_NOTIFY_RESOLVE 1 #define PHP_STREAM_NOTIFY_CONNECT 2 #define PHP_STREAM_NOTIFY_AUTH_REQUIRED 3 #define PHP_STREAM_NOTIFY_MIME_TYPE_IS 4 #define PHP_STREAM_NOTIFY_FILE_SIZE_IS 5 #define PHP_STREAM_NOTIFY_REDIRECTED 6 #define PHP_STREAM_NOTIFY_PROGRESS 7 #define PHP_STREAM_NOTIFY_COMPLETED 8 #define PHP_STREAM_NOTIFY_FAILURE 9 #define PHP_STREAM_NOTIFY_AUTH_RESULT 10 #define PHP_STREAM_NOTIFY_SEVERITY_INFO 0 #define PHP_STREAM_NOTIFY_SEVERITY_WARN 1 #define PHP_STREAM_NOTIFY_SEVERITY_ERR 2 BEGIN_EXTERN_C() PHPAPI void php_stream_notification_notify(php_stream_context *context, int notifycode, int severity, char *xmsg, int xcode, size_t bytes_sofar, size_t bytes_max, void * ptr TSRMLS_DC); PHPAPI php_stream_context *php_stream_context_set(php_stream *stream, php_stream_context *context); END_EXTERN_C() #define php_stream_notify_info(context, code, xmsg, xcode) do { if ((context) && (context)->notifier) { \ php_stream_notification_notify((context), (code), PHP_STREAM_NOTIFY_SEVERITY_INFO, \ (xmsg), (xcode), 0, 0, NULL TSRMLS_CC); } } while (0) #define php_stream_notify_progress(context, bsofar, bmax) do { if ((context) && (context)->notifier) { \ php_stream_notification_notify((context), PHP_STREAM_NOTIFY_PROGRESS, PHP_STREAM_NOTIFY_SEVERITY_INFO, \ NULL, 0, (bsofar), (bmax), NULL TSRMLS_CC); } } while(0) #define php_stream_notify_progress_init(context, sofar, bmax) do { if ((context) && (context)->notifier) { \ (context)->notifier->progress = (sofar); \ (context)->notifier->progress_max = (bmax); \ (context)->notifier->mask |= PHP_STREAM_NOTIFIER_PROGRESS; \ php_stream_notify_progress((context), (sofar), (bmax)); } } while (0) #define php_stream_notify_progress_increment(context, dsofar, dmax) do { if ((context) && (context)->notifier && (context)->notifier->mask & PHP_STREAM_NOTIFIER_PROGRESS) { \ (context)->notifier->progress += (dsofar); \ (context)->notifier->progress_max += (dmax); \ php_stream_notify_progress((context), (context)->notifier->progress, (context)->notifier->progress_max); } } while (0) #define php_stream_notify_file_size(context, file_size, xmsg, xcode) do { if ((context) && (context)->notifier) { \ php_stream_notification_notify((context), PHP_STREAM_NOTIFY_FILE_SIZE_IS, PHP_STREAM_NOTIFY_SEVERITY_INFO, \ (xmsg), (xcode), 0, (file_size), NULL TSRMLS_CC); } } while(0) #define php_stream_notify_error(context, code, xmsg, xcode) do { if ((context) && (context)->notifier) {\ php_stream_notification_notify((context), (code), PHP_STREAM_NOTIFY_SEVERITY_ERR, \ (xmsg), (xcode), 0, 0, NULL TSRMLS_CC); } } while(0) /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: * vim600: sw=4 ts=4 fdm=marker * vim<600: sw=4 ts=4 */ streams/php_stream_plain_wrapper.h 0000644 00000007405 15217713750 0013476 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Wez Furlong
| +----------------------------------------------------------------------+ */ /* $Id: php_stream_plain_wrapper.h 293036 2010-01-03 09:23:27Z sebastian $ */ /* definitions for the plain files wrapper */ /* operations for a plain file; use the php_stream_fopen_XXX funcs below */ PHPAPI extern php_stream_ops php_stream_stdio_ops; PHPAPI extern php_stream_wrapper php_plain_files_wrapper; BEGIN_EXTERN_C() /* like fopen, but returns a stream */ PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, char **opened_path, int options STREAMS_DC TSRMLS_DC); #define php_stream_fopen(filename, mode, opened) _php_stream_fopen((filename), (mode), (opened), 0 STREAMS_CC TSRMLS_CC) PHPAPI php_stream *_php_stream_fopen_with_path(char *filename, char *mode, char *path, char **opened_path, int options STREAMS_DC TSRMLS_DC); #define php_stream_fopen_with_path(filename, mode, path, opened) _php_stream_fopen_with_path((filename), (mode), (path), (opened) STREAMS_CC TSRMLS_CC) PHPAPI php_stream *_php_stream_fopen_from_file(FILE *file, const char *mode STREAMS_DC TSRMLS_DC); #define php_stream_fopen_from_file(file, mode) _php_stream_fopen_from_file((file), (mode) STREAMS_CC TSRMLS_CC) PHPAPI php_stream *_php_stream_fopen_from_fd(int fd, const char *mode, const char *persistent_id STREAMS_DC TSRMLS_DC); #define php_stream_fopen_from_fd(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mode), (persistent_id) STREAMS_CC TSRMLS_CC) PHPAPI php_stream *_php_stream_fopen_from_pipe(FILE *file, const char *mode STREAMS_DC TSRMLS_DC); #define php_stream_fopen_from_pipe(file, mode) _php_stream_fopen_from_pipe((file), (mode) STREAMS_CC TSRMLS_CC) PHPAPI php_stream *_php_stream_fopen_tmpfile(int dummy STREAMS_DC TSRMLS_DC); #define php_stream_fopen_tmpfile() _php_stream_fopen_tmpfile(0 STREAMS_CC TSRMLS_CC) PHPAPI php_stream *_php_stream_fopen_temporary_file(const char *dir, const char *pfx, char **opened_path STREAMS_DC TSRMLS_DC); #define php_stream_fopen_temporary_file(dir, pfx, opened_path) _php_stream_fopen_temporary_file((dir), (pfx), (opened_path) STREAMS_CC TSRMLS_CC) /* This is a utility API for extensions that are opening a stream, converting it * to a FILE* and then closing it again. Be warned that fileno() on the result * will most likely fail on systems with fopencookie. */ PHPAPI FILE * _php_stream_open_wrapper_as_file(char * path, char * mode, int options, char **opened_path STREAMS_DC TSRMLS_DC); #define php_stream_open_wrapper_as_file(path, mode, options, opened_path) _php_stream_open_wrapper_as_file((path), (mode), (options), (opened_path) STREAMS_CC TSRMLS_CC) END_EXTERN_C() /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: * vim600: sw=4 ts=4 fdm=marker * vim<600: sw=4 ts=4 */ streams/php_streams_int.h 0000644 00000005102 15217713750 0011600 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Wez Furlong
| +----------------------------------------------------------------------+ */ /* $Id: php_streams_int.h 293036 2010-01-03 09:23:27Z sebastian $ */ #if ZEND_DEBUG #define emalloc_rel_orig(size) \ ( __php_stream_call_depth == 0 \ ? _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \ : _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) ) #define erealloc_rel_orig(ptr, size) \ ( __php_stream_call_depth == 0 \ ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \ : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) ) #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size))) #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc_rel_orig((ptr), (size))) #else # define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent)) # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) # define emalloc_rel_orig(size) emalloc((size)) #endif #define STREAM_DEBUG 0 #define STREAM_WRAPPER_PLAIN_FILES ((php_stream_wrapper*)-1) #ifndef MAP_FAILED #define MAP_FAILED ((void *) -1) #endif #define CHUNK_SIZE 8192 #ifdef PHP_WIN32 #define EWOULDBLOCK WSAEWOULDBLOCK #endif #ifndef S_ISREG #define S_ISREG(mode) (((mode)&S_IFMT) == S_IFREG) #endif void php_stream_tidy_wrapper_error_log(php_stream_wrapper *wrapper TSRMLS_DC); void php_stream_display_wrapper_errors(php_stream_wrapper *wrapper, const char *path, const char *caption TSRMLS_DC); streams/php_stream_filter_api.h 0000644 00000016154 15217713750 0012752 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Wez Furlong
| | With suggestions from: | | Moriyoshi Koizumi
| | Sara Golemon
| +----------------------------------------------------------------------+ */ /* $Id: php_stream_filter_api.h 293036 2010-01-03 09:23:27Z sebastian $ */ /* The filter API works on the principle of "Bucket-Brigades". This is * partially inspired by the Apache 2 method of doing things, although * it is intentially a light-weight implementation. * * Each stream can have a chain of filters for reading and another for writing. * * When data is written to the stream, is is placed into a bucket and placed at * the start of the input brigade. * * The first filter in the chain is invoked on the brigade and (depending on * it's return value), the next filter is invoked and so on. * */ #define PHP_STREAM_FILTER_READ 0x0001 #define PHP_STREAM_FILTER_WRITE 0x0002 #define PHP_STREAM_FILTER_ALL (PHP_STREAM_FILTER_READ | PHP_STREAM_FILTER_WRITE) typedef struct _php_stream_bucket php_stream_bucket; typedef struct _php_stream_bucket_brigade php_stream_bucket_brigade; struct _php_stream_bucket { php_stream_bucket *next, *prev; php_stream_bucket_brigade *brigade; char *buf; size_t buflen; /* if non-zero, buf should be pefreed when the bucket is destroyed */ int own_buf; int is_persistent; /* destroy this struct when refcount falls to zero */ int refcount; }; struct _php_stream_bucket_brigade { php_stream_bucket *head, *tail; }; typedef enum { PSFS_ERR_FATAL, /* error in data stream */ PSFS_FEED_ME, /* filter needs more data; stop processing chain until more is available */ PSFS_PASS_ON /* filter generated output buckets; pass them on to next in chain */ } php_stream_filter_status_t; /* Buckets API. */ BEGIN_EXTERN_C() PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, int own_buf, int buf_persistent TSRMLS_DC); PHPAPI int php_stream_bucket_split(php_stream_bucket *in, php_stream_bucket **left, php_stream_bucket **right, size_t length TSRMLS_DC); PHPAPI void php_stream_bucket_delref(php_stream_bucket *bucket TSRMLS_DC); #define php_stream_bucket_addref(bucket) (bucket)->refcount++ PHPAPI void php_stream_bucket_prepend(php_stream_bucket_brigade *brigade, php_stream_bucket *bucket TSRMLS_DC); PHPAPI void php_stream_bucket_append(php_stream_bucket_brigade *brigade, php_stream_bucket *bucket TSRMLS_DC); PHPAPI void php_stream_bucket_unlink(php_stream_bucket *bucket TSRMLS_DC); PHPAPI php_stream_bucket *php_stream_bucket_make_writeable(php_stream_bucket *bucket TSRMLS_DC); END_EXTERN_C() #define PSFS_FLAG_NORMAL 0 /* regular read/write */ #define PSFS_FLAG_FLUSH_INC 1 /* an incremental flush */ #define PSFS_FLAG_FLUSH_CLOSE 2 /* final flush prior to closing */ typedef struct _php_stream_filter_ops { php_stream_filter_status_t (*filter)( php_stream *stream, php_stream_filter *thisfilter, php_stream_bucket_brigade *buckets_in, php_stream_bucket_brigade *buckets_out, size_t *bytes_consumed, int flags TSRMLS_DC); void (*dtor)(php_stream_filter *thisfilter TSRMLS_DC); const char *label; } php_stream_filter_ops; typedef struct _php_stream_filter_chain { php_stream_filter *head, *tail; /* Owning stream */ php_stream *stream; } php_stream_filter_chain; struct _php_stream_filter { php_stream_filter_ops *fops; void *abstract; /* for use by filter implementation */ php_stream_filter *next; php_stream_filter *prev; int is_persistent; /* link into stream and chain */ php_stream_filter_chain *chain; /* buffered buckets */ php_stream_bucket_brigade buffer; /* filters are auto_registered when they're applied */ int rsrc_id; }; /* stack filter onto a stream */ BEGIN_EXTERN_C() PHPAPI void _php_stream_filter_prepend(php_stream_filter_chain *chain, php_stream_filter *filter TSRMLS_DC); PHPAPI int php_stream_filter_prepend_ex(php_stream_filter_chain *chain, php_stream_filter *filter TSRMLS_DC); PHPAPI void _php_stream_filter_append(php_stream_filter_chain *chain, php_stream_filter *filter TSRMLS_DC); PHPAPI int php_stream_filter_append_ex(php_stream_filter_chain *chain, php_stream_filter *filter TSRMLS_DC); PHPAPI int _php_stream_filter_flush(php_stream_filter *filter, int finish TSRMLS_DC); PHPAPI php_stream_filter *php_stream_filter_remove(php_stream_filter *filter, int call_dtor TSRMLS_DC); PHPAPI void php_stream_filter_free(php_stream_filter *filter TSRMLS_DC); PHPAPI php_stream_filter *_php_stream_filter_alloc(php_stream_filter_ops *fops, void *abstract, int persistent STREAMS_DC TSRMLS_DC); END_EXTERN_C() #define php_stream_filter_alloc(fops, thisptr, persistent) _php_stream_filter_alloc((fops), (thisptr), (persistent) STREAMS_CC TSRMLS_CC) #define php_stream_filter_alloc_rel(fops, thisptr, persistent) _php_stream_filter_alloc((fops), (thisptr), (persistent) STREAMS_REL_CC TSRMLS_CC) #define php_stream_filter_prepend(chain, filter) _php_stream_filter_prepend((chain), (filter) TSRMLS_CC) #define php_stream_filter_append(chain, filter) _php_stream_filter_append((chain), (filter) TSRMLS_CC) #define php_stream_filter_flush(filter, finish) _php_stream_filter_flush((filter), (finish) TSRMLS_CC) #define php_stream_is_filtered(stream) ((stream)->readfilters.head || (stream)->writefilters.head) typedef struct _php_stream_filter_factory { php_stream_filter *(*create_filter)(const char *filtername, zval *filterparams, int persistent TSRMLS_DC); } php_stream_filter_factory; BEGIN_EXTERN_C() PHPAPI int php_stream_filter_register_factory(const char *filterpattern, php_stream_filter_factory *factory TSRMLS_DC); PHPAPI int php_stream_filter_unregister_factory(const char *filterpattern TSRMLS_DC); PHPAPI int php_stream_filter_register_factory_volatile(const char *filterpattern, php_stream_filter_factory *factory TSRMLS_DC); PHPAPI php_stream_filter *php_stream_filter_create(const char *filtername, zval *filterparams, int persistent TSRMLS_DC); END_EXTERN_C() /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: * vim600: sw=4 ts=4 fdm=marker * vim<600: sw=4 ts=4 */ streams/php_stream_transport.h 0000644 00000015064 15217713750 0012667 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Wez Furlong
| +----------------------------------------------------------------------+ */ /* $Id: php_stream_transport.h 293036 2010-01-03 09:23:27Z sebastian $ */ #if HAVE_SYS_SOCKET_H # include
#endif typedef php_stream *(php_stream_transport_factory_func)(const char *proto, long protolen, char *resourcename, long resourcenamelen, const char *persistent_id, int options, int flags, struct timeval *timeout, php_stream_context *context STREAMS_DC TSRMLS_DC); typedef php_stream_transport_factory_func *php_stream_transport_factory; BEGIN_EXTERN_C() PHPAPI int php_stream_xport_register(char *protocol, php_stream_transport_factory factory TSRMLS_DC); PHPAPI int php_stream_xport_unregister(char *protocol TSRMLS_DC); #define STREAM_XPORT_CLIENT 0 #define STREAM_XPORT_SERVER 1 #define STREAM_XPORT_CONNECT 2 #define STREAM_XPORT_BIND 4 #define STREAM_XPORT_LISTEN 8 #define STREAM_XPORT_CONNECT_ASYNC 16 /* Open a client or server socket connection */ PHPAPI php_stream *_php_stream_xport_create(const char *name, long namelen, int options, int flags, const char *persistent_id, struct timeval *timeout, php_stream_context *context, char **error_string, int *error_code STREAMS_DC TSRMLS_DC); #define php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, ecode) \ _php_stream_xport_create(name, namelen, options, flags, persistent_id, timeout, context, estr, ecode STREAMS_CC TSRMLS_CC) /* Bind the stream to a local address */ PHPAPI int php_stream_xport_bind(php_stream *stream, const char *name, long namelen, char **error_text TSRMLS_DC); /* Connect to a remote address */ PHPAPI int php_stream_xport_connect(php_stream *stream, const char *name, long namelen, int asynchronous, struct timeval *timeout, char **error_text, int *error_code TSRMLS_DC); /* Prepare to listen */ PHPAPI int php_stream_xport_listen(php_stream *stream, int backlog, char **error_text TSRMLS_DC); /* Get the next client and their address as a string, or the underlying address * structure. You must efree either of these if you request them */ PHPAPI int php_stream_xport_accept(php_stream *stream, php_stream **client, char **textaddr, int *textaddrlen, void **addr, socklen_t *addrlen, struct timeval *timeout, char **error_text TSRMLS_DC); /* Get the name of either the socket or it's peer */ PHPAPI int php_stream_xport_get_name(php_stream *stream, int want_peer, char **textaddr, int *textaddrlen, void **addr, socklen_t *addrlen TSRMLS_DC); enum php_stream_xport_send_recv_flags { STREAM_OOB = 1, STREAM_PEEK = 2 }; /* Similar to recv() system call; read data from the stream, optionally * peeking, optionally retrieving OOB data */ PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, long flags, void **addr, socklen_t *addrlen, char **textaddr, int *textaddrlen TSRMLS_DC); /* Similar to send() system call; send data to the stream, optionally * sending it as OOB data */ PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, long flags, void *addr, socklen_t addrlen TSRMLS_DC); typedef enum { STREAM_SHUT_RD, STREAM_SHUT_WR, STREAM_SHUT_RDWR } stream_shutdown_t; /* Similar to shutdown() system call; shut down part of a full-duplex * connection */ PHPAPI int php_stream_xport_shutdown(php_stream *stream, stream_shutdown_t how TSRMLS_DC); END_EXTERN_C() /* Structure definition for the set_option interface that the above functions wrap */ typedef struct _php_stream_xport_param { enum { STREAM_XPORT_OP_BIND, STREAM_XPORT_OP_CONNECT, STREAM_XPORT_OP_LISTEN, STREAM_XPORT_OP_ACCEPT, STREAM_XPORT_OP_CONNECT_ASYNC, STREAM_XPORT_OP_GET_NAME, STREAM_XPORT_OP_GET_PEER_NAME, STREAM_XPORT_OP_RECV, STREAM_XPORT_OP_SEND, STREAM_XPORT_OP_SHUTDOWN } op; unsigned int want_addr:1; unsigned int want_textaddr:1; unsigned int want_errortext:1; unsigned int how:2; struct { char *name; long namelen; int backlog; struct timeval *timeout; struct sockaddr *addr; socklen_t addrlen; char *buf; size_t buflen; long flags; } inputs; struct { php_stream *client; int returncode; struct sockaddr *addr; socklen_t addrlen; char *textaddr; long textaddrlen; char *error_text; int error_code; } outputs; } php_stream_xport_param; /* These functions provide crypto support on the underlying transport */ typedef enum { STREAM_CRYPTO_METHOD_SSLv2_CLIENT, STREAM_CRYPTO_METHOD_SSLv3_CLIENT, STREAM_CRYPTO_METHOD_SSLv23_CLIENT, STREAM_CRYPTO_METHOD_TLS_CLIENT, STREAM_CRYPTO_METHOD_SSLv2_SERVER, STREAM_CRYPTO_METHOD_SSLv3_SERVER, STREAM_CRYPTO_METHOD_SSLv23_SERVER, STREAM_CRYPTO_METHOD_TLS_SERVER } php_stream_xport_crypt_method_t; BEGIN_EXTERN_C() PHPAPI int php_stream_xport_crypto_setup(php_stream *stream, php_stream_xport_crypt_method_t crypto_method, php_stream *session_stream TSRMLS_DC); PHPAPI int php_stream_xport_crypto_enable(php_stream *stream, int activate TSRMLS_DC); END_EXTERN_C() typedef struct _php_stream_xport_crypto_param { enum { STREAM_XPORT_CRYPTO_OP_SETUP, STREAM_XPORT_CRYPTO_OP_ENABLE } op; struct { int activate; php_stream_xport_crypt_method_t method; php_stream *session; } inputs; struct { int returncode; } outputs; } php_stream_xport_crypto_param; BEGIN_EXTERN_C() PHPAPI HashTable *php_stream_xport_get_hash(void); PHPAPI php_stream_transport_factory_func php_stream_generic_socket_factory; END_EXTERN_C() /* * 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 */ streams/php_stream_mmap.h 0000644 00000006760 15217713750 0011570 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Wez Furlong
| +----------------------------------------------------------------------+ */ /* $Id: php_stream_mmap.h 293036 2010-01-03 09:23:27Z sebastian $ */ /* Memory Mapping interface for streams. * The intention is to provide a uniform interface over the most common * operations that are used within PHP itself, rather than a complete * API for all memory mapping needs. * * ATM, we support only mmap(), but win32 memory mapping support will * follow soon. * */ typedef enum { /* Does the stream support mmap ? */ PHP_STREAM_MMAP_SUPPORTED, /* Request a range and offset to be mapped; * while mapped, you MUST NOT use any read/write functions * on the stream (win9x compatibility) */ PHP_STREAM_MMAP_MAP_RANGE, /* Unmap the last range that was mapped for the stream */ PHP_STREAM_MMAP_UNMAP } php_stream_mmap_operation_t; typedef enum { PHP_STREAM_MAP_MODE_READONLY, PHP_STREAM_MAP_MODE_READWRITE, PHP_STREAM_MAP_MODE_SHARED_READONLY, PHP_STREAM_MAP_MODE_SHARED_READWRITE } php_stream_mmap_access_t; typedef struct { /* requested offset and length. * If length is 0, the whole file is mapped */ size_t offset; size_t length; php_stream_mmap_access_t mode; /* returned mapped address */ char *mapped; } php_stream_mmap_range; #define PHP_STREAM_MMAP_ALL 0 #define php_stream_mmap_supported(stream) (_php_stream_set_option((stream), PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_SUPPORTED, NULL TSRMLS_CC) == 0 ? 1 : 0) /* Returns 1 if the stream in its current state can be memory mapped, * 0 otherwise */ #define php_stream_mmap_possible(stream) (!php_stream_is_filtered((stream)) && php_stream_mmap_supported((stream))) BEGIN_EXTERN_C() PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len TSRMLS_DC); #define php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (offset), (length), (mode), (mapped_len) TSRMLS_CC) /* un-maps the last mapped range */ PHPAPI int _php_stream_mmap_unmap(php_stream *stream TSRMLS_DC); #define php_stream_mmap_unmap(stream) _php_stream_mmap_unmap((stream) TSRMLS_CC) PHPAPI int _php_stream_mmap_unmap_ex(php_stream *stream, off_t readden TSRMLS_DC); #define php_stream_mmap_unmap_ex(stream, readden) _php_stream_mmap_unmap_ex((stream), (readden) TSRMLS_CC) END_EXTERN_C() /* * 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 */ php_config.h 0000644 00000164165 15217713750 0007056 0 ustar 00 /* main/php_config.h. Generated automatically by configure. */ /* main/php_config.h.in. Generated automatically from configure.in by autoheader. */ /* Leave this file alone */ /* +----------------------------------------------------------------------+ | Zend Engine | +----------------------------------------------------------------------+ | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | +----------------------------------------------------------------------+ | This source file is subject to version 2.00 of the Zend 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.zend.com/license/2_00.txt. | | If you did not receive a copy of the Zend license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@zend.com so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Andi Gutmans
| | Zeev Suraski
| +----------------------------------------------------------------------+ */ /* $Id: acconfig.h 293155 2010-01-05 20:46:53Z sebastian $ */ #define ZEND_API #define ZEND_DLEXPORT #define ZEND_DLIMPORT /* Define if on AIX 3. System headers sometimes define this. We just want to avoid a redefinition error message. */ #ifndef _ALL_SOURCE /* #undef _ALL_SOURCE */ #endif /* Define if using alloca.c. */ /* #undef C_ALLOCA */ /* Define to empty if the keyword does not work. */ /* #undef const */ /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. This function is required for alloca.c support on those systems. */ /* #undef CRAY_STACKSEG_END */ /* Define to `int' if
doesn't define. */ /* #undef gid_t */ /* Define if you have alloca, as a function or macro. */ #define HAVE_ALLOCA 1 /* Define if you have
and it should be used (not on Ultrix). */ #define HAVE_ALLOCA_H 1 /* Define if you don't have vprintf but do have _doprnt. */ /* #undef HAVE_DOPRNT */ /* Define if your system has a working fnmatch function. */ #define HAVE_FNMATCH 1 /* Define if your struct stat has st_blksize. */ #define HAVE_ST_BLKSIZE 1 /* Define if your struct stat has st_blocks. */ #define HAVE_ST_BLOCKS 1 /* Define if your struct stat has st_rdev. */ #define HAVE_ST_RDEV 1 /* Define if your struct tm has tm_zone. */ #define HAVE_TM_ZONE 1 /* Define if you don't have tm_zone but do have the external array tzname. */ /* #undef HAVE_TZNAME */ /* Define if utime(file, NULL) sets file's timestamp to the present. */ #define HAVE_UTIME_NULL 1 /* Define if you have the vprintf function. */ #define HAVE_VPRINTF 1 /* Define as __inline if that's what the C compiler calls it. */ /* #undef inline */ /* Define if your C compiler doesn't accept -c and -o together. */ /* #undef NO_MINUS_C_MINUS_O */ /* Define as the return type of signal handlers (int or void). */ #define RETSIGTYPE void /* Define to `unsigned' if
doesn't define. */ /* #undef size_t */ /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at run-time. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ /* #undef STACK_DIRECTION */ /* Define if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Define if you can safely include both
and
. */ #define TIME_WITH_SYS_TIME 1 /* Define if your
declares struct tm. */ /* #undef TM_IN_SYS_TIME */ /* Define to `int' if
doesn't define. */ /* #undef uid_t */ /* Define if lex declares yytext as a char * by default, not a char[]. */ /* #undef YYTEXT_POINTER */ /* #undef uint */ /* #undef ulong */ /* The number of bytes in a char. */ #define SIZEOF_CHAR 1 /* The number of bytes in a char *. */ #define SIZEOF_CHAR_P 8 /* The number of bytes in a int. */ #define SIZEOF_INT 4 /* The number of bytes in a long. */ #define SIZEOF_LONG 8 /* The number of bytes in a long int. */ /* #undef SIZEOF_LONG_INT */ /* The number of bytes in a long long. */ #define SIZEOF_LONG_LONG 8 /* The number of bytes in a long long int. */ #define SIZEOF_LONG_LONG_INT 8 /* The number of bytes in a short. */ #define SIZEOF_SHORT 2 /* The number of bytes in a size_t. */ #define SIZEOF_SIZE_T 8 /* Define if you have the CreateProcess function. */ /* #undef HAVE_CREATEPROCESS */ /* Define if you have the RAND_egd function. */ /* #undef HAVE_RAND_EGD */ /* Define if you have the acosh function. */ #define HAVE_ACOSH 1 /* Define if you have the alphasort function. */ #define HAVE_ALPHASORT 1 /* Define if you have the asctime_r function. */ #define HAVE_ASCTIME_R 1 /* Define if you have the asinh function. */ #define HAVE_ASINH 1 /* Define if you have the atanh function. */ #define HAVE_ATANH 1 /* Define if you have the atoll function. */ #define HAVE_ATOLL 1 /* Define if you have the chroot function. */ #define HAVE_CHROOT 1 /* Define if you have the crypt function. */ #define HAVE_CRYPT 1 /* Define if you have the crypt_r function. */ /* #undef HAVE_CRYPT_R */ /* Define if you have the ctermid function. */ #define HAVE_CTERMID 1 /* Define if you have the ctime_r function. */ #define HAVE_CTIME_R 1 /* Define if you have the cuserid function. */ #define HAVE_CUSERID 1 /* Define if you have the fabsf function. */ #define HAVE_FABSF 1 /* Define if you have the finite function. */ #define HAVE_FINITE 1 /* Define if you have the flock function. */ #define HAVE_FLOCK 1 /* Define if you have the floorf function. */ #define HAVE_FLOORF 1 /* Define if you have the fork function. */ #define HAVE_FORK 1 /* Define if you have the fpclass function. */ /* #undef HAVE_FPCLASS */ /* Define if you have the ftok function. */ #define HAVE_FTOK 1 /* Define if you have the funopen function. */ /* #undef HAVE_FUNOPEN */ /* Define if you have the gai_strerror function. */ #define HAVE_GAI_STRERROR 1 /* Define if you have the gcvt function. */ #define HAVE_GCVT 1 /* Define if you have the getcwd function. */ #define HAVE_GETCWD 1 /* Define if you have the getgrgid_r function. */ #define HAVE_GETGRGID_R 1 /* Define if you have the getgrnam_r function. */ #define HAVE_GETGRNAM_R 1 /* Define if you have the getgroups function. */ #define HAVE_GETGROUPS 1 /* Define if you have the getloadavg function. */ #define HAVE_GETLOADAVG 1 /* Define if you have the getlogin function. */ #define HAVE_GETLOGIN 1 /* Define if you have the getopt function. */ #define HAVE_GETOPT 1 /* Define if you have the getpgid function. */ #define HAVE_GETPGID 1 /* Define if you have the getpid function. */ #define HAVE_GETPID 1 /* Define if you have the getpriority function. */ #define HAVE_GETPRIORITY 1 /* Define if you have the getprotobyname function. */ #define HAVE_GETPROTOBYNAME 1 /* Define if you have the getprotobynumber function. */ #define HAVE_GETPROTOBYNUMBER 1 /* Define if you have the getpwnam_r function. */ #define HAVE_GETPWNAM_R 1 /* Define if you have the getpwuid_r function. */ #define HAVE_GETPWUID_R 1 /* Define if you have the getrlimit function. */ #define HAVE_GETRLIMIT 1 /* Define if you have the getrusage function. */ #define HAVE_GETRUSAGE 1 /* Define if you have the getservbyname function. */ #define HAVE_GETSERVBYNAME 1 /* Define if you have the getservbyport function. */ #define HAVE_GETSERVBYPORT 1 /* Define if you have the getsid function. */ #define HAVE_GETSID 1 /* Define if you have the gettimeofday function. */ #define HAVE_GETTIMEOFDAY 1 /* Define if you have the getwd function. */ #define HAVE_GETWD 1 /* Define if you have the glob function. */ #define HAVE_GLOB 1 /* Define if you have the gmtime_r function. */ #define HAVE_GMTIME_R 1 /* Define if you have the grantpt function. */ #define HAVE_GRANTPT 1 /* Define if you have the hstrerror function. */ #define HAVE_HSTRERROR 1 /* Define if you have the hypot function. */ #define HAVE_HYPOT 1 /* Define if you have the inet_ntoa function. */ #define HAVE_INET_NTOA 1 /* Define if you have the inet_ntop function. */ #define HAVE_INET_NTOP 1 /* Define if you have the inet_pton function. */ #define HAVE_INET_PTON 1 /* Define if you have the initgroups function. */ #define HAVE_INITGROUPS 1 /* Define if you have the isascii function. */ #define HAVE_ISASCII 1 /* Define if you have the isfinite function. */ /* #undef HAVE_ISFINITE */ /* Define if you have the isinf function. */ #define HAVE_ISINF 1 /* Define if you have the isnan function. */ #define HAVE_ISNAN 1 /* Define if you have the kill function. */ #define HAVE_KILL 1 /* Define if you have the lchown function. */ #define HAVE_LCHOWN 1 /* Define if you have the ldap_parse_reference function. */ #define HAVE_LDAP_PARSE_REFERENCE 1 /* Define if you have the ldap_parse_result function. */ #define HAVE_LDAP_PARSE_RESULT 1 /* Define if you have the ldap_start_tls_s function. */ #define HAVE_LDAP_START_TLS_S 1 /* Define if you have the link function. */ #define HAVE_LINK 1 /* Define if you have the localeconv function. */ #define HAVE_LOCALECONV 1 /* Define if you have the localtime_r function. */ #define HAVE_LOCALTIME_R 1 /* Define if you have the lockf function. */ #define HAVE_LOCKF 1 /* Define if you have the log1p function. */ #define HAVE_LOG1P 1 /* Define if you have the lrand48 function. */ #define HAVE_LRAND48 1 /* Define if you have the makedev function. */ /* #undef HAVE_MAKEDEV */ /* Define if you have the mblen function. */ #define HAVE_MBLEN 1 /* Define if you have the mbrlen function. */ #define HAVE_MBRLEN 1 /* Define if you have the mbsinit function. */ #define HAVE_MBSINIT 1 /* Define if you have the memcpy function. */ #define HAVE_MEMCPY 1 /* Define if you have the memmove function. */ #define HAVE_MEMMOVE 1 /* Define if you have the mkfifo function. */ #define HAVE_MKFIFO 1 /* Define if you have the mknod function. */ #define HAVE_MKNOD 1 /* Define if you have the mkstemp function. */ #define HAVE_MKSTEMP 1 /* Define if you have the mmap function. */ #define HAVE_MMAP 1 /* Define if you have the mremap function. */ #define HAVE_MREMAP 1 /* Define if you have the mysql_commit function. */ /* #undef HAVE_MYSQL_COMMIT */ /* Define if you have the mysql_next_result function. */ /* #undef HAVE_MYSQL_NEXT_RESULT */ /* Define if you have the mysql_sqlstate function. */ /* #undef HAVE_MYSQL_SQLSTATE */ /* Define if you have the mysql_stmt_prepare function. */ /* #undef HAVE_MYSQL_STMT_PREPARE */ /* Define if you have the nanosleep function. */ #define HAVE_NANOSLEEP 1 /* Define if you have the nice function. */ #define HAVE_NICE 1 /* Define if you have the nl_langinfo function. */ #define HAVE_NL_LANGINFO 1 /* Define if you have the perror function. */ #define HAVE_PERROR 1 /* Define if you have the poll function. */ #define HAVE_POLL 1 /* Define if you have the ptsname function. */ #define HAVE_PTSNAME 1 /* Define if you have the putenv function. */ #define HAVE_PUTENV 1 /* Define if you have the rand_r function. */ #define HAVE_RAND_R 1 /* Define if you have the random function. */ #define HAVE_RANDOM 1 /* Define if you have the realpath function. */ #define HAVE_REALPATH 1 /* Define if you have the regcomp function. */ #define HAVE_REGCOMP 1 /* Define if you have the res_search function. */ #define HAVE_RES_SEARCH 1 /* Define if you have the rl_completion_matches function. */ #define HAVE_RL_COMPLETION_MATCHES 1 /* Define if you have the scandir function. */ #define HAVE_SCANDIR 1 /* Define if you have the setegid function. */ #define HAVE_SETEGID 1 /* Define if you have the setenv function. */ #define HAVE_SETENV 1 /* Define if you have the seteuid function. */ #define HAVE_SETEUID 1 /* Define if you have the setitimer function. */ #define HAVE_SETITIMER 1 /* Define if you have the setlocale function. */ #define HAVE_SETLOCALE 1 /* Define if you have the setpgid function. */ #define HAVE_SETPGID 1 /* Define if you have the setpriority function. */ #define HAVE_SETPRIORITY 1 /* Define if you have the setsid function. */ #define HAVE_SETSID 1 /* Define if you have the setsockopt function. */ #define HAVE_SETSOCKOPT 1 /* Define if you have the setvbuf function. */ #define HAVE_SETVBUF 1 /* Define if you have the shutdown function. */ #define HAVE_SHUTDOWN 1 /* Define if you have the sigaction function. */ #define HAVE_SIGACTION 1 /* Define if you have the sin function. */ #define HAVE_SIN 1 /* Define if you have the snprintf function. */ #define HAVE_SNPRINTF 1 /* Define if you have the socketpair function. */ #define HAVE_SOCKETPAIR 1 /* Define if you have the srand48 function. */ #define HAVE_SRAND48 1 /* Define if you have the srandom function. */ #define HAVE_SRANDOM 1 /* Define if you have the statfs function. */ #define HAVE_STATFS 1 /* Define if you have the statvfs function. */ #define HAVE_STATVFS 1 /* Define if you have the std_syslog function. */ /* #undef HAVE_STD_SYSLOG */ /* Define if you have the strcasecmp function. */ #define HAVE_STRCASECMP 1 /* Define if you have the strcoll function. */ #define HAVE_STRCOLL 1 /* Define if you have the strdup function. */ #define HAVE_STRDUP 1 /* Define if you have the strerror function. */ #define HAVE_STRERROR 1 /* Define if you have the strfmon function. */ #define HAVE_STRFMON 1 /* Define if you have the strftime function. */ #define HAVE_STRFTIME 1 /* Define if you have the strlcat function. */ /* #undef HAVE_STRLCAT */ /* Define if you have the strlcpy function. */ /* #undef HAVE_STRLCPY */ /* Define if you have the strnlen function. */ #define HAVE_STRNLEN 1 /* Define if you have the strpbrk function. */ #define HAVE_STRPBRK 1 /* Define if you have the strptime function. */ #define HAVE_STRPTIME 1 /* Define if you have the strstr function. */ #define HAVE_STRSTR 1 /* Define if you have the strtod function. */ #define HAVE_STRTOD 1 /* Define if you have the strtok_r function. */ #define HAVE_STRTOK_R 1 /* Define if you have the strtol function. */ #define HAVE_STRTOL 1 /* Define if you have the strtoll function. */ #define HAVE_STRTOLL 1 /* Define if you have the strtoul function. */ #define HAVE_STRTOUL 1 /* Define if you have the strtoull function. */ #define HAVE_STRTOULL 1 /* Define if you have the symlink function. */ #define HAVE_SYMLINK 1 /* Define if you have the tempnam function. */ #define HAVE_TEMPNAM 1 /* Define if you have the tzset function. */ #define HAVE_TZSET 1 /* Define if you have the unlockpt function. */ #define HAVE_UNLOCKPT 1 /* Define if you have the unsetenv function. */ #define HAVE_UNSETENV 1 /* Define if you have the usleep function. */ #define HAVE_USLEEP 1 /* Define if you have the utime function. */ #define HAVE_UTIME 1 /* Define if you have the vsnprintf function. */ #define HAVE_VSNPRINTF 1 /* Define if you have the wait3 function. */ #define HAVE_WAIT3 1 /* Define if you have the waitpid function. */ #define HAVE_WAITPID 1 /* Define if you have the header file. */ /* #undef HAVE__NSAPI_H */ /* Define if you have the
header file. */ /* #undef HAVE_APPLICATIONSERVICES_APPLICATIONSERVICES_H */ /* Define if you have the
header file. */ #define HAVE_ALLOCA_H 1 /* Define if you have the
header file. */ #define HAVE_ARPA_INET_H 1 /* Define if you have the
header file. */ #define HAVE_ARPA_NAMESER_H 1 /* Define if you have the
header file. */ #define HAVE_ASSERT_H 1 /* Define if you have the
header file. */ #define HAVE_CRYPT_H 1 /* Define if you have the
header file. */ /* #undef HAVE_DEFAULT_STORE_H */ /* Define if you have the
header file. */ #define HAVE_DIRENT_H 1 /* Define if you have the
header file. */ #define HAVE_DLFCN_H 1 /* Define if you have the
header file. */ #define HAVE_ERRNO_H 1 /* Define if you have the
header file. */ #define HAVE_FCNTL_H 1 /* Define if you have the
header file. */ #define HAVE_GRP_H 1 /* Define if you have the
header file. */ /* #undef HAVE_IEEEFP_H */ /* Define if you have the
header file. */ #define HAVE_INTTYPES_H 1 /* Define if you have the
header file. */ #define HAVE_LANGINFO_H 1 /* Define if you have the
header file. */ #define HAVE_LIMITS_H 1 /* Define if you have the
header file. */ #define HAVE_LOCALE_H 1 /* Define if you have the
header file. */ /* #undef HAVE_MACH_O_DYLD_H */ /* Define if you have the
header file. */ #define HAVE_MALLOC_H 1 /* Define if you have the
header file. */ #define HAVE_MONETARY_H 1 /* Define if you have the
header file. */ /* #undef HAVE_NDIR_H */ /* Define if you have the
header file. */ #define HAVE_NETDB_H 1 /* Define if you have the
header file. */ #define HAVE_NETINET_IN_H 1 /* Define if you have the
header file. */ #define HAVE_NETINET_TCP_H 1 /* Define if you have the
header file. */ /* #undef HAVE_OPENSSL_CRYPTO_H */ /* Define if you have the
header file. */ #define HAVE_PWD_H 1 /* Define if you have the
header file. */ #define HAVE_RESOLV_H 1 /* Define if you have the
header file. */ #define HAVE_SIGNAL_H 1 /* Define if you have the
header file. */ /* #undef HAVE_ST_H */ /* Define if you have the
header file. */ #define HAVE_STDARG_H 1 /* Define if you have the
header file. */ #define HAVE_STDBOOL_H 1 /* Define if you have the
header file. */ #define HAVE_STDINT_H 1 /* Define if you have the
header file. */ #define HAVE_STDLIB_H 1 /* Define if you have the
header file. */ #define HAVE_STRING_H 1 /* Define if you have the
header file. */ #define HAVE_STRINGS_H 1 /* Define if you have the
header file. */ /* #undef HAVE_SYS_DIR_H */ /* Define if you have the
header file. */ #define HAVE_SYS_FILE_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_IOCTL_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_IPC_H 1 /* Define if you have the
header file. */ /* #undef HAVE_SYS_LOADAVG_H */ /* Define if you have the
header file. */ /* #undef HAVE_SYS_MKDEV_H */ /* Define if you have the
header file. */ #define HAVE_SYS_MMAN_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_MOUNT_H 1 /* Define if you have the
header file. */ /* #undef HAVE_SYS_NDIR_H */ /* Define if you have the
header file. */ #define HAVE_SYS_PARAM_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_POLL_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_RESOURCE_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_SELECT_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_SOCKET_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_STAT_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_STATFS_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_STATVFS_H 1 /* Define if you have the
header file. */ /* #undef HAVE_SYS_SYSEXITS_H */ /* Define if you have the
header file. */ #define HAVE_SYS_TIME_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_TIMES_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_TYPES_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_UN_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_UTSNAME_H 1 /* Define if you have the
header file. */ /* #undef HAVE_SYS_VARARGS_H */ /* Define if you have the
header file. */ #define HAVE_SYS_VFS_H 1 /* Define if you have the
header file. */ #define HAVE_SYS_WAIT_H 1 /* Define if you have the
header file. */ #define HAVE_SYSEXITS_H 1 /* Define if you have the
header file. */ #define HAVE_SYSLOG_H 1 /* Define if you have the
header file. */ #define HAVE_TERMIOS_H 1 /* Define if you have the
header file. */ #define HAVE_TIME_H 1 /* Define if you have the
header file. */ /* #undef HAVE_TUXMODULE_H */ /* Define if you have the
header file. */ #define HAVE_UNISTD_H 1 /* Define if you have the
header file. */ /* #undef HAVE_UNIX_H */ /* Define if you have the
header file. */ #define HAVE_UTIME_H 1 /* Define if you have the
header file. */ #define HAVE_WCHAR_H 1 /* Define if you have the
header file. */ /* #undef HAVE_XMLPARSE_H */ /* Define if you have the
header file. */ /* #undef HAVE_XMLTOK_H */ /* Define if you have the m library (-lm). */ #define HAVE_LIBM 1 /* Define to enable GNU C Library extensions */ #define _GNU_SOURCE 1 /* Enabling BIND8 compatibility for Panther */ /* #undef BIND_8_COMPAT */ /* Define if the target system has /dev/urandom device */ #define HAVE_DEV_URANDOM 1 /* Whether you have AOLserver */ /* #undef HAVE_AOLSERVER */ /* */ /* #undef HAVE_AP_CONFIG_H */ /* */ /* #undef HAVE_AP_COMPAT_H */ /* */ /* #undef HAVE_APACHE */ /* */ /* #undef HAVE_APACHE */ /* */ /* #undef HAVE_AP_CONFIG_H */ /* */ /* #undef HAVE_AP_CONFIG_H */ /* */ /* #undef HAVE_AP_COMPAT_H */ /* */ /* #undef HAVE_OLD_COMPAT_H */ /* */ /* #undef HAVE_AP_CONFIG_H */ /* */ /* #undef HAVE_AP_COMPAT_H */ /* */ /* #undef HAVE_OLD_COMPAT_H */ /* */ /* #undef HAVE_AP_CONFIG_H */ /* */ /* #undef HAVE_AP_COMPAT_H */ /* */ /* #undef HAVE_OLD_COMPAT_H */ /* */ /* #undef USE_TRANSFER_TABLES */ /* */ /* #undef PHP_APACHE_HAVE_CLIENT_FD */ /* */ /* #undef HAVE_AP_CONFIG_H */ /* */ /* #undef HAVE_AP_COMPAT_H */ /* */ /* #undef HAVE_APACHE_HOOKS */ /* */ /* #undef HAVE_APACHE */ /* */ /* #undef HAVE_AP_CONFIG_H */ /* */ /* #undef HAVE_AP_CONFIG_H */ /* */ /* #undef HAVE_AP_COMPAT_H */ /* */ /* #undef HAVE_OLD_COMPAT_H */ /* */ /* #undef HAVE_AP_CONFIG_H */ /* */ /* #undef HAVE_AP_COMPAT_H */ /* */ /* #undef HAVE_OLD_COMPAT_H */ /* */ /* #undef HAVE_AP_CONFIG_H */ /* */ /* #undef HAVE_AP_COMPAT_H */ /* */ /* #undef HAVE_OLD_COMPAT_H */ /* */ /* #undef USE_TRANSFER_TABLES */ /* */ /* #undef PHP_APACHE_HAVE_CLIENT_FD */ /* Whether to compile with Caudium support */ /* #undef HAVE_CAUDIUM */ /* Whether you have a Continuity Server */ /* #undef HAVE_CONTINUITY */ /* */ /* #undef WITH_ZEUS */ /* Whether you have a Netscape/iPlanet/Sun Webserver */ /* #undef HAVE_NSAPI */ /* Whether you have phttpd */ /* #undef HAVE_PHTTPD */ /* whether you want Pi3Web support */ /* #undef WITH_PI3WEB */ /* Whether you use Roxen */ /* #undef HAVE_ROXEN */ /* Whether to use Roxen in ZTS mode */ /* #undef ROXEN_USE_ZTS */ /* */ #define PHP_FASTCGI 1 /* */ #define FORCE_CGI_REDIRECT 1 /* */ #define DISCARD_PATH 0 /* */ #define ENABLE_PATHINFO_CHECK 1 /* Define if system uses EBCDIC */ /* #undef CHARSET_EBCDIC */ /* Define if processor uses big-endian word */ /* #undef WORDS_BIGENDIAN */ /* whether write(2) works */ #define PHP_WRITE_STDOUT 1 /* */ #define HAVE_SOCKET 1 /* */ #define HAVE_SOCKET 1 /* */ /* #undef HAVE_LIBSOCKET */ /* */ #define HAVE_SOCKETPAIR 1 /* */ #define HAVE_SOCKETPAIR 1 /* */ /* #undef HAVE_LIBSOCKET */ /* */ #define HAVE_HTONL 1 /* */ #define HAVE_HTONL 1 /* */ /* #undef HAVE_LIBSOCKET */ /* */ #define HAVE_GETHOSTNAME 1 /* */ #define HAVE_GETHOSTNAME 1 /* */ /* #undef HAVE_LIBNSL */ /* */ #define HAVE_GETHOSTBYADDR 1 /* */ #define HAVE_GETHOSTBYADDR 1 /* */ /* #undef HAVE_LIBNSL */ /* */ /* #undef HAVE_YP_GET_DEFAULT_DOMAIN */ /* */ /* #undef HAVE_YP_GET_DEFAULT_DOMAIN */ /* */ /* #undef HAVE_LIBNSL */ /* */ #define HAVE_DLOPEN 1 /* */ #define HAVE_DLOPEN 1 /* */ #define HAVE_LIBDL 1 /* */ #define HAVE_LIBDL 1 /* */ #define HAVE_RES_SEARCH 1 /* */ #define HAVE_RES_SEARCH 1 /* */ #define HAVE_LIBRESOLV 1 /* */ #define HAVE_RES_SEARCH 1 /* */ /* #undef HAVE_LIBBIND */ /* */ #define HAVE_RES_SEARCH 1 /* */ /* #undef HAVE_LIBSOCKET */ /* */ #define HAVE_INET_ATON 1 /* */ #define HAVE_INET_ATON 1 /* */ #define HAVE_LIBRESOLV 1 /* */ #define HAVE_INET_ATON 1 /* */ /* #undef HAVE_LIBBIND */ /* */ #define HAVE_DN_SKIPNAME 1 /* */ #define HAVE_DN_SKIPNAME 1 /* */ #define HAVE_LIBRESOLV 1 /* */ #define HAVE_DN_SKIPNAME 1 /* */ /* #undef HAVE_LIBBIND */ /* */ #define HAVE_FOPENCOOKIE 1 /* */ #define COOKIE_IO_FUNCTIONS_T cookie_io_functions_t /* */ #define COOKIE_SEEKER_USES_OFF64_T 1 /* Define if system has broken getcwd */ /* #undef HAVE_BROKEN_GETCWD */ /* Define if your glibc borks on fopen with mode a+ */ #define HAVE_BROKEN_GLIBC_FOPEN_APPEND 1 /* Whether localtime_r is declared */ /* #undef MISSING_LOCALTIME_R_DECL */ /* Whether gmtime_r is declared */ /* #undef MISSING_GMTIME_R_DECL */ /* Whether asctime_r is declared */ /* #undef MISSING_ASCTIME_R_DECL */ /* Whether ctime_r is declared */ /* #undef MISSING_CTIME_R_DECL */ /* Whether strtok_r is declared */ /* #undef MISSING_STRTOK_R_DECL */ /* */ #define MISSING_FCLOSE_DECL 0 /* */ #define MISSING_FCLOSE_DECL 0 /* whether you have tm_gmtoff in struct tm */ #define HAVE_TM_GMTOFF 1 /* whether you have struct flock */ #define HAVE_STRUCT_FLOCK 1 /* Whether you have socklen_t */ #define HAVE_SOCKLEN_T 1 /* Size of intmax_t */ #define SIZEOF_INTMAX_T 8 /* Whether intmax_t is available */ #define HAVE_INTMAX_T 1 /* Size of ssize_t */ #define SIZEOF_SSIZE_T 8 /* Whether ssize_t is available */ #define HAVE_SSIZE_T 1 /* Size of ptrdiff_t */ #define SIZEOF_PTRDIFF_T 8 /* Whether ptrdiff_t is available */ #define HAVE_PTRDIFF_T 1 /* Whether you have struct sockaddr_storage */ #define HAVE_SOCKADDR_STORAGE 1 /* Whether struct sockaddr has field sa_len */ /* #undef HAVE_SOCKADDR_SA_LEN */ /* */ #define HAVE_NANOSLEEP 1 /* */ #define HAVE_LIBRT 1 /* Define if you have the getaddrinfo function */ #define HAVE_GETADDRINFO 1 /* Whether system headers declare timezone */ #define HAVE_DECLARED_TIMEZONE 1 /* Whether you have HP-UX 10.x */ /* #undef PHP_HPUX_TIME_R */ /* Whether you have IRIX-style functions */ /* #undef PHP_IRIX_TIME_R */ /* whether you have POSIX readdir_r */ #define HAVE_POSIX_READDIR_R 1 /* whether you have old-style readdir_r */ /* #undef HAVE_OLD_READDIR_R */ /* */ /* #undef in_addr_t */ /* Define if crypt_r has uses CRYPTD */ /* #undef CRYPT_R_CRYPTD */ /* Define if crypt_r uses struct crypt_data */ /* #undef CRYPT_R_STRUCT_CRYPT_DATA */ /* Define if struct crypt_data requires _GNU_SOURCE */ /* #undef CRYPT_R_GNU_SOURCE */ /* Whether you have gcov */ /* #undef HAVE_GCOV */ /* */ #define PHP_SAFE_MODE 0 /* */ #define PHP_SAFE_MODE 0 /* */ #define PHP_SAFE_MODE_EXEC_DIR "/usr/bin" /* */ #define PHP_SAFE_MODE_EXEC_DIR "/usr/bin" /* */ #define PHP_SIGCHILD 0 /* */ #define PHP_SIGCHILD 0 /* */ #define MAGIC_QUOTES 1 /* */ #define MAGIC_QUOTES 1 /* */ #define DEFAULT_SHORT_OPEN_TAG "1" /* */ #define DEFAULT_SHORT_OPEN_TAG "1" /* Whether you have dmalloc */ /* #undef HAVE_DMALLOC */ /* Whether to enable IPv6 support */ #define HAVE_IPV6 1 /* Define if int32_t type is present. */ #define HAVE_INT32_T 1 /* Define if uint32_t type is present. */ #define HAVE_UINT32_T 1 /* Whether to build date as dynamic module */ /* #undef COMPILE_DL_DATE */ /* */ #define HAVE_LIBXML 1 /* */ #define HAVE_LIBXML 1 /* Whether to build libxml as dynamic module */ /* #undef COMPILE_DL_LIBXML */ /* Whether to build openssl as dynamic module */ /* #undef COMPILE_DL_OPENSSL */ /* OpenSSL 0.9.7 or later */ /* #undef HAVE_DSA_DEFAULT_METHOD */ /* */ #define HAVE_OPENSSL_EXT 1 /* Whether to build pcre as dynamic module */ /* #undef COMPILE_DL_PCRE */ /* */ /* #undef HAVE_BUNDLED_PCRE */ /* */ #define HAVE_PCRE 1 /* Whether to build pcre as dynamic module */ /* #undef COMPILE_DL_PCRE */ /* Whether to build zlib as dynamic module */ /* #undef COMPILE_DL_ZLIB */ /* */ #define HAVE_ZLIB 1 /* Whether to build bcmath as dynamic module */ #define COMPILE_DL_BCMATH 1 /* Whether you have bcmath */ #define HAVE_BCMATH 1 /* */ #define HAVE_BZ2 1 /* Whether to build bz2 as dynamic module */ /* #undef COMPILE_DL_BZ2 */ /* */ #define HAVE_CALENDAR 1 /* Whether to build calendar as dynamic module */ /* #undef COMPILE_DL_CALENDAR */ /* */ #define HAVE_CTYPE 1 /* Whether to build ctype as dynamic module */ /* #undef COMPILE_DL_CTYPE */ /* Have cURL with SSL support */ #define HAVE_CURL_SSL 1 /* Have cURL with OpenSSL support */ /* #undef HAVE_CURL_OPENSSL */ /* Fix for threadsafe using of MariaDB 10.2 */ #define PHP_CURL_MARIADB102_FIX 1 /* Have cURL with GnuTLS support */ /* #undef HAVE_CURL_GNUTLS */ /* */ #define HAVE_CURL 1 /* */ #define HAVE_CURL_VERSION_INFO 1 /* */ #define HAVE_CURL_EASY_STRERROR 1 /* */ #define HAVE_CURL_MULTI_STRERROR 1 /* */ /* #undef PHP_CURL_URL_WRAPPERS */ /* Whether to build curl as dynamic module */ /* #undef COMPILE_DL_CURL */ /* */ /* #undef QDBM_INCLUDE_FILE */ /* */ /* #undef DBA_QDBM */ /* */ /* #undef GDBM_INCLUDE_FILE */ /* */ /* #undef DBA_GDBM */ /* */ /* #undef NDBM_INCLUDE_FILE */ /* */ /* #undef DBA_NDBM */ /* */ /* #undef DBA_DB4 */ /* */ /* #undef DB4_INCLUDE_FILE */ /* */ /* #undef DBA_DB3 */ /* */ /* #undef DB3_INCLUDE_FILE */ /* */ /* #undef DBA_DB2 */ /* */ /* #undef DB2_INCLUDE_FILE */ /* */ /* #undef DB1_VERSION */ /* */ /* #undef DB1_VERSION */ /* */ /* #undef DB1_INCLUDE_FILE */ /* */ /* #undef DBA_DB1 */ /* */ /* #undef DBM_INCLUDE_FILE */ /* */ /* #undef DBM_VERSION */ /* */ /* #undef DBM_VERSION */ /* */ /* #undef DBA_DBM */ /* */ #define DBA_CDB_BUILTIN 1 /* */ #define DBA_CDB_MAKE 1 /* */ #define DBA_CDB 1 /* */ /* #undef CDB_INCLUDE_FILE */ /* */ #define DBA_CDB 1 /* */ #define DBA_INIFILE 1 /* */ #define DBA_FLATFILE 1 /* */ #define HAVE_DBA 1 /* Whether to build dba as dynamic module */ #define COMPILE_DL_DBA 1 /* */ #define DBASE 1 /* Whether to build dbase as dynamic module */ #define COMPILE_DL_DBASE 1 /* Whether to build dbx as dynamic module */ #define COMPILE_DL_DBX 1 /* */ #define HAVE_LIBXML 1 /* */ #define HAVE_DOM 1 /* Whether to build dom as dynamic module */ #define COMPILE_DL_DOM 1 /* Whether to build enchant as dynamic module */ #define COMPILE_DL_ENCHANT 1 /* */ #define HAVE_ENCHANT 1 /* */ #define HAVE_ENCHANT_BROKER_SET_PARAM 1 /* */ #define ENCHANT_VERSION_STRING "1.5.x" /* Whether you want EXIF (metadata from images) support */ #define HAVE_EXIF 1 /* Whether to build exif as dynamic module */ /* #undef COMPILE_DL_EXIF */ /* Whether you have FrontBase */ /* #undef HAVE_FBSQL */ /* Whether to build fbsql as dynamic module */ /* #undef COMPILE_DL_FBSQL */ /* */ /* #undef HAVE_FDFTK_H_LOWER */ /* */ /* #undef HAVE_FDFTK_5 */ /* Whether to build fdf as dynamic module */ /* #undef COMPILE_DL_FDF */ /* */ /* #undef HAVE_FDFLIB */ /* */ /* #undef HAVE_DL */ /* */ /* #undef HAVE_DL */ /* */ /* #undef HAVE_LIBDLOPEN */ /* */ #define HAVE_GZGETS 1 /* */ #define HAVE_GZGETS 1 /* */ /* #undef HAVE_LIBZ */ /* */ #define HAVE_ROUND 1 /* */ #define HAVE_ROUND 1 /* */ #define HAVE_LIBM 1 /* */ #define HAVE_FILEINFOLIB 1 /* magic file path */ #define PHP_DEFAULT_MAGIC_FILE "/usr/share/misc/magic" /* Whether to build fileinfo as dynamic module */ #define COMPILE_DL_FILEINFO 1 /* Whether to build filter as dynamic module */ /* #undef COMPILE_DL_FILTER */ /* Whether you want FTP support */ #define HAVE_FTP 1 /* Whether to build ftp as dynamic module */ /* #undef COMPILE_DL_FTP */ /* */ #define USE_GD_IMGSTRTTF 1 /* */ #define USE_GD_IMGSTRTTF 1 /* */ #define HAVE_LIBFREETYPE 1 /* */ /* #undef HAVE_LIBTTF */ /* */ #define HAVE_LIBT1 1 /* */ #define HAVE_LIBGD 1 /* */ #define HAVE_LIBGD13 1 /* */ #define HAVE_LIBGD15 1 /* */ #define HAVE_LIBGD20 1 /* */ #define HAVE_LIBGD204 1 /* */ #define HAVE_GD_IMAGESETTILE 1 /* */ #define HAVE_GD_IMAGESETBRUSH 1 /* */ #define HAVE_GDIMAGECOLORRESOLVE 1 /* */ #define HAVE_COLORCLOSESTHWB 1 /* */ #define HAVE_GD_WBMP 1 /* */ #define HAVE_GD_GD2 1 /* */ #define HAVE_GD_PNG 1 /* */ #define HAVE_GD_XBM 1 /* */ #define HAVE_GD_BUNDLED 1 /* */ #define HAVE_GD_GIF_READ 1 /* */ #define HAVE_GD_GIF_CREATE 1 /* */ #define HAVE_GD_IMAGEELLIPSE 1 /* */ #define HAVE_GD_FONTCACHESHUTDOWN 1 /* */ #define HAVE_GD_FONTMUTEX 1 /* */ #define HAVE_GD_DYNAMIC_CTX_EX 1 /* */ #define HAVE_GD_GIF_CTX 1 /* */ #define HAVE_GD_JPG 1 /* */ #define HAVE_GD_XPM 1 /* */ #define HAVE_GD_STRINGFT 1 /* */ #define HAVE_GD_STRINGFTEX 1 /* */ /* #undef USE_GD_JISX0208 */ /* */ #define USE_GD_IMGSTRTTF 1 /* */ #define USE_GD_IMGSTRTTF 1 /* */ #define HAVE_LIBFREETYPE 1 /* */ /* #undef HAVE_LIBTTF */ /* */ #define HAVE_LIBT1 1 /* */ #define HAVE_LIBGD 1 /* */ #define HAVE_LIBGD13 1 /* */ #define HAVE_LIBGD15 1 /* */ #define HAVE_GD_PNG 1 /* */ #define HAVE_GD_GIF_READ 1 /* */ #define HAVE_GD_GIF_CREATE 1 /* */ #define HAVE_GD_WBMP 1 /* */ #define HAVE_GD_JPG 1 /* */ #define HAVE_GD_XPM 1 /* */ #define HAVE_GD_GD2 1 /* */ #define HAVE_LIBGD20 1 /* */ #define HAVE_GD_IMAGESETTILE 1 /* */ #define HAVE_GD_IMAGEELLIPSE 1 /* */ #define HAVE_GD_IMAGESETBRUSH 1 /* */ /* #undef HAVE_GD_STRINGTTF */ /* */ #define HAVE_GD_STRINGFT 1 /* */ #define HAVE_GD_STRINGFTEX 1 /* */ #define HAVE_COLORCLOSESTHWB 1 /* */ #define HAVE_GDIMAGECOLORRESOLVE 1 /* */ #define HAVE_GD_GIF_CTX 1 /* */ /* #undef HAVE_GD_CACHE_CREATE */ /* */ #define HAVE_GD_FONTCACHESHUTDOWN 1 /* */ /* #undef HAVE_GD_FREEFONTCACHE */ /* */ #define HAVE_GD_FONTMUTEX 1 /* */ #define HAVE_GD_DYNAMIC_CTX_EX 1 /* */ #define HAVE_LIBGD204 1 /* Whether to build gd as dynamic module */ #define COMPILE_DL_GD 1 /* */ #define HAVE_LIBINTL 1 /* Whether to build gettext as dynamic module */ /* #undef COMPILE_DL_GETTEXT */ /* */ #define HAVE_NGETTEXT 1 /* */ #define HAVE_DNGETTEXT 1 /* */ #define HAVE_DCNGETTEXT 1 /* */ #define HAVE_BIND_TEXTDOMAIN_CODESET 1 /* Whether to build gmp as dynamic module */ /* #undef COMPILE_DL_GMP */ /* */ #define HAVE_GMP 1 /* Have HASH Extension */ #define HAVE_HASH_EXT 1 /* Define if processor uses big-endian word */ /* #undef WORDS_BIGENDIAN */ /* Whether to build hash as dynamic module */ /* #undef COMPILE_DL_HASH */ /* */ /* #undef HAVE_LIBICONV */ /* */ /* #undef HAVE_GICONV_H */ /* */ /* #undef HAVE_LIBICONV */ /* iconv() is aliased to libiconv() in -liconv */ /* #undef ICONV_ALIASED_LIBICONV */ /* */ #define HAVE_ICONV 1 /* Which iconv implementation to use */ #define PHP_ICONV_IMPL "glibc" /* Konstantin Chuguev's iconv implementation */ /* #undef HAVE_BSD_ICONV */ /* Which iconv implementation to use */ #define PHP_ICONV_IMPL "glibc" /* glibc's iconv implementation */ #define HAVE_GLIBC_ICONV 1 /* Which iconv implementation to use */ #define PHP_ICONV_IMPL "glibc" /* Whether iconv supports error no or not */ #define ICONV_SUPPORTS_ERRNO 1 /* Whether iconv supports error no or not */ #define ICONV_SUPPORTS_ERRNO 1 /* Whether iconv supports error no or not */ #define ICONV_SUPPORTS_ERRNO 1 /* Path to iconv.h */ #define PHP_ICONV_H_PATH /* Whether to build iconv as dynamic module */ /* #undef COMPILE_DL_ICONV */ /* Whether to build imap as dynamic module */ #define COMPILE_DL_IMAP 1 /* */ #define HAVE_IMAP 1 /* */ #define HAVE_IMAP2000 1 /* */ #define HAVE_IMAP2000 1 /* */ #define HAVE_IMAP2000 1 /* */ #define HAVE_IMAP2000 1 /* */ #define HAVE_IMAP2000 1 /* */ #define HAVE_IMAP2000 1 /* */ #define HAVE_IMAP2004 1 /* Whether utf8_mime2text() has new signature */ #define HAVE_NEW_MIME2TEXT 1 /* */ /* #undef HAVE_IMAP2001 */ /* */ #define HAVE_LIBPAM 1 /* */ #define HAVE_LIBCRYPT 1 /* */ #define HAVE_IMAP_KRB 1 /* */ #define HAVE_IMAP_SSL 1 /* */ #define HAVE_IMAP_AUTH_GSS 1 /* */ #define HAVE_RFC822_OUTPUT_ADDRESS_LIST 1 /* */ #define HAVE_IBASE 1 /* Whether to build interbase as dynamic module */ #define COMPILE_DL_INTERBASE 1 /* Whether to build intl as dynamic module */ #define COMPILE_DL_INTL 1 /* whether to enable JavaScript Object Serialization support */ #define HAVE_JSON 1 /* Whether to build json as dynamic module */ #define COMPILE_DL_JSON 1 /* Whether to build ldap as dynamic module */ #define COMPILE_DL_LDAP 1 /* */ /* #undef HAVE_NSLDAP */ /* */ /* #undef HAVE_NSLDAP */ /* */ /* #undef HAVE_NSLDAP */ /* */ /* #undef HAVE_NSLDAP */ /* */ /* #undef HAVE_ORALDAP */ /* */ /* #undef HAVE_ORALDAP_10 */ /* */ #define HAVE_LDAP 1 /* Whether 3 arg set_rebind_proc() */ #define HAVE_3ARG_SETREBINDPROC 1 /* */ #define HAVE_LDAP_SASL_SASL_H 1 /* */ /* #undef HAVE_LDAP_SASL_H */ /* LDAP SASL support */ #define HAVE_LDAP_SASL 1 /* whether to have multibyte string support */ #define HAVE_MBSTRING 1 /* whether to have multibyte regex support */ #define HAVE_MBREGEX 1 /* whether to check multibyte regex backtrack */ #define USE_COMBINATION_EXPLOSION_CHECK 1 /* Whether to build mbstring as dynamic module */ #define COMPILE_DL_MBSTRING 1 /* */ #define HAVE_LIBMCRYPT 1 /* */ #define HAVE_LIBMCRYPT 1 /* Whether to build mcrypt as dynamic module */ #define COMPILE_DL_MCRYPT 1 /* Whether to build mhash as dynamic module */ /* #undef COMPILE_DL_MHASH */ /* */ #define HAVE_LIBMHASH 1 /* Whether to build mime_magic as dynamic module */ /* #undef COMPILE_DL_MIME_MAGIC */ /* magic file path */ /* #undef PHP_MIME_MAGIC_FILE_PATH */ /* */ /* #undef HAVE_MING */ /* */ /* #undef HAVE_SWFPREBUILTCLIP */ /* */ /* #undef HAVE_SWFMOVIE_NAMEDANCHOR */ /* */ /* #undef HAVE_MING_SETSWFCOMPRESSION */ /* */ /* #undef HAVE_DESTROY_SWF_BLOCK */ /* */ /* #undef HAVE_NEW_MING */ /* */ /* #undef HAVE_MING_ZLIB */ /* */ /* #undef HAVE_MING_MOVIE_LEVEL */ /* Whether to build ming as dynamic module */ /* #undef COMPILE_DL_MING */ /* */ /* #undef HAVE_MSQL */ /* Whether to build msql as dynamic module */ /* #undef COMPILE_DL_MSQL */ /* */ /* #undef MSQL1 */ /* */ /* #undef MSQL1 */ /* Whether to build mssql as dynamic module */ #define COMPILE_DL_MSSQL 1 /* */ /* #undef HAVE_LIBDNET_STUB */ /* */ #define HAVE_MSSQL 1 /* */ #define HAVE_FREETDS 1 /* Whether you have MySQL */ /* #undef HAVE_MYSQL */ /* */ /* #undef MYSQL_UNIX_ADDR */ /* */ /* #undef MYSQL_UNIX_ADDR */ /* Whether to build mysql as dynamic module */ /* #undef COMPILE_DL_MYSQL */ /* embedded MySQL support enabled */ /* #undef HAVE_EMBEDDED_MYSQLI */ /* */ /* #undef HAVE_MYSQLILIB */ /* Whether to build mysqli as dynamic module */ /* #undef COMPILE_DL_MYSQLI */ /* */ #define HAVE_NCURSES_H 1 /* */ #define HAVE_NCURSESLIB 1 /* */ #define HAVE_NCURSES_PANEL 1 /* */ #define HAVE_NCURSES_COLOR_SET 1 /* */ #define HAVE_NCURSES_SLK_COLOR 1 /* */ #define HAVE_NCURSES_ASSUME_DEFAULT_COLORS 1 /* */ #define HAVE_NCURSES_USE_EXTENDED_NAMES 1 /* Whether to build ncurses as dynamic module */ #define COMPILE_DL_NCURSES 1 /* */ /* #undef HAVE_OCI_ENV_CREATE */ /* */ /* #undef HAVE_OCI_STMT_PREPARE2 */ /* */ /* #undef HAVE_OCI_ENV_CREATE */ /* */ /* #undef HAVE_OCI_STMT_PREPARE2 */ /* */ /* #undef HAVE_OCI8_ATTR_STATEMENT */ /* */ /* #undef HAVE_OCI8_ATTR_STATEMENT */ /* */ /* #undef HAVE_OCI_ENV_NLS_CREATE */ /* */ /* #undef HAVE_OCI_ENV_CREATE */ /* */ /* #undef HAVE_OCI_STMT_PREPARE2 */ /* */ /* #undef HAVE_OCI_LOB_READ2 */ /* */ /* #undef HAVE_OCI8_ATTR_STATEMENT */ /* */ /* #undef HAVE_OCI_ENV_NLS_CREATE */ /* */ /* #undef HAVE_OCI_ENV_CREATE */ /* */ /* #undef HAVE_OCI_STMT_PREPARE2 */ /* */ /* #undef HAVE_OCI_LOB_READ2 */ /* */ /* #undef HAVE_OCI8_TEMP_LOB */ /* */ /* #undef PHP_OCI8_HAVE_COLLECTIONS */ /* */ /* #undef HAVE_OCI8_TEMP_LOB */ /* */ /* #undef HAVE_OCI8_TEMP_LOB */ /* */ /* #undef PHP_OCI8_HAVE_COLLECTIONS */ /* Whether to build oci8 as dynamic module */ /* #undef COMPILE_DL_OCI8 */ /* Whether to build oci8 as dynamic module */ /* #undef COMPILE_DL_OCI8 */ /* */ /* #undef HAVE_OCI8 */ /* */ /* #undef HAVE_OCI_INSTANT_CLIENT */ /* */ /* #undef HAVE_OCI8_ATTR_STATEMENT */ /* */ /* #undef HAVE_OCI_ENV_NLS_CREATE */ /* */ /* #undef HAVE_OCI_ENV_CREATE */ /* */ /* #undef HAVE_OCI_STMT_PREPARE2 */ /* */ /* #undef HAVE_OCI_LOB_READ2 */ /* */ /* #undef HAVE_OCI8_TEMP_LOB */ /* */ /* #undef PHP_OCI8_HAVE_COLLECTIONS */ /* Whether to build oci8 as dynamic module */ /* #undef COMPILE_DL_OCI8 */ /* */ /* #undef HAVE_OCI8 */ /* */ /* #undef HAVE_ADABAS */ /* */ /* #undef HAVE_SAPDB */ /* */ /* #undef HAVE_SOLID_35 */ /* */ /* #undef HAVE_SOLID_30 */ /* */ /* #undef HAVE_SOLID */ /* Needed in sqlunix.h */ /* #undef SS_LINUX */ /* Needed in sqlunix.h */ /* #undef SS_LINUX */ /* Needed in sqlunix.h for wchar defs */ /* #undef SS_FBX */ /* Needed in sqlunix.h for wchar defs */ /* #undef SS_FBX */ /* */ /* #undef HAVE_IBMDB2 */ /* */ /* #undef HAVE_ODBC_ROUTER */ /* */ /* #undef HAVE_EMPRESS */ /* */ /* #undef HAVE_EMPRESS */ /* */ /* #undef AIX */ /* */ /* #undef HPUX */ /* */ /* #undef LINUX */ /* */ /* #undef NEUTRINO */ /* */ /* #undef ISOLARIS */ /* */ /* #undef SOLARIS */ /* */ /* #undef UNIXWARE */ /* */ /* #undef HAVE_BIRDSTEP */ /* */ /* #undef HAVE_CODBC */ /* */ /* #undef HAVE_IODBC */ /* */ /* #undef HAVE_ODBC2 */ /* */ /* #undef HAVE_ESOOB */ /* */ #define HAVE_UNIXODBC 1 /* Whether you want DBMaker */ /* #undef HAVE_DBMAKER */ /* */ #define HAVE_SQLDATASOURCES 1 /* */ #define HAVE_UODBC 1 /* Whether to build odbc as dynamic module */ #define COMPILE_DL_ODBC 1 /* */ #define HAVE_FORK 1 /* */ #define HAVE_WAITPID 1 /* */ #define HAVE_SIGACTION 1 /* Whether to build pcntl as dynamic module */ /* #undef COMPILE_DL_PCNTL */ /* Whether to build pdo as dynamic module */ #define COMPILE_DL_PDO 1 /* Whether to build pdo_dblib as dynamic module */ #define COMPILE_DL_PDO_DBLIB 1 /* */ /* #undef HAVE_LIBDNET_STUB */ /* */ #define HAVE_PDO_DBLIB 1 /* */ #define HAVE_FREETDS 1 /* */ #define HAVE_PDO_FIREBIRD 1 /* Whether to build pdo_firebird as dynamic module */ #define COMPILE_DL_PDO_FIREBIRD 1 /* Whether you have MySQL */ /* #undef HAVE_MYSQL */ /* */ /* #undef PDO_MYSQL_UNIX_ADDR */ /* Whether to build pdo_mysql as dynamic module */ /* #undef COMPILE_DL_PDO_MYSQL */ /* */ /* #undef HAVE_OCIENVCREATE */ /* */ /* #undef HAVE_OCIENVNLSCREATE */ /* */ /* #undef HAVE_OCILOBISTEMPORARY */ /* */ /* #undef HAVE_OCILOBISTEMPORARY */ /* */ /* #undef HAVE_OCICOLLASSIGN */ /* */ /* #undef HAVE_OCISTMTFETCH2 */ /* Whether to build pdo_oci as dynamic module */ /* #undef COMPILE_DL_PDO_OCI */ /* */ /* #undef PHP_PDO_OCI_CLIENT_VERSION */ /* */ /* #undef HAVE_ODBC_H */ /* */ /* #undef HAVE_ODBCSDK_H */ /* */ /* #undef HAVE_IODBC_H */ /* */ /* #undef HAVE_SQLUNIX_H */ /* */ #define HAVE_SQLTYPES_H 1 /* */ #define HAVE_SQLUCODE_H 1 /* */ #define HAVE_SQL_H 1 /* */ /* #undef HAVE_ISQL_H */ /* */ #define HAVE_SQLEXT_H 1 /* */ /* #undef HAVE_ISQLEXT_H */ /* */ /* #undef HAVE_UDBCEXT_H */ /* */ /* #undef HAVE_SQLCLI1_H */ /* */ /* #undef HAVE_LIBRARYMANAGER_H */ /* */ /* #undef HAVE_CLI0CORE_H */ /* */ /* #undef HAVE_CLI0EXT_H */ /* */ /* #undef HAVE_CLI0CLI_H */ /* */ /* #undef HAVE_CLI0DEFS_H */ /* */ /* #undef HAVE_CLI0ENV_H */ /* Whether to build pdo_odbc as dynamic module */ #define COMPILE_DL_PDO_ODBC 1 /* Whether to have pg_config.h */ #define HAVE_PG_CONFIG_H 1 /* Whether to have pg_config.h */ #define HAVE_PG_CONFIG_H 1 /* Whether to build PostgreSQL for PDO support or not */ #define HAVE_PDO_PGSQL 1 /* PostgreSQL 7.2.0 or later */ #define HAVE_PQESCAPE 1 /* PostgreSQL 8.1.4 or later */ #define HAVE_PQESCAPE_CONN 1 /* PostgreSQL 8.1.4 or later */ #define HAVE_PQESCAPE_BYTEA_CONN 1 /* PostgreSQL 7.0.x or later */ #define HAVE_PQSETNONBLOCKING 1 /* Broken libpq under windows */ #define HAVE_PQCMDTUPLES 1 /* Older PostgreSQL */ #define HAVE_PQOIDVALUE 1 /* PostgreSQL 7.0.x or later */ #define HAVE_PQCLIENTENCODING 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQPARAMETERSTATUS 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQPROTOCOLVERSION 1 /* PostgreSQL 7.4 or later */ #define HAVE_PGTRANSACTIONSTATUS 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQUNESCAPEBYTEA 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQEXECPARAMS 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQFREEMEM 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQRESULTERRORFIELD 1 /* Whether libpq is compiled with --enable-multibyte */ #define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1 /* prepared statements */ #define HAVE_PQPREPARE 1 /* Whether to build pdo_pgsql as dynamic module */ #define COMPILE_DL_PDO_PGSQL 1 /* */ #define HAVE_PDO_SQLITELIB 1 /* have commercial sqlite3 with crypto support */ /* #undef HAVE_SQLITE3_KEY */ /* Whether to build pdo_sqlite as dynamic module */ #define COMPILE_DL_PDO_SQLITE 1 /* Whether to build pdo_sqlite as dynamic module */ #define COMPILE_DL_PDO_SQLITE 1 /* Size of a pointer */ #define SQLITE_PTR_SZ SIZEOF_CHAR_P /* Whether to have pg_config.h */ #define HAVE_PG_CONFIG_H 1 /* Whether to have pg_config.h */ #define HAVE_PG_CONFIG_H 1 /* Whether to build PostgreSQL support or not */ #define HAVE_PGSQL 1 /* PostgreSQL 7.2.0 or later */ #define HAVE_PQESCAPE 1 /* PostgreSQL 7.3.0 or later */ #define HAVE_PQUNESCAPEBYTEA 1 /* PostgreSQL 7.0.x or later */ #define HAVE_PQSETNONBLOCKING 1 /* Broken libpq under windows */ #define HAVE_PQCMDTUPLES 1 /* Older PostgreSQL */ #define HAVE_PQOIDVALUE 1 /* PostgreSQL 7.0.x or later */ #define HAVE_PQCLIENTENCODING 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQPARAMETERSTATUS 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQPROTOCOLVERSION 1 /* PostgreSQL 7.4 or later */ #define HAVE_PGTRANSACTIONSTATUS 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQEXECPARAMS 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQPREPARE 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQEXECPREPARED 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQRESULTERRORFIELD 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQSENDQUERYPARAMS 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQSENDPREPARE 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQSENDQUERYPREPARED 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQPUTCOPYDATA 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQPUTCOPYEND 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQGETCOPYDATA 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQFREEMEM 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQSETERRORVERBOSITY 1 /* PostgreSQL 7.4 or later */ #define HAVE_PQFTABLE 1 /* PostgreSQL 8.1.4 or later */ #define HAVE_PQESCAPE_CONN 1 /* PostgreSQL 8.1.4 or later */ #define HAVE_PQESCAPE_BYTEA_CONN 1 /* Whether libpq is compiled with --enable-multibyte */ #define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1 /* Whether to build pgsql as dynamic module */ #define COMPILE_DL_PGSQL 1 /* Whether to build phar as dynamic module */ #define COMPILE_DL_PHAR 1 /* */ #define PHAR_HASH_OK 1 /* */ /* #undef PHAR_HAVE_OPENSSL */ /* whether to include POSIX-like functions */ #define HAVE_POSIX 1 /* Whether to build posix as dynamic module */ #define COMPILE_DL_POSIX 1 /* Whether you have a working ttyname_r */ /* #undef HAVE_TTYNAME_R */ /* Wether struct utsname has domainname */ #define HAVE_UTSNAME_DOMAINNAME 1 /* Whether to build pspell as dynamic module */ #define COMPILE_DL_PSPELL 1 /* */ #define HAVE_PSPELL 1 /* */ #define HAVE_RL_CALLBACK_READ_CHAR 1 /* */ #define HAVE_LIBREADLINE 1 /* */ /* #undef HAVE_LIBEDIT */ /* Whether to build readline as dynamic module */ /* #undef COMPILE_DL_READLINE */ /* Whether we have librecode 3.5 */ /* #undef HAVE_BROKEN_RECODE */ /* Whether we have librecode 3.5 or higher */ #define HAVE_LIBRECODE 1 /* Whether to build recode as dynamic module */ #define COMPILE_DL_RECODE 1 /* Whether Reflection is enabled */ #define HAVE_REFLECTION 1 /* Whether to build reflection as dynamic module */ /* #undef COMPILE_DL_REFLECTION */ /* */ #define HAVE_PWRITE 1 /* whether pwrite64 is default */ /* #undef PHP_PWRITE_64 */ /* */ #define HAVE_PREAD 1 /* whether pread64 is default */ /* #undef PHP_PREAD_64 */ /* Whether to build session as dynamic module */ /* #undef COMPILE_DL_SESSION */ /* */ #define HAVE_PHP_SESSION 1 /* Whether you have libmm */ /* #undef HAVE_LIBMM */ /* */ #define HAVE_SHMOP 1 /* Whether to build shmop as dynamic module */ /* #undef COMPILE_DL_SHMOP */ /* */ #define HAVE_LIBXML 1 /* */ #define HAVE_SIMPLEXML 1 /* Whether to build simplexml as dynamic module */ /* #undef COMPILE_DL_SIMPLEXML */ /* */ #define HAVE_NET_SNMP 1 /* */ #define HAVE_SNMP_PARSE_OID 1 /* */ #define HAVE_SNMP 1 /* */ #define UCD_SNMP_HACK 1 /* Whether to build snmp as dynamic module */ #define COMPILE_DL_SNMP 1 /* */ #define HAVE_LIBXML 1 /* */ #define HAVE_SOAP 1 /* Whether to build soap as dynamic module */ #define COMPILE_DL_SOAP 1 /* Whether you have struct cmsghdr */ #define HAVE_CMSGHDR 1 /* */ /* #undef MISSING_MSGHDR_MSGFLAGS */ /* */ #define HAVE_SOCKETS 1 /* Whether to build sockets as dynamic module */ #define COMPILE_DL_SOCKETS 1 /* Whether struct _zend_object_value is packed */ #define HAVE_PACKED_OBJECT_VALUE 0 /* Whether you want SPL (Standard PHP Library) support */ #define HAVE_SPL 1 /* Whether to build spl as dynamic module */ /* #undef COMPILE_DL_SPL */ /* Have PDO */ #define PHP_SQLITE2_HAVE_PDO 1 /* Whether to build sqlite as dynamic module */ #define COMPILE_DL_SQLITE 1 /* Size of a pointer */ #define SQLITE_PTR_SZ SIZEOF_CHAR_P /* */ #define SQLITE_UTF8 1 /* Define if flush should be called explicitly after a buffered io. */ /* #undef HAVE_FLUSHIO */ /* */ #define HAVE_CRYPT 1 /* Whether the system supports standard DES salt */ #define PHP_STD_DES_CRYPT 1 /* Whether the system supports extended DES salt */ #define PHP_EXT_DES_CRYPT 1 /* Whether the system supports MD5 salt */ #define PHP_MD5_CRYPT 1 /* Whether the system supports BlowFish salt */ #define PHP_BLOWFISH_CRYPT 1 /* */ #define HAVE_REGEX_T_RE_MAGIC 1 /* */ #define HSREGEX 1 /* */ #define REGEX 1 /* */ #define REGEX 1 /* 1 */ #define HAVE_REGEX_T_RE_MAGIC 1 /* see #24142 */ #define PHP_ROUND_FUZZ 0.5 /* Define if your system has fork/vfork/CreateProcess */ #define PHP_CAN_SUPPORT_PROC_OPEN 1 /* Whether to enable chroot() function */ #define ENABLE_CHROOT_FUNC 1 /* */ #define HAVE_RES_NMKQUERY 1 /* */ #define HAVE_RES_NMKQUERY 1 /* */ #define HAVE_LIBRESOLV 1 /* */ #define HAVE_RES_NMKQUERY 1 /* */ /* #undef HAVE_LIBBIND */ /* */ #define HAVE_RES_NMKQUERY 1 /* */ /* #undef HAVE_LIBSOCKET */ /* */ #define HAVE_RES_NSEND 1 /* */ #define HAVE_RES_NSEND 1 /* */ #define HAVE_LIBRESOLV 1 /* */ #define HAVE_RES_NSEND 1 /* */ /* #undef HAVE_LIBBIND */ /* */ #define HAVE_RES_NSEND 1 /* */ /* #undef HAVE_LIBSOCKET */ /* */ #define HAVE_DN_EXPAND 1 /* */ #define HAVE_DN_EXPAND 1 /* */ #define HAVE_LIBRESOLV 1 /* */ #define HAVE_DN_EXPAND 1 /* */ /* #undef HAVE_LIBBIND */ /* */ #define HAVE_DN_EXPAND 1 /* */ /* #undef HAVE_LIBSOCKET */ /* whether atof() accepts NAN */ #define HAVE_ATOF_ACCEPTS_NAN 1 /* whether atof() accepts INF */ #define HAVE_ATOF_ACCEPTS_INF 1 /* whether HUGE_VAL == INF */ #define HAVE_HUGE_VAL_INF 1 /* whether HUGE_VAL + -HUGEVAL == NAN */ #define HAVE_HUGE_VAL_NAN 1 /* whether strptime() declaration fails */ #define HAVE_STRPTIME_DECL_FAILS 1 /* Define if your system has mbstate_t in wchar.h */ #define HAVE_MBSTATE_T 1 /* Whether to build standard as dynamic module */ /* #undef COMPILE_DL_STANDARD */ /* Whether to build sybase as dynamic module */ /* #undef COMPILE_DL_SYBASE */ /* */ /* #undef HAVE_LIBDNET_STUB */ /* */ /* #undef HAVE_SYBASE */ /* */ /* #undef PHP_SYBASE_DBOPEN */ /* */ /* #undef DBMFIX */ /* */ /* #undef PHP_SYBASE_DBOPEN */ /* */ #define HAVE_SYBASE_CT 1 /* Whether to build sybase_ct as dynamic module */ #define COMPILE_DL_SYBASE_CT 1 /* */ #define HAVE_SYSVMSG 1 /* Whether to build sysvmsg as dynamic module */ #define COMPILE_DL_SYSVMSG 1 /* Whether to build sysvsem as dynamic module */ #define COMPILE_DL_SYSVSEM 1 /* */ #define HAVE_SYSVSEM 1 /* */ #define HAVE_SEMUN 0 /* */ #define HAVE_SEMUN 0 /* */ #define HAVE_SYSVSHM 1 /* Whether to build sysvshm as dynamic module */ #define COMPILE_DL_SYSVSHM 1 /* */ #define HAVE_TIDYOPTGETDOC 1 /* Whether to build tidy as dynamic module */ #define COMPILE_DL_TIDY 1 /* */ #define HAVE_TIDY 1 /* Whether to build tokenizer as dynamic module */ /* #undef COMPILE_DL_TOKENIZER */ /* */ #define HAVE_LIBXML 1 /* */ /* #undef HAVE_LIBEXPAT */ /* */ #define HAVE_WDDX 1 /* Whether to build wddx as dynamic module */ #define COMPILE_DL_WDDX 1 /* */ #define HAVE_LIBXML 1 /* */ /* #undef HAVE_LIBEXPAT */ /* Whether to build xml as dynamic module */ /* #undef COMPILE_DL_XML */ /* */ #define HAVE_XML 1 /* */ #define HAVE_LIBXML 1 /* */ #define HAVE_XMLREADER 1 /* Whether to build xmlreader as dynamic module */ #define COMPILE_DL_XMLREADER 1 /* */ #define HAVE_XMLRPC 1 /* */ #define HAVE_LIBXML 1 /* */ /* #undef HAVE_LIBEXPAT */ /* */ /* #undef HAVE_LIBICONV */ /* */ /* #undef HAVE_GICONV_H */ /* */ /* #undef HAVE_LIBICONV */ /* iconv() is aliased to libiconv() in -liconv */ /* #undef ICONV_ALIASED_LIBICONV */ /* */ #define HAVE_ICONV 1 /* */ #define UNDEF_THREADS_HACK /* Whether to build xmlrpc as dynamic module */ #define COMPILE_DL_XMLRPC 1 /* Whether to build xmlrpc as dynamic module */ #define COMPILE_DL_XMLRPC 1 /* */ #define HAVE_LIBXML 1 /* */ #define HAVE_XMLWRITER 1 /* Whether to build xmlwriter as dynamic module */ #define COMPILE_DL_XMLWRITER 1 /* */ #define HAVE_XSL_EXSLT 1 /* */ #define HAVE_XSL 1 /* Whether to build xsl as dynamic module */ #define COMPILE_DL_XSL 1 /* */ #define HAVE_ZIP 1 /* Whether to build zip as dynamic module */ #define COMPILE_DL_ZIP 1 /* Define if int32_t type is present. */ #define HAVE_INT32_T 1 /* Define if uint32_t type is present. */ #define HAVE_UINT32_T 1 /* Whether sprintf is broken */ #define ZEND_BROKEN_SPRINTF 0 /* whether floatingpoint.h defines fp_except */ /* #undef HAVE_FP_EXCEPT */ /* Define if dlsym() requires a leading underscore in symbol names. */ /* #undef DLSYM_NEEDS_UNDERSCORE */ /* virtual machine dispatch method */ #define ZEND_VM_KIND ZEND_VM_KIND_CALL /* virtual machine dispatch method */ #define ZEND_VM_KIND ZEND_VM_KIND_CALL /* virtual machine dispatch method */ #define ZEND_VM_KIND ZEND_VM_KIND_CALL /* */ #define ZEND_DEBUG 0 /* */ #define ZEND_DEBUG 0 /* */ /* #undef ZTS */ /* */ /* #undef ZEND_MULTIBYTE */ /* Define if the target system is darwin */ /* #undef DARWIN */ /* */ #define ZEND_MM_ALIGNMENT 8 /* */ #define ZEND_MM_ALIGNMENT_LOG2 3 /* Define if the target system has support for memory allocation using mmap(MAP_ANON) */ #define HAVE_MEM_MMAP_ANON 1 /* Define if the target system has support for memory allocation using mmap(/dev/zero) */ #define HAVE_MEM_MMAP_ZERO 1 /* */ /* #undef ZTS */ /* Whether you use GNU Pth */ /* #undef GNUPTH */ /* */ /* #undef TSRM_ST */ /* Whether to use native BeOS threads */ /* #undef BETHREADS */ /* Whether to use Pthreads */ /* #undef PTHREADS */ /* PHP build date */ #define PHP_BUILD_DATE "2026-05-10" /* hardcode for each of the cross compiler host */ #define PHP_OS "Linux" /* hardcode for each of the cross compiler host */ #define PHP_UNAME "Linux buildfarm10-new.corp.cloudlinux.com 4.18.0-553.117.1.el8_10.x86_64 #1 SMP Sun Apr 5 23:14:32 EDT 2026 x86_64 x86_64 x86_64 GNU/Linux" /* uname -a output */ #define PHP_UNAME "Linux buildfarm10-new.corp.cloudlinux.com 4.18.0-553.117.1.el8_10.x86_64 #1 SMP Sun Apr 5 23:14:32 EDT 2026 x86_64 x86_64 x86_64 GNU/Linux" /* uname output */ #define PHP_OS "Linux" /* */ #define HAVE_BUILD_DEFS_H 1 #ifndef ZEND_ACCONFIG_H_NO_C_PROTOS #ifdef HAVE_STDLIB_H # include
#endif #ifdef HAVE_SYS_TYPES_H # include
#endif #ifdef HAVE_SYS_SELECT_H #include
#endif #ifdef HAVE_IEEEFP_H # include
#endif #ifdef HAVE_STRING_H # include
#else # include
#endif #if ZEND_BROKEN_SPRINTF int zend_sprintf(char *buffer, const char *format, ...); #else # define zend_sprintf sprintf #endif #include
/* To enable the is_nan, is_infinite and is_finite PHP functions */ #ifdef NETWARE #define HAVE_ISNAN 1 #define HAVE_ISINF 1 #define HAVE_ISFINITE 1 #endif #ifndef zend_isnan #ifdef HAVE_ISNAN #define zend_isnan(a) isnan(a) #elif defined(HAVE_FPCLASS) #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) #else #define zend_isnan(a) 0 #endif #endif #ifdef HAVE_ISINF #define zend_isinf(a) isinf(a) #elif defined(INFINITY) /* Might not work, but is required by ISO C99 */ #define zend_isinf(a) (((a)==INFINITY)?1:0) #elif defined(HAVE_FPCLASS) #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) #else #define zend_isinf(a) 0 #endif #ifdef HAVE_FINITE #define zend_finite(a) finite(a) #elif defined(HAVE_ISFINITE) || defined(isfinite) #define zend_finite(a) isfinite(a) #elif defined(fpclassify) #define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0) #else #define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1) #endif #endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */ #ifdef NETWARE #ifdef USE_WINSOCK #/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T #/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H #endif #endif /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * indent-tabs-mode: t * End: */ /* #undef PTHREADS */ config.w32.h 0000644 00000014065 15217713750 0006612 0 ustar 00 /* Build Configuration for Win32. This has only been tested with MS VisualC++ 6 (and later). $Id: config.w32.h 239522 2007-07-11 17:36:56Z johannes $ */ /* Default PHP / PEAR directories */ #define CONFIGURATION_FILE_PATH "php.ini" #define PEAR_INSTALLDIR "c:\\php5\\pear" #define PHP_BINDIR "c:\\php5" #define PHP_CONFIG_FILE_PATH (getenv("SystemRoot"))?getenv("SystemRoot"):"" #define PHP_CONFIG_FILE_SCAN_DIR "" #define PHP_DATADIR "c:\\php5" #define PHP_EXTENSION_DIR "c:\\php5" #define PHP_INCLUDE_PATH ".;c:\\php5\\pear" #define PHP_LIBDIR "c:\\php5" #define PHP_LOCALSTATEDIR "c:\\php5" #define PHP_PREFIX "c:\\php5" #define PHP_SYSCONFDIR "c:\\php5" /* Enable / Disable BCMATH extension (default: enabled) */ #define HAVE_BCMATH 1 /* Enable / Disable crypt() function (default: enabled) */ #define HAVE_CRYPT 1 #define PHP_STD_DES_CRYPT 1 #define PHP_EXT_DES_CRYPT 0 #define PHP_MD5_CRYPT 1 #define PHP_BLOWFISH_CRYPT 0 /* Enable / Disable CALENDAR extension (default: enabled) */ #define HAVE_CALENDAR 1 /* Enable / Disable CTYPE extension (default: enabled) */ #define HAVE_CTYPE 1 /* Enable / Disable FTP extension (default: enabled) */ #define HAVE_FTP 1 /* Enable / Disable MBSTRING extension (default: disabled) */ /* #define HAVE_MBSTRING 0 */ /* #define HAVE_MBREGEX 0 */ /* #define HAVE_MBSTR_CN 0 */ /* #define HAVE_MBSTR_JA 0 */ /* #define HAVE_MBSTR_KR 0 */ /* #define HAVE_MBSTR_RU 0 */ /* #define HAVE_MBSTR_TW 0 */ /* If you have the .Net SDK in your include path, define this * to compile .Net support into your COM extension. */ #define HAVE_MSCOREE_H 0 /* Enable / Disable ODBC extension (default: enabled) */ #define HAVE_UODBC 1 /* Enable / Disable PCRE extension (default: enabled) */ #define HAVE_BUNDLED_PCRE 1 #define HAVE_PCRE 1 /* Enable / Disable SESSION extension (default: enabled) */ #define HAVE_PHP_SESSION 1 /* Enable / Disable TOKENIZER extension (default: enabled) */ #define HAVE_TOKENIZER 1 /* Enable / Disable WDDX extension (default: enabled) */ #define HAVE_WDDX 1 /* Enable / Disable XML extensions (default: enabled) */ #define HAVE_LIBXML 1 #define HAVE_DOM 1 #define HAVE_SIMPLEXML 1 #define HAVE_XML 1 #define HAVE_XMLREADER 1 #define HAVE_XMLWRITER 1 #define HAVE_LIBXML_PARSER_H 1 /* Enable / Disable ZLIB extension (default: enabled) */ #define HAVE_ZLIB 1 #define HAVE_ZLIB_H 1 /* Enable / Disable SQLite extension (default: enabled) */ #define HAVE_SQLITE 1 /* PHP Runtime Configuration */ #define FORCE_CGI_REDIRECT 1 #define PHP_URL_FOPEN 1 #define PHP_SAFE_MODE 0 #define MAGIC_QUOTES 0 #define USE_CONFIG_FILE 1 #define DEFAULT_SHORT_OPEN_TAG "1" #define ENABLE_PATHINFO_CHECK 1 /* Platform-Specific Configuration. Should not be changed. */ #define PHP_SIGCHILD 0 #define HAVE_LIBBIND 1 #define HAVE_GETSERVBYNAME 1 #define HAVE_GETSERVBYPORT 1 #define HAVE_GETPROTOBYNAME 1 #define HAVE_GETPROTOBYNUMBER 1 #define STDIN_FILENO 0 #define STDOUT_FILENO 1 #define STDERR_FILENO 2 #define HAVE_ERRMSG_H 0 #undef HAVE_ADABAS #undef HAVE_SOLID #undef HAVE_LINK #undef HAVE_SYMLINK /* its in win32/time.c */ #define HAVE_USLEEP 1 #define HAVE_GETCWD 1 #define HAVE_POSIX_READDIR_R 1 #define NEED_ISBLANK 1 #define DISCARD_PATH 0 #undef HAVE_SETITIMER #undef HAVE_IODBC #define HAVE_LIBDL 1 #define HAVE_GETTIMEOFDAY 1 #define HAVE_PUTENV 1 #define HAVE_LIMITS_H 1 #define HAVE_TZSET 1 #define HAVE_TZNAME 1 #undef HAVE_FLOCK #define HAVE_ALLOCA 1 #undef HAVE_SYS_TIME_H #define HAVE_SIGNAL_H 1 #undef HAVE_ST_BLKSIZE #undef HAVE_ST_BLOCKS #define HAVE_ST_RDEV 1 #define HAVE_UTIME_NULL 1 #define HAVE_VPRINTF 1 #define STDC_HEADERS 1 #define REGEX 1 #define HSREGEX 1 #define HAVE_GCVT 1 #define HAVE_GETLOGIN 1 #define HAVE_GETTIMEOFDAY 1 #define HAVE_MEMCPY 1 #define HAVE_MEMMOVE 1 #define HAVE_PUTENV 1 #define HAVE_REGCOMP 1 #define HAVE_SETLOCALE 1 #define HAVE_LOCALECONV 1 #define HAVE_LOCALE_H 1 #ifndef HAVE_LIBBIND #define HAVE_SETVBUF 1 #endif #define HAVE_SHUTDOWN 1 #define HAVE_SNPRINTF 1 #define HAVE_VSNPRINTF 1 #define HAVE_STRCASECMP 1 #define HAVE_STRDUP 1 #define HAVE_STRERROR 1 #define HAVE_STRSTR 1 #define HAVE_TEMPNAM 1 #define HAVE_UTIME 1 #undef HAVE_DIRENT_H #define HAVE_ASSERT_H 1 #define HAVE_FCNTL_H 1 #define HAVE_GRP_H 0 #undef HAVE_PWD_H #define HAVE_STRING_H 1 #undef HAVE_SYS_FILE_H #undef HAVE_SYS_SOCKET_H #undef HAVE_SYS_WAIT_H #define HAVE_SYSLOG_H 1 #undef HAVE_UNISTD_H #define HAVE_LIBDL 1 #define HAVE_LIBM 1 #define HAVE_CUSERID 0 #undef HAVE_RINT #define HAVE_STRFTIME 1 /* int and long are stll 32bit in 64bit compiles */ #define SIZEOF_INT 4 #define SIZEOF_LONG 4 /* MSVC.6/NET don't allow 'long long' or know 'intmax_t' */ #define SIZEOF_LONG_LONG_INT 0 #define SIZEOF_LONG_LONG 8 /* defined as __int64 */ #define SIZEOF_INTMAX_T 0 #define ssize_t SSIZE_T #ifdef _WIN64 # define SIZEOF_SIZE_T 8 # define SIZEOF_PTRDIFF_T 8 #else # define SIZEOF_SIZE_T 4 # define SIZEOF_PTRDIFF_T 4 #endif #define HAVE_GLOB #define PHP_SHLIB_SUFFIX "dll" #define HAVE_SQLDATASOURCES #define POSIX_MALLOC_THRESHOLD 10 /* * defining HAVE_SOCKLEN_T prevents PHP from building with the latest platform SDK... * #define HAVE_SOCKLEN_T */ /* Win32 supports strcoll */ #define HAVE_STRCOLL 1 /* Win32 support proc_open */ #define PHP_CAN_SUPPORT_PROC_OPEN 1 #define HAVE_MBLEN #undef HAVE_ATOF_ACCEPTS_NAN #undef HAVE_ATOF_ACCEPTS_INF #define HAVE_HUGE_VAL_NAN 1 /* vs.net 2005 has a 64-bit time_t. This will likely break * 3rdParty libs that were built with older compilers; switch * back to 32-bit */ #define _USE_32BIT_TIME_T 1 #define HAVE_STDLIB_H 1 /* have the arpa\nameser.h header file */ #define HAVE_ARPA_NAMESER_H 1 /* undefined */ #define PHP_FASTCGI 1 /* Have COM_DOTNET support */ #define HAVE_COM_DOTNET 1 /* Have date/time support */ #define HAVE_DATE 1 /* GD support */ #define HAVE_LIBGD 1 /* undefined */ #define HAVE_HASH_EXT 1 /* Define if iconv extension is enabled */ #define HAVE_ICONV 1 /* Define if libiconv is available */ #define HAVE_LIBICONV 1 /* Which iconv implementation to use */ #define PHP_ICONV_IMPL "\"libiconv\"" /* Whether iconv supports errno or not */ #define ICONV_SUPPORTS_ERRNO 1 /* SPL support */ #define HAVE_SPL 1 php_content_types.h 0000644 00000003040 15217713750 0010467 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: php_content_types.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_CONTENT_TYPES_H #define PHP_CONTENT_TYPES_H #define DEFAULT_POST_CONTENT_TYPE "application/x-www-form-urlencoded" SAPI_API SAPI_POST_READER_FUNC(php_default_post_reader); SAPI_API SAPI_POST_HANDLER_FUNC(php_std_post_handler); int php_startup_sapi_content_types(TSRMLS_D); int php_setup_sapi_content_types(TSRMLS_D); #endif /* PHP_CONTENT_TYPES_H */ php_logos.h 0000644 00000003066 15217713750 0006724 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: php_logos.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef _PHP_LOGOS_H #define _PHP_LOGOS_H BEGIN_EXTERN_C() PHPAPI int php_register_info_logo(char *logo_string, const char *mimetype, const unsigned char *data, int size); PHPAPI int php_unregister_info_logo(char *logo_string); END_EXTERN_C() int php_init_info_logos(void); int php_shutdown_info_logos(void); int php_info_logos(const char *logo_string TSRMLS_DC); #endif /* _PHP_LOGOS_H */ php_ticks.h 0000644 00000003115 15217713750 0006711 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Stig Bakken
| +----------------------------------------------------------------------+ */ /* $Id: php_ticks.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_TICKS_H #define PHP_TICKS_H int php_startup_ticks(TSRMLS_D); void php_deactivate_ticks(TSRMLS_D); void php_shutdown_ticks(TSRMLS_D); void php_run_ticks(int count); BEGIN_EXTERN_C() PHPAPI void php_add_tick_function(void (*func)(int)); PHPAPI void php_remove_tick_function(void (*func)(int)); END_EXTERN_C() #endif /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: */ php.h 0000644 00000027043 15217713750 0005522 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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. | +----------------------------------------------------------------------+ | Authors: Andi Gutmans
| | Zeev Suraski
| +----------------------------------------------------------------------+ */ /* $Id: php.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_H #define PHP_H #ifdef HAVE_DMALLOC #include
#endif #define PHP_API_VERSION 20041225 #define PHP_HAVE_STREAMS #define YYDEBUG 0 #include "php_config.h" #include "php_version.h" #include "zend.h" #include "zend_qsort.h" #include "php_compat.h" #include "zend_API.h" #undef sprintf #define sprintf php_sprintf /* PHP's DEBUG value must match Zend's ZEND_DEBUG value */ #undef PHP_DEBUG #define PHP_DEBUG ZEND_DEBUG #ifdef PHP_WIN32 #include "tsrm_win32.h" #include "win95nt.h" # ifdef PHP_EXPORTS # define PHPAPI __declspec(dllexport) # else # define PHPAPI __declspec(dllimport) # endif #define PHP_DIR_SEPARATOR '\\' #define PHP_EOL "\r\n" #else #define PHPAPI #define THREAD_LS #define PHP_DIR_SEPARATOR '/' #if defined(__MacOSX__) #define PHP_EOL "\r" #else #define PHP_EOL "\n" #endif #endif #ifdef NETWARE /* For php_get_uname() function */ #define PHP_UNAME "NetWare" #define PHP_OS PHP_UNAME #endif #include "php_regex.h" #if HAVE_ASSERT_H #if PHP_DEBUG #undef NDEBUG #else #ifndef NDEBUG #define NDEBUG #endif #endif #include
#else /* HAVE_ASSERT_H */ #define assert(expr) ((void) (0)) #endif /* HAVE_ASSERT_H */ #define APACHE 0 #if HAVE_UNIX_H #include
#endif #if HAVE_ALLOCA_H #include
#endif #if HAVE_BUILD_DEFS_H #include
#endif /* * This is a fast version of strlcpy which should be used, if you * know the size of the destination buffer and if you know * the length of the source string. * * size is the allocated number of bytes of dst * src_size is the number of bytes excluding the NUL of src */ #define PHP_STRLCPY(dst, src, size, src_size) \ { \ size_t php_str_len; \ \ if (src_size >= size) \ php_str_len = size - 1; \ else \ php_str_len = src_size; \ memcpy(dst, src, php_str_len); \ dst[php_str_len] = '\0'; \ } #ifndef HAVE_STRLCPY BEGIN_EXTERN_C() PHPAPI size_t php_strlcpy(char *dst, const char *src, size_t siz); END_EXTERN_C() #undef strlcpy #define strlcpy php_strlcpy #endif #ifndef HAVE_STRLCAT BEGIN_EXTERN_C() PHPAPI size_t php_strlcat(char *dst, const char *src, size_t siz); END_EXTERN_C() #undef strlcat #define strlcat php_strlcat #endif #ifndef HAVE_STRTOK_R BEGIN_EXTERN_C() char *strtok_r(char *s, const char *delim, char **last); END_EXTERN_C() #endif #ifndef HAVE_SOCKLEN_T typedef unsigned int socklen_t; #endif #define CREATE_MUTEX(a, b) #define SET_MUTEX(a) #define FREE_MUTEX(a) /* * Then the ODBC support can use both iodbc and Solid, * uncomment this. * #define HAVE_ODBC (HAVE_IODBC|HAVE_SOLID) */ #include
#include
#if HAVE_UNISTD_H #include
#endif #if HAVE_STDARG_H #include
#else # if HAVE_SYS_VARARGS_H # include
# endif #endif #include "zend_hash.h" #include "php3_compat.h" #include "zend_alloc.h" #include "zend_stack.h" #if STDC_HEADERS # include
#else # ifndef HAVE_MEMCPY # define memcpy(d, s, n) bcopy((s), (d), (n)) # endif # ifndef HAVE_MEMMOVE # define memmove(d, s, n) bcopy ((s), (d), (n)) # endif #endif #include "safe_mode.h" #ifndef HAVE_STRERROR char *strerror(int); #endif #if (REGEX == 1 || REGEX == 0) && !defined(NO_REGEX_EXTRA_H) #include "regex/regex_extra.h" #endif #if HAVE_PWD_H # ifdef PHP_WIN32 #include "win32/param.h" # else #include
#include
# endif #endif #if HAVE_LIMITS_H #include
#endif #ifndef LONG_MAX #define LONG_MAX 2147483647L #endif #ifndef LONG_MIN #define LONG_MIN (- LONG_MAX - 1) #endif #ifndef INT_MAX #define INT_MAX 2147483647 #endif #ifndef INT_MIN #define INT_MIN (- INT_MAX - 1) #endif #define PHP_GCC_VERSION ZEND_GCC_VERSION #define PHP_ATTRIBUTE_MALLOC ZEND_ATTRIBUTE_MALLOC #define PHP_ATTRIBUTE_FORMAT ZEND_ATTRIBUTE_FORMAT BEGIN_EXTERN_C() #include "snprintf.h" END_EXTERN_C() #include "spprintf.h" #define EXEC_INPUT_BUF 4096 #define PHP_MIME_TYPE "application/x-httpd-php" /* macros */ #define STR_PRINT(str) ((str)?(str):"") #ifndef MAXPATHLEN # ifdef PATH_MAX # define MAXPATHLEN PATH_MAX # elif defined(MAX_PATH) # define MAXPATHLEN MAX_PATH # else # define MAXPATHLEN 256 /* Should be safe for any weird systems that do not define it */ # endif #endif /* global variables */ #if !defined(PHP_WIN32) #define PHP_SLEEP_NON_VOID #define php_sleep sleep extern char **environ; #endif /* !defined(PHP_WIN32) */ #ifdef PHP_PWRITE_64 ssize_t pwrite(int, void *, size_t, off64_t); #endif #ifdef PHP_PREAD_64 ssize_t pread(int, void *, size_t, off64_t); #endif BEGIN_EXTERN_C() void phperror(char *error); PHPAPI int php_write(void *buf, uint size TSRMLS_DC); PHPAPI int php_printf(const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1, 2); PHPAPI void php_log_err(char *log_message TSRMLS_DC); int Debug(char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1, 2); int cfgparse(void); END_EXTERN_C() #define php_error zend_error typedef enum { EH_NORMAL = 0, EH_SUPPRESS, EH_THROW } error_handling_t; BEGIN_EXTERN_C() PHPAPI void php_set_error_handling(error_handling_t error_handling, zend_class_entry *exception_class TSRMLS_DC); #define php_std_error_handling() php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC) PHPAPI void php_verror(const char *docref, const char *params, int type, const char *format, va_list args TSRMLS_DC) PHP_ATTRIBUTE_FORMAT(printf, 4, 0); #ifdef ZTS #define PHP_ATTR_FMT_OFFSET 1 #else #define PHP_ATTR_FMT_OFFSET 0 #endif /* PHPAPI void php_error(int type, const char *format, ...); */ PHPAPI void php_error_docref0(const char *docref TSRMLS_DC, int type, const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 3, PHP_ATTR_FMT_OFFSET + 4); PHPAPI void php_error_docref1(const char *docref TSRMLS_DC, const char *param1, int type, const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 4, PHP_ATTR_FMT_OFFSET + 5); PHPAPI void php_error_docref2(const char *docref TSRMLS_DC, const char *param1, const char *param2, int type, const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, PHP_ATTR_FMT_OFFSET + 5, PHP_ATTR_FMT_OFFSET + 6); END_EXTERN_C() #define php_error_docref php_error_docref0 #define zenderror phperror #define zendlex phplex #define phpparse zendparse #define phprestart zendrestart #define phpin zendin #define php_memnstr zend_memnstr /* functions */ BEGIN_EXTERN_C() int php_register_internal_extensions(TSRMLS_D); int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC); PHPAPI void php_register_pre_request_shutdown(void (*func)(void *), void *userdata); PHPAPI void php_com_initialize(TSRMLS_D); END_EXTERN_C() /* PHP-named Zend macro wrappers */ #define PHP_FN ZEND_FN #define PHP_MN ZEND_MN #define PHP_NAMED_FUNCTION ZEND_NAMED_FUNCTION #define PHP_FUNCTION ZEND_FUNCTION #define PHP_METHOD ZEND_METHOD #define PHP_RAW_NAMED_FE ZEND_RAW_NAMED_FE #define PHP_NAMED_FE ZEND_NAMED_FE #define PHP_FE ZEND_FE #define PHP_DEP_FE ZEND_DEP_FE #define PHP_FALIAS ZEND_FALIAS #define PHP_DEP_FALIAS ZEND_DEP_FALIAS #define PHP_ME ZEND_ME #define PHP_MALIAS ZEND_MALIAS #define PHP_ABSTRACT_ME ZEND_ABSTRACT_ME #define PHP_ME_MAPPING ZEND_ME_MAPPING #define PHP_MODULE_STARTUP_N ZEND_MODULE_STARTUP_N #define PHP_MODULE_SHUTDOWN_N ZEND_MODULE_SHUTDOWN_N #define PHP_MODULE_ACTIVATE_N ZEND_MODULE_ACTIVATE_N #define PHP_MODULE_DEACTIVATE_N ZEND_MODULE_DEACTIVATE_N #define PHP_MODULE_INFO_N ZEND_MODULE_INFO_N #define PHP_MODULE_STARTUP_D ZEND_MODULE_STARTUP_D #define PHP_MODULE_SHUTDOWN_D ZEND_MODULE_SHUTDOWN_D #define PHP_MODULE_ACTIVATE_D ZEND_MODULE_ACTIVATE_D #define PHP_MODULE_DEACTIVATE_D ZEND_MODULE_DEACTIVATE_D #define PHP_MODULE_INFO_D ZEND_MODULE_INFO_D /* Compatibility macros */ #define PHP_MINIT ZEND_MODULE_STARTUP_N #define PHP_MSHUTDOWN ZEND_MODULE_SHUTDOWN_N #define PHP_RINIT ZEND_MODULE_ACTIVATE_N #define PHP_RSHUTDOWN ZEND_MODULE_DEACTIVATE_N #define PHP_MINFO ZEND_MODULE_INFO_N #define PHP_GINIT ZEND_GINIT #define PHP_GSHUTDOWN ZEND_GSHUTDOWN #define PHP_MINIT_FUNCTION ZEND_MODULE_STARTUP_D #define PHP_MSHUTDOWN_FUNCTION ZEND_MODULE_SHUTDOWN_D #define PHP_RINIT_FUNCTION ZEND_MODULE_ACTIVATE_D #define PHP_RSHUTDOWN_FUNCTION ZEND_MODULE_DEACTIVATE_D #define PHP_MINFO_FUNCTION ZEND_MODULE_INFO_D #define PHP_GINIT_FUNCTION ZEND_GINIT_FUNCTION #define PHP_GSHUTDOWN_FUNCTION ZEND_GSHUTDOWN_FUNCTION #define PHP_MODULE_GLOBALS ZEND_MODULE_GLOBALS /* Output support */ #include "main/php_output.h" #define PHPWRITE(str, str_len) php_body_write((str), (str_len) TSRMLS_CC) #define PUTS(str) do { \ const char *__str = (str); \ php_body_write(__str, strlen(__str) TSRMLS_CC); \ } while (0) #define PUTC(c) (php_body_write(&(c), 1 TSRMLS_CC), (c)) #define PHPWRITE_H(str, str_len) php_header_write((str), (str_len) TSRMLS_CC) #define PUTS_H(str) do { \ const char *__str = (str); \ php_header_write(__str, strlen(__str) TSRMLS_CC); \ } while (0) #define PUTC_H(c) (php_header_write(&(c), 1 TSRMLS_CC), (c)) #include "php_streams.h" #include "php_memory_streams.h" #include "fopen_wrappers.h" /* Virtual current working directory support */ #include "tsrm_virtual_cwd.h" #include "zend_constants.h" /* connection status states */ #define PHP_CONNECTION_NORMAL 0 #define PHP_CONNECTION_ABORTED 1 #define PHP_CONNECTION_TIMEOUT 2 #include "php_reentrancy.h" /* Finding offsets of elements within structures. * Taken from the Apache code, which in turn, was taken from X code... */ #ifndef XtOffset #if defined(CRAY) || (defined(__arm) && !(defined(LINUX) || defined(__riscos__))) #ifdef __STDC__ #define XtOffset(p_type, field) _Offsetof(p_type, field) #else #ifdef CRAY2 #define XtOffset(p_type, field) \ (sizeof(int)*((unsigned int)&(((p_type)NULL)->field))) #else /* !CRAY2 */ #define XtOffset(p_type, field) ((unsigned int)&(((p_type)NULL)->field)) #endif /* !CRAY2 */ #endif /* __STDC__ */ #else /* ! (CRAY || __arm) */ #define XtOffset(p_type, field) \ ((long) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL))) #endif /* !CRAY */ #endif /* ! XtOffset */ #ifndef XtOffsetOf #ifdef offsetof #define XtOffsetOf(s_type, field) offsetof(s_type, field) #else #define XtOffsetOf(s_type, field) XtOffset(s_type*, field) #endif #endif /* !XtOffsetOf */ #endif /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: * vim600: sw=4 ts=4 fdm=marker * vim<600: sw=4 ts=4 */ php_variables.h 0000644 00000004064 15217713750 0007550 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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. | +----------------------------------------------------------------------+ | Authors: Rasmus Lerdorf
| | Zeev Suraski
| +----------------------------------------------------------------------+ */ /* $Id: php_variables.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_VARIABLES_H #define PHP_VARIABLES_H #include "php.h" #include "SAPI.h" #define PARSE_POST 0 #define PARSE_GET 1 #define PARSE_COOKIE 2 #define PARSE_STRING 3 #define PARSE_ENV 4 #define PARSE_SERVER 5 #define PARSE_SESSION 6 BEGIN_EXTERN_C() void php_startup_auto_globals(TSRMLS_D); extern PHPAPI void (*php_import_environment_variables)(zval *array_ptr TSRMLS_DC); PHPAPI void php_register_variable(char *var, char *val, zval *track_vars_array TSRMLS_DC); /* binary-safe version */ PHPAPI void php_register_variable_safe(char *var, char *val, int val_len, zval *track_vars_array TSRMLS_DC); PHPAPI void php_register_variable_ex(char *var, zval *val, zval *track_vars_array TSRMLS_DC); int php_hash_environment(TSRMLS_D); END_EXTERN_C() #define NUM_TRACK_VARS 6 #endif /* PHP_VARIABLES_H */ php_reentrancy.h 0000644 00000007244 15217713750 0007755 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Sascha Schumann
| +----------------------------------------------------------------------+ */ /* $Id: php_reentrancy.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_REENTRANCY_H #define PHP_REENTRANCY_H #include "php.h" #include
#ifdef HAVE_DIRENT_H #include
#endif #include
/* currently, PHP does not check for these functions, but assumes that they are available on all systems. */ #define HAVE_LOCALTIME 1 #define HAVE_GMTIME 1 #define HAVE_ASCTIME 1 #define HAVE_CTIME 1 #if defined(PHP_IRIX_TIME_R) #undef HAVE_ASCTIME_R #undef HAVE_CTIME_R #endif #if defined(PHP_HPUX_TIME_R) #undef HAVE_LOCALTIME_R #undef HAVE_ASCTIME_R #undef HAVE_CTIME_R #undef HAVE_GMTIME_R #endif BEGIN_EXTERN_C() #if defined(HAVE_POSIX_READDIR_R) #define php_readdir_r readdir_r #else PHPAPI int php_readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result); #endif #if !defined(HAVE_LOCALTIME_R) && defined(HAVE_LOCALTIME) #define PHP_NEED_REENTRANCY 1 PHPAPI struct tm *php_localtime_r(const time_t *const timep, struct tm *p_tm); #else #define php_localtime_r localtime_r #ifdef MISSING_LOCALTIME_R_DECL struct tm *localtime_r(const time_t *const timep, struct tm *p_tm); #endif #endif #if !defined(HAVE_CTIME_R) && defined(HAVE_CTIME) #define PHP_NEED_REENTRANCY 1 PHPAPI char *php_ctime_r(const time_t *clock, char *buf); #else #define php_ctime_r ctime_r #ifdef MISSING_CTIME_R_DECL char *ctime_r(const time_t *clock, char *buf); #endif #endif #if !defined(HAVE_ASCTIME_R) && defined(HAVE_ASCTIME) #define PHP_NEED_REENTRANCY 1 PHPAPI char *php_asctime_r(const struct tm *tm, char *buf); #else #define php_asctime_r asctime_r #ifdef MISSING_ASCTIME_R_DECL char *asctime_r(const struct tm *tm, char *buf); #endif #endif #if !defined(HAVE_GMTIME_R) && defined(HAVE_GMTIME) || defined(__BEOS__) #define PHP_NEED_REENTRANCY 1 PHPAPI struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm); #else #define php_gmtime_r gmtime_r #ifdef MISSING_GMTIME_R_DECL struct tm *php_gmtime_r(const time_t *const timep, struct tm *p_tm); #endif #endif #if !defined(HAVE_STRTOK_R) PHPAPI char *php_strtok_r(char *s, const char *delim, char **last); #else #define php_strtok_r strtok_r #ifdef MISSING_STRTOK_R_DECL char *strtok_r(char *s, const char *delim, char **last); #endif #endif #if !defined(HAVE_RAND_R) PHPAPI int php_rand_r(unsigned int *seed); #else #define php_rand_r rand_r #endif END_EXTERN_C() #if !defined(ZTS) #undef PHP_NEED_REENTRANCY #endif #if defined(PHP_NEED_REENTRANCY) void reentrancy_startup(void); void reentrancy_shutdown(void); #else #define reentrancy_startup() #define reentrancy_shutdown() #endif #endif snprintf.h 0000644 00000015243 15217713750 0006575 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Stig Sæther Bakken
| | Marcus Boerger
| +----------------------------------------------------------------------+ */ /* $Id: snprintf.h 293036 2010-01-03 09:23:27Z sebastian $ */ /* Comparing: sprintf, snprintf, slprintf, spprintf sprintf offers the ability to make a lot of failures since it does not know the size of the buffer it uses. Therefore usage of sprintf often results in possible entries for buffer overrun attacks. So please use this version only if you are sure the call is safe. sprintf allways terminstes the buffer it writes to. snprintf knows the buffers size and will not write behind it. But you will have to use either a static buffer or allocate a dynamic buffer before beeing able to call the function. In other words you must be sure that you really know the maximum size of the buffer required. A bad thing is having a big maximum while in most cases you would only need a small buffer. If the size of the resulting string is longer or equal to the buffer size than the buffer is not terminated. The function also returns the number of chars not including the terminating \0 that were needed to fully comply to the print request. slprintf same as snprintf with the difference that it actually returns the length printed not including the terminating \0. spprintf is the dynamical version of snprintf. It allocates the buffer in size as needed and allows a maximum setting as snprintf (turn this feature off by setting max_len to 0). spprintf is a little bit slower than snprintf and offers possible memory leakes if you miss freeing the buffer allocated by the function. Therfore this function should be used where either no maximum is known or the maximum is much bigger than normal size required. spprintf allways terminates the buffer. Example: #define MAX 1024 | #define MAX 1024 | #define MAX 1024 char buffer[MAX] | char buffer[MAX] | char *buffer; | | | | // No need to initialize buffer: | | // spprintf ignores value of buffer sprintf(buffer, "test"); | snprintf(buffer, MAX, "test"); | spprintf(&buffer, MAX, "text"); | | if (!buffer) | | return OUT_OF_MEMORY // sprintf allways terminates | // manual termination of | // spprintf allays terminates buffer // buffer | // buffer *IS* required | | buffer[MAX-1] = 0; | action_with_buffer(buffer); | action_with_buffer(buffer); | action_with_buffer(buffer); | | efree(buffer); */ #ifndef SNPRINTF_H #define SNPRINTF_H typedef int bool_int; typedef enum { NO = 0, YES = 1 } boolean_e; BEGIN_EXTERN_C() PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...); PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap); PHPAPI int ap_php_snprintf(char *, size_t, const char *, ...); PHPAPI int ap_php_vsnprintf(char *, size_t, const char *, va_list ap); PHPAPI int php_sprintf (char* s, const char* format, ...) PHP_ATTRIBUTE_FORMAT(printf, 2, 3); PHPAPI char * php_gcvt(double value, int ndigit, char dec_point, char exponent, char *buf); PHPAPI char * php_conv_fp(register char format, register double num, boolean_e add_dp, int precision, char dec_point, bool_int * is_negative, char *buf, int *len); END_EXTERN_C() #ifdef slprintf #undef slprintf #endif #define slprintf ap_php_slprintf #ifdef vslprintf #undef vslprintf #endif #define vslprintf ap_php_vslprintf #ifdef snprintf #undef snprintf #endif #define snprintf ap_php_snprintf #ifdef vsnprintf #undef vsnprintf #endif #define vsnprintf ap_php_vsnprintf #ifdef sprintf #undef sprintf #endif #define sprintf php_sprintf typedef enum { LM_STD = 0, #if SIZEOF_INTMAX_T LM_INTMAX_T, #endif #if SIZEOF_PTRDIFF_T LM_PTRDIFF_T, #endif #if SIZEOF_LONG_LONG LM_LONG_LONG, #endif LM_SIZE_T, LM_LONG, LM_LONG_DOUBLE } length_modifier_e; #ifdef PHP_WIN32 # define WIDE_INT __int64 #elif SIZEOF_LONG_LONG_INT # define WIDE_INT long long int #elif SIZEOF_LONG_LONG # define WIDE_INT long long #else # define WIDE_INT long #endif typedef WIDE_INT wide_int; typedef unsigned WIDE_INT u_wide_int; extern char * ap_php_conv_10(register wide_int num, register bool_int is_unsigned, register bool_int * is_negative, char *buf_end, register int *len); extern char * ap_php_conv_p2(register u_wide_int num, register int nbits, char format, char *buf_end, register int *len); /* The maximum precision that's allowed for float conversion. Does not include * decimal separator, exponent, sign, terminator. Currently does not affect * the modes e/f, only g/k/H, as those have a different limit enforced at * another level (see NDIG in php_conv_fp()). * Applies to the formatting functions of both spprintf.c and snprintf.c, which * use equally sized buffers of MAX_BUF_SIZE = 512 to hold the result of the * call to php_gcvt(). * This should be reasonably smaller than MAX_BUF_SIZE (I think MAX_BUF_SIZE - 9 * should be enough, but let's give some more space) */ #define FORMAT_CONV_MAX_PRECISION 500 #endif /* SNPRINTF_H */ /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: */ rfc1867.h 0000644 00000005031 15217713750 0006024 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: rfc1867.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef RFC1867_H #define RFC1867_H #include "SAPI.h" #define MULTIPART_CONTENT_TYPE "multipart/form-data" #define MULTIPART_EVENT_START 0 #define MULTIPART_EVENT_FORMDATA 1 #define MULTIPART_EVENT_FILE_START 2 #define MULTIPART_EVENT_FILE_DATA 3 #define MULTIPART_EVENT_FILE_END 4 #define MULTIPART_EVENT_END 5 typedef struct _multipart_event_start { size_t content_length; } multipart_event_start; typedef struct _multipart_event_formdata { size_t post_bytes_processed; char *name; char **value; size_t length; size_t *newlength; } multipart_event_formdata; typedef struct _multipart_event_file_start { size_t post_bytes_processed; char *name; char **filename; } multipart_event_file_start; typedef struct _multipart_event_file_data { size_t post_bytes_processed; off_t offset; char *data; size_t length; size_t *newlength; } multipart_event_file_data; typedef struct _multipart_event_file_end { size_t post_bytes_processed; char *temp_filename; int cancel_upload; } multipart_event_file_end; typedef struct _multipart_event_end { size_t post_bytes_processed; } multipart_event_end; SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler); void destroy_uploaded_files_hash(TSRMLS_D); void php_rfc1867_register_constants(TSRMLS_D); extern PHPAPI int (*php_rfc1867_callback)(unsigned int event, void *event_data, void **extra TSRMLS_DC); #endif /* RFC1867_H */ php_ini.h 0000644 00000006214 15217713750 0006356 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Zeev Suraski
| +----------------------------------------------------------------------+ */ /* $Id: php_ini.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_INI_H #define PHP_INI_H #include "zend_ini.h" BEGIN_EXTERN_C() int php_init_config(TSRMLS_D); int php_shutdown_config(void); void php_ini_register_extensions(TSRMLS_D); PHPAPI zval *cfg_get_entry(char *name, uint name_length); PHPAPI int cfg_get_long(char *varname, long *result); PHPAPI int cfg_get_double(char *varname, double *result); PHPAPI int cfg_get_string(char *varname, char **result); END_EXTERN_C() #define PHP_INI_USER ZEND_INI_USER #define PHP_INI_PERDIR ZEND_INI_PERDIR #define PHP_INI_SYSTEM ZEND_INI_SYSTEM #define PHP_INI_ALL ZEND_INI_ALL #define php_ini_entry zend_ini_entry #define PHP_INI_MH ZEND_INI_MH #define PHP_INI_DISP ZEND_INI_DISP #define PHP_INI_BEGIN ZEND_INI_BEGIN #define PHP_INI_END ZEND_INI_END #define PHP_INI_ENTRY3_EX ZEND_INI_ENTRY3_EX #define PHP_INI_ENTRY3 ZEND_INI_ENTRY3 #define PHP_INI_ENTRY2_EX ZEND_INI_ENTRY2_EX #define PHP_INI_ENTRY2 ZEND_INI_ENTRY2 #define PHP_INI_ENTRY1_EX ZEND_INI_ENTRY1_EX #define PHP_INI_ENTRY1 ZEND_INI_ENTRY1 #define PHP_INI_ENTRY_EX ZEND_INI_ENTRY_EX #define PHP_INI_ENTRY ZEND_INI_ENTRY #define STD_PHP_INI_ENTRY STD_ZEND_INI_ENTRY #define STD_PHP_INI_ENTRY_EX STD_ZEND_INI_ENTRY_EX #define STD_PHP_INI_BOOLEAN STD_ZEND_INI_BOOLEAN #define PHP_INI_DISPLAY_ORIG ZEND_INI_DISPLAY_ORIG #define PHP_INI_DISPLAY_ACTIVE ZEND_INI_DISPLAY_ACTIVE #define PHP_INI_STAGE_STARTUP ZEND_INI_STAGE_STARTUP #define PHP_INI_STAGE_SHUTDOWN ZEND_INI_STAGE_SHUTDOWN #define PHP_INI_STAGE_ACTIVATE ZEND_INI_STAGE_ACTIVATE #define PHP_INI_STAGE_DEACTIVATE ZEND_INI_STAGE_DEACTIVATE #define PHP_INI_STAGE_RUNTIME ZEND_INI_STAGE_RUNTIME #define PHP_INI_STAGE_HTACCESS ZEND_INI_STAGE_HTACCESS #define php_ini_boolean_displayer_cb zend_ini_boolean_displayer_cb #define php_ini_color_displayer_cb zend_ini_color_displayer_cb #define php_alter_ini_entry zend_alter_ini_entry #define php_ini_long zend_ini_long #define php_ini_double zend_ini_double #define php_ini_string zend_ini_string #endif /* PHP_INI_H */ win95nt.h 0000644 00000005167 15217713750 0006253 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: win95nt.h 293036 2010-01-03 09:23:27Z sebastian $ */ /* Defines and types for Windows 95/NT */ #define HAVE_DECLARED_TIMEZONE #define WIN32_LEAN_AND_MEAN #include
#include
#include
#include
#include
#include
#include
typedef int uid_t; typedef int gid_t; typedef char * caddr_t; #define lstat(x, y) stat(x, y) #define _IFIFO 0010000 /* fifo */ #define _IFBLK 0060000 /* block special */ #define _IFLNK 0120000 /* symbolic link */ #define S_IFIFO _IFIFO #define S_IFBLK _IFBLK #define S_IFLNK _IFLNK #ifndef S_ISREG #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) #endif #define chdir(path) _chdir(path) #define mkdir(a, b) _mkdir(a) #define rmdir(a) _rmdir(a) #define getpid _getpid #define php_sleep(t) Sleep(t*1000) #ifndef getcwd # define getcwd(a, b) _getcwd(a, b) #endif #define off_t _off_t typedef unsigned int uint; typedef unsigned long ulong; #if !NSAPI typedef long pid_t; #endif /* missing in vc5 math.h */ #define M_PI 3.14159265358979323846 #define M_TWOPI (M_PI * 2.0) #define M_PI_2 1.57079632679489661923 #ifndef M_PI_4 #define M_PI_4 0.78539816339744830962 #endif #if !defined(PHP_DEBUG) #ifdef inline #undef inline #endif #define inline __inline #endif /* General Windows stuff */ #define WINDOWS 1 /* Prevent use of VC5 OpenFile function */ #define NOOPENFILE /* sendmail is built-in */ #ifdef PHP_PROG_SENDMAIL #undef PHP_PROG_SENDMAIL #define PHP_PROG_SENDMAIL "Built in mailer" #endif php_main.h 0000644 00000005320 15217713750 0006520 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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. | +----------------------------------------------------------------------+ | Authors: Andi Gutmans
| | Zeev Suraski
| +----------------------------------------------------------------------+ */ /* $Id: php_main.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_MAIN_H #define PHP_MAIN_H #include "zend_globals.h" #include "php_globals.h" #include "SAPI.h" BEGIN_EXTERN_C() PHPAPI int php_request_startup(TSRMLS_D); PHPAPI void php_request_shutdown(void *dummy); PHPAPI void php_request_shutdown_for_exec(void *dummy); PHPAPI int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_modules, uint num_additional_modules); PHPAPI void php_module_shutdown(TSRMLS_D); PHPAPI void php_module_shutdown_for_exec(void); PHPAPI int php_module_shutdown_wrapper(sapi_module_struct *sapi_globals); PHPAPI int php_request_startup_for_hook(TSRMLS_D); PHPAPI int php_register_extensions(zend_module_entry **ptr, int count TSRMLS_DC); PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC); PHPAPI int php_execute_simple_script(zend_file_handle *primary_file, zval **ret TSRMLS_DC); PHPAPI int php_handle_special_queries(TSRMLS_D); PHPAPI int php_lint_script(zend_file_handle *file TSRMLS_DC); PHPAPI void php_handle_aborted_connection(void); PHPAPI int php_handle_auth_data(const char *auth TSRMLS_DC); PHPAPI void php_html_puts(const char *str, uint siz TSRMLS_DC); PHPAPI int php_stream_open_for_zend_ex(const char *filename, zend_file_handle *handle, int mode TSRMLS_DC); extern void php_call_shutdown_functions(TSRMLS_D); extern void php_free_shutdown_functions(TSRMLS_D); /* environment module */ extern int php_init_environ(void); extern int php_shutdown_environ(void); END_EXTERN_C() #endif php_scandir.h 0000644 00000003701 15217713750 0007220 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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. | +----------------------------------------------------------------------+ | Authors: Shane Caraveo
| | Ilia Alshanetsky
| +----------------------------------------------------------------------+ */ /* $Id: php_scandir.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_SCANDIR_H #define PHP_SCANDIR_H #include
#ifdef HAVE_SYS_DIR_H #include
#endif #ifdef PHP_WIN32 #include "config.w32.h" #include "win32/readdir.h" #else #include
#endif #ifdef HAVE_DIRENT_H #include
#endif #ifdef HAVE_SCANDIR #define php_scandir scandir #else PHPAPI int php_scandir(const char *dirname, struct dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (const struct dirent **a, const struct dirent **b)); #endif #ifdef HAVE_ALPHASORT #define php_alphasort alphasort #else PHPAPI int php_alphasort(const struct dirent **a, const struct dirent **b); #endif #endif /* PHP_SCANDIR_H */ php_version.h 0000644 00000000412 15217713750 0007256 0 ustar 00 /* automatically generated by configure */ /* edit configure.in to change version number */ #define PHP_MAJOR_VERSION 5 #define PHP_MINOR_VERSION 2 #define PHP_RELEASE_VERSION 17 #define PHP_EXTRA_VERSION "" #define PHP_VERSION "5.2.17" #define PHP_VERSION_ID 50217 php_open_temporary_file.h 0000644 00000003421 15217713750 0011636 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Zeev Suraski
| +----------------------------------------------------------------------+ */ /* $Id: php_open_temporary_file.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_OPEN_TEMPORARY_FILE_H #define PHP_OPEN_TEMPORARY_FILE_H BEGIN_EXTERN_C() PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC); PHPAPI int php_open_temporary_fd_ex(const char *dir, const char *pfx, char **opened_path_p, zend_bool open_basedir_check TSRMLS_DC); PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC); PHPAPI const char *php_get_temporary_directory(void); PHPAPI void php_shutdown_temporary_directory(void); END_EXTERN_C() #endif /* PHP_OPEN_TEMPORARY_FILE_H */ php_regex.h 0000644 00000004037 15217713750 0006712 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: php_regex.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_REGEX_H #define PHP_REGEX_H /* * REGEX means: * 0.. system regex * 1.. bundled regex */ #if REGEX /* get aliases */ #include "regex/regex_extra.h" #include "regex/regex.h" /* get rid of aliases */ #define PHP_NO_ALIASES #include "regex/regex_extra.h" #undef PHP_NO_ALIASES #undef _PCREPOSIX_H #define _PCREPOSIX_H 1 #ifndef _REGEX_H #define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */ #endif #ifndef _REGEX_H_ #define _REGEX_H_ 1 #endif #ifndef _RX_H #define _RX_H 1 /* Try defining these for Linux to */ #endif #ifndef __REGEXP_LIBRARY_H__ #define __REGEXP_LIBRARY_H__ 1 /* avoid Apache including regex.h */ #endif #ifndef _H_REGEX #define _H_REGEX 1 /* This one is for AIX */ #endif #elif REGEX == 0 #include
#ifndef _REGEX_H_ #define _REGEX_H_ 1 #endif #endif #endif /* PHP_REGEX_H */ php_globals.h 0000644 00000010350 15217713750 0007216 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Zeev Suraski
| +----------------------------------------------------------------------+ */ /* $Id: php_globals.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_GLOBALS_H #define PHP_GLOBALS_H #include "zend_globals.h" typedef struct _php_core_globals php_core_globals; #ifdef ZTS # define PG(v) TSRMG(core_globals_id, php_core_globals *, v) extern PHPAPI int core_globals_id; #else # define PG(v) (core_globals.v) extern ZEND_API struct _php_core_globals core_globals; #endif /* Error display modes */ #define PHP_DISPLAY_ERRORS_STDOUT 1 #define PHP_DISPLAY_ERRORS_STDERR 2 /* Track vars */ #define TRACK_VARS_POST 0 #define TRACK_VARS_GET 1 #define TRACK_VARS_COOKIE 2 #define TRACK_VARS_SERVER 3 #define TRACK_VARS_ENV 4 #define TRACK_VARS_FILES 5 #define TRACK_VARS_REQUEST 6 struct _php_tick_function_entry; typedef struct _arg_separators { char *output; char *input; } arg_separators; struct _php_core_globals { zend_bool magic_quotes_gpc; zend_bool magic_quotes_runtime; zend_bool magic_quotes_sybase; zend_bool safe_mode; zend_bool allow_call_time_pass_reference; zend_bool implicit_flush; long output_buffering; char *safe_mode_include_dir; zend_bool safe_mode_gid; zend_bool sql_safe_mode; zend_bool enable_dl; char *output_handler; char *unserialize_callback_func; long serialize_precision; char *safe_mode_exec_dir; long memory_limit; long max_input_time; zend_bool track_errors; zend_bool display_errors; zend_bool display_startup_errors; zend_bool log_errors; long log_errors_max_len; zend_bool ignore_repeated_errors; zend_bool ignore_repeated_source; zend_bool report_memleaks; char *error_log; char *doc_root; char *user_dir; char *include_path; char *open_basedir; char *extension_dir; char *upload_tmp_dir; long upload_max_filesize; char *error_append_string; char *error_prepend_string; char *auto_prepend_file; char *auto_append_file; arg_separators arg_separator; char *variables_order; HashTable rfc1867_protected_variables; short connection_status; short ignore_user_abort; unsigned char header_is_being_sent; zend_llist tick_functions; zval *http_globals[6]; zend_bool expose_php; zend_bool register_globals; zend_bool register_long_arrays; zend_bool register_argc_argv; zend_bool auto_globals_jit; zend_bool y2k_compliance; char *docref_root; char *docref_ext; zend_bool html_errors; zend_bool xmlrpc_errors; long xmlrpc_error_number; zend_bool activated_auto_globals[8]; zend_bool modules_activated; zend_bool file_uploads; zend_bool during_request_startup; zend_bool allow_url_fopen; zend_bool always_populate_raw_post_data; zend_bool report_zend_debug; int last_error_type; char *last_error_message; char *last_error_file; int last_error_lineno; error_handling_t error_handling; zend_class_entry *exception_class; char *disable_functions; char *disable_classes; zend_bool allow_url_include; #ifdef PHP_WIN32 zend_bool com_initialized; #endif long max_input_nesting_level; long max_input_vars; zend_bool in_user_include; zend_bool mail_x_header; char *mail_log; zend_bool in_error_log; }; #endif /* PHP_GLOBALS_H */ /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: */ php_memory_streams.h 0000644 00000006476 15217713750 0010657 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Marcus Boerger
| +----------------------------------------------------------------------+ */ /* $Id: php_memory_streams.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_MEMORY_STREAM_H #define PHP_MEMORY_STREAM_H #include "php_streams.h" #define PHP_STREAM_MAX_MEM 2 * 1024 * 1024 #define TEMP_STREAM_DEFAULT 0 #define TEMP_STREAM_READONLY 1 #define TEMP_STREAM_TAKE_BUFFER 2 #define php_stream_memory_create(mode) _php_stream_memory_create((mode) STREAMS_CC TSRMLS_CC) #define php_stream_memory_create_rel(mode) _php_stream_memory_create((mode) STREAMS_REL_CC TSRMLS_CC) #define php_stream_memory_open(mode, buf, length) _php_stream_memory_open((mode), (buf), (length) STREAMS_CC TSRMLS_CC) #define php_stream_memory_get_buffer(stream, length) _php_stream_memory_get_buffer((stream), (length) STREAMS_CC TSRMLS_CC) #define php_stream_temp_new() php_stream_temp_create(TEMP_STREAM_DEFAULT, PHP_STREAM_MAX_MEM) #define php_stream_temp_create(mode, max_memory_usage) _php_stream_temp_create((mode), (max_memory_usage) STREAMS_CC TSRMLS_CC) #define php_stream_temp_create_rel(mode, max_memory_usage) _php_stream_temp_create((mode), (max_memory_usage) STREAMS_REL_CC TSRMLS_CC) #define php_stream_temp_open(mode, max_memory_usage, buf, length) _php_stream_temp_open((mode), (max_memory_usage), (buf), (length) STREAMS_CC TSRMLS_CC) BEGIN_EXTERN_C() PHPAPI php_stream *_php_stream_memory_create(int mode STREAMS_DC TSRMLS_DC); PHPAPI php_stream *_php_stream_memory_open(int mode, char *buf, size_t length STREAMS_DC TSRMLS_DC); PHPAPI char *_php_stream_memory_get_buffer(php_stream *stream, size_t *length STREAMS_DC TSRMLS_DC); PHPAPI php_stream *_php_stream_temp_create(int mode, size_t max_memory_usage STREAMS_DC TSRMLS_DC); PHPAPI php_stream *_php_stream_temp_open(int mode, size_t max_memory_usage, char *buf, size_t length STREAMS_DC TSRMLS_DC); END_EXTERN_C() extern PHPAPI php_stream_ops php_stream_memory_ops; extern PHPAPI php_stream_ops php_stream_temp_ops; extern PHPAPI php_stream_ops php_stream_rfc2397_ops; extern PHPAPI php_stream_wrapper php_stream_rfc2397_wrapper; #define PHP_STREAM_IS_MEMORY &php_stream_memory_ops #define PHP_STREAM_IS_TEMP &php_stream_temp_ops #endif /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: * vim600: sw=4 ts=4 fdm=marker * vim<600: sw=4 ts=4 */ php_network.h 0000644 00000022722 15217713750 0007272 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Stig Venaas
| +----------------------------------------------------------------------+ */ /* $Id: php_network.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef _PHP_NETWORK_H #define _PHP_NETWORK_H #ifdef PHP_WIN32 # ifndef WINNT # define WINNT 1 # endif # undef FD_SETSIZE # include "arpa/inet.h" /* Apache folks decided that strtoul was evil and redefined * it to something that breaks the windows headers */ # undef strtoul /* defines socklen_t and some IPV6 stuff */ # include
# if HAVE_WSPIAPI_H /* getaddrinfo */ # include
# endif #else # undef closesocket # define closesocket close #endif #ifndef HAVE_SHUTDOWN #undef shutdown #define shutdown(s,n) /* nothing */ #endif #ifdef PHP_WIN32 #define EWOULDBLOCK WSAEWOULDBLOCK #define EINPROGRESS WSAEWOULDBLOCK # define fsync _commit # define ftruncate(a, b) chsize(a, b) #endif /* defined(PHP_WIN32) */ #ifndef EWOULDBLOCK # define EWOULDBLOCK EAGAIN #endif #ifdef PHP_WIN32 #define php_socket_errno() WSAGetLastError() #else #define php_socket_errno() errno #endif /* like strerror, but caller must efree the returned string, * unless buf is not NULL. * Also works sensibly for win32 */ BEGIN_EXTERN_C() PHPAPI char *php_socket_strerror(long err, char *buf, size_t bufsize); END_EXTERN_C() #ifdef HAVE_NETINET_IN_H # include
#endif #ifdef HAVE_SYS_SOCKET_H #include
#endif /* These are here, rather than with the win32 counterparts above, * since
defines them. */ #ifndef SHUT_RD # define SHUT_RD 0 # define SHUT_WR 1 # define SHUT_RDWR 2 #endif #ifdef HAVE_SYS_TIME_H #include
#endif #ifdef HAVE_STDDEF_H #include
#endif #ifdef PHP_WIN32 typedef SOCKET php_socket_t; #else typedef int php_socket_t; #endif #ifdef PHP_WIN32 # define SOCK_ERR INVALID_SOCKET # define SOCK_CONN_ERR SOCKET_ERROR # define SOCK_RECV_ERR SOCKET_ERROR #else # define SOCK_ERR -1 # define SOCK_CONN_ERR -1 # define SOCK_RECV_ERR -1 #endif /* uncomment this to debug poll(2) emulation on systems that have poll(2) */ /* #define PHP_USE_POLL_2_EMULATION 1 */ #if defined(HAVE_SYS_POLL_H) && defined(HAVE_POLL) # include
typedef struct pollfd php_pollfd; #else typedef struct _php_pollfd { php_socket_t fd; short events; short revents; } php_pollfd; PHPAPI int php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout); # define POLLIN 0x0001 /* There is data to read */ # define POLLPRI 0x0002 /* There is urgent data to read */ # define POLLOUT 0x0004 /* Writing now will not block */ # define POLLERR 0x0008 /* Error condition */ # define POLLHUP 0x0010 /* Hung up */ # define POLLNVAL 0x0020 /* Invalid request: fd not open */ # ifndef PHP_USE_POLL_2_EMULATION # define PHP_USE_POLL_2_EMULATION 1 # endif #endif #define PHP_POLLREADABLE (POLLIN|POLLERR|POLLHUP) #ifndef PHP_USE_POLL_2_EMULATION # define php_poll2(ufds, nfds, timeout) poll(ufds, nfds, timeout) #endif /* timeval-to-timeout (for poll(2)) */ static inline int php_tvtoto(struct timeval *timeouttv) { if (timeouttv) { return (timeouttv->tv_sec * 1000) + (timeouttv->tv_usec / 1000); } return -1; } /* hybrid select(2)/poll(2) for a single descriptor. * timeouttv follows same rules as select(2), but is reduced to millisecond accuracy. * Returns 0 on timeout, -1 on error, or the event mask (ala poll(2)). */ static inline int php_pollfd_for(php_socket_t fd, int events, struct timeval *timeouttv) { php_pollfd p; int n; p.fd = fd; p.events = events; p.revents = 0; n = php_poll2(&p, 1, php_tvtoto(timeouttv)); if (n > 0) { return p.revents; } return n; } static inline int php_pollfd_for_ms(php_socket_t fd, int events, int timeout) { php_pollfd p; int n; p.fd = fd; p.events = events; p.revents = 0; n = php_poll2(&p, 1, timeout); if (n > 0) { return p.revents; } return n; } /* emit warning and suggestion for unsafe select(2) usage */ PHPAPI void _php_emit_fd_setsize_warning(int max_fd); #ifdef PHP_WIN32 /* it is safe to FD_SET too many fd's under win32; the macro will simply ignore * descriptors that go beyond the default FD_SETSIZE */ # define PHP_SAFE_FD_SET(fd, set) FD_SET(fd, set) # define PHP_SAFE_FD_ISSET(fd, set) FD_ISSET(fd, set) # define PHP_SAFE_MAX_FD(m, n) do { if (n + 1 >= FD_SETSIZE) { _php_emit_fd_setsize_warning(n); }} while(0) #else # define PHP_SAFE_FD_SET(fd, set) do { if (fd < FD_SETSIZE) FD_SET(fd, set); } while(0) # define PHP_SAFE_FD_ISSET(fd, set) ((fd < FD_SETSIZE) && FD_ISSET(fd, set)) # define PHP_SAFE_MAX_FD(m, n) do { if (m >= FD_SETSIZE) { _php_emit_fd_setsize_warning(m); m = FD_SETSIZE - 1; }} while(0) #endif #define PHP_SOCK_CHUNK_SIZE 8192 #ifdef HAVE_SOCKADDR_STORAGE typedef struct sockaddr_storage php_sockaddr_storage; #else typedef struct { #ifdef HAVE_SOCKADDR_SA_LEN unsigned char ss_len; unsigned char ss_family; #else unsigned short ss_family; #endif char info[126]; } php_sockaddr_storage; #endif BEGIN_EXTERN_C() PHPAPI php_socket_t php_network_connect_socket_to_host(const char *host, unsigned short port, int socktype, int asynchronous, struct timeval *timeout, char **error_string, int *error_code, char *bindto, unsigned short bindport TSRMLS_DC); PHPAPI int php_network_connect_socket(php_socket_t sockfd, const struct sockaddr *addr, socklen_t addrlen, int asynchronous, struct timeval *timeout, char **error_string, int *error_code); #define php_connect_nonb(sock, addr, addrlen, timeout) \ php_network_connect_socket((sock), (addr), (addrlen), 0, (timeout), NULL, NULL) PHPAPI php_socket_t php_network_bind_socket_to_local_addr(const char *host, unsigned port, int socktype, char **error_string, int *error_code TSRMLS_DC); PHPAPI php_socket_t php_network_accept_incoming(php_socket_t srvsock, char **textaddr, long *textaddrlen, struct sockaddr **addr, socklen_t *addrlen, struct timeval *timeout, char **error_string, int *error_code TSRMLS_DC); PHPAPI int php_network_get_sock_name(php_socket_t sock, char **textaddr, long *textaddrlen, struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC); PHPAPI int php_network_get_peer_name(php_socket_t sock, char **textaddr, long *textaddrlen, struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC); PHPAPI void php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port); PHPAPI int php_sockaddr_size(php_sockaddr_storage *addr); END_EXTERN_C() struct _php_netstream_data_t { php_socket_t socket; char is_blocked; struct timeval timeout; char timeout_event; size_t ownsize; }; typedef struct _php_netstream_data_t php_netstream_data_t; PHPAPI extern php_stream_ops php_stream_socket_ops; extern php_stream_ops php_stream_generic_socket_ops; #define PHP_STREAM_IS_SOCKET (&php_stream_socket_ops) BEGIN_EXTERN_C() PHPAPI php_stream *_php_stream_sock_open_from_socket(php_socket_t socket, const char *persistent_id STREAMS_DC TSRMLS_DC ); /* open a connection to a host using php_hostconnect and return a stream */ PHPAPI php_stream *_php_stream_sock_open_host(const char *host, unsigned short port, int socktype, struct timeval *timeout, const char *persistent_id STREAMS_DC TSRMLS_DC); PHPAPI void php_network_populate_name_from_sockaddr( /* input address */ struct sockaddr *sa, socklen_t sl, /* output readable address */ char **textaddr, long *textaddrlen, /* output address */ struct sockaddr **addr, socklen_t *addrlen TSRMLS_DC); PHPAPI int php_network_parse_network_address_with_port(const char *addr, long addrlen, struct sockaddr *sa, socklen_t *sl TSRMLS_DC); END_EXTERN_C() #define php_stream_sock_open_from_socket(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_CC TSRMLS_CC) #define php_stream_sock_open_host(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype), (timeout), (persistent) STREAMS_CC TSRMLS_CC) /* {{{ memory debug */ #define php_stream_sock_open_from_socket_rel(socket, persistent) _php_stream_sock_open_from_socket((socket), (persistent) STREAMS_REL_CC TSRMLS_CC) #define php_stream_sock_open_host_rel(host, port, socktype, timeout, persistent) _php_stream_sock_open_host((host), (port), (socktype), (timeout), (persistent) STREAMS_REL_CC TSRMLS_CC) #define php_stream_sock_open_unix_rel(path, pathlen, persistent, timeval) _php_stream_sock_open_unix((path), (pathlen), (persistent), (timeval) STREAMS_REL_CC TSRMLS_CC) /* }}} */ #endif /* _PHP_NETWORK_H */ /* * Local variables: * tab-width: 8 * c-basic-offset: 8 * End: */ php_streams.h 0000644 00000067136 15217713750 0007267 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Wez Furlong (wez@thebrainroom.com) | +----------------------------------------------------------------------+ */ /* $Id: php_streams.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_STREAMS_H #define PHP_STREAMS_H #ifdef HAVE_SYS_TIME_H #include
#endif #include
#include
BEGIN_EXTERN_C() PHPAPI int php_file_le_stream(void); PHPAPI int php_file_le_pstream(void); PHPAPI int php_file_le_stream_filter(void); END_EXTERN_C() /* {{{ Streams memory debugging stuff */ #if ZEND_DEBUG /* these have more of a dependency on the definitions of the zend macros than * I would prefer, but doing it this way saves loads of idefs :-/ */ # define STREAMS_D int __php_stream_call_depth ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC # define STREAMS_C 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC # define STREAMS_REL_C __php_stream_call_depth + 1 ZEND_FILE_LINE_CC, \ __php_stream_call_depth ? __zend_orig_filename : __zend_filename, \ __php_stream_call_depth ? __zend_orig_lineno : __zend_lineno # define STREAMS_DC , STREAMS_D # define STREAMS_CC , STREAMS_C # define STREAMS_REL_CC , STREAMS_REL_C #else # define STREAMS_D # define STREAMS_C # define STREAMS_REL_C # define STREAMS_DC # define STREAMS_CC # define STREAMS_REL_CC #endif /* these functions relay the file/line number information. They are depth aware, so they will pass * the ultimate ancestor, which is useful, because there can be several layers of calls */ #define php_stream_alloc_rel(ops, thisptr, persistent, mode) _php_stream_alloc((ops), (thisptr), (persistent), (mode) STREAMS_REL_CC TSRMLS_CC) #define php_stream_copy_to_mem_rel(src, buf, maxlen, persistent) _php_stream_copy_to_mem((src), (buf), (maxlen), (persistent) STREAMS_REL_CC TSRMLS_CC) #define php_stream_fopen_rel(filename, mode, opened, options) _php_stream_fopen((filename), (mode), (opened), (options) STREAMS_REL_CC TSRMLS_CC) #define php_stream_fopen_with_path_rel(filename, mode, path, opened, options) _php_stream_fopen_with_path((filename), (mode), (path), (opened), (options) STREAMS_REL_CC TSRMLS_CC) #define php_stream_fopen_from_fd_rel(fd, mode, persistent_id) _php_stream_fopen_from_fd((fd), (mode), (persistent_id) STREAMS_REL_CC TSRMLS_CC) #define php_stream_fopen_from_file_rel(file, mode) _php_stream_fopen_from_file((file), (mode) STREAMS_REL_CC TSRMLS_CC) #define php_stream_fopen_from_pipe_rel(file, mode) _php_stream_fopen_from_pipe((file), (mode) STREAMS_REL_CC TSRMLS_CC) #define php_stream_fopen_tmpfile_rel() _php_stream_fopen_tmpfile(0 STREAMS_REL_CC TSRMLS_CC) #define php_stream_fopen_temporary_file_rel(dir, pfx, opened_path) _php_stream_fopen_temporary_file((dir), (pfx), (opened_path) STREAMS_REL_CC TSRMLS_CC) #define php_stream_open_wrapper_rel(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_REL_CC TSRMLS_CC) #define php_stream_open_wrapper_ex_rel(path, mode, options, opened, context) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), (context) STREAMS_REL_CC TSRMLS_CC) #define php_stream_make_seekable_rel(origstream, newstream, flags) _php_stream_make_seekable((origstream), (newstream), (flags) STREAMS_REL_CC TSRMLS_CC) /* }}} */ /* The contents of the php_stream_ops and php_stream should only be accessed * using the functions/macros in this header. * If you need to get at something that doesn't have an API, * drop me a line
and we can sort out a way to do * it properly. * * The only exceptions to this rule are that stream implementations can use * the php_stream->abstract pointer to hold their context, and streams * opened via stream_open_wrappers can use the zval ptr in * php_stream->wrapperdata to hold meta data for php scripts to * retrieve using file_get_wrapper_data(). */ typedef struct _php_stream php_stream; typedef struct _php_stream_wrapper php_stream_wrapper; typedef struct _php_stream_context php_stream_context; typedef struct _php_stream_filter php_stream_filter; #include "streams/php_stream_context.h" #include "streams/php_stream_filter_api.h" typedef struct _php_stream_statbuf { struct stat sb; /* regular info */ /* extended info to go here some day: content-type etc. etc. */ } php_stream_statbuf; typedef struct _php_stream_dirent { char d_name[MAXPATHLEN]; } php_stream_dirent; /* operations on streams that are file-handles */ typedef struct _php_stream_ops { /* stdio like functions - these are mandatory! */ size_t (*write)(php_stream *stream, const char *buf, size_t count TSRMLS_DC); size_t (*read)(php_stream *stream, char *buf, size_t count TSRMLS_DC); int (*close)(php_stream *stream, int close_handle TSRMLS_DC); int (*flush)(php_stream *stream TSRMLS_DC); const char *label; /* label for this ops structure */ /* these are optional */ int (*seek)(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC); int (*cast)(php_stream *stream, int castas, void **ret TSRMLS_DC); int (*stat)(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC); int (*set_option)(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC); } php_stream_ops; typedef struct _php_stream_wrapper_ops { /* open/create a wrapped stream */ php_stream *(*stream_opener)(php_stream_wrapper *wrapper, char *filename, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); /* close/destroy a wrapped stream */ int (*stream_closer)(php_stream_wrapper *wrapper, php_stream *stream TSRMLS_DC); /* stat a wrapped stream */ int (*stream_stat)(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC); /* stat a URL */ int (*url_stat)(php_stream_wrapper *wrapper, char *url, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC); /* open a "directory" stream */ php_stream *(*dir_opener)(php_stream_wrapper *wrapper, char *filename, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); const char *label; /* delete a file */ int (*unlink)(php_stream_wrapper *wrapper, char *url, int options, php_stream_context *context TSRMLS_DC); /* rename a file */ int (*rename)(php_stream_wrapper *wrapper, char *url_from, char *url_to, int options, php_stream_context *context TSRMLS_DC); /* Create/Remove directory */ int (*stream_mkdir)(php_stream_wrapper *wrapper, char *url, int mode, int options, php_stream_context *context TSRMLS_DC); int (*stream_rmdir)(php_stream_wrapper *wrapper, char *url, int options, php_stream_context *context TSRMLS_DC); } php_stream_wrapper_ops; struct _php_stream_wrapper { php_stream_wrapper_ops *wops; /* operations the wrapper can perform */ void *abstract; /* context for the wrapper */ int is_url; /* so that PG(allow_url_fopen) can be respected */ /* support for wrappers to return (multiple) error messages to the stream opener */ int err_count; char **err_stack; }; #define PHP_STREAM_FLAG_NO_SEEK 1 #define PHP_STREAM_FLAG_NO_BUFFER 2 #define PHP_STREAM_FLAG_EOL_UNIX 0 /* also includes DOS */ #define PHP_STREAM_FLAG_DETECT_EOL 4 #define PHP_STREAM_FLAG_EOL_MAC 8 /* set this when the stream might represent "interactive" data. * When set, the read buffer will avoid certain operations that * might otherwise cause the read to block for much longer than * is strictly required. */ #define PHP_STREAM_FLAG_AVOID_BLOCKING 16 #define PHP_STREAM_FLAG_NO_CLOSE 32 #define PHP_STREAM_FLAG_IS_DIR 64 #define PHP_STREAM_FLAG_NO_FCLOSE 128 struct _php_stream { php_stream_ops *ops; void *abstract; /* convenience pointer for abstraction */ php_stream_filter_chain readfilters, writefilters; php_stream_wrapper *wrapper; /* which wrapper was used to open the stream */ void *wrapperthis; /* convenience pointer for a instance of a wrapper */ zval *wrapperdata; /* fgetwrapperdata retrieves this */ int fgetss_state; /* for fgetss to handle multiline tags */ int is_persistent; char mode[16]; /* "rwb" etc. ala stdio */ int rsrc_id; /* used for auto-cleanup */ int in_free; /* to prevent recursion during free */ /* so we know how to clean it up correctly. This should be set to * PHP_STREAM_FCLOSE_XXX as appropriate */ int fclose_stdiocast; FILE *stdiocast; /* cache this, otherwise we might leak! */ #if ZEND_DEBUG int __exposed; /* non-zero if exposed as a zval somewhere */ #endif char *orig_path; php_stream_context *context; int flags; /* PHP_STREAM_FLAG_XXX */ /* buffer */ off_t position; /* of underlying stream */ unsigned char *readbuf; size_t readbuflen; off_t readpos; off_t writepos; /* how much data to read when filling buffer */ size_t chunk_size; int eof; }; /* php_stream */ /* state definitions when closing down; these are private to streams.c */ #define PHP_STREAM_FCLOSE_NONE 0 #define PHP_STREAM_FCLOSE_FDOPEN 1 #define PHP_STREAM_FCLOSE_FOPENCOOKIE 2 /* allocate a new stream for a particular ops */ BEGIN_EXTERN_C() PHPAPI php_stream *_php_stream_alloc(php_stream_ops *ops, void *abstract, const char *persistent_id, const char *mode STREAMS_DC TSRMLS_DC); END_EXTERN_C() #define php_stream_alloc(ops, thisptr, persistent_id, mode) _php_stream_alloc((ops), (thisptr), (persistent_id), (mode) STREAMS_CC TSRMLS_CC) #define php_stream_get_resource_id(stream) (stream)->rsrc_id #if ZEND_DEBUG /* use this to tell the stream that it is OK if we don't explicitly close it */ # define php_stream_auto_cleanup(stream) { (stream)->__exposed++; } /* use this to assign the stream to a zval and tell the stream that is * has been exported to the engine; it will expect to be closed automatically * when the resources are auto-destructed */ # define php_stream_to_zval(stream, zval) { ZVAL_RESOURCE(zval, (stream)->rsrc_id); (stream)->__exposed++; } #else # define php_stream_auto_cleanup(stream) /* nothing */ # define php_stream_to_zval(stream, zval) { ZVAL_RESOURCE(zval, (stream)->rsrc_id); } #endif #define php_stream_from_zval(xstr, ppzval) ZEND_FETCH_RESOURCE2((xstr), php_stream *, (ppzval), -1, "stream", php_file_le_stream(), php_file_le_pstream()) #define php_stream_from_zval_no_verify(xstr, ppzval) (xstr) = (php_stream*)zend_fetch_resource((ppzval) TSRMLS_CC, -1, "stream", NULL, 2, php_file_le_stream(), php_file_le_pstream()) BEGIN_EXTERN_C() PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream TSRMLS_DC); #define PHP_STREAM_PERSISTENT_SUCCESS 0 /* id exists */ #define PHP_STREAM_PERSISTENT_FAILURE 1 /* id exists but is not a stream! */ #define PHP_STREAM_PERSISTENT_NOT_EXIST 2 /* id does not exist */ #define PHP_STREAM_FREE_CALL_DTOR 1 /* call ops->close */ #define PHP_STREAM_FREE_RELEASE_STREAM 2 /* pefree(stream) */ #define PHP_STREAM_FREE_PRESERVE_HANDLE 4 /* tell ops->close to not close it's underlying handle */ #define PHP_STREAM_FREE_RSRC_DTOR 8 /* called from the resource list dtor */ #define PHP_STREAM_FREE_PERSISTENT 16 /* manually freeing a persistent connection */ #define PHP_STREAM_FREE_CLOSE (PHP_STREAM_FREE_CALL_DTOR | PHP_STREAM_FREE_RELEASE_STREAM) #define PHP_STREAM_FREE_CLOSE_CASTED (PHP_STREAM_FREE_CLOSE | PHP_STREAM_FREE_PRESERVE_HANDLE) #define PHP_STREAM_FREE_CLOSE_PERSISTENT (PHP_STREAM_FREE_CLOSE | PHP_STREAM_FREE_PERSISTENT) PHPAPI int _php_stream_free(php_stream *stream, int close_options TSRMLS_DC); #define php_stream_free(stream, close_options) _php_stream_free((stream), (close_options) TSRMLS_CC) #define php_stream_close(stream) _php_stream_free((stream), PHP_STREAM_FREE_CLOSE TSRMLS_CC) #define php_stream_pclose(stream) _php_stream_free((stream), PHP_STREAM_FREE_CLOSE_PERSISTENT TSRMLS_CC) PHPAPI int _php_stream_seek(php_stream *stream, off_t offset, int whence TSRMLS_DC); #define php_stream_rewind(stream) _php_stream_seek((stream), 0L, SEEK_SET TSRMLS_CC) #define php_stream_seek(stream, offset, whence) _php_stream_seek((stream), (offset), (whence) TSRMLS_CC) PHPAPI off_t _php_stream_tell(php_stream *stream TSRMLS_DC); #define php_stream_tell(stream) _php_stream_tell((stream) TSRMLS_CC) PHPAPI size_t _php_stream_read(php_stream *stream, char *buf, size_t count TSRMLS_DC); #define php_stream_read(stream, buf, count) _php_stream_read((stream), (buf), (count) TSRMLS_CC) PHPAPI size_t _php_stream_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC); #define php_stream_write_string(stream, str) _php_stream_write(stream, str, strlen(str) TSRMLS_CC) #define php_stream_write(stream, buf, count) _php_stream_write(stream, (buf), (count) TSRMLS_CC) PHPAPI size_t _php_stream_printf(php_stream *stream TSRMLS_DC, const char *fmt, ...); /* php_stream_printf macro & function require TSRMLS_CC */ #define php_stream_printf _php_stream_printf PHPAPI int _php_stream_eof(php_stream *stream TSRMLS_DC); #define php_stream_eof(stream) _php_stream_eof((stream) TSRMLS_CC) PHPAPI int _php_stream_getc(php_stream *stream TSRMLS_DC); #define php_stream_getc(stream) _php_stream_getc((stream) TSRMLS_CC) PHPAPI int _php_stream_putc(php_stream *stream, int c TSRMLS_DC); #define php_stream_putc(stream, c) _php_stream_putc((stream), (c) TSRMLS_CC) PHPAPI int _php_stream_flush(php_stream *stream, int closing TSRMLS_DC); #define php_stream_flush(stream) _php_stream_flush((stream), 0 TSRMLS_CC) PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_len TSRMLS_DC); #define php_stream_gets(stream, buf, maxlen) _php_stream_get_line((stream), (buf), (maxlen), NULL TSRMLS_CC) #define php_stream_get_line(stream, buf, maxlen, retlen) _php_stream_get_line((stream), (buf), (maxlen), (retlen) TSRMLS_CC) PHPAPI char *php_stream_get_record(php_stream *stream, size_t maxlen, size_t *returned_len, char *delim, size_t delim_len TSRMLS_DC); /* CAREFUL! this is equivalent to puts NOT fputs! */ PHPAPI int _php_stream_puts(php_stream *stream, char *buf TSRMLS_DC); #define php_stream_puts(stream, buf) _php_stream_puts((stream), (buf) TSRMLS_CC) PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC); #define php_stream_stat(stream, ssb) _php_stream_stat((stream), (ssb) TSRMLS_CC) PHPAPI int _php_stream_stat_path(char *path, int flags, php_stream_statbuf *ssb, php_stream_context *context TSRMLS_DC); #define php_stream_stat_path(path, ssb) _php_stream_stat_path((path), 0, (ssb), NULL TSRMLS_CC) #define php_stream_stat_path_ex(path, flags, ssb, context) _php_stream_stat_path((path), (flags), (ssb), (context) TSRMLS_CC) PHPAPI int _php_stream_mkdir(char *path, int mode, int options, php_stream_context *context TSRMLS_DC); #define php_stream_mkdir(path, mode, options, context) _php_stream_mkdir(path, mode, options, context TSRMLS_CC) PHPAPI int _php_stream_rmdir(char *path, int options, php_stream_context *context TSRMLS_DC); #define php_stream_rmdir(path, options, context) _php_stream_rmdir(path, options, context TSRMLS_CC) PHPAPI php_stream *_php_stream_opendir(char *path, int options, php_stream_context *context STREAMS_DC TSRMLS_DC); #define php_stream_opendir(path, options, context) _php_stream_opendir((path), (options), (context) STREAMS_CC TSRMLS_CC) PHPAPI php_stream_dirent *_php_stream_readdir(php_stream *dirstream, php_stream_dirent *ent TSRMLS_DC); #define php_stream_readdir(dirstream, dirent) _php_stream_readdir((dirstream), (dirent) TSRMLS_CC) #define php_stream_closedir(dirstream) php_stream_close((dirstream)) #define php_stream_rewinddir(dirstream) php_stream_rewind((dirstream)) PHPAPI int php_stream_dirent_alphasort(const char **a, const char **b); PHPAPI int php_stream_dirent_alphasortr(const char **a, const char **b); PHPAPI int _php_stream_scandir(char *dirname, char **namelist[], int flags, php_stream_context *context, int (*compare) (const char **a, const char **b) TSRMLS_DC); #define php_stream_scandir(dirname, namelist, context, compare) _php_stream_scandir((dirname), (namelist), 0, (context), (compare) TSRMLS_CC) PHPAPI int _php_stream_set_option(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC); #define php_stream_set_option(stream, option, value, ptrvalue) _php_stream_set_option((stream), (option), (value), (ptrvalue) TSRMLS_CC) #define php_stream_set_chunk_size(stream, size) _php_stream_set_option((stream), PHP_STREAM_OPTION_SET_CHUNK_SIZE, (size), NULL TSRMLS_CC) END_EXTERN_C() /* Flags for mkdir method in wrapper ops */ #define PHP_STREAM_MKDIR_RECURSIVE 1 /* define REPORT ERRORS 8 (below) */ /* Flags for rmdir method in wrapper ops */ /* define REPORT_ERRORS 8 (below) */ /* Flags for url_stat method in wrapper ops */ #define PHP_STREAM_URL_STAT_LINK 1 #define PHP_STREAM_URL_STAT_QUIET 2 /* change the blocking mode of stream: value == 1 => blocking, value == 0 => non-blocking. */ #define PHP_STREAM_OPTION_BLOCKING 1 /* change the buffering mode of stream. value is a PHP_STREAM_BUFFER_XXXX value, ptrparam is a ptr to a size_t holding * the required buffer size */ #define PHP_STREAM_OPTION_READ_BUFFER 2 #define PHP_STREAM_OPTION_WRITE_BUFFER 3 #define PHP_STREAM_BUFFER_NONE 0 /* unbuffered */ #define PHP_STREAM_BUFFER_LINE 1 /* line buffered */ #define PHP_STREAM_BUFFER_FULL 2 /* fully buffered */ /* set the timeout duration for reads on the stream. ptrparam is a pointer to a struct timeval * */ #define PHP_STREAM_OPTION_READ_TIMEOUT 4 #define PHP_STREAM_OPTION_SET_CHUNK_SIZE 5 /* set or release lock on a stream */ #define PHP_STREAM_OPTION_LOCKING 6 /* whether or not locking is supported */ #define PHP_STREAM_LOCK_SUPPORTED 1 #define php_stream_supports_lock(stream) _php_stream_set_option((stream), PHP_STREAM_OPTION_LOCKING, 0, (void *) PHP_STREAM_LOCK_SUPPORTED TSRMLS_CC) == 0 ? 1 : 0 #define php_stream_lock(stream, mode) _php_stream_set_option((stream), PHP_STREAM_OPTION_LOCKING, (mode), (void *) NULL TSRMLS_CC) /* option code used by the php_stream_xport_XXX api */ #define PHP_STREAM_OPTION_XPORT_API 7 /* see php_stream_transport.h */ #define PHP_STREAM_OPTION_CRYPTO_API 8 /* see php_stream_transport.h */ #define PHP_STREAM_OPTION_MMAP_API 9 /* see php_stream_mmap.h */ #define PHP_STREAM_OPTION_TRUNCATE_API 10 #define PHP_STREAM_TRUNCATE_SUPPORTED 0 #define PHP_STREAM_TRUNCATE_SET_SIZE 1 /* ptrparam is a pointer to a size_t */ #define php_stream_truncate_supported(stream) (_php_stream_set_option((stream), PHP_STREAM_OPTION_TRUNCATE_API, PHP_STREAM_TRUNCATE_SUPPORTED, NULL TSRMLS_CC) == PHP_STREAM_OPTION_RETURN_OK ? 1 : 0) BEGIN_EXTERN_C() PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize TSRMLS_DC); #define php_stream_truncate_set_size(stream, size) _php_stream_truncate_set_size((stream), (size) TSRMLS_CC) END_EXTERN_C() #define PHP_STREAM_OPTION_META_DATA_API 11 /* ptrparam is a zval* to which to add meta data information */ #define php_stream_populate_meta_data(stream, zv) (_php_stream_set_option((stream), PHP_STREAM_OPTION_META_DATA_API, 0, zv TSRMLS_CC) == PHP_STREAM_OPTION_RETURN_OK ? 1 : 0) /* Check if the stream is still "live"; for sockets/pipes this means the socket * is still connected; for files, this does not really have meaning */ #define PHP_STREAM_OPTION_CHECK_LIVENESS 12 /* no parameters */ #define PHP_STREAM_OPTION_RETURN_OK 0 /* option set OK */ #define PHP_STREAM_OPTION_RETURN_ERR -1 /* problem setting option */ #define PHP_STREAM_OPTION_RETURN_NOTIMPL -2 /* underlying stream does not implement; streams can handle it instead */ /* copy up to maxlen bytes from src to dest. If maxlen is PHP_STREAM_COPY_ALL, copy until eof(src). * Uses mmap if the src is a plain file and at offset 0 */ #define PHP_STREAM_COPY_ALL ((size_t)-1) BEGIN_EXTERN_C() PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen STREAMS_DC TSRMLS_DC); #define php_stream_copy_to_stream(src, dest, maxlen) _php_stream_copy_to_stream((src), (dest), (maxlen) STREAMS_CC TSRMLS_CC) PHPAPI size_t _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, size_t maxlen, size_t *len STREAMS_DC TSRMLS_DC); #define php_stream_copy_to_stream_ex(src, dest, maxlen, len) _php_stream_copy_to_stream_ex((src), (dest), (maxlen), (len) STREAMS_CC TSRMLS_CC) /* read all data from stream and put into a buffer. Caller must free buffer when done. * The copy will use mmap if available. */ PHPAPI size_t _php_stream_copy_to_mem(php_stream *src, char **buf, size_t maxlen, int persistent STREAMS_DC TSRMLS_DC); #define php_stream_copy_to_mem(src, buf, maxlen, persistent) _php_stream_copy_to_mem((src), (buf), (maxlen), (persistent) STREAMS_CC TSRMLS_CC) /* output all data from a stream */ PHPAPI size_t _php_stream_passthru(php_stream * src STREAMS_DC TSRMLS_DC); #define php_stream_passthru(stream) _php_stream_passthru((stream) STREAMS_CC TSRMLS_CC) END_EXTERN_C() #include "streams/php_stream_transport.h" #include "streams/php_stream_plain_wrapper.h" #include "streams/php_stream_userspace.h" #include "streams/php_stream_mmap.h" /* coerce the stream into some other form */ /* cast as a stdio FILE * */ #define PHP_STREAM_AS_STDIO 0 /* cast as a POSIX fd or socketd */ #define PHP_STREAM_AS_FD 1 /* cast as a socketd */ #define PHP_STREAM_AS_SOCKETD 2 /* cast as fd/socket for select purposes */ #define PHP_STREAM_AS_FD_FOR_SELECT 3 /* try really, really hard to make sure the cast happens (avoid using this flag if possible) */ #define PHP_STREAM_CAST_TRY_HARD 0x80000000 #define PHP_STREAM_CAST_RELEASE 0x40000000 /* stream becomes invalid on success */ #define PHP_STREAM_CAST_INTERNAL 0x20000000 /* stream cast for internal use */ #define PHP_STREAM_CAST_MASK (PHP_STREAM_CAST_TRY_HARD | PHP_STREAM_CAST_RELEASE | PHP_STREAM_CAST_INTERNAL) BEGIN_EXTERN_C() PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show_err TSRMLS_DC); END_EXTERN_C() /* use this to check if a stream can be cast into another form */ #define php_stream_can_cast(stream, as) _php_stream_cast((stream), (as), NULL, 0 TSRMLS_CC) #define php_stream_cast(stream, as, ret, show_err) _php_stream_cast((stream), (as), (ret), (show_err) TSRMLS_CC) /* use this to check if a stream is of a particular type: * PHPAPI int php_stream_is(php_stream *stream, php_stream_ops *ops); */ #define php_stream_is(stream, anops) ((stream)->ops == anops) #define PHP_STREAM_IS_STDIO &php_stream_stdio_ops #define php_stream_is_persistent(stream) (stream)->is_persistent /* Wrappers support */ #define IGNORE_PATH 0 #define USE_PATH 1 #define IGNORE_URL 2 #define ENFORCE_SAFE_MODE 4 #define REPORT_ERRORS 8 /* If you don't need to write to the stream, but really need to * be able to seek, use this flag in your options. */ #define STREAM_MUST_SEEK 16 /* If you are going to end up casting the stream into a FILE* or * a socket, pass this flag and the streams/wrappers will not use * buffering mechanisms while reading the headers, so that HTTP * wrapped streams will work consistently. * If you omit this flag, streams will use buffering and should end * up working more optimally. * */ #define STREAM_WILL_CAST 32 /* this flag applies to php_stream_locate_url_wrapper */ #define STREAM_LOCATE_WRAPPERS_ONLY 64 /* this flag is only used by include/require functions */ #define STREAM_OPEN_FOR_INCLUDE 128 /* this flag tells streams to ONLY open urls */ #define STREAM_USE_URL 256 /* this flag is used when only the headers from HTTP request are to be fetched */ #define STREAM_ONLY_GET_HEADERS 512 /* don't apply open_basedir checks */ #define STREAM_DISABLE_OPEN_BASEDIR 1024 /* get (or create) a persistent version of the stream */ #define STREAM_OPEN_PERSISTENT 2048 /* don't check allow_url_fopen and allow_url_include */ #define STREAM_DISABLE_URL_PROTECTION 0x00002000 /* Antique - no longer has meaning */ #define IGNORE_URL_WIN 0 int php_init_stream_wrappers(int module_number TSRMLS_DC); int php_shutdown_stream_wrappers(int module_number TSRMLS_DC); void php_shutdown_stream_hashes(TSRMLS_D); PHP_RSHUTDOWN_FUNCTION(streams); BEGIN_EXTERN_C() PHPAPI int php_register_url_stream_wrapper(char *protocol, php_stream_wrapper *wrapper TSRMLS_DC); PHPAPI int php_unregister_url_stream_wrapper(char *protocol TSRMLS_DC); PHPAPI int php_register_url_stream_wrapper_volatile(char *protocol, php_stream_wrapper *wrapper TSRMLS_DC); PHPAPI int php_unregister_url_stream_wrapper_volatile(char *protocol TSRMLS_DC); PHPAPI php_stream *_php_stream_open_wrapper_ex(char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, char **path_for_open, int options TSRMLS_DC); PHPAPI char *php_stream_locate_eol(php_stream *stream, char *buf, size_t buf_len TSRMLS_DC); #define php_stream_open_wrapper(path, mode, options, opened) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), NULL STREAMS_CC TSRMLS_CC) #define php_stream_open_wrapper_ex(path, mode, options, opened, context) _php_stream_open_wrapper_ex((path), (mode), (options), (opened), (context) STREAMS_CC TSRMLS_CC) #define php_stream_get_from_zval(stream, zstream, mode, options, opened, context) \ if (Z_TYPE_PP((zstream)) == IS_RESOURCE) { \ php_stream_from_zval((stream), (zstream)); \ } else (stream) = Z_TYPE_PP((zstream)) == IS_STRING ? \ php_stream_open_wrapper_ex(Z_STRVAL_PP((zstream)), (mode), (options), (opened), (context)) : NULL /* pushes an error message onto the stack for a wrapper instance */ PHPAPI void php_stream_wrapper_log_error(php_stream_wrapper *wrapper, int options TSRMLS_DC, const char *fmt, ...); #define PHP_STREAM_UNCHANGED 0 /* orig stream was seekable anyway */ #define PHP_STREAM_RELEASED 1 /* newstream should be used; origstream is no longer valid */ #define PHP_STREAM_FAILED 2 /* an error occurred while attempting conversion */ #define PHP_STREAM_CRITICAL 3 /* an error occurred; origstream is in an unknown state; you should close origstream */ #define PHP_STREAM_NO_PREFERENCE 0 #define PHP_STREAM_PREFER_STDIO 1 #define PHP_STREAM_FORCE_CONVERSION 2 /* DO NOT call this on streams that are referenced by resources! */ PHPAPI int _php_stream_make_seekable(php_stream *origstream, php_stream **newstream, int flags STREAMS_DC TSRMLS_DC); #define php_stream_make_seekable(origstream, newstream, flags) _php_stream_make_seekable((origstream), (newstream), (flags) STREAMS_CC TSRMLS_CC) /* Give other modules access to the url_stream_wrappers_hash and stream_filters_hash */ PHPAPI HashTable *_php_stream_get_url_stream_wrappers_hash(TSRMLS_D); #define php_stream_get_url_stream_wrappers_hash() _php_stream_get_url_stream_wrappers_hash(TSRMLS_C) PHPAPI HashTable *php_stream_get_url_stream_wrappers_hash_global(void); PHPAPI HashTable *_php_get_stream_filters_hash(TSRMLS_D); #define php_get_stream_filters_hash() _php_get_stream_filters_hash(TSRMLS_C) PHPAPI HashTable *php_get_stream_filters_hash_global(void); END_EXTERN_C() #endif /* Definitions for user streams */ #define PHP_STREAM_IS_URL 1 /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: * vim600: sw=4 ts=4 fdm=marker * vim<600: sw=4 ts=4 */ php_output.h 0000644 00000011236 15217713750 0007137 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Zeev Suraski
| +----------------------------------------------------------------------+ */ /* $Id: php_output.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_OUTPUT_H #define PHP_OUTPUT_H typedef void (*php_output_handler_func_t)(char *output, uint output_len, char **handled_output, uint *handled_output_len, int mode TSRMLS_DC); BEGIN_EXTERN_C() PHPAPI void php_output_startup(void); PHPAPI void php_output_activate(TSRMLS_D); PHPAPI void php_output_set_status(zend_bool status TSRMLS_DC); PHPAPI void php_output_register_constants(TSRMLS_D); PHPAPI int php_default_output_func(const char *str, uint str_len TSRMLS_DC); PHPAPI int php_ub_body_write(const char *str, uint str_length TSRMLS_DC); PHPAPI int php_ub_body_write_no_header(const char *str, uint str_length TSRMLS_DC); PHPAPI int php_body_write(const char *str, uint str_length TSRMLS_DC); PHPAPI int php_header_write(const char *str, uint str_length TSRMLS_DC); PHPAPI int php_start_ob_buffer(zval *output_handler, uint chunk_size, zend_bool erase TSRMLS_DC); PHPAPI int php_start_ob_buffer_named(const char *output_handler_name, uint chunk_size, zend_bool erase TSRMLS_DC); PHPAPI void php_end_ob_buffer(zend_bool send_buffer, zend_bool just_flush TSRMLS_DC); PHPAPI void php_end_ob_buffers(zend_bool send_buffer TSRMLS_DC); PHPAPI int php_ob_get_buffer(zval *p TSRMLS_DC); PHPAPI int php_ob_get_length(zval *p TSRMLS_DC); PHPAPI void php_start_implicit_flush(TSRMLS_D); PHPAPI void php_end_implicit_flush(TSRMLS_D); PHPAPI char *php_get_output_start_filename(TSRMLS_D); PHPAPI int php_get_output_start_lineno(TSRMLS_D); PHPAPI void php_ob_set_internal_handler(php_output_handler_func_t internal_output_handler, uint buffer_size, char *handler_name, zend_bool erase TSRMLS_DC); PHPAPI int php_ob_handler_used(char *handler_name TSRMLS_DC); PHPAPI int php_ob_init_conflict(char *handler_new, char *handler_set TSRMLS_DC); PHPAPI int php_ob_get_buffer(zval *p TSRMLS_DC); PHPAPI int php_ob_get_length(zval *p TSRMLS_DC); END_EXTERN_C() PHP_FUNCTION(ob_start); PHP_FUNCTION(ob_flush); PHP_FUNCTION(ob_clean); PHP_FUNCTION(ob_end_flush); PHP_FUNCTION(ob_end_clean); PHP_FUNCTION(ob_get_flush); PHP_FUNCTION(ob_get_clean); PHP_FUNCTION(ob_get_contents); PHP_FUNCTION(ob_get_length); PHP_FUNCTION(ob_get_level); PHP_FUNCTION(ob_get_status); PHP_FUNCTION(ob_implicit_flush); PHP_FUNCTION(ob_list_handlers); typedef struct _php_ob_buffer { char *buffer; uint size; uint text_length; int block_size; uint chunk_size; int status; zval *output_handler; php_output_handler_func_t internal_output_handler; char *internal_output_handler_buffer; uint internal_output_handler_buffer_size; char *handler_name; zend_bool erase; } php_ob_buffer; typedef struct _php_output_globals { int (*php_body_write)(const char *str, uint str_length TSRMLS_DC); /* string output */ int (*php_header_write)(const char *str, uint str_length TSRMLS_DC); /* unbuffer string output */ php_ob_buffer active_ob_buffer; unsigned char implicit_flush; char *output_start_filename; int output_start_lineno; zend_stack ob_buffers; int ob_nesting_level; zend_bool ob_lock; zend_bool disable_output; } php_output_globals; #ifdef ZTS #define OG(v) TSRMG(output_globals_id, php_output_globals *, v) ZEND_API extern int output_globals_id; #else #define OG(v) (output_globals.v) ZEND_API extern php_output_globals output_globals; #endif #define PHP_OUTPUT_HANDLER_START (1<<0) #define PHP_OUTPUT_HANDLER_CONT (1<<1) #define PHP_OUTPUT_HANDLER_END (1<<2) #define PHP_OUTPUT_HANDLER_INTERNAL 0 #define PHP_OUTPUT_HANDLER_USER 1 PHP_FUNCTION(output_add_rewrite_var); PHP_FUNCTION(output_reset_rewrite_vars); #endif /* PHP_OUTPUT_H */ spprintf.h 0000644 00000004113 15217713750 0006571 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Marcus Boerger
| +----------------------------------------------------------------------+ */ /* $Id: spprintf.h 293036 2010-01-03 09:23:27Z sebastian $ */ /* The pbuf parameter of all spprintf version receives a pointer to the allocated buffer. This buffer must be freed manually after usage using efree() function. The buffer will allways be terminated by a zero character. When pbuf is NULL the function can be used to calculate the required size of the buffer but for that purpose snprintf is faster. When both pbuf and the return value are 0 than you are out of memory. There is also snprintf: See difference explained in snprintf.h */ #ifndef SPPRINTF_H #define SPPRINTF_H #include "snprintf.h" BEGIN_EXTERN_C() PHPAPI int spprintf( char **pbuf, size_t max_len, const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 3, 4); PHPAPI int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap) PHP_ATTRIBUTE_FORMAT(printf, 3, 0); END_EXTERN_C() #endif /* SNPRINTF_H */ /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: */ safe_mode.h 0000644 00000003436 15217713750 0006655 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: safe_mode.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef SAFE_MODE_H #define SAFE_MODE_H /* mode's for php_checkuid() */ #define CHECKUID_DISALLOW_FILE_NOT_EXISTS 0 #define CHECKUID_ALLOW_FILE_NOT_EXISTS 1 #define CHECKUID_CHECK_FILE_AND_DIR 2 #define CHECKUID_ALLOW_ONLY_DIR 3 #define CHECKUID_CHECK_MODE_PARAM 4 #define CHECKUID_ALLOW_ONLY_FILE 5 /* flags for php_checkuid_ex() */ #define CHECKUID_NO_ERRORS 0x01 BEGIN_EXTERN_C() PHPAPI int php_checkuid(const char *filename, const char *fopen_mode, int mode); PHPAPI int php_checkuid_ex(const char *filename, const char *fopen_mode, int mode, int flags); PHPAPI char *php_get_current_user(void); END_EXTERN_C() #endif fopen_wrappers.h 0000644 00000004173 15217713750 0007764 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Jim Winstead
| +----------------------------------------------------------------------+ */ /* $Id: fopen_wrappers.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef FOPEN_WRAPPERS_H #define FOPEN_WRAPPERS_H BEGIN_EXTERN_C() #include "php_globals.h" PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC); PHPAPI char *expand_filepath(const char *filepath, char *real_path TSRMLS_DC); PHPAPI char *expand_filepath_ex(const char *filepath, char *real_path, const char *relative_to, size_t relative_to_len TSRMLS_DC); PHPAPI int php_check_open_basedir(const char *path TSRMLS_DC); PHPAPI int php_check_open_basedir_ex(const char *path, int warn TSRMLS_DC); PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path TSRMLS_DC); PHPAPI int php_check_safe_mode_include_dir(const char *path TSRMLS_DC); PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path TSRMLS_DC); PHPAPI char *php_strip_url_passwd(char *path); END_EXTERN_C() #endif /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: */ php_syslog.h 0000644 00000003133 15217713750 0007114 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: php_syslog.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP_SYSLOG_H #define PHP_SYSLOG_H #ifdef PHP_WIN32 #include "win32/syslog.h" #else #include
#ifdef HAVE_SYSLOG_H #include
#endif #endif /* * The SCO OpenServer 5 Development System (not the UDK) * defines syslog to std_syslog. */ #ifdef syslog #ifdef HAVE_STD_SYSLOG #define php_syslog std_syslog #endif #undef syslog #endif #ifndef php_syslog #define php_syslog syslog #endif #endif logos.h 0000644 00000062032 15217713750 0006053 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: logos.h 293036 2010-01-03 09:23:27Z sebastian $ */ #define CONTEXT_TYPE_IMAGE_GIF "Content-Type: image/gif" static const unsigned char zend_logo[] = { 71, 73, 70, 56, 57, 97, 113, 0, 72, 0, 213, 0, 0, 13, 13, 14, 1, 3, 6, 2, 5, 9, 46, 68, 94, 21, 29, 39, 5, 15, 26, 4, 10, 17, 29, 43, 58, 0, 1, 2, 9, 25, 42, 38, 105, 171, 24, 67, 109, 13, 36, 59, 10, 27, 45, 9, 25, 41, 35, 96, 157, 32, 87, 142, 29, 79, 130, 26, 70, 114, 20, 54, 87, 29, 77, 124, 10, 26, 42, 34, 88, 141, 10, 24, 38, 11, 26, 41, 1, 2, 3, 55, 80, 105, 45, 63, 81, 49, 53, 57, 5, 15, 24, 9, 26, 42, 30, 85, 138, 33, 92, 149, 26, 73, 117, 10, 28, 45, 32, 89, 142, 30, 84, 134, 26, 72, 115, 15, 42, 67, 23, 62, 99, 12, 32, 51, 7, 21, 33, 9, 26, 41, 8, 23, 35, 7, 25, 37, 51, 58, 63, 2, 4, 5, 25, 26, 26, 49, 50, 50, 255, 102, 0, 255, 255, 255, 204, 204, 204, 199, 199, 199, 191, 191, 191, 171, 171, 171, 146, 146, 146, 115, 115, 115, 85, 85, 85, 60, 60, 60, 55, 55, 55, 38, 38, 38, 7, 7, 7, 3, 3, 3, 0, 0, 0, 44, 0, 0, 0, 0, 113, 0, 72, 0, 0, 6, 255, 192, 153, 112, 72, 44, 26, 143, 200, 164, 114, 121, 252, 49, 159, 208, 168, 148, 248, 171, 58, 167, 210, 171, 208, 170, 197, 122, 191, 70, 109, 23, 140, 236, 138, 201, 232, 239, 121, 102, 221, 186, 217, 219, 171, 83, 46, 110, 15, 207, 235, 180, 190, 124, 135, 187, 229, 127, 127, 128, 112, 121, 108, 118, 132, 123, 137, 77, 118, 120, 136, 115, 109, 117, 85, 126, 147, 147, 128, 99, 138, 137, 99, 107, 146, 146, 148, 133, 159, 125, 136, 152, 163, 151, 135, 121, 144, 84, 157, 92, 169, 157, 111, 163, 175, 176, 83, 151, 177, 180, 181, 161, 182, 184, 185, 186, 187, 188, 189, 67, 54, 56, 58, 56, 53, 190, 197, 88, 55, 57, 60, 63, 2, 43, 2, 56, 198, 208, 74, 192, 58, 0, 63, 5, 12, 11, 35, 35, 12, 47, 209, 222, 67, 53, 201, 203, 34, 19, 20, 218, 231, 37, 63, 54, 223, 222, 60, 2, 216, 231, 241, 231, 206, 76, 193, 55, 236, 176, 63, 39, 242, 252, 35, 40, 58, 75, 114, 8, 40, 240, 227, 25, 62, 76, 60, 24, 244, 147, 55, 161, 202, 11, 24, 57, 134, 17, 201, 241, 99, 130, 191, 130, 7, 21, 225, 48, 176, 48, 30, 137, 5, 11, 38, 48, 88, 81, 5, 198, 51, 138, 22, 181, 53, 52, 152, 49, 141, 141, 31, 230, 58, 46, 60, 129, 194, 74, 202, 115, 43, 91, 234, 1, 112, 83, 102, 63, 255, 18, 38, 122, 226, 252, 145, 67, 39, 153, 26, 47, 68, 248, 92, 186, 176, 97, 81, 163, 88, 108, 188, 48, 80, 130, 169, 85, 134, 68, 161, 74, 177, 1, 160, 0, 137, 171, 96, 135, 62, 213, 186, 132, 171, 215, 176, 104, 71, 52, 188, 71, 54, 9, 210, 179, 105, 195, 166, 99, 219, 214, 198, 58, 34, 48, 12, 124, 213, 38, 163, 175, 223, 191, 50, 22, 132, 216, 139, 182, 132, 0, 30, 196, 250, 218, 37, 70, 198, 198, 141, 199, 144, 31, 223, 253, 114, 163, 10, 0, 97, 192, 126, 100, 59, 7, 24, 176, 10, 20, 229, 210, 146, 48, 128, 88, 72, 223, 28, 57, 38, 111, 197, 17, 163, 181, 235, 215, 58, 116, 68, 100, 60, 5, 134, 136, 18, 19, 80, 24, 168, 162, 48, 94, 95, 21, 6, 82, 168, 80, 209, 215, 128, 1, 20, 39, 8, 95, 37, 81, 160, 180, 105, 25, 177, 233, 62, 1, 246, 186, 186, 245, 24, 209, 177, 84, 140, 71, 97, 130, 114, 109, 33, 76, 48, 152, 176, 192, 111, 135, 20, 222, 211, 54, 167, 61, 163, 111, 246, 39, 55, 174, 203, 175, 254, 30, 74, 229, 152, 62, 73, 132, 24, 60, 162, 47, 131, 14, 12, 132, 224, 155, 95, 130, 145, 208, 89, 129, 40, 116, 211, 25, 12, 58, 72, 135, 68, 124, 214, 197, 38, 161, 14, 243, 73, 200, 222, 18, 27, 161, 213, 215, 4, 159, 37, 199, 255, 25, 96, 12, 116, 230, 223, 9, 11, 252, 32, 226, 11, 13, 74, 35, 223, 132, 19, 174, 24, 27, 75, 76, 192, 128, 66, 88, 126, 161, 160, 66, 122, 124, 201, 112, 2, 3, 195, 125, 54, 65, 95, 29, 4, 87, 227, 9, 126, 233, 192, 3, 12, 125, 161, 232, 160, 93, 207, 184, 200, 98, 139, 17, 74, 24, 197, 118, 96, 249, 7, 160, 128, 31, 242, 72, 30, 72, 33, 244, 149, 2, 122, 229, 201, 0, 224, 105, 60, 52, 216, 23, 131, 14, 226, 96, 194, 1, 78, 74, 152, 195, 13, 196, 208, 192, 90, 148, 177, 217, 7, 83, 149, 50, 112, 136, 220, 94, 34, 22, 216, 159, 12, 195, 101, 227, 37, 113, 50, 192, 0, 3, 156, 238, 165, 72, 196, 11, 21, 178, 184, 228, 117, 19, 66, 145, 225, 85, 53, 222, 72, 152, 136, 42, 152, 32, 224, 111, 42, 8, 10, 40, 161, 101, 222, 96, 67, 95, 61, 40, 58, 3, 13, 55, 24, 112, 221, 101, 19, 226, 64, 131, 17, 54, 64, 42, 229, 19, 50, 226, 249, 95, 128, 127, 238, 23, 166, 113, 194, 105, 250, 103, 160, 191, 18, 90, 232, 13, 59, 0, 249, 130, 168, 56, 160, 198, 195, 10, 214, 161, 144, 1, 131, 245, 21, 1, 33, 125, 177, 141, 181, 4, 149, 76, 137, 232, 23, 3, 38, 132, 9, 216, 9, 93, 126, 234, 105, 160, 34, 94, 208, 129, 14, 7, 152, 112, 255, 2, 4, 40, 84, 80, 157, 8, 30, 176, 154, 195, 133, 68, 200, 250, 34, 124, 119, 102, 171, 109, 113, 157, 142, 16, 238, 111, 160, 113, 58, 110, 167, 38, 252, 213, 192, 193, 12, 72, 32, 193, 3, 15, 128, 192, 128, 7, 175, 121, 32, 66, 7, 101, 230, 240, 42, 18, 53, 216, 171, 131, 106, 73, 224, 32, 0, 88, 221, 217, 216, 227, 200, 190, 234, 39, 210, 112, 12, 36, 23, 158, 175, 254, 154, 160, 105, 9, 5, 236, 88, 129, 7, 41, 83, 240, 65, 195, 32, 56, 236, 128, 107, 14, 36, 208, 64, 10, 24, 41, 161, 177, 181, 74, 84, 182, 194, 4, 85, 45, 181, 239, 134, 11, 236, 165, 31, 151, 95, 233, 199, 223, 8, 82, 27, 40, 3, 9, 39, 144, 56, 24, 4, 92, 119, 61, 129, 3, 96, 135, 221, 128, 8, 12, 0, 64, 239, 47, 26, 59, 88, 52, 53, 227, 132, 182, 208, 210, 128, 178, 76, 163, 12, 46, 135, 208, 245, 221, 92, 3, 21, 54, 216, 9, 152, 208, 48, 64, 72, 12, 237, 197, 52, 0, 152, 208, 209, 111, 193, 141, 204, 239, 102, 104, 45, 96, 128, 9, 20, 224, 45, 249, 215, 97, 51, 240, 1, 8, 10, 152, 80, 20, 14, 56, 208, 213, 38, 199, 181, 245, 214, 207, 111, 96, 130, 4, 146, 72, 114, 135, 69, 194, 10, 38, 64, 0, 130, 228, 120, 71, 240, 181, 8, 145, 67, 240, 255, 128, 2, 44, 164, 0, 26, 2, 66, 180, 9, 163, 23, 56, 20, 112, 184, 184, 242, 232, 119, 224, 212, 127, 18, 56, 152, 95, 14, 252, 8, 88, 129, 120, 255, 37, 216, 205, 17, 68, 160, 192, 3, 24, 212, 64, 131, 198, 58, 92, 12, 70, 101, 223, 125, 8, 172, 60, 218, 166, 252, 149, 136, 41, 251, 21, 64, 249, 201, 117, 221, 89, 202, 151, 131, 112, 251, 9, 211, 194, 54, 161, 218, 88, 212, 128, 237, 128, 207, 35, 15, 164, 144, 125, 65, 78, 141, 206, 3, 164, 0, 245, 69, 0, 34, 248, 95, 10, 134, 68, 2, 8, 244, 101, 71, 97, 3, 77, 237, 70, 240, 0, 18, 248, 110, 15, 58, 80, 10, 63, 48, 37, 55, 47, 129, 169, 128, 86, 10, 152, 12, 132, 19, 166, 2, 36, 112, 132, 31, 20, 83, 128, 28, 40, 3, 6, 52, 207, 116, 91, 227, 218, 3, 218, 68, 52, 50, 224, 32, 95, 228, 147, 1, 175, 134, 211, 65, 226, 13, 138, 116, 222, 249, 77, 1, 10, 38, 3, 7, 52, 160, 47, 96, 91, 0, 11, 83, 224, 128, 62, 197, 176, 107, 32, 224, 222, 217, 192, 240, 130, 25, 109, 16, 133, 91, 242, 159, 15, 63, 37, 176, 63, 25, 64, 0, 68, 108, 128, 7, 144, 232, 0, 37, 146, 81, 68, 14, 208, 20, 20, 163, 72, 167, 216, 128, 14, 85, 201, 66, 205, 155, 110, 224, 61, 37, 220, 255, 16, 63, 226, 235, 215, 135, 194, 5, 44, 78, 249, 5, 61, 86, 251, 65, 5, 36, 208, 23, 15, 52, 177, 136, 101, 100, 97, 18, 195, 197, 171, 52, 218, 205, 117, 51, 108, 163, 169, 132, 16, 171, 54, 118, 174, 142, 69, 48, 75, 248, 224, 22, 162, 45, 146, 171, 51, 8, 160, 221, 25, 17, 105, 70, 82, 90, 237, 91, 131, 137, 164, 37, 137, 80, 73, 238, 221, 11, 86, 93, 9, 95, 242, 180, 101, 128, 46, 10, 236, 148, 126, 177, 6, 5, 70, 153, 68, 69, 38, 18, 2, 255, 42, 34, 104, 34, 160, 74, 106, 9, 99, 8, 245, 51, 230, 147, 126, 55, 131, 26, 196, 178, 35, 225, 25, 153, 52, 131, 82, 55, 240, 84, 19, 107, 60, 234, 11, 0, 12, 16, 1, 16, 148, 160, 110, 43, 123, 100, 56, 243, 22, 2, 145, 128, 45, 101, 16, 152, 15, 118, 44, 54, 131, 100, 218, 239, 73, 111, 58, 66, 13, 120, 0, 151, 133, 60, 205, 116, 248, 20, 12, 5, 246, 227, 52, 126, 106, 195, 120, 50, 56, 146, 1, 46, 247, 1, 126, 86, 141, 156, 79, 132, 192, 61, 67, 240, 1, 117, 182, 6, 85, 141, 90, 38, 232, 134, 176, 17, 89, 198, 165, 35, 134, 17, 70, 14, 92, 32, 63, 134, 141, 224, 117, 176, 11, 105, 215, 44, 232, 208, 136, 178, 72, 34, 118, 212, 203, 69, 173, 226, 148, 26, 216, 133, 7, 255, 39, 80, 192, 4, 102, 42, 191, 17, 136, 52, 164, 37, 109, 211, 253, 48, 137, 49, 122, 90, 116, 165, 255, 100, 64, 86, 40, 74, 128, 22, 0, 224, 6, 48, 152, 128, 2, 64, 122, 211, 187, 229, 84, 153, 142, 226, 169, 18, 230, 41, 128, 164, 1, 149, 31, 37, 98, 166, 93, 134, 192, 129, 133, 49, 181, 169, 36, 125, 234, 147, 36, 68, 71, 47, 80, 213, 170, 252, 32, 79, 92, 232, 177, 4, 14, 80, 32, 103, 77, 229, 218, 83, 177, 51, 214, 6, 73, 53, 10, 103, 237, 71, 67, 126, 96, 0, 164, 133, 69, 4, 128, 147, 134, 15, 72, 240, 85, 174, 229, 236, 176, 175, 203, 105, 93, 223, 116, 215, 41, 228, 53, 30, 43, 177, 65, 14, 94, 80, 133, 21, 160, 64, 93, 75, 153, 0, 0, 158, 224, 130, 19, 60, 224, 110, 57, 99, 216, 237, 74, 0, 130, 8, 120, 192, 3, 99, 243, 192, 97, 234, 58, 161, 120, 42, 226, 177, 106, 9, 26, 37, 57, 167, 131, 23, 8, 207, 39, 20, 248, 1, 254, 136, 80, 3, 20, 44, 21, 180, 32, 32, 79, 4, 80, 16, 128, 11, 64, 64, 4, 34, 80, 65, 7, 94, 80, 38, 214, 202, 102, 183, 105, 168, 1, 12, 170, 26, 219, 26, 34, 19, 135, 29, 41, 128, 117, 137, 128, 3, 9, 252, 214, 176, 15, 24, 64, 15, 56, 247, 12, 24, 168, 75, 4, 6, 0, 135, 192, 14, 156, 139, 82, 90, 8, 164, 38, 219, 29, 2, 79, 150, 194, 0, 24, 44, 97, 7, 22, 184, 29, 195, 58, 106, 223, 58, 230, 160, 156, 68, 89, 108, 89, 115, 145, 3, 147, 48, 33, 131, 50, 89, 0, 3, 4, 16, 95, 33, 220, 224, 5, 26, 64, 193, 91, 111, 167, 57, 35, 132, 35, 53, 148, 116, 12, 100, 166, 248, 13, 143, 241, 163, 59, 34, 16, 192, 15, 120, 208, 222, 36, 208, 192, 49, 63, 216, 192, 9, 36, 192, 128, 137, 114, 152, 44, 47, 217, 140, 130, 9, 114, 25, 28, 76, 148, 9, 162, 2, 128, 141, 219, 50, 5, 122, 134, 120, 196, 174, 141, 46, 143, 167, 96, 131, 23, 221, 120, 200, 72, 214, 74, 16, 0, 0, 59 }; static const unsigned char php_logo[] = { 71, 73, 70, 56, 57, 97, 120, 0, 67, 0, 230, 106, 0, 127, 130, 184, 57, 55, 71, 40, 37, 42, 204, 205, 226, 161, 164, 203, 211, 213, 231, 178, 180, 212, 67, 66, 88, 131, 134, 185, 130, 131, 179, 82, 82, 114, 144, 146, 194, 194, 196, 222, 170, 172, 208, 76, 75, 99, 91, 92, 131, 221, 222, 236, 59, 56, 60, 110, 113, 165, 106, 109, 157, 97, 99, 141, 117, 121, 177, 123, 126, 181, 229, 230, 240, 153, 156, 198, 140, 141, 193, 185, 186, 217, 107, 107, 146, 78, 78, 107, 113, 116, 169, 122, 122, 163, 136, 139, 189, 114, 116, 163, 116, 115, 152, 142, 144, 193, 90, 91, 126, 226, 227, 239, 123, 125, 173, 164, 165, 208, 109, 112, 162, 114, 118, 172, 149, 150, 200, 187, 189, 217, 116, 120, 174, 133, 136, 187, 146, 149, 195, 216, 217, 234, 146, 146, 196, 100, 102, 146, 107, 110, 159, 165, 168, 206, 148, 150, 197, 46, 43, 47, 83, 81, 104, 179, 180, 215, 108, 106, 140, 92, 91, 118, 138, 141, 191, 102, 104, 150, 104, 106, 154, 156, 159, 200, 49, 46, 57, 174, 176, 211, 156, 156, 205, 85, 86, 120, 158, 161, 202, 150, 153, 197, 129, 130, 175, 103, 105, 151, 63, 61, 80, 188, 190, 218, 94, 96, 137, 152, 153, 200, 140, 142, 191, 137, 138, 186, 87, 88, 124, 182, 183, 215, 213, 215, 232, 34, 30, 32, 108, 111, 158, 206, 208, 228, 191, 192, 220, 119, 123, 180, 118, 120, 167, 95, 94, 125, 153, 153, 204, 110, 111, 152, 115, 119, 174, 34, 30, 31, 255, 255, 255, 144, 142, 143, 89, 86, 87, 199, 198, 199, 238, 238, 245, 213, 212, 213, 246, 246, 250, 130, 128, 129, 172, 170, 171, 116, 114, 115, 241, 240, 241, 158, 156, 157, 227, 226, 227, 75, 72, 73, 185, 184, 185, 103, 100, 101, 137, 137, 182, 0, 255, 0, 71, 70, 95, 223, 224, 237, 155, 156, 204, 105, 107, 156, 111, 115, 167, 140, 140, 186, 184, 185, 217, 184, 186, 215, 154, 155, 204, 167, 170, 207, 219, 220, 235, 154, 156, 201, 102, 100, 132, 104, 103, 137, 167, 168, 210, 110, 112, 160, 139, 139, 185, 198, 199, 224, 199, 201, 225, 105, 108, 156, 151, 152, 203, 33, 249, 4, 1, 0, 0, 106, 0, 44, 0, 0, 0, 0, 120, 0, 67, 0, 0, 7, 255, 128, 106, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 150, 109, 63, 109, 115, 152, 158, 159, 160, 63, 121, 121, 54, 62, 26, 113, 76, 26, 26, 76, 6, 62, 62, 13, 50, 4, 65, 60, 24, 66, 45, 11, 73, 34, 57, 31, 25, 57, 34, 47, 41, 160, 194, 161, 13, 26, 12, 125, 77, 5, 80, 80, 3, 125, 124, 12, 81, 81, 42, 114, 172, 175, 116, 177, 179, 66, 51, 45, 186, 31, 8, 0, 22, 22, 21, 87, 40, 37, 22, 9, 25, 193, 195, 235, 140, 38, 113, 124, 46, 108, 108, 16, 16, 117, 46, 201, 3, 212, 50, 179, 34, 31, 254, 44, 0, 17, 8, 4, 64, 176, 224, 55, 130, 225, 164, 172, 64, 241, 70, 194, 9, 63, 59, 158, 76, 25, 146, 132, 157, 69, 53, 65, 108, 12, 96, 67, 226, 130, 71, 18, 36, 242, 53, 16, 178, 64, 138, 201, 147, 40, 83, 170, 92, 121, 114, 92, 7, 9, 19, 118, 232, 128, 65, 225, 8, 5, 43, 67, 68, 92, 196, 20, 132, 9, 20, 142, 30, 47, 184, 48, 66, 167, 5, 203, 163, 72, 147, 162, 188, 242, 38, 6, 140, 35, 71, 30, 140, 88, 114, 196, 131, 206, 157, 144, 126, 104, 116, 1, 129, 35, 4, 35, 4, 88, 40, 29, 75, 54, 233, 149, 19, 58, 30, 44, 1, 162, 64, 193, 136, 41, 51, 255, 176, 46, 50, 161, 161, 64, 19, 23, 117, 10, 24, 72, 82, 182, 175, 95, 164, 29, 96, 44, 81, 192, 129, 131, 3, 60, 9, 228, 26, 202, 19, 101, 0, 148, 2, 3, 124, 228, 248, 187, 114, 1, 134, 203, 152, 49, 124, 160, 156, 244, 13, 5, 5, 14, 214, 172, 81, 224, 65, 177, 154, 60, 70, 248, 244, 25, 192, 100, 6, 231, 149, 31, 178, 112, 153, 77, 155, 75, 151, 215, 74, 221, 44, 89, 115, 224, 128, 131, 16, 59, 221, 69, 97, 192, 160, 1, 2, 220, 43, 49, 112, 193, 194, 188, 185, 153, 219, 200, 147, 118, 216, 93, 164, 200, 154, 210, 195, 126, 248, 144, 99, 68, 5, 15, 11, 209, 87, 170, 32, 211, 188, 185, 152, 2, 225, 149, 94, 121, 112, 32, 64, 0, 14, 112, 64, 153, 48, 192, 68, 14, 1, 0, 233, 87, 22, 16, 83, 158, 57, 25, 21, 249, 41, 245, 134, 2, 238, 245, 112, 7, 38, 115, 208, 225, 131, 1, 50, 28, 23, 160, 74, 93, 152, 209, 31, 22, 92, 16, 240, 160, 82, 49, 172, 209, 67, 15, 7, 236, 81, 201, 15, 50, 52, 208, 64, 73, 23, 166, 4, 64, 22, 19, 98, 145, 197, 102, 37, 38, 245, 64, 0, 27, 2, 39, 73, 27, 4, 236, 227, 96, 139, 39, 41, 55, 161, 25, 95, 224, 168, 148, 31, 69, 208, 64, 3, 21, 145, 216, 17, 4, 1, 51, 128, 135, 212, 255, 7, 153, 53, 217, 36, 139, 71, 169, 16, 198, 132, 98, 92, 208, 36, 137, 44, 49, 233, 228, 150, 248, 141, 133, 130, 3, 52, 8, 80, 195, 35, 72, 96, 16, 4, 148, 71, 125, 240, 69, 22, 108, 182, 233, 230, 155, 89, 116, 81, 64, 3, 93, 162, 84, 0, 24, 19, 146, 1, 103, 155, 23, 12, 96, 225, 73, 11, 236, 41, 40, 155, 93, 12, 208, 128, 82, 64, 8, 32, 128, 3, 141, 204, 32, 4, 6, 98, 41, 69, 192, 114, 41, 86, 106, 6, 24, 92, 124, 1, 32, 74, 93, 108, 81, 105, 138, 52, 108, 161, 69, 25, 93, 144, 104, 192, 148, 159, 78, 184, 5, 24, 94, 116, 113, 40, 82, 35, 8, 224, 4, 163, 138, 108, 35, 196, 141, 73, 141, 151, 234, 167, 91, 120, 1, 65, 151, 39, 238, 250, 41, 24, 99, 96, 32, 197, 0, 120, 10, 171, 106, 25, 3, 36, 53, 130, 19, 78, 224, 144, 72, 10, 34, 180, 128, 102, 82, 16, 240, 167, 108, 138, 97, 64, 96, 18, 6, 94, 108, 155, 34, 26, 183, 93, 224, 169, 184, 229, 209, 224, 69, 179, 72, 173, 1, 45, 118, 133, 252, 225, 203, 100, 101, 125, 33, 33, 186, 253, 121, 1, 160, 148, 248, 230, 219, 0, 138, 253, 54, 71, 67, 25, 127, 30, 21, 128, 19, 2, 44, 96, 72, 63, 244, 146, 21, 91, 192, 229, 109, 209, 227, 157, 16, 51, 167, 197, 255, 5, 225, 86, 140, 133, 24, 208, 29, 213, 129, 172, 99, 18, 146, 2, 2, 31, 212, 57, 214, 164, 59, 194, 57, 198, 25, 218, 78, 232, 5, 1, 157, 78, 200, 197, 155, 99, 112, 129, 70, 138, 90, 100, 129, 106, 196, 112, 150, 113, 198, 185, 19, 150, 129, 37, 75, 10, 64, 155, 6, 33, 222, 224, 58, 150, 174, 253, 137, 225, 45, 74, 11, 52, 208, 5, 121, 19, 106, 193, 0, 192, 253, 173, 136, 18, 6, 13, 124, 17, 65, 213, 89, 104, 81, 53, 187, 128, 26, 240, 69, 178, 253, 133, 97, 128, 82, 52, 204, 58, 200, 31, 0, 32, 160, 100, 89, 217, 230, 185, 169, 137, 89, 124, 221, 116, 22, 25, 151, 199, 227, 74, 16, 0, 221, 92, 206, 130, 51, 119, 198, 218, 42, 125, 48, 6, 206, 119, 31, 181, 4, 180, 10, 171, 33, 130, 5, 38, 147, 101, 175, 204, 5, 167, 20, 184, 170, 58, 83, 249, 116, 74, 49, 247, 119, 70, 22, 52, 4, 109, 236, 74, 161, 151, 167, 69, 227, 44, 117, 0, 237, 13, 130, 176, 144, 80, 95, 15, 79, 56, 198, 181, 39, 109, 222, 31, 26, 89, 160, 221, 220, 127, 42, 5, 27, 116, 25, 19, 210, 144, 197, 81, 169, 15, 206, 58, 75, 69, 184, 173, 70, 56, 115, 147, 133, 114, 127, 17, 244, 200, 210, 229, 253, 17, 142, 185, 74, 224, 22, 159, 197, 25, 170, 94, 112, 20, 255, 214, 229, 1, 175, 20, 7, 78, 244, 32, 72, 5, 148, 49, 93, 30, 26, 159, 167, 84, 123, 218, 228, 55, 119, 187, 74, 252, 246, 183, 69, 216, 99, 179, 132, 1, 241, 219, 83, 10, 5, 160, 37, 136, 21, 80, 166, 110, 217, 91, 158, 73, 12, 0, 190, 160, 245, 173, 57, 213, 211, 143, 239, 152, 3, 134, 44, 20, 14, 11, 135, 99, 9, 3, 168, 214, 159, 251, 9, 144, 128, 41, 184, 2, 251, 252, 130, 189, 242, 84, 136, 37, 201, 99, 78, 4, 58, 183, 187, 248, 157, 36, 133, 88, 8, 3, 233, 76, 183, 18, 0, 120, 109, 66, 228, 34, 203, 0, 157, 32, 8, 20, 24, 176, 47, 194, 235, 32, 238, 142, 69, 169, 236, 245, 174, 106, 203, 11, 98, 121, 188, 0, 192, 116, 29, 79, 63, 28, 44, 79, 24, 20, 184, 146, 29, 10, 162, 3, 40, 24, 33, 89, 116, 68, 189, 39, 162, 228, 3, 5, 240, 66, 233, 250, 67, 131, 49, 124, 225, 130, 39, 76, 73, 247, 38, 244, 189, 240, 113, 15, 2, 98, 156, 80, 245, 42, 119, 20, 43, 170, 97, 33, 90, 92, 90, 20, 153, 67, 46, 21, 248, 81, 5, 16, 232, 194, 24, 180, 48, 70, 209, 13, 160, 126, 204, 241, 32, 74, 242, 199, 51, 177, 101, 175, 11, 127, 4, 100, 23, 202, 224, 72, 153, 81, 113, 37, 232, 83, 223, 243, 58, 112, 133, 190, 236, 71, 255, 85, 90, 8, 101, 40, 197, 112, 175, 20, 137, 225, 11, 4, 120, 160, 10, 189, 104, 167, 9, 98, 161, 130, 23, 20, 149, 40, 181, 64, 202, 97, 137, 175, 44, 205, 163, 213, 7, 222, 208, 129, 190, 68, 72, 99, 104, 248, 194, 2, 78, 133, 67, 23, 154, 196, 92, 19, 146, 97, 33, 3, 118, 202, 161, 73, 231, 117, 130, 72, 129, 4, 222, 240, 67, 165, 40, 177, 95, 205, 60, 150, 43, 173, 182, 18, 68, 98, 129, 137, 26, 3, 131, 48, 251, 242, 56, 39, 68, 238, 121, 18, 232, 229, 88, 214, 216, 47, 26, 156, 97, 156, 82, 64, 102, 127, 184, 240, 170, 173, 169, 146, 57, 109, 12, 88, 4, 206, 112, 1, 103, 178, 205, 121, 130, 120, 193, 9, 36, 208, 73, 165, 48, 82, 92, 102, 32, 195, 24, 6, 80, 167, 25, 118, 208, 159, 196, 212, 31, 255, 240, 101, 6, 25, 50, 128, 142, 73, 41, 154, 19, 142, 70, 136, 33, 156, 224, 13, 99, 161, 152, 254, 102, 57, 75, 50, 112, 97, 12, 133, 66, 83, 160, 72, 26, 74, 86, 158, 68, 5, 92, 96, 233, 232, 46, 40, 6, 150, 134, 210, 164, 40, 101, 192, 16, 165, 3, 50, 67, 164, 224, 4, 39, 80, 39, 82, 96, 200, 133, 11, 208, 131, 30, 5, 248, 35, 1, 252, 105, 18, 64, 30, 245, 168, 153, 3, 212, 0, 158, 74, 143, 67, 46, 147, 57, 94, 255, 48, 234, 81, 147, 234, 71, 2, 236, 116, 44, 7, 75, 216, 33, 146, 16, 131, 19, 160, 0, 41, 215, 76, 36, 83, 125, 36, 133, 5, 52, 177, 60, 89, 192, 40, 114, 220, 229, 4, 120, 25, 34, 1, 101, 45, 104, 114, 238, 185, 66, 182, 178, 164, 1, 13, 140, 88, 199, 242, 83, 78, 105, 41, 162, 4, 121, 101, 201, 65, 249, 104, 76, 191, 74, 129, 1, 149, 108, 14, 24, 208, 19, 160, 114, 210, 106, 17, 136, 53, 171, 4, 171, 198, 0, 199, 170, 68, 119, 82, 188, 36, 101, 52, 122, 89, 70, 148, 96, 2, 49, 232, 64, 30, 165, 64, 212, 122, 122, 214, 36, 121, 115, 217, 233, 162, 211, 129, 3, 64, 171, 180, 141, 72, 0, 106, 37, 160, 197, 180, 98, 97, 12, 107, 245, 209, 2, 22, 199, 70, 185, 250, 133, 8, 61, 128, 150, 97, 35, 161, 132, 39, 76, 64, 179, 82, 248, 223, 22, 166, 75, 93, 222, 189, 214, 158, 212, 165, 46, 24, 6, 251, 26, 5, 200, 74, 0, 50, 154, 196, 11, 64, 224, 135, 24, 240, 22, 0, 5, 160, 42, 61, 16, 119, 93, 41, 160, 87, 189, 16, 112, 45, 101, 136, 112, 48, 39, 68, 128, 163, 150, 72, 128, 27, 80, 251, 134, 213, 182, 215, 175, 39, 176, 173, 114, 65, 241, 130, 41, 248, 1, 181, 170, 253, 175, 95, 81, 192, 1, 89, 57, 161, 8, 248, 5, 133, 255, 18, 244, 224, 134, 3, 247, 87, 193, 37, 58, 193, 26, 28, 220, 131, 240, 178, 131, 5, 20, 62, 176, 4, 206, 138, 225, 240, 28, 225, 0, 138, 18, 64, 15, 96, 167, 24, 22, 128, 96, 7, 110, 112, 67, 12, 168, 89, 98, 202, 248, 129, 3, 1, 8, 147, 0, 2, 192, 98, 211, 8, 34, 9, 37, 32, 194, 14, 96, 60, 1, 26, 215, 56, 41, 19, 32, 80, 15, 132, 36, 38, 187, 250, 120, 16, 41, 72, 128, 30, 116, 64, 4, 33, 187, 33, 168, 254, 197, 240, 27, 142, 128, 227, 13, 45, 185, 8, 120, 120, 193, 147, 23, 241, 2, 41, 235, 224, 204, 103, 222, 193, 71, 73, 124, 221, 29, 28, 65, 1, 237, 129, 209, 134, 14, 112, 3, 15, 141, 249, 17, 47, 64, 192, 20, 136, 0, 131, 62, 251, 153, 8, 126, 248, 168, 80, 243, 51, 1, 34, 60, 0, 52, 213, 113, 143, 162, 113, 16, 2, 59, 223, 153, 18, 34, 24, 194, 158, 41, 64, 233, 74, 83, 250, 8, 125, 174, 112, 160, 223, 192, 105, 78, 75, 224, 211, 159, 6, 42, 80, 137, 112, 105, 182, 136, 166, 55, 7, 168, 78, 17, 2, 112, 0, 28, 108, 32, 49, 143, 22, 70, 10, 62, 80, 2, 16, 88, 1, 42, 80, 121, 128, 174, 119, 61, 149, 37, 172, 5, 8, 108, 105, 11, 97, 10, 99, 152, 208, 156, 186, 55, 69, 80, 0, 21, 110, 56, 48, 4, 49, 199, 90, 49, 41, 80, 2, 2, 60, 224, 129, 13, 108, 32, 45, 190, 6, 118, 176, 219, 66, 108, 195, 112, 128, 10, 35, 24, 129, 21, 172, 80, 130, 102, 63, 251, 220, 139, 16, 65, 26, 16, 112, 21, 116, 187, 251, 221, 240, 142, 119, 188, 3, 1, 0, 59, 0 }; php3_compat.h 0000644 00000011010 15217713750 0007133 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: php3_compat.h 293036 2010-01-03 09:23:27Z sebastian $ */ #ifndef PHP3_COMPAT_H #define PHP3_COMPAT_H typedef zval pval; #define pval_copy_constructor zval_copy_ctor #define pval_destructor zval_dtor #define _php3_hash_init zend_hash_init #define _php3_hash_destroy zend_hash_destroy #define _php3_hash_clean zend_hash_clean #define _php3_hash_add_or_update zend_hash_add_or_update #define _php3_hash_add zend_hash_add #define _php3_hash_update zend_hash_update #define _php3_hash_quick_add_or_update zend_hash_quick_add_or_update #define _php3_hash_quick_add zend_hash_quick_add #define _php3_hash_quick_update zend_hash_quick_update #define _php3_hash_index_update_or_next_insert zend_hash_index_update_or_next_insert #define _php3_hash_index_update zend_hash_index_update #define _php3_hash_next_index_insert zend_hash_next_index_insert #define _php3_hash_pointer_update zend_hash_pointer_update #define _php3_hash_pointer_index_update_or_next_insert zend_hash_pointer_index_update_or_next_insert #define _php3_hash_pointer_index_update zend_hash_pointer_index_update #define _php3_hash_next_index_pointer_update zend_hash_next_index_pointer_update #define _php3_hash_next_index_pointer_insert zend_hash_next_index_pointer_insert #define _php3_hash_del_key_or_index zend_hash_del_key_or_index #define _php3_hash_del zend_hash_del #define _php3_hash_index_del zend_hash_index_del #define _php3_hash_find zend_hash_find #define _php3_hash_quick_find zend_hash_quick_find #define _php3_hash_index_find zend_hash_index_find #define _php3_hash_exists zend_hash_exists #define _php3_hash_index_exists zend_hash_index_exists #define _php3_hash_is_pointer zend_hash_is_pointer #define _php3_hash_index_is_pointer zend_hash_index_is_pointer #define _php3_hash_next_free_element zend_hash_next_free_element #define _php3_hash_move_forward zend_hash_move_forward #define _php3_hash_move_backwards zend_hash_move_backwards #define _php3_hash_get_current_key zend_hash_get_current_key #define _php3_hash_get_current_data zend_hash_get_current_data #define _php3_hash_internal_pointer_reset zend_hash_internal_pointer_reset #define _php3_hash_internal_pointer_end zend_hash_internal_pointer_end #define _php3_hash_copy zend_hash_copy #define _php3_hash_merge zend_hash_merge #define _php3_hash_sort zend_hash_sort #define _php3_hash_minmax zend_hash_minmax #define _php3_hash_num_elements zend_hash_num_elements #define _php3_hash_apply zend_hash_apply #define _php3_hash_apply_with_argument zend_hash_apply_with_argument #define php3_error php_error #define php3_printf php_printf #define _php3_sprintf php_sprintf #define php3_module_entry zend_module_entry #define php3_strndup zend_strndup #define php3_str_tolower zend_str_tolower #define php3_binary_strcmp zend_binary_strcmp #define php3_list_insert zend_list_insert #define php3_list_find zend_list_find #define php3_list_delete zend_list_delete #define php3_plist_insert zend_plist_insert #define php3_plist_find zend_plist_find #define php3_plist_delete zend_plist_delete #define zend_print_pval zend_print_zval #define zend_print_pval_r zend_print_zval_r #define function_entry zend_function_entry #define _php3_addslashes php_addslashes #define _php3_stripslashes php_stripslashes #define php3_dl php_dl #define getParameters zend_get_parameters #define getParametersArray zend_get_parameters_array #define list_entry zend_rsrc_list_entry #endif /* PHP3_COMPAT_H */ SAPI.h 0000644 00000022332 15217713750 0005463 0 ustar 00 /* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2010 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: Zeev Suraski
| +----------------------------------------------------------------------+ */ /* $Id: SAPI.h 296362 2010-03-18 22:37:25Z andrei $ */ #ifndef SAPI_H #define SAPI_H #include "zend.h" #include "zend_llist.h" #include "zend_operators.h" #ifdef PHP_WIN32 #include "win95nt.h" #endif #include
#define SAPI_OPTION_NO_CHDIR 1 #define SAPI_POST_BLOCK_SIZE 4000 #ifdef PHP_WIN32 # ifdef SAPI_EXPORTS # define SAPI_API __declspec(dllexport) # else # define SAPI_API __declspec(dllimport) # endif #else #define SAPI_API #endif #undef shutdown typedef struct { char *header; uint header_len; zend_bool replace; } sapi_header_struct; typedef struct { zend_llist headers; int http_response_code; unsigned char send_default_content_type; char *mimetype; char *http_status_line; } sapi_headers_struct; typedef struct _sapi_post_entry sapi_post_entry; typedef struct _sapi_module_struct sapi_module_struct; BEGIN_EXTERN_C() extern SAPI_API sapi_module_struct sapi_module; /* true global */ END_EXTERN_C() /* Some values in this structure needs to be filled in before * calling sapi_activate(). We WILL change the `char *' entries, * so make sure that you allocate a separate buffer for them * and that you free them after sapi_deactivate(). */ typedef struct { const char *request_method; char *query_string; char *post_data, *raw_post_data; char *cookie_data; long content_length; uint post_data_length, raw_post_data_length; char *path_translated; char *request_uri; const char *content_type; zend_bool headers_only; zend_bool no_headers; zend_bool headers_read; sapi_post_entry *post_entry; char *content_type_dup; /* for HTTP authentication */ char *auth_user; char *auth_password; char *auth_digest; /* this is necessary for the CGI SAPI module */ char *argv0; /* this is necessary for Safe Mode */ char *current_user; int current_user_length; /* this is necessary for CLI module */ int argc; char **argv; int proto_num; } sapi_request_info; typedef struct _sapi_globals_struct { void *server_context; sapi_request_info request_info; sapi_headers_struct sapi_headers; int read_post_bytes; unsigned char headers_sent; struct stat global_stat; char *default_mimetype; char *default_charset; HashTable *rfc1867_uploaded_files; long post_max_size; int options; zend_bool sapi_started; time_t global_request_time; HashTable known_post_content_types; } sapi_globals_struct; BEGIN_EXTERN_C() #ifdef ZTS # define SG(v) TSRMG(sapi_globals_id, sapi_globals_struct *, v) SAPI_API extern int sapi_globals_id; #else # define SG(v) (sapi_globals.v) extern SAPI_API sapi_globals_struct sapi_globals; #endif SAPI_API void sapi_startup(sapi_module_struct *sf); SAPI_API void sapi_shutdown(void); SAPI_API void sapi_activate(TSRMLS_D); SAPI_API void sapi_deactivate(TSRMLS_D); SAPI_API void sapi_initialize_empty_request(TSRMLS_D); END_EXTERN_C() /* * This is the preferred and maintained API for * operating on HTTP headers. */ /* * Always specify a sapi_header_line this way: * * sapi_header_line ctr = {0}; */ typedef struct { char *line; /* If you allocated this, you need to free it yourself */ uint line_len; long response_code; /* long due to zend_parse_parameters compatibility */ } sapi_header_line; typedef enum { /* Parameter: */ SAPI_HEADER_REPLACE, /* sapi_header_line* */ SAPI_HEADER_ADD, /* sapi_header_line* */ SAPI_HEADER_SET_STATUS /* int */ } sapi_header_op_enum; BEGIN_EXTERN_C() SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC); /* Deprecated functions. Use sapi_header_op instead. */ SAPI_API int sapi_add_header_ex(char *header_line, uint header_line_len, zend_bool duplicate, zend_bool replace TSRMLS_DC); #define sapi_add_header(a, b, c) sapi_add_header_ex((a),(b),(c),1 TSRMLS_CC) SAPI_API int sapi_send_headers(TSRMLS_D); SAPI_API void sapi_free_header(sapi_header_struct *sapi_header); SAPI_API void sapi_handle_post(void *arg TSRMLS_DC); SAPI_API int sapi_register_post_entries(sapi_post_entry *post_entry TSRMLS_DC); SAPI_API int sapi_register_post_entry(sapi_post_entry *post_entry TSRMLS_DC); SAPI_API void sapi_unregister_post_entry(sapi_post_entry *post_entry TSRMLS_DC); SAPI_API int sapi_register_default_post_reader(void (*default_post_reader)(TSRMLS_D)); SAPI_API int sapi_register_treat_data(void (*treat_data)(int arg, char *str, zval *destArray TSRMLS_DC)); SAPI_API int sapi_register_input_filter(unsigned int (*input_filter)(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len TSRMLS_DC)); SAPI_API int sapi_flush(TSRMLS_D); SAPI_API struct stat *sapi_get_stat(TSRMLS_D); SAPI_API char *sapi_getenv(char *name, size_t name_len TSRMLS_DC); SAPI_API char *sapi_get_default_content_type(TSRMLS_D); SAPI_API void sapi_get_default_content_type_header(sapi_header_struct *default_header TSRMLS_DC); SAPI_API size_t sapi_apply_default_charset(char **mimetype, size_t len TSRMLS_DC); SAPI_API void sapi_activate_headers_only(TSRMLS_D); SAPI_API int sapi_get_fd(int *fd TSRMLS_DC); SAPI_API int sapi_force_http_10(TSRMLS_D); SAPI_API int sapi_get_target_uid(uid_t * TSRMLS_DC); SAPI_API int sapi_get_target_gid(gid_t * TSRMLS_DC); SAPI_API time_t sapi_get_request_time(TSRMLS_D); END_EXTERN_C() struct _sapi_module_struct { char *name; char *pretty_name; int (*startup)(struct _sapi_module_struct *sapi_module); int (*shutdown)(struct _sapi_module_struct *sapi_module); int (*activate)(TSRMLS_D); int (*deactivate)(TSRMLS_D); int (*ub_write)(const char *str, unsigned int str_length TSRMLS_DC); void (*flush)(void *server_context); struct stat *(*get_stat)(TSRMLS_D); char *(*getenv)(char *name, size_t name_len TSRMLS_DC); void (*sapi_error)(int type, const char *error_msg, ...); int (*header_handler)(sapi_header_struct *sapi_header, sapi_headers_struct *sapi_headers TSRMLS_DC); int (*send_headers)(sapi_headers_struct *sapi_headers TSRMLS_DC); void (*send_header)(sapi_header_struct *sapi_header, void *server_context TSRMLS_DC); int (*read_post)(char *buffer, uint count_bytes TSRMLS_DC); char *(*read_cookies)(TSRMLS_D); void (*register_server_variables)(zval *track_vars_array TSRMLS_DC); void (*log_message)(char *message); time_t (*get_request_time)(TSRMLS_D); char *php_ini_path_override; void (*block_interruptions)(void); void (*unblock_interruptions)(void); void (*default_post_reader)(TSRMLS_D); void (*treat_data)(int arg, char *str, zval *destArray TSRMLS_DC); char *executable_location; int php_ini_ignore; int (*get_fd)(int *fd TSRMLS_DC); int (*force_http_10)(TSRMLS_D); int (*get_target_uid)(uid_t * TSRMLS_DC); int (*get_target_gid)(gid_t * TSRMLS_DC); unsigned int (*input_filter)(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len TSRMLS_DC); void (*ini_defaults)(HashTable *configuration_hash); int phpinfo_as_text; char *ini_entries; }; struct _sapi_post_entry { char *content_type; uint content_type_len; void (*post_reader)(TSRMLS_D); void (*post_handler)(char *content_type_dup, void *arg TSRMLS_DC); }; /* header_handler() constants */ #define SAPI_HEADER_ADD (1<<0) #define SAPI_HEADER_DELETE_ALL (1<<1) #define SAPI_HEADER_SEND_NOW (1<<2) #define SAPI_HEADER_SENT_SUCCESSFULLY 1 #define SAPI_HEADER_DO_SEND 2 #define SAPI_HEADER_SEND_FAILED 3 #define SAPI_DEFAULT_MIMETYPE "text/html" #define SAPI_DEFAULT_CHARSET "" #define SAPI_PHP_VERSION_HEADER "X-Powered-By: PHP/" PHP_VERSION #define SAPI_POST_READER_FUNC(post_reader) void post_reader(TSRMLS_D) #define SAPI_POST_HANDLER_FUNC(post_handler) void post_handler(char *content_type_dup, void *arg TSRMLS_DC) #define SAPI_TREAT_DATA_FUNC(treat_data) void treat_data(int arg, char *str, zval* destArray TSRMLS_DC) #define SAPI_INPUT_FILTER_FUNC(input_filter) unsigned int input_filter(int arg, char *var, char **val, unsigned int val_len, unsigned int *new_val_len TSRMLS_DC) BEGIN_EXTERN_C() SAPI_API SAPI_POST_READER_FUNC(sapi_read_standard_form_data); SAPI_API SAPI_POST_READER_FUNC(php_default_post_reader); SAPI_API SAPI_TREAT_DATA_FUNC(php_default_treat_data); SAPI_API SAPI_INPUT_FILTER_FUNC(php_default_input_filter); END_EXTERN_C() #define STANDARD_SAPI_MODULE_PROPERTIES #endif /* SAPI_H */ /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: */