• 大小: 62.04MB
    文件类型: .zip
    金币: 2
    下载: 2 次
    发布日期: 2023-06-03
  • 语言: 其他
  • 标签: nextcl  php  

资源简介

本资源位nextcloud的源码包,编译裁剪后可以直接使用,有需要的朋友可以下载一下。

资源截图

代码片段和文件信息

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier 
 *
 * For the full copyright and license information please view the LICENSE
 * file that was distributed with this source code.
 */

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

#include “php.h“
#ifdef ZTS
#include “TSRM.h“
#endif
#include “php_ini.h“
#include “ext/standard/info.h“
#include “php_symfony_debug.h“
#include “ext/standard/php_rand.h“
#include “ext/standard/php_lcg.h“
#include “ext/spl/php_spl.h“
#include “Zend/zend_gc.h“
#include “Zend/zend_builtin_functions.h“
#include “Zend/zend_extensions.h“ /* for ZEND_EXTENSION_API_NO */
#include “ext/standard/php_array.h“
#include “Zend/zend_interfaces.h“
#include “SAPI.h“

#define IS_PHP_53 ZEND_EXTENSION_API_NO == 220090626

ZEND_DECLARE_MODULE_GLOBALS(symfony_debug)

ZEND_BEGIN_ARG_INFO_EX(symfony_zval_arginfo 0 0 2)
ZEND_ARG_INFO(0 key)
ZEND_ARG_ARRAY_INFO(0 array 0)
ZEND_ARG_INFO(0 options)
ZEND_END_ARG_INFO()

const zend_function_entry symfony_debug_functions[] = {
PHP_FE(symfony_zval_info symfony_zval_arginfo)
PHP_FE(symfony_debug_backtrace NULL)
PHP_FE_END
};

PHP_FUNCTION(symfony_debug_backtrace)
{
if (zend_parse_parameters_none() == FAILURE) {
return;
}
#if IS_PHP_53
zend_fetch_debug_backtrace(return_value 1 0 TSRMLS_CC);
#else
zend_fetch_debug_backtrace(return_value 1 0 0 TSRMLS_CC);
#endif

if (!SYMFONY_DEBUG_G(debug_bt)) {
return;
}

php_array_merge(Z_ARRVAL_P(return_value) Z_ARRVAL_P(SYMFONY_DEBUG_G(debug_bt)) 0 TSRMLS_CC);
}

PHP_FUNCTION(symfony_zval_info)
{
zval *key = NULL *arg = NULL;
zval **data = NULL;
HashTable *array = NULL;
long options = 0;

if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC “zh|l“ &key &array &options) == FAILURE) {
return;
}

switch (Z_TYPE_P(key)) {
case IS_STRING:
if (zend_symtable_find(array Z_STRVAL_P(key) Z_STRLEN_P(key) + 1 (void **)&data) == FAILURE) {
return;
}
break;
case IS_LONG:
if (zend_hash_index_find(array Z_LVAL_P(key) (void **)&data)) {
return;
}
break;
}

arg = *data;

array_init(return_value);

add_assoc_string(return_value “type“ (char *)_symfony_debug_zval_type(arg) 1);
add_assoc_stringl(return_value “zval_hash“ _symfony_debug_memory_address_hash((void *)arg TSRMLS_CC) 16 0);
add_assoc_long(return_value “zval_refcount“ Z_REFCOUNT_P(arg));
add_assoc_bool(return_value “zval_isref“ (zend_bool)Z_ISREF_P(arg));

if (Z_TYPE_P(arg) == IS_object) {
char hash[33] = {0};

php_spl_object_hash(arg (char *)hash TSRMLS_CC);
add_assoc_stringl(return_value “object_class“ (char *)Z_OBJCE_P(arg)->name Z_OBJCE_P(arg)->name_length 1);
add_assoc_long(return_value “object_refcount“ EG(objects_store).object_buckets[Z_OBJ_HANDLE_P(arg)].bucket.obj.refcount);
add_assoc_string(return_value “object_hash“ hash 1);
add_assoc_long(return_value “object_handle“ Z_OBJ_HANDLE_P(arg));
} else if (Z_TYPE_P(arg) == IS_ARRAY) {
add_assoc_long(r

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-02-07 18:56  nextcloud\
     文件        2836  2019-02-07 18:52  nextcloud\.htaccess
     文件         163  2019-02-07 18:52  nextcloud\.user.ini
     目录           0  2019-02-07 18:56  nextcloud\3rdparty\
     文件         605  2019-02-07 18:52  nextcloud\3rdparty\.drone.yml
     文件        5934  2019-02-07 18:52  nextcloud\3rdparty\.gitignore
     文件         178  2019-02-07 18:52  nextcloud\3rdparty\autoload.php
     目录           0  2019-02-07 18:52  nextcloud\3rdparty\aws\
     目录           0  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\
     文件        1942  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\composer.json
     文件        9202  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\LICENSE.md
     文件        2881  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\NOTICE.md
     目录           0  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\
     目录           0  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\Acm\
     目录           0  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\ACMPCA\
     文件        2863  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\ACMPCA\ACMPCAClient.php
     目录           0  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\ACMPCA\Exception\
     文件         237  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\ACMPCA\Exception\ACMPCAException.php
     文件        1895  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\Acm\AcmClient.php
     目录           0  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\Acm\Exception\
     文件         201  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\Acm\Exception\AcmException.php
     目录           0  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\AlexaForBusiness\
     文件        6840  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\AlexaForBusiness\AlexaForBusinessClient.php
     目录           0  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\AlexaForBusiness\Exception\
     文件         222  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\AlexaForBusiness\Exception\AlexaForBusinessException.php
     目录           0  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\Api\
     目录           0  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\ApiGateway\
     文件       17160  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\ApiGateway\ApiGatewayClient.php
     目录           0  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\ApiGateway\Exception\
     文件         207  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\ApiGateway\Exception\ApiGatewayException.php
     文件        1561  2019-02-07 18:52  nextcloud\3rdparty\aws\aws-sdk-php\src\Api\AbstractModel.php
............此处省略15685个文件信息

评论

共有 条评论