• 大小: 18.7MB
    文件类型: .gz
    金币: 1
    下载: 0 次
    发布日期: 2023-07-07
  • 语言: PHP
  • 标签: PHP7  PHP源码  WAMP  Linx  PHP  

资源简介

Linux php-7.2.6 PHP 是一种新型的 CGI 程序编写语言,易学易用,运行速度快,可以方便快捷地编写出功能强大,运行速度快

资源截图

代码片段和文件信息

/*
  +----------------------------------------------------------------------+
  | PHP Version 7                                                        |
  +----------------------------------------------------------------------+
  | Copyright (c) 1997-2018 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: Sterling Hughes                            |
  +----------------------------------------------------------------------+
*/

/* $Id$ */

#ifdef HAVE_CONFIG_H
#include “config.h“
#endif

#include “php.h“
#include “php_bz2.h“

#if HAVE_BZ2

/* PHP Includes */
#include “ext/standard/file.h“
#include “ext/standard/info.h“
#include “ext/standard/php_string.h“
#include “main/php_network.h“

/* for fileno() */
#include 

/* Internal error constants */
#define PHP_BZ_ERRNO   0
#define PHP_BZ_ERRSTR  1
#define PHP_BZ_ERRBOTH 2

static PHP_MINIT_FUNCTION(bz2);
static PHP_MSHUTDOWN_FUNCTION(bz2);
static PHP_MINFO_FUNCTION(bz2);
static PHP_FUNCTION(bzopen);
static PHP_FUNCTION(bzread);
static PHP_FUNCTION(bzerrno);
static PHP_FUNCTION(bzerrstr);
static PHP_FUNCTION(bzerror);
static PHP_FUNCTION(bzcompress);
static PHP_FUNCTION(bzdecompress);

/* {{{ arginfo */
ZEND_BEGIN_ARG_INFO_EX(arginfo_bzread 0 0 1)
ZEND_ARG_INFO(0 bz)
ZEND_ARG_INFO(0 length)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_bzopen 0)
ZEND_ARG_INFO(0 file)
ZEND_ARG_INFO(0 mode)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_bzerrno 0)
ZEND_ARG_INFO(0 bz)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_bzerrstr 0)
ZEND_ARG_INFO(0 bz)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_bzerror 0)
ZEND_ARG_INFO(0 bz)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_bzcompress 0 0 2)
ZEND_ARG_INFO(0 source)
ZEND_ARG_INFO(0 blocksize)
ZEND_ARG_INFO(0 workfactor)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_bzdecompress 0 0 1)
ZEND_ARG_INFO(0 source)
ZEND_ARG_INFO(0 small)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_bzwrite 0 0 2)
ZEND_ARG_INFO(0 fp)
ZEND_ARG_INFO(0 str)
ZEND_ARG_INFO(0 length)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_bzflush 0)
ZEND_ARG_INFO(0 fp)
ZEND_END_ARG_INFO()
/* }}} */

static const zend_function_entry bz2_functions[] = {
PHP_FE(bzopen       arginfo_bzopen)
PHP_FE(bzread       arginfo_bzread)

评论

共有 条评论