• 大小: 72.65M
    文件类型: .zip
    金币: 2
    下载: 4 次
    发布日期: 2023-06-01
  • 语言: 其他
  • 标签: 其他  

资源简介

人人商城3.16.1全开源版一键安装包.zip

资源截图

代码片段和文件信息

/*
   +----------------------------------------------------------------------+
   | Twig Extension                                                       |
   +----------------------------------------------------------------------+
   | Copyright (c) 2011 Derick Rethans                                    |
   +----------------------------------------------------------------------+
   | Redistribution and use in source and binary forms with or without   |
   | modification are permitted provided that the conditions mentioned   |
   | in the accompanying LICENSE file are met (BSD-3-Clause).             |
   +----------------------------------------------------------------------+
   | Author: Derick Rethans                      |
   +----------------------------------------------------------------------+
 */

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

#include “php.h“
#include “php_twig.h“
#include “ext/standard/php_var.h“
#include “ext/standard/php_string.h“
#include “ext/standard/php_smart_str.h“
#include “ext/spl/spl_exceptions.h“

#include “Zend/zend_object_handlers.h“
#include “Zend/zend_interfaces.h“
#include “Zend/zend_exceptions.h“

#ifndef Z_ADDREF_P
#define Z_ADDREF_P(pz)                (pz)->refcount++
#endif

#ifndef E_USER_DEPRECATED
#define E_USER_DEPRECATED (1<<14L)
#endif

#define FREE_DTOR(z)  \
zval_dtor(z);  \
efree(z);

#if PHP_VERSION_ID >= 50300
#define APPLY_TSRMLS_DC TSRMLS_DC
#define APPLY_TSRMLS_CC TSRMLS_CC
#define APPLY_TSRMLS_FETCH()
#else
#define APPLY_TSRMLS_DC
#define APPLY_TSRMLS_CC
#define APPLY_TSRMLS_FETCH() TSRMLS_FETCH()
#endif

ZEND_BEGIN_ARG_INFO_EX(twig_template_get_attribute_args ZEND_SEND_BY_VAL ZEND_RETURN_VALUE 6)
ZEND_ARG_INFO(0 template)
ZEND_ARG_INFO(0 object)
ZEND_ARG_INFO(0 item)
ZEND_ARG_INFO(0 arguments)
ZEND_ARG_INFO(0 type)
ZEND_ARG_INFO(0 isDefinedTest)
ZEND_END_ARG_INFO()

#ifndef PHP_FE_END
#define PHP_FE_END { NULL NULL NULL}
#endif

static const zend_function_entry twig_functions[] = {
PHP_FE(twig_template_get_attributes twig_template_get_attribute_args)
PHP_FE_END
};

PHP_RSHUTDOWN_FUNCTION(twig)
{
#if ZEND_DEBUG
CG(unclean_shutdown) = 0; /* get rid of PHPUnit‘s exit() and report memleaks */
#endif
return SUCCESS;
}

zend_module_entry twig_module_entry = {
STANDARD_MODULE_HEADER
“twig“
twig_functions
NULL
NULL
NULL
PHP_RSHUTDOWN(twig)
NULL
PHP_TWIG_VERSION
STANDARD_MODULE_PROPERTIES
};


#ifdef COMPILE_DL_TWIG
ZEND_GET_MODULE(twig)
#endif

static int TWIG_ARRAY_KEY_EXISTS(zval *array zval *key)
{
if (Z_TYPE_P(array) != IS_ARRAY) {
return 0;
}

switch (Z_TYPE_P(key)) {
case IS_NULL:
return zend_hash_exists(Z_ARRVAL_P(array) ““ 1);

case IS_BOOL:
case IS_DOUBLE:
convert_to_long(key);
case IS_LONG:
return zend_hash_index_exists(Z_ARRVAL_P(array) Z_LVAL_P(key));

default:
convert_to_string(key);
return zend_symtable_exists(Z_ARRVAL_P(array) Z_STRVAL_P(key) Z_STRLEN_P(key) + 1);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-10-18 11:23  人人商城3.16.1全开源版一键安装包\
     目录           0  2019-10-18 11:25  人人商城3.16.1全开源版一键安装包\ewei_shopv2\
     目录           0  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\cert\
     文件          32  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\cert\readme.txt
     目录           0  2019-10-18 11:24  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\
     目录           0  2019-10-18 11:25  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\
     文件           0  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\cache.php
     文件       64462  2019-10-08 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\coupon.php
     文件         137  2019-08-22 19:18  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\h5app.php
     文件      125848  2019-10-08 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\perm.php
     文件       42805  2019-09-24 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\printer.php
     文件        5845  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\qiniu.php
     文件        5310  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\qiniu2.php
     文件        5912  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\sale.php
     文件        4719  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\sendticket.php
     文件       13710  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\sms.php
     文件         375  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\tmessage.php
     文件       16306  2019-09-24 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\verify.php
     文件       12185  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\virtual.php
     文件         171  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\wap.php
     文件       52911  2019-09-04 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\com\wxcard.php
     目录           0  2019-10-18 11:25  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\inc\
     文件          91  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\inc\com_model.php
     文件         813  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\inc\com_processor.php
     文件         382  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\inc\data_model.php
     文件      128213  2019-08-27 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\inc\functions.php
     文件       18560  2019-08-27 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\inc\page.php
     文件          47  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\inc\page_in.php
     文件       22506  2019-09-24 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\inc\page_mobile.php
     文件         217  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\inc\page_mobile_login.php
     文件        5839  2019-08-21 08:01  人人商城3.16.1全开源版一键安装包\ewei_shopv2\core\inc\page_mobile_plugin.php
............此处省略10913个文件信息

评论

共有 条评论