• 大小: 10.29MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-10
  • 语言: PHP
  • 标签: php  mysql  数据库  

资源简介

开箱即用,附使用步骤,请仔细查看。 进入到你wp的网站路径 例如我的是:/home/www/htdocs 把解压后的phpMyAdmin放到该路径下

资源截图

代码片段和文件信息

/*
   +----------------------------------------------------------------------+
   | 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-01-26 11:04  phpMyAdmin-4.8.5-all-languages\
     文件         274  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\.editorconfig
     文件          24  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\.eslintignore
     文件        1332  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\.eslintrc.json
     文件        1560  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\ajax.php
     文件        1750  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\browse_foreigners.php
     文件        9015  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\ChangeLog
     文件        3194  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\changelog.php
     文件         856  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\chk_rel.php
     文件        3216  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\CODE_OF_CONDUCT.md
     文件        3181  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\composer.json
     文件       93820  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\composer.lock
     文件        4516  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\config.sample.inc.php
     文件        1956  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\CONTRIBUTING.md
     文件        5674  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_central_columns.php
     文件        5878  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_datadict.php
     文件        7543  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_designer.php
     文件         271  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_events.php
     文件        4631  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_export.php
     文件         899  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_import.php
     文件        1038  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_multi_table_query.php
     文件        9860  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_operations.php
     文件        4859  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_qbe.php
     文件         365  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_routines.php
     文件        1997  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_search.php
     文件         952  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_sql.php
     文件         746  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_sql_autocomplete.php
     文件         485  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_sql_format.php
     文件        1011  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_structure.php
     文件        4415  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_tracking.php
     文件         273  2019-01-26 11:04  phpMyAdmin-4.8.5-all-languages\db_triggers.php
............此处省略2951个文件信息

评论

共有 条评论