/php-src/ext/mysqlnd/ |
H A D | mysqlnd_block_alloc.c | 40 MYSQLND_MEMORY_POOL * ret; in mysqlnd_mempool_create() local 44 ret = zend_arena_alloc(&arena, sizeof(MYSQLND_MEMORY_POOL)); in mysqlnd_mempool_create() 45 ret->arena = arena; in mysqlnd_mempool_create() 46 ret->checkpoint = NULL; in mysqlnd_mempool_create() 47 ret->get_chunk = mysqlnd_mempool_get_chunk; in mysqlnd_mempool_create() 48 DBG_RETURN(ret); in mysqlnd_mempool_create()
|
H A D | mysqlnd_auth.c | 170 DBG_RETURN(ret); in mysqlnd_run_authentication() 195 DBG_RETURN(ret); in mysqlnd_switch_to_ssl_if_needed() 226 DBG_RETURN(ret); in mysqlnd_connect_run_authentication() 354 ret = PASS; in mysqlnd_auth_handshake() 357 DBG_RETURN(ret); in mysqlnd_auth_handshake() 455 ret = FAIL; in mysqlnd_auth_change_user() 474 ret = FAIL; in mysqlnd_auth_change_user() 641 return ret; in mysqlnd_pam_auth_get_auth_data() 696 return ret; in mysqlnd_sha256_get_rsa_from_pem() 728 free(ret); in mysqlnd_sha256_public_encrypt() [all …]
|
/php-src/Zend/Optimizer/ |
H A D | zend_func_info.c | 123 uint32_t ret = info->info; in zend_get_internal_func_info() local 125 if (ret & MAY_BE_ARRAY) { in zend_get_internal_func_info() 126 ret |= MAY_BE_ARRAY_EMPTY; in zend_get_internal_func_info() 128 return ret; in zend_get_internal_func_info() 136 uint32_t ret = 0; in zend_get_func_info() local 157 if (internal_ret & ~ret) { in zend_get_func_info() 161 if (internal_ret == ret) { in zend_get_func_info() 183 ret = info->return_info.type; in zend_get_func_info() 188 if (!ret) { in zend_get_func_info() 193 ret |= MAY_BE_REF; in zend_get_func_info() [all …]
|
/php-src/ext/hash/sha3/generic64lc/ |
H A D | KeccakHash.c | 42 … HashReturn ret = (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, data, databitlen/8); in Keccak_HashUpdate() local 43 if (ret == SUCCESS) { in Keccak_HashUpdate() 54 ret = (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, oneByte, 1); in Keccak_HashUpdate() 58 return ret; in Keccak_HashUpdate() 66 …HashReturn ret = (HashReturn)KeccakWidth1600_SpongeAbsorbLastFewBits(&instance->sponge, instance->… in Keccak_HashFinal() local 67 if (ret == SUCCESS) in Keccak_HashFinal() 70 return ret; in Keccak_HashFinal()
|
/php-src/ext/hash/sha3/generic32lc/ |
H A D | KeccakHash.c | 42 … HashReturn ret = (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, data, databitlen/8); in Keccak_HashUpdate() local 43 if (ret == SUCCESS) { in Keccak_HashUpdate() 54 ret = (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, oneByte, 1); in Keccak_HashUpdate() 58 return ret; in Keccak_HashUpdate() 66 …HashReturn ret = (HashReturn)KeccakWidth1600_SpongeAbsorbLastFewBits(&instance->sponge, instance->… in Keccak_HashFinal() local 67 if (ret == SUCCESS) in Keccak_HashFinal() 70 return ret; in Keccak_HashFinal()
|
/php-src/ext/standard/ |
H A D | net.c | 60 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_inet_ntop() 61 return ret; in php_inet_ntop() 63 zend_string_efree(ret); in php_inet_ntop() 70 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_inet_ntop() 71 return ret; in php_inet_ntop() 73 zend_string_efree(ret); in php_inet_ntop() 86 zend_string *ret = zend_string_alloc(NI_MAXHOST, 0); in php_inet_ntop() local 89 char *colon = strchr(ZSTR_VAL(ret), '%'); in php_inet_ntop() 91 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_inet_ntop() 92 return ret; in php_inet_ntop() [all …]
|
H A D | flock_compat.c | 32 int ret; in php_flock() local 48 ret = fcntl(fd, operation & LOCK_NB ? F_SETLK : F_SETLKW, &flck); in php_flock() 50 if ((operation & LOCK_NB) && ret == -1 && in php_flock() 54 if (ret != -1) ret = 0; in php_flock() 56 return ret; in php_flock()
|
/php-src/ext/dom/tests/ |
H A D | DOMDocument_encoding_basic.phpt | 25 $ret = $dom->encoding = 'NYPHP DOMinatrix'; 26 echo "Adding invalid encoding: $ret\n"; 31 $ret = $dom->encoding = 'ISO-8859-1'; 32 echo "Adding ISO-8859-1 encoding: $ret\n"; 35 $ret = $dom->encoding = 'UTF-8'; 36 echo "Adding UTF-8 encoding: $ret\n"; 39 $ret = $dom->encoding = 'UTF-16'; 40 echo "Adding UTF-16 encoding: $ret\n";
|
/php-src/ext/standard/tests/file/ |
H A D | 004.phpt | 15 $ret = file_put_contents("TEST2", $int); 17 if ($int === $old_int && $ret !== FALSE && md5($int) == md5_file("TEST2")) { 25 $ret = file_put_contents("TEST3", $int); 27 if ($int === $old_int && $ret !== FALSE && md5($int) == md5_file("TEST3")) { 34 $ret = file_put_contents("TEST4", __FILE__); 36 if ($ret !== FALSE && md5(__FILE__) == md5_file("TEST4")) { 43 $ret = @file_put_contents("TEST5", $_SERVER); 45 if ($ret !== FALSE && @md5(implode('', $_SERVER)) == md5_file("TEST5")) {
|
/php-src/ext/intl/tests/ |
H A D | uconverter_func_subst.phpt | 11 $ret = UConverter::transcode("This is an ascii string", 'ascii', 'utf-8', $opts); 12 if ($ret === FALSE) { 15 var_dump($ret); 17 $ret = UConverter::transcode("Snowman: (\xE2\x98\x83)", 'ascii', 'utf-8', $opts); 18 if ($ret === FALSE) { 21 var_dump($ret);
|
H A D | bug67397.phpt | 10 $ret = var_export(ut_loc_get_display_name(str_repeat('*', 256), 'en_us'), true); 11 $ret .= "\n"; 12 $ret .= var_export(intl_get_error_message(), true); 13 return $ret;
|
/php-src/ext/intl/ |
H A D | intl_convertcpp.cpp | 24 int intl_stringFromChar(UnicodeString &ret, char *str, size_t str_len, UErrorCode *status) in intl_stringFromChar() argument 28 ret.setToBogus(); in intl_stringFromChar() 36 UChar *utf16 = ret.getBuffer(capacity); in intl_stringFromChar() 39 u_strFromUTF8WithSub(utf16, ret.getCapacity(), &utf16_len, in intl_stringFromChar() 42 ret.releaseBuffer(utf16_len); in intl_stringFromChar() 44 ret.setToBogus(); in intl_stringFromChar()
|
/php-src/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfl_convert.c | 195 int shift = 28, ret = 0; in mbfl_filt_conv_output_hex() local 202 if (ret < 0) { in mbfl_filt_conv_output_hex() 203 return ret; in mbfl_filt_conv_output_hex() 214 return ret; in mbfl_filt_conv_output_hex() 221 int ret = 0; in mbfl_filt_conv_illegal_output() local 243 if (ret < 0) in mbfl_filt_conv_illegal_output() 245 ret = mbfl_filt_conv_output_hex(w, filter); in mbfl_filt_conv_illegal_output() 254 if (ret < 0) in mbfl_filt_conv_illegal_output() 256 ret = mbfl_filt_conv_output_hex(w, filter); in mbfl_filt_conv_illegal_output() 257 if (ret < 0) in mbfl_filt_conv_illegal_output() [all …]
|
/php-src/win32/ |
H A D | codepage.c | 40 wchar_t *ret; in php_win32_cp_to_w_int() local 58 if (!ret) { in php_win32_cp_to_w_int() 65 free(ret); in php_win32_cp_to_w_int() 71 assert(ret && !in_len ? wcslen(ret) == ret_len - 1 : 1); in php_win32_cp_to_w_int() 79 return ret; in php_win32_cp_to_w_int() 93 return ret; in php_win32_cp_conv_cur_to_w() 175 if (!ret) { in php_win32_cp_conv_ascii_to_w() 240 return ret; in php_win32_cp_conv_ascii_to_w() 296 char *ret; in php_win32_cp_conv_w_to_cur() local 300 return ret; in php_win32_cp_conv_w_to_cur() [all …]
|
/php-src/ext/fileinfo/libmagic/ |
H A D | fsmagic.c | 92 int ret, did = 0; in file_fsmagic() local 100 ret = php_sys_stat(fn, sb); in file_fsmagic() 102 if (ret) { in file_fsmagic() 113 ret = 1; in file_fsmagic() 142 ret = 0; in file_fsmagic() 236 ret = 0; in file_fsmagic() 245 if (!silent && !mime && did && ret == 0) { in file_fsmagic() 253 if (ret == 1 && silent) in file_fsmagic() 255 return ret; in file_fsmagic()
|
/php-src/ext/soap/ |
H A D | php_xml.c | 80 xmlDocPtr ret; in soap_xmlParseFile() local 109 ret = ctxt->myDoc; in soap_xmlParseFile() 114 ret = NULL; in soap_xmlParseFile() 120 ret = NULL; in soap_xmlParseFile() 127 if (ret) { in soap_xmlParseFile() 130 return ret; in soap_xmlParseFile() 136 xmlDocPtr ret; in soap_xmlParseMemory() local 160 ret = ctxt->myDoc; in soap_xmlParseMemory() 165 ret = NULL; in soap_xmlParseMemory() 171 ret = NULL; in soap_xmlParseMemory() [all …]
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_field_seek.phpt | 13 $ret = ''; 16 $ret .= 'MYSQLI_NOT_NULL_FLAG '; 19 $ret .= 'MYSQLI_PRI_KEY_FLAG '; 22 $ret .= 'MYSQLI_UNIQUE_KEY_FLAG '; 28 $ret .= 'MYSQLI_BLOB_FLAG '; 31 $ret .= 'MYSQLI_UNSIGNED_FLAG '; 34 $ret .= 'MYSQLI_ZEROFILL_FLAG '; 43 $ret .= 'MYSQLI_SET_FLAG '; 46 $ret .= 'MYSQLI_NUM_FLAG '; 52 $ret .= 'MYSQLI_GROUP_FLAG '; [all …]
|
/php-src/ext/dom/ |
H A D | html_collection.c | 36 dom_named_item ret = {NULL, NULL}; in dom_html_collection_named_item() local 40 return ret; in dom_html_collection_named_item() 62 ret.context_intern = objmap->baseobj; in dom_html_collection_named_item() 63 ret.node = candidate; in dom_html_collection_named_item() 64 return ret; in dom_html_collection_named_item() 69 ret.context_intern = objmap->baseobj; in dom_html_collection_named_item() 70 ret.node = candidate; in dom_html_collection_named_item() 71 return ret; in dom_html_collection_named_item() 79 return ret; in dom_html_collection_named_item()
|
/php-src/ext/odbc/tests/ |
H A D | bug69354.phpt | 21 $ret = odbc_result($res,'varchar_col'); 22 echo strlen($ret), "\n"; 23 echo $ret[0], "\n"; 24 echo $ret[strlen($ret)-1], "\n";
|
/php-src/ext/fileinfo/tests/ |
H A D | bug61964-mb.phpt | 10 $ret = @finfo_open(FILEINFO_NONE, $magic_file . ".non-exits私はガラスを食べられます"); 11 var_dump($ret); 21 $ret = finfo_open(FILEINFO_NONE, $dir); 22 var_dump($ret); 24 $ret = @finfo_open(FILEINFO_NONE, $dir); 25 var_dump($ret); 27 $ret = @finfo_open(FILEINFO_NONE, $dir. "/non-exits-dir私はガラスを食べられます"); 28 var_dump($ret);
|
H A D | bug61964.phpt | 10 $ret = @finfo_open(FILEINFO_NONE, $magic_file . ".non-exits"); 11 var_dump($ret); 21 $ret = finfo_open(FILEINFO_NONE, $dir); 22 var_dump($ret); 24 $ret = @finfo_open(FILEINFO_NONE, $dir); 25 var_dump($ret); 27 $ret = @finfo_open(FILEINFO_NONE, $dir. "/non-exits-dir"); 28 var_dump($ret);
|
/php-src/ext/sodium/ |
H A D | sodium_pwhash.c | 64 zend_string *ret; in php_sodium_argon2_hash() local 75 ret = zend_string_alloc(crypto_pwhash_STRBYTES - 1, 0); in php_sodium_argon2_hash() 76 …if (crypto_pwhash_str_alg(ZSTR_VAL(ret), ZSTR_VAL(password), ZSTR_LEN(password), opslimit, memlimi… in php_sodium_argon2_hash() 78 zend_string_release(ret); in php_sodium_argon2_hash() 82 ZSTR_LEN(ret) = strlen(ZSTR_VAL(ret)); in php_sodium_argon2_hash() 83 ZSTR_VAL(ret)[ZSTR_LEN(ret)] = 0; in php_sodium_argon2_hash() local 85 return ret; in php_sodium_argon2_hash()
|
/php-src/ext/session/ |
H A D | mod_mm.c | 177 ps_sd *ret, *prev; in ps_sd_lookup() local 182 for (prev = NULL, ret = data->hash[slot]; ret; prev = ret, ret = ret->next) { in ps_sd_lookup() 183 if (ret->hv == hv && zend_string_equals(ret->key, key)) { in ps_sd_lookup() 188 if (ret && rw && ret != data->hash[slot]) { in ps_sd_lookup() 191 prev->next = ret->next; in ps_sd_lookup() 195 data->hash[slot] = ret; in ps_sd_lookup() 200 return ret; in ps_sd_lookup() 271 zend_result ret; in PHP_MINIT_FUNCTION() local 303 if (ret == FAILURE) { in PHP_MINIT_FUNCTION() 371 ret = SUCCESS; in PS_READ_FUNC() [all …]
|
/php-src/ext/dba/libinifile/ |
H A D | inifile.c | 338 ret = SUCCESS; in inifile_find_group() 346 ret = SUCCESS; in inifile_find_group() 351 return ret; in inifile_find_group() 368 ret = SUCCESS; in inifile_next_group() 374 return ret; in inifile_next_group() 447 ret = FAILURE; in inifile_filter() 451 return ret; in inifile_filter() 461 int ret; in inifile_delete_replace_append() local 480 ret = SUCCESS; in inifile_delete_replace_append() 490 ret = FAILURE; in inifile_delete_replace_append() [all …]
|
/php-src/main/streams/ |
H A D | mmap.c | 46 int ret = 1; in _php_stream_mmap_unmap_ex() local 49 ret = 0; in _php_stream_mmap_unmap_ex() 52 ret = 0; in _php_stream_mmap_unmap_ex() 55 return ret; in _php_stream_mmap_unmap_ex()
|