Home
last modified time | relevance | path

Searched refs:strcmp (Results 1 – 25 of 157) sorted by relevance

1234567

/PHP-7.4/ext/standard/tests/strings/
H A Dstrcmp.phpt2 strcmp() function
119 strcmp();
120 strcmp("");
121 strcmp("HI");
195 - strcmp of '�' and 'a' is => int(-%d)
196 - strcmp of '�' and 'A' is => int(-%d)
197 - strcmp of '�' and 'a' is => int(-%d)
198 - strcmp of '�' and 'A' is => int(-%d)
199 - strcmp of '�' and '�' is => int(-%d)
200 - strcmp of '�' and '�' is => int(-%d)
[all …]
H A Dstr_rot13_basic.phpt16 if (strcmp(str_rot13("0123456789"), "0123456789") == 0) {
23 if (strcmp(str_rot13("!%^&*()_-+={}[]:;@~#<,>.?"), "!%^&*()_-+={}[]:;@~#<,>.?")) {
33 if (strcmp($str, $decode) == 0) {
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_eol.c39 …if (0 == strcmp(name, "CRLF") || 0 == strcmp(name, "crlf") || 0 == strcmp(name, "DOS") || 0 == str… in phpdbg_eol_global_update()
41 …} else if (0 == strcmp(name, "LF") || 0 == strcmp(name, "lf") || 0 == strcmp(name, "UNIX") || 0 ==… in phpdbg_eol_global_update()
43 …} else if (0 == strcmp(name, "CR") || 0 == strcmp(name, "cr") || 0 == strcmp(name, "MAC") || 0 == in phpdbg_eol_global_update()
H A Dphpdbg_rinit_hook.c36 if (!strcmp(sapi_module.name, PHPDBG_NAME)) { in PHP_MINIT_FUNCTION()
51 …NAME "_AUTH_COOKIE"))) || Z_STRLEN_P(auth) != strlen(PHPDBG_WG(auth)) || strcmp(Z_STRVAL_P(auth), … in PHP_RINIT_FUNCTION()
/PHP-7.4/ext/gd/libgd/
H A Dwebpng.c38 if (argc < 2 || !strcmp (argv[1], "--help")) in main()
45 if (strcmp ("-", argv[argc - 1]) == 0) in main()
74 if (!strcmp (argv[i], "--help")) in main()
80 else if (!strcmp (argv[i], "-i")) in main()
89 if (!strcmp (argv[i + 1], "y")) in main()
94 else if (!strcmp (argv[i + 1], "n")) in main()
110 else if (!strcmp (argv[i], "-t")) in main()
121 if (!strcmp (argv[i + 1], "none")) in main()
136 else if (!strcmp (argv[i], "-l")) in main()
161 else if (!strcmp (argv[i], "-d")) in main()
[all …]
H A Dgdkanji.c199 if (strcmp (lang, "ja_JP.SJIS") == 0 || in DetectKanjiCode()
201 strcmp (lang, "japanese") == 0 || in DetectKanjiCode()
203 strcmp (lang, "ja_JP.mscode") == 0 || in DetectKanjiCode()
204 strcmp (lang, "ja_JP.PCK") == 0) in DetectKanjiCode()
384 if (strcmp (code, NEWJISSTR) == 0 || strcmp (code, OLDJISSTR) == 0) in do_convert()
421 else if (strcmp (code, SJISSTR) == 0) in do_convert()
H A Dgd_xbm.c64 if (!strcmp("width", type)) { in gdImageCreateFromXbm()
67 if (!strcmp("height", type)) { in gdImageCreateFromXbm()
90 if (!strcmp("bits[]", type)) { in gdImageCreateFromXbm()
/PHP-7.4/ext/xmlrpc/libxmlrpc/
H A Dxml_to_dandarpc.c73 if(!strcmp(attr_iter->key, ATTR_ID)) { in xml_element_to_DANDARPC_REQUEST_worker()
76 if(!strcmp(attr_iter->key, ATTR_TYPE)) { in xml_element_to_DANDARPC_REQUEST_worker()
86 if(!strcmp(el->name, ATTR_SCALAR)) { in xml_element_to_DANDARPC_REQUEST_worker()
90 else if(!strcmp(type, ATTR_INT)) { in xml_element_to_DANDARPC_REQUEST_worker()
93 else if(!strcmp(type, ATTR_BOOLEAN)) { in xml_element_to_DANDARPC_REQUEST_worker()
96 else if(!strcmp(type, ATTR_DOUBLE)) { in xml_element_to_DANDARPC_REQUEST_worker()
99 else if(!strcmp(type, ATTR_DATETIME)) { in xml_element_to_DANDARPC_REQUEST_worker()
102 else if(!strcmp(type, ATTR_BASE64)) { in xml_element_to_DANDARPC_REQUEST_worker()
109 else if(!strcmp(el->name, ATTR_VECTOR)) { in xml_element_to_DANDARPC_REQUEST_worker()
115 else if(!strcmp(type, ATTR_ARRAY)) { in xml_element_to_DANDARPC_REQUEST_worker()
[all …]
H A Dxmlrpc_introspection.c81 if(name && !strcmp(name, needle)) { in find_named_value()
320 if(!strcmp(attr_iter->key, "name")) { in xml_element_to_method_description()
323 else if(!strcmp(attr_iter->key, "type")) { in xml_element_to_method_description()
329 else if(!strcmp(attr_iter->key, "desc")) { in xml_element_to_method_description()
337 else if(!strcmp(attr_iter->key, "default")) { in xml_element_to_method_description()
344 if(!strcmp(el->name, "value") || !strcmp(el->name, "typeDescription")) { in xml_element_to_method_description()
349 (!strcmp(ptype, "array") || !strcmp(ptype, "struct") || !strcmp(ptype, "mixed"))) { in xml_element_to_method_description()
366 else if(!strcmp(el->name, "params") || in xml_element_to_method_description()
367 !strcmp(el->name, "returns") || in xml_element_to_method_description()
368 !strcmp(el->name, "signature")) { in xml_element_to_method_description()
[all …]
H A Dxml_to_xmlrpc.c74 if (!strcmp(el->name, ELEM_FAULT)) { in xml_element_to_XMLRPC_REQUEST_worker()
93 || (!strcmp(el->name, ELEM_PARAMS) && in xml_element_to_XMLRPC_REQUEST_worker()
105 else if (!strcmp(el->name, ELEM_STRUCT)) { in xml_element_to_XMLRPC_REQUEST_worker()
116 else if (!strcmp(el->name, ELEM_STRING) || in xml_element_to_XMLRPC_REQUEST_worker()
120 else if (!strcmp(el->name, ELEM_NAME)) { in xml_element_to_XMLRPC_REQUEST_worker()
123 else if (!strcmp(el->name, ELEM_INT) || !strcmp(el->name, ELEM_I4)) { in xml_element_to_XMLRPC_REQUEST_worker()
126 else if (!strcmp(el->name, ELEM_BOOLEAN)) { in xml_element_to_XMLRPC_REQUEST_worker()
129 else if (!strcmp(el->name, ELEM_DOUBLE)) { in xml_element_to_XMLRPC_REQUEST_worker()
132 else if (!strcmp(el->name, ELEM_DATETIME)) { in xml_element_to_XMLRPC_REQUEST_worker()
135 else if (!strcmp(el->name, ELEM_BASE64)) { in xml_element_to_XMLRPC_REQUEST_worker()
[all …]
H A Dxml_to_soap.c259 if(!strcmp(id, "item")) { in xml_element_to_SOAP_REQUEST_worker()
266 if (!strcmp(attr_iter->key, TOKEN_TYPE)) { in xml_element_to_SOAP_REQUEST_worker()
340 if (!type || !strcmp(type, TOKEN_STRING)) { in xml_element_to_SOAP_REQUEST_worker()
343 else if (!strcmp(type, TOKEN_INT)) { in xml_element_to_SOAP_REQUEST_worker()
346 else if (!strcmp(type, TOKEN_BOOLEAN)) { in xml_element_to_SOAP_REQUEST_worker()
349 else if (!strcmp(type, TOKEN_DOUBLE) || in xml_element_to_SOAP_REQUEST_worker()
350 !strcmp(type, TOKEN_FLOAT)) { in xml_element_to_SOAP_REQUEST_worker()
353 else if (!strcmp(type, TOKEN_NULL)) { in xml_element_to_SOAP_REQUEST_worker()
356 else if (!strcmp(type, TOKEN_DATETIME)) { in xml_element_to_SOAP_REQUEST_worker()
359 else if (!strcmp(type, TOKEN_BASE64)) { in xml_element_to_SOAP_REQUEST_worker()
[all …]
/PHP-7.4/ext/openssl/tests/
H A Dopenssl_x509_export_basic.phpt25 var_dump(strcmp($output, $a));
26 var_dump(strcmp($output, $output2));
27 var_dump(strcmp($output, $output3));
28 var_dump(strcmp($output, $output4)); // different
29 var_dump(strcmp($output, $output5)); // different
/PHP-7.4/ext/odbc/tests/
H A Dbug60616.phpt44 if (strcmp($char_col, $euc_jp_check) == 0 && strcmp($varchar_col, $euc_jp) == 0 &&
45 strcmp($text_col, $euc_jp) == 0) {
52 if (strcmp($char_col, $ascii_check) == 0 && strcmp($varchar_col, $ascii) == 0 &&
53 strcmp($text_col, $ascii) == 0) {
/PHP-7.4/ext/zlib/tests/
H A D001.phpt11 if (strcmp($original,$unpacked)==0) echo "Strings are equal\n";
18 if (strcmp($original,$unpacked)==0) echo "Strings are equal\n";
24 if (strcmp($original,$unpacked)==0) echo "Strings are equal";
H A D002.phpt11 if (strcmp($original,$unpacked)==0) echo "Strings are equal\n";
18 if (strcmp($original,$unpacked)==0) echo "Strings are equal\n";
H A Dgzinflate_length.phpt11 if (strcmp($original,$unpacked)==0) echo "Strings are equal\n";
14 if (strcmp($original,$unpacked)==0) echo "Strings are equal\n";
/PHP-7.4/ext/pdo/
H A Dphp_pdo_error.h34 #define PDO_HANDLE_DBH_ERR() if (strcmp(dbh->error_code, PDO_ERR_NONE)) { pdo_handle_error(dbh, …
35 #define PDO_HANDLE_STMT_ERR() if (strcmp(stmt->error_code, PDO_ERR_NONE)) { pdo_handle_error(stmt…
/PHP-7.4/main/
H A Dmain.c132 if (!strcmp(facility, "LOG_AUTH") || !strcmp(facility, "auth") || !strcmp(facility, "security")) { in PHP_INI_MH()
144 if (!strcmp(facility, "LOG_CRON") || !strcmp(facility, "cron")) { in PHP_INI_MH()
150 if (!strcmp(facility, "LOG_DAEMON") || !strcmp(facility, "daemon")) { in PHP_INI_MH()
156 if (!strcmp(facility, "LOG_FTP") || !strcmp(facility, "ftp")) { in PHP_INI_MH()
162 if (!strcmp(facility, "LOG_KERN") || !strcmp(facility, "kern")) { in PHP_INI_MH()
168 if (!strcmp(facility, "LOG_LPR") || !strcmp(facility, "lpr")) { in PHP_INI_MH()
174 if (!strcmp(facility, "LOG_MAIL") || !strcmp(facility, "mail")) { in PHP_INI_MH()
186 if (!strcmp(facility, "LOG_NEWS") || !strcmp(facility, "news")) { in PHP_INI_MH()
192 if (!strcmp(facility, "LOG_SYSLOG") || !strcmp(facility, "syslog")) { in PHP_INI_MH()
198 if (!strcmp(facility, "LOG_USER") || !strcmp(facility, "user")) { in PHP_INI_MH()
[all …]
/PHP-7.4/ext/intl/locale/
H A Dlocale_methods.c111 if (strcmp(key, *list) == 0) { in findOffset()
275 if( strcmp(tag_name , LOC_LANG_TAG)==0 ){ in get_icu_value_internal()
287 if( strcmp(tag_name , LOC_LANG_TAG)==0 ){ in get_icu_value_internal()
320 if( strcmp(tag_name , LOC_SCRIPT_TAG)==0 ){ in get_icu_value_internal()
323 if( strcmp(tag_name , LOC_LANG_TAG )==0 ){ in get_icu_value_internal()
326 if( strcmp(tag_name , LOC_REGION_TAG)==0 ){ in get_icu_value_internal()
527 if( strcmp(tag_name, DISP_NAME) != 0 ){ in get_icu_disp_value_src_php()
531 if( strcmp(tag_name , LOC_LANG_TAG)==0 ){ in get_icu_disp_value_src_php()
555 if( strcmp(tag_name , LOC_LANG_TAG)==0 ){ in get_icu_disp_value_src_php()
785 if(strcmp(key_name, LOC_LANG_TAG) != 0 && in append_key_value()
[all …]
/PHP-7.4/ext/standard/tests/array/
H A Duasort_variation8.phpt12 * valid comparison functions: strcmp() & strcasecmp()
27 echo "-- Testing uasort() with built-in 'cmp_function': strcmp() --\n";
28 var_dump( uasort($array_arg, 'strcmp') ); // expecting: bool(true)
56 -- Testing uasort() with built-in 'cmp_function': strcmp() --
H A Dusort_variation8.phpt28 echo "\n-- Testing usort() with built-in 'cmp_function': strcmp() --\n";
30 var_dump( usort($temp_array2, 'strcmp') );
61 -- Testing usort() with built-in 'cmp_function': strcmp() --
/PHP-7.4/ext/soap/
H A Dphp_xml.c202 if (name == NULL || ((node->name) && strcmp((char*)node->name, name) == 0)) { in attr_is_equal_ex()
206 return (strcmp((char*)nsPtr->href, ns) == 0); in attr_is_equal_ex()
218 if (name == NULL || ((node->name) && strcmp((char*)node->name, name) == 0)) { in node_is_equal_ex()
222 return (strcmp((char*)nsPtr->href, ns) == 0); in node_is_equal_ex()
284 if (attr != NULL && strcmp((char*)attr->children->content, value) == 0) { in get_node_with_attribute_ex()
297 if (attr != NULL && strcmp((char*)attr->children->content, value) == 0) { in get_node_with_attribute_recursive_ex()
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_php.c88 if (!strcmp(name, "extension") && *value) { in fpm_php_apply_defines_ex()
98 if (!strcmp(name, "disable_functions") && *value) { in fpm_php_apply_defines_ex()
105 if (!strcmp(name, "disable_classes") && *value) { in fpm_php_apply_defines_ex()
252 if (strcmp(*p, path_ext) == 0) { in fpm_php_limit_extensions()
/PHP-7.4/ext/xmlrpc/
H A Dxmlrpc-epi-php.c375 if (!strcmp(Z_STRVAL_P(val), OUTPUT_TYPE_VALUE_PHP)) { in set_output_options()
377 } else if (!strcmp(Z_STRVAL_P(val), OUTPUT_TYPE_VALUE_XML)) { in set_output_options()
390 } else if (!strcmp(Z_STRVAL_P(val), VERBOSITY_VALUE_PRETTY)) { in set_output_options()
400 if (!strcmp(Z_STRVAL_P(val), VERSION_VALUE_XMLRPC)) { in set_output_options()
402 } else if (!strcmp(Z_STRVAL_P(val), VERSION_VALUE_SIMPLE)) { in set_output_options()
404 } else if (!strcmp(Z_STRVAL_P(val), VERSION_VALUE_SOAP11)) { in set_output_options()
430 if (!strcmp(Z_STRVAL_P(iter_val), ESCAPING_VALUE_CDATA)) { in set_output_options()
443 if (!strcmp(Z_STRVAL_P(val), ESCAPING_VALUE_CDATA)) { in set_output_options()
449 } else if (!strcmp(Z_STRVAL_P(val), ESCAPING_VALUE_MARKUP)) { in set_output_options()
1248 if (!strcmp(str_mapping[i], str)) { in xmlrpc_str_as_type()
[all …]
/PHP-7.4/sapi/apache2handler/
H A Dsapi_apache2.c547 if (strcmp(r->protocol, "INCLUDED")) { in php_apache_ini_dtor()
589 if (ctx == NULL || (ctx && ctx->request_processed && !strcmp(r->protocol, "INCLUDED"))) { in php_handler()
605 …if (strcmp(r->handler, PHP_MAGIC_TYPE) && strcmp(r->handler, PHP_SOURCE_MAGIC_TYPE) && strcmp(r->h… in php_handler()
607 if (!AP2(xbithack) || strcmp(r->handler, "text/html") || !(r->finfo.protection & APR_UEXECUTE)) { in php_handler()
663 strcmp(parent_req->handler, PHP_MAGIC_TYPE) && in php_handler()
664 strcmp(parent_req->handler, PHP_SOURCE_MAGIC_TYPE) && in php_handler()
665 strcmp(parent_req->handler, PHP_SCRIPT)) { in php_handler()
677 …if (parent_req && parent_req->status != HTTP_OK && parent_req->status != 413 && strcmp(r->protocol… in php_handler()

Completed in 71 milliseconds

1234567