$74 GRAYBYTE WORDPRESS FILE MANAGER $87

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/php56/usr/include/php/Zend/

HOME
Current File : /opt/alt/php56/usr/include/php/Zend//zend_string.h
/*
   +----------------------------------------------------------------------+
   | Zend Engine                                                          |
   +----------------------------------------------------------------------+
   | Copyright (c) 1998-2016 Zend Technologies Ltd. (http://www.zend.com) |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.00 of the Zend 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.zend.com/license/2_00.txt.                                |
   | If you did not receive a copy of the Zend license and are unable to  |
   | obtain it through the world-wide-web, please send a note to          |
   | license@zend.com so we can mail you a copy immediately.              |
   +----------------------------------------------------------------------+
   | Authors: Dmitry Stogov <dmitry@zend.com>                             |
   +----------------------------------------------------------------------+
*/

/* $Id: $ */

#ifndef ZEND_STRING_H
#define ZEND_STRING_H

#include "zend.h"

BEGIN_EXTERN_C()
ZEND_API extern const char *(*zend_new_interned_string)(const char *str, int len, int free_src TSRMLS_DC);
ZEND_API extern void (*zend_interned_strings_snapshot)(TSRMLS_D);
ZEND_API extern void (*zend_interned_strings_restore)(TSRMLS_D);

void zend_interned_strings_init(TSRMLS_D);
void zend_interned_strings_dtor(TSRMLS_D);

ZEND_API char *zend_string_concat3(
		const char *str1, size_t str1_len,
		const char *str2, size_t str2_len,
		const char *str3, size_t str3_len,
		size_t *new_len);

END_EXTERN_C()

#ifndef ZTS

#define IS_INTERNED(s) \
	(((s) >= CG(interned_strings_start)) && ((s) < CG(interned_strings_end)))

#else

#define IS_INTERNED(s) \
	(0)

#endif

#define INTERNED_LEN(s) \
	(((Bucket*)(((char*)(s))-sizeof(Bucket)))->nKeyLength)

#define INTERNED_HASH(s) \
	(((Bucket*)(((char*)(s))-sizeof(Bucket)))->h)

#define str_efree(s) do { \
		if (!IS_INTERNED(s)) { \
			efree((char*)s); \
		} \
	} while (0)

#define str_efree_rel(s) do { \
		if (!IS_INTERNED(s)) { \
			efree_rel((char *)s); \
		} \
	} while (0)

#define str_free(s) do { \
		if (!IS_INTERNED(s)) { \
			free((char*)s); \
		} \
	} while (0)

#define str_erealloc(str, new_len) \
	(IS_INTERNED(str) \
	 ? _str_erealloc(str, new_len, INTERNED_LEN(str)) \
	 : erealloc(str, new_len))

static inline char *_str_erealloc(char *str, size_t new_len, size_t old_len) {
	char *buf = (char *) emalloc(new_len);
	memcpy(buf, str, old_len);
	return buf;
}

#define str_estrndup(str, len) \
	(IS_INTERNED(str) ? (str) : estrndup((str), (len)))

#define str_strndup(str, len) \
	(IS_INTERNED(str) ? (str) : zend_strndup((str), (len)));

#define str_hash(str, len) \
	(IS_INTERNED(str) ? INTERNED_HASH(str) : zend_hash_func((str), (len)+1))


#endif /* ZEND_STRING_H */

/*
 * Local variables:
 * tab-width: 4
 * c-basic-offset: 4
 * indent-tabs-mode: t
 * End:
 */

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
9 Jul 2025 2.27 PM
root / 996
0755
zend.h
26.287 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_API.h
41.081 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_alloc.h
12.094 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_ast.h
2.333 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_build.h
1.589 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_builtin_functions.h
1.589 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_closures.h
1.815 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_compile.h
34.555 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_config.h
0.104 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_config.nw.h
2.443 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_config.w32.h
3.194 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_constants.h
6.087 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_dtrace.h
2 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_dynamic_array.h
1.861 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_errors.h
2.108 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_exceptions.h
2.974 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_execute.h
14.138 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_extensions.h
4.509 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_float.h
15.503 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_gc.h
7.233 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_generators.h
2.604 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_globals.h
7.304 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_globals_macros.h
3.15 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_hash.h
17.769 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_highlight.h
2.362 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_indent.h
1.436 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_ini.h
9.769 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_ini_parser.h
3.221 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_ini_scanner.h
1.956 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_ini_scanner_defs.h
0.22 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_interfaces.h
3.949 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_istdiostream.h
1.607 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_iterators.h
3.683 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_language_parser.h
8.872 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_language_scanner.h
2.633 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_language_scanner_defs.h
0.29 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_list.h
5.096 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_llist.h
3.884 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_modules.h
4.975 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_multibyte.h
4.985 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_multiply.h
3.658 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_object_handlers.h
9.485 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_objects.h
2.163 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_objects_API.h
4.284 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_operators.h
31.718 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_ptr_stack.h
4.213 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_qsort.h
1.616 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_signal.h
3.988 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_stack.h
2.325 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_static_allocator.h
1.813 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_stream.h
2.881 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_string.h
3.006 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_strtod.h
1.823 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_ts_hash.h
6.778 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_types.h
2.303 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_variables.h
3.76 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_virtual_cwd.h
11.846 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_vm.h
1.389 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_vm_def.h
162.944 KB
9 Jul 2025 2.28 PM
root / 996
0644
zend_vm_execute.h
1.32 MB
9 Jul 2025 2.28 PM
root / 996
0644
zend_vm_opcodes.h
8.601 KB
9 Jul 2025 2.28 PM
root / 996
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF