资源简介
php-5.6.3.tar.gz最新实用php
代码片段和文件信息
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2014 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(arginfo_bcmod 0)
ZEND_ARG_INFO(0 left_operand)
ZEND_ARG_INFO(0 right_operand)
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_FE(bcadd arginfo_bcadd)
- 上一篇:thinkPHP仿某商场网站源码
- 下一篇:金蝶ERP php源码
评论
共有 条评论