/PHP-5.4/ext/standard/ |
H A D | php_var.h | 126 static inline int php_varname_check(char *name, int name_len, zend_bool silent TSRMLS_DC) /* {{{ */ in php_varname_check() argument 128 if (name_len == sizeof("GLOBALS") - 1 && !memcmp(name, "GLOBALS", sizeof("GLOBALS") - 1)) { in php_varname_check() 135 (name_len == sizeof("_GET") - 1 && !memcmp(name, "_GET", sizeof("_GET") - 1)) || in php_varname_check() 136 (name_len == sizeof("_POST") - 1 && !memcmp(name, "_POST", sizeof("_POST") - 1)) || in php_varname_check() 137 … (name_len == sizeof("_COOKIE") - 1 && !memcmp(name, "_COOKIE", sizeof("_COOKIE") - 1)) || in php_varname_check() 138 (name_len == sizeof("_ENV") - 1 && !memcmp(name, "_ENV", sizeof("_ENV") - 1)) || in php_varname_check() 139 … (name_len == sizeof("_SERVER") - 1 && !memcmp(name, "_SERVER", sizeof("_SERVER") - 1)) || in php_varname_check() 140 … (name_len == sizeof("_SESSION") - 1 && !memcmp(name, "_SESSION", sizeof("_SESSION") - 1)) || in php_varname_check() 141 (name_len == sizeof("_FILES") - 1 && !memcmp(name, "_FILES", sizeof("_FILES") - 1)) || in php_varname_check() 142 … (name_len == sizeof("_REQUEST") -1 && !memcmp(name, "_REQUEST", sizeof("_REQUEST") - 1)) in php_varname_check() [all …]
|
H A D | php_incomplete_class.h | 33 class_name = php_lookup_class_name(struc, &name_len); \ 35 name_len = sizeof(INCOMPLETE_CLASS) - 1; \ 36 class_name = estrndup(INCOMPLETE_CLASS, name_len); \ 41 …free_class_name = !zend_get_object_classname(struc, (const char **)&class_name, &name_len TSRMLS_C… 49 zend_uint name_len; \
|
H A D | head.c | 76 PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, time_t expires, char… in php_setcookie() argument 94 len += name_len; in php_setcookie() 178 int name_len, value_len = 0, path_len = 0, domain_len = 0; in PHP_FUNCTION() local 181 &name_len, &value, &value_len, &expires, &path, in PHP_FUNCTION() 186 …if (php_setcookie(name, name_len, value, value_len, expires, path, path_len, domain, domain_len, s… in PHP_FUNCTION() 201 int name_len, value_len = 0, path_len = 0, domain_len = 0; in PHP_FUNCTION() local 204 &name_len, &value, &value_len, &expires, &path, in PHP_FUNCTION() 209 …if (php_setcookie(name, name_len, value, value_len, expires, path, path_len, domain, domain_len, s… in PHP_FUNCTION()
|
H A D | head.h | 34 PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, time_t expires, char…
|
H A D | url_scanner_ex.h | 31 PHPAPI int php_url_scanner_add_var(char *name, int name_len, char *value, int value_len, int urlenc…
|
/PHP-5.4/Zend/ |
H A D | zend_constants.c | 128 c.name_len = sizeof("TRUE"); in zend_register_standard_constants() 134 c.name_len = sizeof("FALSE"); in zend_register_standard_constants() 140 c.name_len = sizeof("NULL"); in zend_register_standard_constants() 186 c.name = zend_strndup(name, name_len-1); in zend_register_long_constant() 187 c.name_len = name_len; in zend_register_long_constant() 200 c.name = zend_strndup(name, name_len-1); in zend_register_double_constant() 201 c.name_len = name_len; in zend_register_double_constant() 215 c.name = zend_strndup(name, name_len-1); in zend_register_stringl_constant() 216 c.name_len = name_len; in zend_register_stringl_constant() 327 name_len -= 1; in zend_get_constant_ex() [all …]
|
H A D | zend_constants.h | 37 uint name_len; member 63 ZEND_API int zend_get_constant(const char *name, uint name_len, zval *result TSRMLS_DC); 64 ZEND_API int zend_get_constant_ex(const char *name, uint name_len, zval *result, zend_class_entry *… 65 ZEND_API void zend_register_long_constant(const char *name, uint name_len, long lval, int flags, in… 66 ZEND_API void zend_register_double_constant(const char *name, uint name_len, double dval, int flags… 67 ZEND_API void zend_register_string_constant(const char *name, uint name_len, char *strval, int flag… 68 ZEND_API void zend_register_stringl_constant(const char *name, uint name_len, char *strval, uint st…
|
H A D | zend_builtin_functions.c | 651 int name_len; in ZEND_FUNCTION() local 709 c.name = IS_INTERNED(name) ? name : zend_strndup(name, name_len); in ZEND_FUNCTION() 713 c.name_len = name_len+1; in ZEND_FUNCTION() 729 int name_len; in ZEND_FUNCTION() local 752 zend_uint name_len = 0; in ZEND_FUNCTION() local 770 RETURN_STRINGL(name, name_len, dup); in ZEND_FUNCTION() 1030 char *lcname = zend_str_tolower_dup(name, name_len); in same_name() 1031 int ret = memcmp(lcname, key, name_len) == 0; in same_name() 1352 int name_len; in ZEND_FUNCTION() local 1361 lcname = zend_str_tolower_dup(name, name_len); in ZEND_FUNCTION() [all …]
|
/PHP-5.4/ext/phar/ |
H A D | stub.h | 21 …t char *index_php, const char *web, size_t *len, char **stub, const int name_len, const int web_le… in phar_get_stub() argument 33 …printf(stub, name_len + web_len + newstub_len, "%s%s%s%s%s%s%d%s%s%s", newstub0, web, newstub1_0, … in phar_get_stub()
|
/PHP-5.4/win32/ |
H A D | registry.c | 72 DWORD name_len, type, value_len; in LoadDirectory() local 76 name_len = max_name+1; in LoadDirectory() 95 zend_hash_update(ht, name, name_len+1, &data, sizeof(zval*), NULL); in LoadDirectory() 132 DWORD name_len; in LoadDirectory() local 137 name_len = max_key+1; in LoadDirectory() 143 memcpy(new_path+path_len+1, name, name_len+1); in LoadDirectory() 144 zend_str_tolower(new_path, path_len+name_len+1); in LoadDirectory() 145 name_len += path_len+1; in LoadDirectory() 147 memcpy(new_path, name, name_len+1); in LoadDirectory() 148 zend_str_tolower(new_path, name_len); in LoadDirectory() [all …]
|
/PHP-5.4/ext/dom/ |
H A D | element.c | 337 int name_len; in PHP_FUNCTION() local 385 if (name_len == 0) { in PHP_FUNCTION() 443 int name_len; in PHP_FUNCTION() local 490 int name_len, ret; in PHP_FUNCTION() local 639 int name_len; in PHP_FUNCTION() local 757 if (name_len == 0) { in PHP_FUNCTION() 876 int name_len, uri_len; in PHP_FUNCTION() local 1033 int uri_len, name_len; in PHP_FUNCTION() local 1063 int name_len; in PHP_FUNCTION() local 1091 int uri_len, name_len; in PHP_FUNCTION() local [all …]
|
H A D | domimplementation.c | 95 int ret, name_len = 0, publicid_len = 0, systemid_len = 0; in PHP_METHOD() local 100 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sss", &name, &name_len, &publicid, &publici… in PHP_METHOD() 104 if (name_len == 0) { in PHP_METHOD() 158 int ret, uri_len = 0, name_len = 0, errorcode = 0; in PHP_METHOD() local 163 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ssO", &uri, &uri_len, &name, &name_len, &no… in PHP_METHOD() 181 if (name_len > 0) { in PHP_METHOD() 182 errorcode = dom_check_qname(name, &localname, &prefix, 1, name_len); in PHP_METHOD()
|
H A D | entityreference.c | 56 int name_len, name_valid; in PHP_METHOD() local 60 …) TSRMLS_CC, getThis(), "Os", &id, dom_entityreference_class_entry, &name, &name_len) == FAILURE) { in PHP_METHOD()
|
H A D | processinginstruction.c | 58 int name_len, value_len, name_valid; in PHP_METHOD() local 62 … getThis(), "Os|s", &id, dom_processinginstruction_class_entry, &name, &name_len, &value, &value_l… in PHP_METHOD()
|
/PHP-5.4/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 746 int name_len, retval; in php_xmlwriter_string_arg() local 893 int name_len, prefix_len, uri_len, retval; in PHP_FUNCTION() local 937 int name_len, content_len, retval; in PHP_FUNCTION() local 1035 int name_len, prefix_len, uri_len, retval; in PHP_FUNCTION() local 1095 int name_len, content_len, retval; in PHP_FUNCTION() local 1221 int name_len, content_len, retval; in PHP_FUNCTION() local 1434 int name_len, pubid_len, sysid_len, retval; in PHP_FUNCTION() local 1541 int name_len, content_len, retval; in PHP_FUNCTION() local 1601 int name_len, content_len, retval; in PHP_FUNCTION() local 1646 int name_len, retval; in PHP_FUNCTION() local [all …]
|
/PHP-5.4/sapi/fpm/fpm/ |
H A D | fpm_env.c | 46 int name_len = strlen(name); in setenv() local 48 char *var = alloca(name_len + 1 + value_len + 1); in setenv() 50 memcpy(var, name, name_len); in setenv() 52 var[name_len] = '='; in setenv() 54 memcpy(var + name_len + 1, value, value_len); in setenv() 56 var[name_len + 1 + value_len] = '\0'; in setenv()
|
/PHP-5.4/main/ |
H A D | output.c | 561 if (SUCCESS != (*conflict)(handler->name, handler->name_len TSRMLS_CC)) { in php_output_handler_start() 570 if (SUCCESS != (*conflict)(handler->name, handler->name_len TSRMLS_CC)) { in php_output_handler_start() 586 PHPAPI int php_output_handler_started(const char *name, size_t name_len TSRMLS_DC) in php_output_handler_started() 595 if (name_len == (*(handlers[i]))->name_len && !memcmp((*(handlers[i]))->name, name, name_len)) { in php_output_handler_started() 667 zend_hash_find(&php_output_handler_aliases, name, name_len+1, (void *) &func); in php_output_handler_alias() 881 handler->name = estrndup(name, name_len); in php_output_handler_init() 882 handler->name_len = name_len; in php_output_handler_init() 1175 add_next_index_stringl(array, handler->name, handler->name_len, 1); in php_output_stack_apply_list() 1201 add_assoc_stringl(entry, "name", handler->name, handler->name_len, 1); in php_output_handler_status() 1571 int name_len, value_len; in PHP_FUNCTION() local [all …]
|
H A D | php_variables.c | 445 zend_bool php_std_auto_global_callback(char *name, uint name_len TSRMLS_DC) in php_std_auto_global_callback() 634 static zend_bool php_auto_globals_create_env(const char *name, uint name_len TSRMLS_DC); 650 static zend_bool php_auto_globals_create_get(const char *name, uint name_len TSRMLS_DC) in php_auto_globals_create_get() 667 zend_hash_update(&EG(symbol_table), name, name_len + 1, &vars, sizeof(zval *), NULL); in php_auto_globals_create_get() 673 static zend_bool php_auto_globals_create_post(const char *name, uint name_len TSRMLS_DC) in php_auto_globals_create_post() 694 zend_hash_update(&EG(symbol_table), name, name_len + 1, &vars, sizeof(zval *), NULL); in php_auto_globals_create_post() 700 static zend_bool php_auto_globals_create_cookie(const char *name, uint name_len TSRMLS_DC) in php_auto_globals_create_cookie() 717 zend_hash_update(&EG(symbol_table), name, name_len + 1, &vars, sizeof(zval *), NULL); in php_auto_globals_create_cookie() 723 static zend_bool php_auto_globals_create_files(const char *name, uint name_len TSRMLS_DC) in php_auto_globals_create_files() 736 zend_hash_update(&EG(symbol_table), name, name_len + 1, &vars, sizeof(zval *), NULL); in php_auto_globals_create_files() [all …]
|
H A D | php_output.h | 131 size_t name_len; member 231 PHPAPI int php_output_start_internal(const char *name, size_t name_len, php_output_handler_func_t o… 234 PHPAPI php_output_handler *php_output_handler_create_internal(const char *name, size_t name_len, ph… 238 PHPAPI int php_output_handler_started(const char *name, size_t name_len TSRMLS_DC);
|
/PHP-5.4/ext/reflection/ |
H A D | php_reflection.c | 1607 int name_len; in ZEND_METHOD() local 1627 name_len--; in ZEND_METHOD() 2686 name_len = name_len - (tmp_len + 2); in ZEND_METHOD() 3415 int name_len; in ZEND_METHOD() local 3447 int name_len; in ZEND_METHOD() local 3652 int name_len; in ZEND_METHOD() local 3682 int name_len; in ZEND_METHOD() local 3797 int name_len; in ZEND_METHOD() local 3868 name_len = name_len - (classname_len + 2); in ZEND_METHOD() 3984 int name_len; in ZEND_METHOD() local [all …]
|
/PHP-5.4/ext/xmlreader/ |
H A D | php_xmlreader.c | 415 int name_len = 0; in php_xmlreader_string_arg() local 420 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &name_len) == FAILURE) { in php_xmlreader_string_arg() 424 if (!name_len) { in php_xmlreader_string_arg() 603 int name_len = 0, ns_uri_len = 0; in PHP_METHOD() local 611 if (name_len == 0 || ns_uri_len == 0) { in PHP_METHOD() 683 int name_len = 0, retval; in PHP_METHOD() local 687 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &name_len) == FAILURE) { in PHP_METHOD() 691 if (name_len == 0) { in PHP_METHOD() 744 int name_len=0, ns_uri_len=0, retval; in PHP_METHOD() local 752 if (name_len == 0 || ns_uri_len == 0) { in PHP_METHOD() [all …]
|
/PHP-5.4/ext/xsl/ |
H A D | xsltprocessor.c | 783 int string_key_len, namespace_len, name_len, value_len; in PHP_FUNCTION() local 815 zend_hash_update(intern->parameter, name, name_len + 1, &new_string, sizeof(zval*), NULL); in PHP_FUNCTION() 829 int name_len = 0, namespace_len = 0; in PHP_FUNCTION() local 836 …meters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &namespace, &namespace_len, &name, &name_len) == FAILURE) { in PHP_FUNCTION() 840 if ( zend_hash_find(intern->parameter, name, name_len + 1, (void**) &value) == SUCCESS) { in PHP_FUNCTION() 854 int name_len = 0, namespace_len = 0; in PHP_FUNCTION() local 860 …meters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &namespace, &namespace_len, &name, &name_len) == FAILURE) { in PHP_FUNCTION() 864 if ( zend_hash_del(intern->parameter, name, name_len + 1) == SUCCESS) { in PHP_FUNCTION() 879 int name_len = 0; in PHP_FUNCTION() local 900 …meters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &name_len) == SUCCESS) { in PHP_FUNCTION() [all …]
|
/PHP-5.4/ext/zip/ |
H A D | php_zip.c | 1820 int buffer_len, name_len; in ZIPARCHIVE_METHOD() local 1879 int name_len; in ZIPARCHIVE_METHOD() local 1935 int name_len; in ZIPARCHIVE_METHOD() local 1949 if (name_len<1) { in ZIPARCHIVE_METHOD() 2068 if (name_len < 1) { in ZIPARCHIVE_METHOD() 2113 int name_len, idx; in ZIPARCHIVE_METHOD() local 2129 if (name_len < 1) { in ZIPARCHIVE_METHOD() 2208 int name_len; in ZIPARCHIVE_METHOD() local 2221 if (name_len < 1) { in ZIPARCHIVE_METHOD() 2341 int name_len; in ZIPARCHIVE_METHOD() local [all …]
|
/PHP-5.4/sapi/cgi/ |
H A D | fastcgi.c | 852 unsigned int name_len, val_len; in fcgi_get_params() local 855 name_len = *p++; in fcgi_get_params() 856 if (UNEXPECTED(name_len >= 128)) { in fcgi_get_params() 858 name_len = ((name_len & 0x7f) << 24); in fcgi_get_params() 859 name_len |= (*p++ << 16); in fcgi_get_params() 860 name_len |= (*p++ << 8); in fcgi_get_params() 861 name_len |= *p++; in fcgi_get_params() 872 if (UNEXPECTED(name_len + val_len > (unsigned int) (end - p))) { in fcgi_get_params() 876 …fcgi_hash_set(&req->env, FCGI_HASH_FUNC(p, name_len), (char*)p, name_len, (char*)p + name_len, val… in fcgi_get_params() 877 p += name_len + val_len; in fcgi_get_params() [all …]
|
/PHP-5.4/ext/spl/ |
H A D | spl_functions.c | 136 char * spl_gen_private_prop_name(zend_class_entry *ce, char *prop_name, int prop_len, int *name_len… in spl_gen_private_prop_name() 140 zend_mangle_property_name(&rv, name_len, ce->name, ce->name_length, prop_name, prop_len, 0); in spl_gen_private_prop_name()
|