/PHP-7.0/Zend/ |
H A D | zend_string.h | 134 return ret; in zend_string_alloc() 152 return ret; in zend_string_safe_alloc() 161 return ret; in zend_string_init() 190 return ret; in zend_string_realloc() 197 return ret; in zend_string_realloc() 210 return ret; in zend_string_extend() 217 return ret; in zend_string_extend() 230 return ret; in zend_string_truncate() 237 return ret; in zend_string_truncate() 249 return ret; in zend_string_safe_realloc() [all …]
|
/PHP-7.0/ext/mysqlnd/ |
H A D | mysqlnd_alloc.c | 79 void *ret; in _mysqlnd_emalloc() local 101 ret = NULL; in _mysqlnd_emalloc() 119 void *ret; in _mysqlnd_pemalloc() local 141 ret = NULL; in _mysqlnd_pemalloc() 162 void *ret; in _mysqlnd_ecalloc() local 203 void *ret; in _mysqlnd_pecalloc() local 245 void *ret; in _mysqlnd_erealloc() local 286 void *ret; in _mysqlnd_perealloc() local 393 void *ret; in _mysqlnd_malloc() local 432 void *ret; in _mysqlnd_calloc() local [all …]
|
H A D | mysqlnd_block_alloc.c | 156 MYSQLND_MEMORY_POOL * ret = mnd_ecalloc(1, sizeof(MYSQLND_MEMORY_POOL)); in mysqlnd_mempool_create() local 158 if (ret) { in mysqlnd_mempool_create() 159 ret->get_chunk = mysqlnd_mempool_get_chunk; in mysqlnd_mempool_create() 160 ret->free_size = ret->arena_size = arena_size ? arena_size : 0; in mysqlnd_mempool_create() 161 ret->refcount = 0; in mysqlnd_mempool_create() 163 ret->arena = mnd_emalloc(ret->arena_size); in mysqlnd_mempool_create() 164 if (!ret->arena) { in mysqlnd_mempool_create() 165 mysqlnd_mempool_destroy(ret); in mysqlnd_mempool_create() 166 ret = NULL; in mysqlnd_mempool_create() 169 DBG_RETURN(ret); in mysqlnd_mempool_create()
|
H A D | mysqlnd_result.c | 62 ret = FAIL; in MYSQLND_METHOD() 116 ret = FAIL; in MYSQLND_METHOD() 411 ret = FAIL; in mysqlnd_query_read_result_set_header() 416 ret = FAIL; in mysqlnd_query_read_result_set_header() 443 ret = FAIL; in mysqlnd_query_read_result_set_header() 1131 ret = PASS; in MYSQLND_METHOD() 1136 ret = PASS; in MYSQLND_METHOD() 1903 if (!ret) { in mysqlnd_result_init() 1925 if (!ret) { in mysqlnd_result_unbuffered_init() 1966 if (!ret) { in mysqlnd_result_buffered_zval_init() [all …]
|
H A D | mysqlnd.c | 241 ret = FAIL; in MYSQLND_METHOD() 363 ret = FAIL; in MYSQLND_METHOD() 519 ret = PASS; in mysqlnd_switch_to_ssl_if_needed() 1204 ret = PASS; 1300 return ret; 1344 int ret = 0; local 1360 ret++; 1838 ret = FAIL; 2473 ret = FAIL; 2520 ret = FAIL; [all …]
|
/PHP-7.0/ext/mysqli/tests/ |
H A D | 071.phpt | 18 $ret = $mysql->kill($mysql->thread_id); 20 if ($ret !== true){ 21 printf("[001] Expecting boolean/true got %s/%s\n", gettype($ret), var_export($ret, true)); 27 if ($ret !== true){ 28 …printf("[001] Expecting boolean/true got %s/%s @\n", gettype($ret), var_export($ret, true), $versi… 31 if ($ret !== false){ 32 …printf("[001] Expecting boolean/false got %s/%s @\n", gettype($ret), var_export($ret, true), $vers… 47 if ($ret !== true){ 48 printf("[002] Expecting boolean/true got %s/%s\n", gettype($ret), var_export($ret, true)); 54 if ($ret !== true){ [all …]
|
/PHP-7.0/win32/ |
H A D | dllmain.c | 37 BOOL ret = TRUE; in DllMain() local 42 ret = ret && php_win32_init_gettimeofday(); in DllMain() 43 if (!ret) { in DllMain() 45 return ret; in DllMain() 69 ret = ret && xmlDllMain(inst, reason, dummy); in DllMain() 72 return ret; in DllMain()
|
/PHP-7.0/sapi/fpm/fpm/ |
H A D | fpm_clock.c | 66 kern_return_t ret; in fpm_clock_init() local 69 ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &mach_clock); in fpm_clock_init() 71 if (ret != KERN_SUCCESS) { in fpm_clock_init() 72 zlog(ZLOG_ERROR, "host_get_clock_service() failed: %s", mach_error_string(ret)); in fpm_clock_init() 77 ret = clock_get_time(mach_clock, &aTime); in fpm_clock_init() 79 if (ret != KERN_SUCCESS) { in fpm_clock_init() 80 zlog(ZLOG_ERROR, "clock_get_time() failed: %s", mach_error_string(ret)); in fpm_clock_init() 90 kern_return_t ret; in fpm_clock_get() local 93 ret = clock_get_time(mach_clock, &aTime); in fpm_clock_get() 95 if (ret != KERN_SUCCESS) { in fpm_clock_get() [all …]
|
H A D | fpm_worker_pool.c | 57 struct fpm_worker_pool_s *ret; in fpm_worker_pool_alloc() local 59 ret = malloc(sizeof(struct fpm_worker_pool_s)); in fpm_worker_pool_alloc() 60 if (!ret) { in fpm_worker_pool_alloc() 64 memset(ret, 0, sizeof(struct fpm_worker_pool_s)); in fpm_worker_pool_alloc() 66 ret->idle_spawn_rate = 1; in fpm_worker_pool_alloc() 67 ret->log_fd = -1; in fpm_worker_pool_alloc() 68 return ret; in fpm_worker_pool_alloc()
|
H A D | fpm_arrays.h | 50 char *ret; in fpm_array_item() local 52 ret = (char *) a->data + a->sz * n; in fpm_array_item() 54 return ret; in fpm_array_item() 66 int ret = -1; in fpm_array_item_remove() local 74 ret = n; in fpm_array_item_remove() 79 return ret; in fpm_array_item_remove() 85 void *ret; in fpm_array_push() local 99 ret = fpm_array_item(a, a->used); in fpm_array_push() 103 return ret; in fpm_array_push()
|
/PHP-7.0/ext/intl/ |
H A D | intl_error.c | 246 smart_str ret = {0}; in intl_parse_error_to_string() local 262 smart_str_appends( &ret, ", " ); in intl_parse_error_to_string() 273 smart_str_appends( &ret, ", " ); in intl_parse_error_to_string() 282 smart_str_append( &ret, u8str ); in intl_parse_error_to_string() 285 smart_str_appends( &ret, "\"" ); in intl_parse_error_to_string() 292 smart_str_appends( &ret, ", " ); in intl_parse_error_to_string() 302 smart_str_append( &ret, u8str ); in intl_parse_error_to_string() 305 smart_str_appends( &ret, "\"" ); in intl_parse_error_to_string() 311 smart_str_free( &ret ); in intl_parse_error_to_string() 315 smart_str_0( &ret ); in intl_parse_error_to_string() [all …]
|
/PHP-7.0/ext/intl/tests/ |
H A D | bug72533.phpt | 10 $ret = var_export(ut_loc_accept_http(str_repeat('x', 256)), true); 11 $ret .= "\n"; 13 $ret .= var_export(intl_get_error_message(), true); 15 $ret .= "\n"; 16 $ret .= var_export(ut_loc_accept_http(str_repeat('en,', 256)), true); 17 $ret .= "\n"; 19 $ret .= var_export(intl_get_error_message(), true); 21 return $ret;
|
/PHP-7.0/ext/filter/tests/ |
H A D | 035.phpt | 11 $ret = filter_input(INPUT_GET, 'a', FILTER_VALIDATE_INT); 12 var_dump($ret); 14 $ret = filter_input(INPUT_GET, 'a', FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL)); 15 var_dump($ret); 17 $ret = filter_input(INPUT_GET, 'ar', FILTER_VALIDATE_INT, array('flags'=>FILTER_REQUIRE_ARRAY)); 18 var_dump($ret); 20 $ret = filter_input(INPUT_GET, 'ar', FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL|FI… 21 var_dump($ret);
|
H A D | 045.phpt | 8 $ret = filter_var("0xff", FILTER_VALIDATE_INT, $a); 9 echo ($ret === 255 && $a["options"]["min_range"] === "0")?"ok\n":"bug\n"; 10 echo ($ret === 255 && $a["options"]["max_range"] === "1024")?"ok\n":"bug\n"; 11 echo ($ret === 255 && is_string($a["flags"]) && $a["flags"] == FILTER_FLAG_ALLOW_HEX)?"ok\n":"bug\n… 13 $ret = filter_var("0xff", FILTER_VALIDATE_INT, $a); 14 echo ($ret === 255 && is_string($a) && $a == FILTER_FLAG_ALLOW_HEX)?"ok\n":"bug\n"; 16 $ret = filter_var_array(array("test"=>"0xff"), $a); 17 echo ($ret["test"] === 255 && is_string($a["test"]["filter"]) && $a["test"]["filter"] == FILTER_VAL… 18 echo ($ret["test"] === 255 && is_string($a["test"]["flags"]) && $a["test"]["flags"] == FILTER_FLAG_… 20 $ret = filter_var_array(array("test"=>"255"), $a); [all …]
|
/PHP-7.0/ext/standard/ |
H A D | link.c | 60 int ret; in PHP_FUNCTION() local 72 if (ret == -1) { in PHP_FUNCTION() 77 buff[ret] = '\0'; in PHP_FUNCTION() 91 int ret; in PHP_FUNCTION() local 105 ret = VCWD_LSTAT(link, &sb); in PHP_FUNCTION() 106 if (ret == -1) { in PHP_FUNCTION() 123 int ret; in PHP_FUNCTION() local 166 if (ret == -1) { in PHP_FUNCTION() 181 int ret; in PHP_FUNCTION() local 210 ret = link(topath, frompath); in PHP_FUNCTION() [all …]
|
H A D | url.c | 196 if (ret->scheme) efree(ret->scheme); in php_url_parse_ex() 201 if (ret->scheme) efree(ret->scheme); in php_url_parse_ex() 259 if (ret->scheme) efree(ret->scheme); in php_url_parse_ex() 260 if (ret->user) efree(ret->user); in php_url_parse_ex() 261 if (ret->pass) efree(ret->pass); in php_url_parse_ex() 272 if (ret->scheme) efree(ret->scheme); in php_url_parse_ex() 273 if (ret->user) efree(ret->user); in php_url_parse_ex() 274 if (ret->pass) efree(ret->pass); in php_url_parse_ex() 287 if (ret->scheme) efree(ret->scheme); in php_url_parse_ex() 288 if (ret->user) efree(ret->user); in php_url_parse_ex() [all …]
|
/PHP-7.0/ext/zip/lib/ |
H A D | zip_memdup.c | 43 void *ret; in _zip_memdup() local 48 ret = malloc(len); in _zip_memdup() 49 if (!ret) { in _zip_memdup() 54 memcpy(ret, mem, len); in _zip_memdup() 56 return ret; in _zip_memdup()
|
H A D | zip_unchange_all.c | 43 int ret; in zip_unchange_all() local 48 ret = 0; in zip_unchange_all() 50 ret |= _zip_unchange(za, i, 1); in zip_unchange_all() 52 ret |= zip_unchange_archive(za); in zip_unchange_all() 54 return ret; in zip_unchange_all()
|
/PHP-7.0/main/streams/ |
H A D | transports.c | 202 int ret; in php_stream_xport_bind() local 220 return ret; in php_stream_xport_bind() 233 int ret; in php_stream_xport_connect() local 255 return ret; in php_stream_xport_connect() 263 int ret; in php_stream_xport_listen() local 280 return ret; in php_stream_xport_listen() 292 int ret; in php_stream_xport_accept() local 319 return ret; in php_stream_xport_accept() 328 int ret; in php_stream_xport_get_name() local 355 int ret; in php_stream_xport_crypto_setup() local [all …]
|
H A D | cast.c | 65 int ret; in stream_cookie_reader() local 68 return ret; in stream_cookie_reader() 94 ssize_t ret; in stream_cookie_reader() local 97 return ret; in stream_cookie_reader() 211 if (ret) { in _php_stream_cast() 212 *(FILE**)ret = stream->stdiocast; in _php_stream_cast() 229 if (ret == NULL) { in _php_stream_cast() 239 if (*ret != NULL) { in _php_stream_cast() 248 zend_fseek(*ret, pos, SEEK_SET); in _php_stream_cast() 281 rewind(*(FILE**)ret); in _php_stream_cast() [all …]
|
/PHP-7.0/sapi/embed/ |
H A D | php_embed.c | 54 zend_long ret; in php_embed_single_write() local 56 ret = write(STDOUT_FILENO, str, str_length); in php_embed_single_write() 57 if (ret <= 0) return 0; in php_embed_single_write() 58 return ret; in php_embed_single_write() 60 size_t ret; in php_embed_single_write() 63 return ret; in php_embed_single_write() 72 size_t ret; in php_embed_ub_write() local 75 ret = php_embed_single_write(ptr, remaining); in php_embed_ub_write() 76 if (!ret) { in php_embed_ub_write() 79 ptr += ret; in php_embed_ub_write() [all …]
|
/PHP-7.0/ext/mbstring/libmbfl/mbfl/ |
H A D | mbfl_convert.c | 470 int mode_backup, ret, n, m, r; in mbfl_filt_conv_illegal_output() local 472 ret = 0; in mbfl_filt_conv_illegal_output() 515 if (ret >= 0) { in mbfl_filt_conv_illegal_output() 523 if (ret < 0) { in mbfl_filt_conv_illegal_output() 529 if (m == 0 && ret >= 0) { in mbfl_filt_conv_illegal_output() 530 ret = (*filter->filter_function)(mbfl_hexchar_table[0], filter); in mbfl_filt_conv_illegal_output() 539 if (ret < 0) in mbfl_filt_conv_illegal_output() 549 if (ret < 0) { in mbfl_filt_conv_illegal_output() 555 if (ret < 0) { in mbfl_filt_conv_illegal_output() 559 ret = (*filter->filter_function)(mbfl_hexchar_table[0], filter); in mbfl_filt_conv_illegal_output() [all …]
|
/PHP-7.0/ext/soap/ |
H A D | php_encoding.c | 574 ret = encode->to_zval(ret, &encode->details, data); in master_to_zval_int() 576 return ret; in master_to_zval_int() 634 if (!ret) { in to_xml_user() 641 return ret; in to_xml_user() 667 return ret; in to_zval_user() 701 return ret; in to_zval_string() 734 return ret; in to_zval_stringr() 767 return ret; in to_zval_stringc() 796 return ret; in to_zval_base64() 842 return ret; in to_zval_hexbin() [all …]
|
/PHP-7.0/main/ |
H A D | php_sprintf.c | 34 int ret; in php_sprintf() local 38 ret = vsprintf (s, format, args); in php_sprintf() 40 return (ret < 0) ? -1 : ret; in php_sprintf()
|
/PHP-7.0/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")) {
|