Home
last modified time | relevance | path

Searched refs:nlen (Results 1 – 8 of 8) sorted by relevance

/PHP-7.0/ext/standard/
H A Dphp_smart_string.h114 #define smart_string_appendl_ex(dest, src, nlen, what) do { \ argument
118 smart_string_alloc4(__dest, (nlen), (what), __nl); \
119 memcpy(__dest->c + __dest->len, (src), (nlen)); \
140 #define smart_string_setl(dest, src, nlen) do { \ argument
141 (dest)->len = (nlen); \
142 (dest)->a = (nlen) + 1; \
H A Dstring.c3674 size_t nlen = ZSTR_LEN(str), i; local
3681 case 'n': *target++='\n'; nlen--; break;
3682 case 'r': *target++='\r'; nlen--; break;
3683 case 'a': *target++='\a'; nlen--; break;
3684 case 't': *target++='\t'; nlen--; break;
3695 nlen-=3;
3698 nlen-=2;
3712 nlen-=i;
3716 nlen--;
3724 if (nlen != 0) {
[all …]
/PHP-7.0/sapi/fpm/tests/
H A Dfcgi.inc298 $nlen = strlen($name);
300 if ($nlen < 128) {
302 $nvpair = chr($nlen);
305 …$nvpair = chr(($nlen >> 24) | 0x80) . chr(($nlen >> 16) & 0xFF) . chr(($nlen >> 8) & 0xFF) . chr($
336 $nlen = ord($data{$p++});
337 if ($nlen >= 128) {
338 $nlen = ($nlen & 0x7F << 24);
341 $nlen |= (ord($data{$p++}));
345 $vlen = ($nlen & 0x7F << 24);
350 $array[substr($data, $p, $nlen)] = substr($data, $p+$nlen, $vlen);
[all …]
/PHP-7.0/ext/pdo/
H A Dpdo.c213 int nlen; in php_pdo_parse_data_source() local
258 nlen = valstart - optstart - 1; in php_pdo_parse_data_source()
260 …if (0 == strncmp(data_source + optstart, parsed[j].optname, nlen) && parsed[j].optname[nlen] == '\… in php_pdo_parse_data_source()
/PHP-7.0/main/
H A Dphp_variables.c504 unsigned long nlen; /* ptrdiff_t is not portable */ in _php_import_environment_variables() local
511 nlen = p - *env; in _php_import_environment_variables()
512 if (nlen >= alloc_size) { in _php_import_environment_variables()
513 alloc_size = nlen + 64; in _php_import_environment_variables()
516 memcpy(t, *env, nlen); in _php_import_environment_variables()
517 t[nlen] = '\0'; in _php_import_environment_variables()
/PHP-7.0/sapi/litespeed/
H A Dlsapi_main.c241 unsigned long nlen; /* ptrdiff_t is not portable */ in litespeed_php_import_environment_variables() local
264 nlen = p - *env; in litespeed_php_import_environment_variables()
265 if (nlen >= alloc_size) { in litespeed_php_import_environment_variables()
266 alloc_size = nlen + 64; in litespeed_php_import_environment_variables()
269 memcpy(t, *env, nlen); in litespeed_php_import_environment_variables()
270 t[nlen] = '\0'; in litespeed_php_import_environment_variables()
271 add_variable(t, nlen, p + 1, strlen( p + 1 ), array_ptr); in litespeed_php_import_environment_variables()
/PHP-7.0/ext/reflection/
H A Dphp_reflection.c143 register size_t nlen = (ZSTR_LEN(str->buf) + 1 + len + (1024 - 1)) & ~(1024 - 1); in string_printf() local
144 if (str->alloced < nlen) { in string_printf()
146 str->alloced = nlen; in string_printf()
160 register size_t nlen = (ZSTR_LEN(str->buf) + 1 + len + (1024 - 1)) & ~(1024 - 1); in string_write() local
161 if (str->alloced < nlen) { in string_write()
163 str->alloced = nlen; in string_write()
/PHP-7.0/ext/pcre/pcrelib/
H A Dpcre_compile.c6314 int nlen = (int)(code - bracode); in compile_branch() local
6317 memmove(bracode + 1 + LINK_SIZE, bracode, IN_UCHARS(nlen)); in compile_branch()
6319 nlen += 1 + LINK_SIZE; in compile_branch()
6322 PUTINC(code, 0, nlen); in compile_branch()
6323 PUT(bracode, 1, nlen); in compile_branch()

Completed in 106 milliseconds