• 大小: 18.67MB
    文件类型: .gz
    金币: 1
    下载: 0 次
    发布日期: 2023-08-01
  • 语言: PHP
  • 标签: php  

资源简介

php-7.2.1.tar.gzphp-7.2.1.tar.gzphp-7.2.1.tar.gzphp-7.2.1.tar.gz

资源截图

代码片段和文件信息

/*
   +----------------------------------------------------------------------+
   | PHP Version 7                                                        |
   +----------------------------------------------------------------------+
   | Copyright (c) 1997-2017 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: Andi Gutmans                                  |
   +----------------------------------------------------------------------+
*/

/* $Id$ */

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

#include “php.h“

#if HAVE_BCMATH

#include “php_ini.h“
#include “ext/standard/info.h“
#include “php_bcmath.h“
#include “libbcmath/src/bcmath.h“

ZEND_DECLARE_MODULE_GLOBALS(bcmath)
static PHP_GINIT_FUNCTION(bcmath);
static PHP_GSHUTDOWN_FUNCTION(bcmath);

/* {{{ arginfo */
ZEND_BEGIN_ARG_INFO_EX(arginfo_bcadd 0 0 2)
ZEND_ARG_INFO(0 left_operand)
ZEND_ARG_INFO(0 right_operand)
ZEND_ARG_INFO(0 scale)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_bcsub 0 0 2)
ZEND_ARG_INFO(0 left_operand)
ZEND_ARG_INFO(0 right_operand)
ZEND_ARG_INFO(0 scale)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_bcmul 0 0 2)
ZEND_ARG_INFO(0 left_operand)
ZEND_ARG_INFO(0 right_operand)
ZEND_ARG_INFO(0 scale)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_bcdiv 0 0 2)
ZEND_ARG_INFO(0 left_operand)
ZEND_ARG_INFO(0 right_operand)
ZEND_ARG_INFO(0 scale)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_bcmod 0 0 2)
ZEND_ARG_INFO(0 left_operand)
ZEND_ARG_INFO(0 right_operand)
ZEND_ARG_INFO(0 scale)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_bcpowmod 0 0 3)
ZEND_ARG_INFO(0 x)
ZEND_ARG_INFO(0 y)
ZEND_ARG_INFO(0 mod)
ZEND_ARG_INFO(0 scale)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_bcpow 0 0 2)
ZEND_ARG_INFO(0 x)
ZEND_ARG_INFO(0 y)
ZEND_ARG_INFO(0 scale)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_bcsqrt 0 0 1)
ZEND_ARG_INFO(0 operand)
ZEND_ARG_INFO(0 scale)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_bccomp 0 0 2)
ZEND_ARG_INFO(0 left_operand)
ZEND_ARG_INFO(0 right_operand)
ZEND_ARG_INFO(0 scale)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO(arginfo_bcscale 0)
ZEND_ARG_INFO(0 scale)
ZEND_END_ARG_INFO()

/* }}} */

const zend_function_entry bcmath_functions[] = {
PHP_

评论

共有 条评论