Home
last modified time | relevance | path

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

1234

/PHP-7.2/ext/phar/
H A Dtar.c108 if (!strncmp(buf, "<?php", sizeof("<?php")-1)) { in phar_is_tar()
275 …| old) && strnlen(hdr->name, 100) == sizeof(".phar/signature.bin")-1 && !strncmp(hdr->name, ".phar… in phar_parse_tarfile()
520 …if (!actual_alias && entry.filename_len == sizeof(".phar/alias.txt")-1 && !strncmp(entry.filename,… in phar_parse_tarfile()
H A Dstream.c324 … && idata->internal_file->filename_len == sizeof(".phar/stub.php")-1 && !strncmp(idata->internal_f… in phar_wrapper_open_url()
619 …if ((int)ZSTR_LEN(str_key) >= internal_file_len || strncmp(ZSTR_VAL(str_key), internal_file, ZSTR_… in phar_wrapper_stat()
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()
911 …if (Z_STRLEN_P(data) == sizeof("PHP_SELF")-1 && !strncmp(Z_STRVAL_P(data), "PHP_SELF", sizeof("PHP… in PHP_METHOD()
916 if (!strncmp(Z_STRVAL_P(data), "REQUEST_URI", sizeof("REQUEST_URI")-1)) { in PHP_METHOD()
919 if (!strncmp(Z_STRVAL_P(data), "SCRIPT_NAME", sizeof("SCRIPT_NAME")-1)) { in PHP_METHOD()
924 …if (Z_STRLEN_P(data) == sizeof("SCRIPT_FILENAME")-1 && !strncmp(Z_STRVAL_P(data), "SCRIPT_FILENAME… in PHP_METHOD()
4388 if (0 != strncmp(ZSTR_VAL(search), entry->filename, ZSTR_LEN(search))) continue; in extract_helper()
H A Ddirstream.c208 if (keylen == 0 || keylen < (uint32_t)dirlen || !strncmp(ZSTR_VAL(str_key), dir, dirlen)) { in phar_make_dirstream()
H A Dutil.c317 if (ret && ZSTR_LEN(ret) > 8 && !strncmp(ZSTR_VAL(ret), "phar://", 7)) { in phar_find_in_include_path()
1005 if (fname && (fname_len != fd_ptr->fname_len || strncmp(fname, fd_ptr->fname, fname_len))) { in phar_get_archive()
1298 if ((int)ZSTR_LEN(str_key) >= path_len || strncmp(ZSTR_VAL(str_key), path, ZSTR_LEN(str_key))) { in phar_get_entry_info_dir()
/PHP-7.2/sapi/fpm/fpm/
H A Dfpm_main.c723 if (strncmp(s1, s2, s_len) == 0) {
1063 strncmp(env_server_software, "Microsoft-IIS", sizeof("Microsoft-IIS") - 1) == 0 &&
1064 strncmp(env_path_info, env_script_name, strlen(env_script_name)) == 0
/PHP-7.2/ext/standard/tests/streams/
H A Dstream_get_meta_data_file_variation1.phpt18 if (strncmp($mode, 'x', 1) == 0) {
/PHP-7.2/main/
H A DSAPI.c380 if (*charset && strncmp(*mimetype, "text/", 5) == 0 && strstr(*mimetype, "charset=") == NULL) { in sapi_apply_default_charset()
780 if (!strncmp(ptr, "image/", sizeof("image/")-1)) { in sapi_header_op()
H A Dmain.c887 if (strncmp(docref, "http://", 7)) { in php_verror()
2681 if (auth && auth[0] != '\0' && strncmp(auth, "Basic ", 6) == 0) { in php_handle_auth_data()
2704 if (ret == -1 && auth && auth[0] != '\0' && strncmp(auth, "Digest ", 7) == 0) { in php_handle_auth_data()
/PHP-7.2/main/streams/
H A Dtransports.c100 if ((*p == ':') && (n > 1) && !strncmp("://", p, 3)) { in _php_stream_xport_create()
/PHP-7.2/ext/session/
H A Dmod_files.c317 if (!strncmp(entry->d_name, FILE_PREFIX, sizeof(FILE_PREFIX) - 1)) { in ps_files_cleanup_dir()
/PHP-7.2/ext/sqlite3/
H A Dsqlite3.c370 if ((strncmp(sapi_module.name, "cgi", 3) != 0) && in PHP_METHOD()
372 (strncmp(sapi_module.name, "embed", 5) != 0) in PHP_METHOD()
405 if (strncmp(fullpath, extension_dir, extension_dir_len) != 0) { in PHP_METHOD()
2074 if (strncmp(arg3, "file:", 5) == 0) { in php_sqlite3_authorizer()
/PHP-7.2/ext/intl/locale/
H A Dlocale_methods.c808 if( strncmp(key_name , LOC_PRIVATE_TAG , 7) == 0 ){ in add_prefix()
1518 …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.2/ext/standard/
H A Dimage.c894 if (strncmp((char *) a+4, "ILBM", 4) && strncmp((char *) a+4, "PBM ", 4)) { in php_handle_iff()
/PHP-7.2/ext/pcre/pcrelib/
H A Dpcre_internal.h370 #define strncmp(s1,s2,m) _strncmp(s1,s2,m) macro
2692 strncmp((char *)(str1), (char *)(str2), (num))
2694 strncmp((char *)(str1), (str2), (num))
/PHP-7.2/ext/gd/libgd/
H A Dgd_gif_in.c158 if (strncmp((char *)buf,"GIF",3) != 0) { in gdImageCreateFromGifCtx()
H A Dgd_jpeg.c448 …if ((marker->marker == (JPEG_APP0 + 14)) && (marker->data_length >= 12) && (!strncmp((const char *… in gdImageCreateFromJpegCtxEx()
/PHP-7.2/win32/
H A Dcodepage.c260 …return strlen(sapi_module.name) >= sizeof("cli") - 1 && !strncmp(sapi_module.name, "cli", sizeof("… in php_win32_cp_is_cli_sapi()
H A Dsendmail.c711 …if ((headers_lc && (!strstr(headers_lc, "\r\nto:") && (strncmp(headers_lc, "to:", 3) != 0))) || !h… in PostHeader()
/PHP-7.2/sapi/litespeed/
H A Dlsapilib.c2221 if ( strncmp( name, "HTTP_", 5 ) == 0 ) in LSAPI_GetEnv_r()
3568 if (!strncmp(*env, "LSAPI_", 6) || !strncmp( *env, "PHP_LSAPI_", 10 ) in unset_lsapi_envs()
3569 || (!strncmp( *env, "PHPRC=", 6 )&&(!s_uid))) in unset_lsapi_envs()
3660 if (strncmp(resolved_path, "/etc/", 5) == 0) in lsapi_check_path()
/PHP-7.2/ext/pdo/
H A Dpdo_stmt.c143 if (strncmp(name, ZSTR_VAL(param->name), ZSTR_LEN(param->name) + 1)) {
333strncmp(ZSTR_VAL(stmt->columns[i].name), ZSTR_VAL(param->name), ZSTR_LEN(param->name) + 1) == 0) { in really_register_bound_param()
2514 strncmp(ZSTR_VAL(stmt->columns[colno].name), Z_STRVAL_P(member), Z_STRLEN_P(member)) == 0) { in row_prop_read()
2567 strncmp(ZSTR_VAL(stmt->columns[colno].name), Z_STRVAL_P(member), Z_STRLEN_P(member)) == 0) { in row_prop_exists()
/PHP-7.2/ext/json/
H A Djson_scanner.re177 int cmp = strncmp((char *) (s->token + negative), LONG_MIN_DIGITS, PHP_JSON_INT_MAX_LENGTH);
/PHP-7.2/sapi/cgi/
H A Dcgi_main.c849 if (strncmp(s1, s2, s_len) == 0) {
1220 strncmp(env_server_software, "Microsoft-IIS", sizeof("Microsoft-IIS")-1) == 0 &&
1221 strncmp(env_path_info, env_script_name, strlen(env_script_name)) == 0
/PHP-7.2/Zend/
H A Dzend_builtin_functions.c38 static ZEND_FUNCTION(strncmp);
244 ZEND_FE(strncmp, arginfo_strncmp)
551 ZEND_FUNCTION(strncmp) in ZEND_FUNCTION() argument
/PHP-7.2/ext/pgsql/
H A Dpgsql.c841 if (!strncmp(encoding, "SJIS", sizeof("SJIS")-1) || in php_pgsql_PQescapeInternal()
842 !strncmp(encoding, "SHIFT_JIS_2004", sizeof("SHIFT_JIS_2004")-1) || in php_pgsql_PQescapeInternal()
843 !strncmp(encoding, "BIG5", sizeof("BIG5")-1) || in php_pgsql_PQescapeInternal()
844 !strncmp(encoding, "GB18030", sizeof("GB18030")-1) || in php_pgsql_PQescapeInternal()
845 !strncmp(encoding, "GBK", sizeof("GBK")-1) || in php_pgsql_PQescapeInternal()
846 !strncmp(encoding, "JOHAB", sizeof("JOHAB")-1) || in php_pgsql_PQescapeInternal()
847 !strncmp(encoding, "UHC", sizeof("UHC")-1) ) { in php_pgsql_PQescapeInternal()

Completed in 159 milliseconds

1234