Home
last modified time | relevance | path

Searched refs:strncmp (Results 51 – 75 of 96) sorted by relevance

1234

/PHP-7.4/ext/standard/tests/streams/
H A Dstream_get_meta_data_file_variation1.phpt18 if (strncmp($mode, 'x', 1) == 0) {
/PHP-7.4/main/streams/
H A Dtransports.c102 if ((*p == ':') && (n > 1) && !strncmp("://", p, 3)) { in _php_stream_xport_create()
/PHP-7.4/ext/readline/
H A Dreadline.c525 if (strncmp (Z_STRVAL_P(entry), text, strlen(text)) == 0) { in _readline_command_generator()
/PHP-7.4/main/
H A DSAPI.c374 if (*charset && strncmp(*mimetype, "text/", 5) == 0 && strstr(*mimetype, "charset=") == NULL) { in sapi_apply_default_charset()
774 if (!strncmp(ptr, "image/", sizeof("image/")-1)) { in sapi_header_op()
/PHP-7.4/ext/phar/
H A Dphar_object.c601 …if ((sapi_mod_name_len == sizeof("cgi-fcgi") - 1 && !strncmp(sapi_module.name, "cgi-fcgi", sizeof(… in PHP_METHOD()
602 …|| (sapi_mod_name_len == sizeof("fpm-fcgi") - 1 && !strncmp(sapi_module.name, "fpm-fcgi", sizeof("… in PHP_METHOD()
603 …|| (sapi_mod_name_len == sizeof("cgi") - 1 && !strncmp(sapi_module.name, "cgi", sizeof("cgi") - 1)… in PHP_METHOD()
905 …if (Z_STRLEN_P(data) == sizeof("PHP_SELF")-1 && !strncmp(Z_STRVAL_P(data), "PHP_SELF", sizeof("PHP… in PHP_METHOD()
910 if (!strncmp(Z_STRVAL_P(data), "REQUEST_URI", sizeof("REQUEST_URI")-1)) { in PHP_METHOD()
913 if (!strncmp(Z_STRVAL_P(data), "SCRIPT_NAME", sizeof("SCRIPT_NAME")-1)) { in PHP_METHOD()
918 …if (Z_STRLEN_P(data) == sizeof("SCRIPT_FILENAME")-1 && !strncmp(Z_STRVAL_P(data), "SCRIPT_FILENAME… in PHP_METHOD()
1545 …if (fname_len >= base_len && strncmp(fname, base, base_len) == 0 && ((ch = fname[base_len - IS_SLA… in phar_build()
4333 if (0 != strncmp(ZSTR_VAL(search), entry->filename, ZSTR_LEN(search))) continue; in extract_helper()
H A Dstream.c325 … && idata->internal_file->filename_len == sizeof(".phar/stub.php")-1 && !strncmp(idata->internal_f… in phar_wrapper_open_url()
620 …if (ZSTR_LEN(str_key) >= internal_file_len || strncmp(ZSTR_VAL(str_key), internal_file, ZSTR_LEN(s… in phar_wrapper_stat()
H A Ddirstream.c208 if (keylen == 0 || keylen < dirlen || !strncmp(ZSTR_VAL(str_key), dir, dirlen)) { in phar_make_dirstream()
H A Dutil.c313 if (ret && ZSTR_LEN(ret) > 8 && !strncmp(ZSTR_VAL(ret), "phar://", 7)) { in phar_find_in_include_path()
1001 if (fname && (fname_len != fd_ptr->fname_len || strncmp(fname, fd_ptr->fname, fname_len))) { in phar_get_archive()
1294 if (ZSTR_LEN(str_key) >= path_len || strncmp(ZSTR_VAL(str_key), path, ZSTR_LEN(str_key))) { in phar_get_entry_info_dir()
H A Dzip.c423 …if (entry.filename_len == sizeof(".phar/signature.bin")-1 && !strncmp(entry.filename, ".phar/signa… in phar_parse_zipfile()
574 …if (!actual_alias && entry.filename_len == sizeof(".phar/alias.txt")-1 && !strncmp(entry.filename,… in phar_parse_zipfile()
/PHP-7.4/ext/opcache/
H A Dzend_shared_alloc.c173 if (strncmp(ZCG(accel_directives).memory_model, "cgi", sizeof("cgi")) == 0) { in zend_shared_alloc_startup()
/PHP-7.4/ext/standard/
H A Dimage.c892 if (strncmp((char *) a+4, "ILBM", 4) && strncmp((char *) a+4, "PBM ", 4)) { in php_handle_iff()
H A Dbasic_functions.c3496 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */ in php_putenv_destructor()
3506 if (!strncmp(pe->key, "TZ", pe->key_len)) { in php_putenv_destructor()
4209 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */
4261 if (!strncmp(pe.key, "TZ", pe.key_len)) {
5506 return !strncmp(option_name, new_option_name, option_len);
/PHP-7.4/ext/intl/locale/
H A Dlocale_methods.c803 if( strncmp(key_name , LOC_PRIVATE_TAG , 7) == 0 ){ in add_prefix()
1502 …if(cur_arr[i*2] != NULL && strlen(cur_arr[i*2]) == saved_pos && strncmp(cur_loc_range, cur_arr[i*2… in lookup_loc_range()
/PHP-7.4/ext/gd/libgd/
H A Dgd_gif_in.c158 if (strncmp((char *)buf,"GIF",3) != 0) { in gdImageCreateFromGifCtx()
H A Dgd_jpeg.c454 …if ((marker->marker == (JPEG_APP0 + 14)) && (marker->data_length >= 12) && (!strncmp((const char *… in gdImageCreateFromJpegCtxEx()
/PHP-7.4/ext/sqlite3/
H A Dsqlite3.c416 if ((strncmp(sapi_module.name, "cgi", 3) != 0) && in PHP_METHOD()
418 (strncmp(sapi_module.name, "embed", 5) != 0) in PHP_METHOD()
451 if (strncmp(fullpath, extension_dir, extension_dir_len) != 0) { in PHP_METHOD()
2286 if (strncmp(arg3, "file:", 5) == 0) { in php_sqlite3_authorizer()
/PHP-7.4/ext/pdo/
H A Dpdo_stmt.c141 if (strncmp(name, ZSTR_VAL(param->name), ZSTR_LEN(param->name) + 1)) {
337strncmp(ZSTR_VAL(stmt->columns[i].name), ZSTR_VAL(param->name), ZSTR_LEN(param->name) + 1) == 0) { in really_register_bound_param()
2472 strncmp(ZSTR_VAL(stmt->columns[colno].name), Z_STRVAL_P(member), Z_STRLEN_P(member)) == 0) { in row_prop_read()
2528 strncmp(ZSTR_VAL(stmt->columns[colno].name), Z_STRVAL_P(member), Z_STRLEN_P(member)) == 0) { in row_prop_exists()
/PHP-7.4/ext/json/
H A Djson_scanner.re177 int cmp = strncmp((char *) (s->token + negative), LONG_MIN_DIGITS, PHP_JSON_INT_MAX_LENGTH);
/PHP-7.4/sapi/cgi/
H A Dcgi_main.c836 if (strncmp(s1, s2, s_len) == 0) {
1215 strncmp(env_server_software, "Microsoft-IIS", sizeof("Microsoft-IIS")-1) == 0 &&
1216 strncmp(env_path_info, env_script_name, strlen(env_script_name)) == 0
/PHP-7.4/sapi/litespeed/
H A Dlsapilib.c2230 if ( strncmp( name, "HTTP_", 5 ) == 0 ) in LSAPI_GetEnv_r()
3801 if (!strncmp(*env, "LSAPI_", 6) || !strncmp( *env, "PHP_LSAPI_", 10 ) in unset_lsapi_envs()
3802 || (!strncmp( *env, "PHPRC=", 6 )&&(!s_uid))) in unset_lsapi_envs()
3893 if (strncmp(resolved_path, "/etc/", 5) == 0) in lsapi_check_path()
/PHP-7.4/win32/
H A Dsendmail.c751 …if ((headers_lc && (!strstr(headers_lc, "\r\nto:") && (strncmp(headers_lc, "to:", 3) != 0))) || !h… in PostHeader()
/PHP-7.4/Zend/
H A Dzend_builtin_functions.c37 static ZEND_FUNCTION(strncmp);
249 ZEND_FE(strncmp, arginfo_strncmp)
614 ZEND_FUNCTION(strncmp) in ZEND_FUNCTION() argument
/PHP-7.4/ext/pgsql/
H A Dpgsql.c832 if (!strncmp(encoding, "SJIS", sizeof("SJIS")-1) || in php_pgsql_PQescapeInternal()
833 !strncmp(encoding, "SHIFT_JIS_2004", sizeof("SHIFT_JIS_2004")-1) || in php_pgsql_PQescapeInternal()
834 !strncmp(encoding, "BIG5", sizeof("BIG5")-1) || in php_pgsql_PQescapeInternal()
835 !strncmp(encoding, "GB18030", sizeof("GB18030")-1) || in php_pgsql_PQescapeInternal()
836 !strncmp(encoding, "GBK", sizeof("GBK")-1) || in php_pgsql_PQescapeInternal()
837 !strncmp(encoding, "JOHAB", sizeof("JOHAB")-1) || in php_pgsql_PQescapeInternal()
838 !strncmp(encoding, "UHC", sizeof("UHC")-1) ) { in php_pgsql_PQescapeInternal()
/PHP-7.4/ext/pcre/pcre2lib/
H A Dpcre2_compile.c4553 PRIV(strncmp)(name, ng->name, (PCRE2_SIZE)namelen) == 0) in parse_regex()
5211 if (PRIV(strncmp)(name, slot+IMM2_SIZE, length) == 0 && in find_dupname_details()
5240 if (PRIV(strncmp)(name, slot+IMM2_SIZE, length) != 0 || in find_dupname_details()
6244 PRIV(strncmp)(name, ng->name, length) == 0) in compile_branch()
6664 PRIV(strncmp)(name, ng->name, length) == 0) in compile_branch()
9196 if (length == ng->length && PRIV(strncmp)(name, ng->name, length) == 0) in get_branchlength()
/PHP-7.4/ext/soap/
H A Dsoap.c1024 strncmp(ZSTR_VAL(name), "type_name", sizeof("type_name")-1) == 0) { in soap_create_typemap()
1030 strncmp(ZSTR_VAL(name), "type_ns", sizeof("type_ns")-1) == 0) { in soap_create_typemap()
1036 strncmp(ZSTR_VAL(name), "to_xml", sizeof("to_xml")-1) == 0) { in soap_create_typemap()
1039 strncmp(ZSTR_VAL(name), "from_xml", sizeof("from_xml")-1) == 0) { in soap_create_typemap()
2061 if (strncmp(Z_STRVAL_P(agent_name), "Shockwave Flash", sizeof("Shockwave Flash")-1) == 0) {

Completed in 205 milliseconds

1234