/PHP-5.5/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_calloc(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_malloc(ret->arena_size); in mysqlnd_mempool_create() 164 if (!ret->arena) { in mysqlnd_mempool_create() 165 mysqlnd_mempool_destroy(ret TSRMLS_CC); in mysqlnd_mempool_create() 166 ret = NULL; in mysqlnd_mempool_create() 169 DBG_RETURN(ret); in mysqlnd_mempool_create()
|
/PHP-5.5/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-5.5/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 | 55 struct fpm_worker_pool_s *ret; in fpm_worker_pool_alloc() local 57 ret = malloc(sizeof(struct fpm_worker_pool_s)); in fpm_worker_pool_alloc() 58 if (!ret) { in fpm_worker_pool_alloc() 62 memset(ret, 0, sizeof(struct fpm_worker_pool_s)); in fpm_worker_pool_alloc() 64 ret->idle_spawn_rate = 1; in fpm_worker_pool_alloc() 65 ret->log_fd = -1; in fpm_worker_pool_alloc() 66 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()
|
H A D | fastcgi.c | 50 DWORD ret; \ 308 int ret; in safe_write() local 326 n += ret; in safe_write() 389 ret = 1; in fcgi_get_params_len() 396 ret = 4; in fcgi_get_params_len() 400 ret = 0; in fcgi_get_params_len() 447 ret = 0; in fcgi_get_params() 454 ret = 0; in fcgi_get_params() 461 ret = 0; in fcgi_get_params() 471 ret = 0; in fcgi_get_params() [all …]
|
/PHP-5.5/ext/intl/ |
H A D | intl_error.c | 249 smart_str ret = {0}; in intl_parse_error_to_string() local 266 smart_str_appends( &ret, ", " ); in intl_parse_error_to_string() 268 smart_str_appends( &ret, "at " ); in intl_parse_error_to_string() 270 smart_str_appends( &ret, "offset " ); in intl_parse_error_to_string() 277 smart_str_appends( &ret, ", " ); in intl_parse_error_to_string() 289 smart_str_appends( &ret, "\"" ); in intl_parse_error_to_string() 296 smart_str_appends( &ret, ", " ); in intl_parse_error_to_string() 309 smart_str_appends( &ret, "\"" ); in intl_parse_error_to_string() 315 smart_str_free( &ret ); in intl_parse_error_to_string() 319 smart_str_0( &ret ); in intl_parse_error_to_string() [all …]
|
/PHP-5.5/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-5.5/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-5.5/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 320 return ret; in php_stream_xport_accept() 329 int ret; in php_stream_xport_get_name() local 357 int ret; in php_stream_xport_crypto_setup() local [all …]
|
H A D | cast.c | 65 int ret; in stream_cookie_reader() local 69 return ret; in stream_cookie_reader() 98 ssize_t ret; in stream_cookie_reader() local 102 return ret; in stream_cookie_reader() 220 if (ret) { in _php_stream_cast() 221 *(FILE**)ret = stream->stdiocast; in _php_stream_cast() 238 if (ret == NULL) { in _php_stream_cast() 248 if (*ret != NULL) { in _php_stream_cast() 257 fseek(*ret, pos, SEEK_SET); in _php_stream_cast() 290 rewind(*(FILE**)ret); in _php_stream_cast() [all …]
|
/PHP-5.5/ext/standard/ |
H A D | url.c | 200 efree(ret); in php_url_parse_ex() 205 efree(ret); in php_url_parse_ex() 273 if (!ret->port) { in php_url_parse_ex() 277 STR_FREE(ret->user); in php_url_parse_ex() 279 efree(ret); in php_url_parse_ex() 292 efree(ret); in php_url_parse_ex() 305 STR_FREE(ret->user); in php_url_parse_ex() 306 STR_FREE(ret->pass); in php_url_parse_ex() 307 efree(ret); in php_url_parse_ex() 315 return ret; in php_url_parse_ex() [all …]
|
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 …]
|
/PHP-5.5/ext/zip/lib/ |
H A D | zip_memdup.c | 44 void *ret; in _zip_memdup() local 46 ret = malloc(len); in _zip_memdup() 47 if (!ret) { in _zip_memdup() 52 memcpy(ret, mem, len); in _zip_memdup() 54 return ret; in _zip_memdup()
|
H A D | zip_unchange_all.c | 45 int ret, i; in zip_unchange_all() local 47 ret = 0; in zip_unchange_all() 49 ret |= _zip_unchange(za, i, 1); in zip_unchange_all() 51 ret |= zip_unchange_archive(za); in zip_unchange_all() 53 return ret; in zip_unchange_all()
|
H A D | zip_source_read.c | 43 zip_int64_t ret; in zip_source_read() local 53 ret = src->cb.l(src->src, src->ud, data, len, ZIP_SOURCE_READ); in zip_source_read() 55 if (ret < 0) { in zip_source_read() 56 if (ret == ZIP_SOURCE_ERR_LOWER) in zip_source_read() 63 return ret; in zip_source_read()
|
/PHP-5.5/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-5.5/sapi/embed/ |
H A D | php_embed.c | 50 long ret; in php_embed_single_write() local 52 ret = write(STDOUT_FILENO, str, str_length); in php_embed_single_write() 53 if (ret <= 0) return 0; in php_embed_single_write() 54 return ret; in php_embed_single_write() 56 size_t ret; in php_embed_single_write() 59 return ret; in php_embed_single_write() 68 size_t ret; in php_embed_ub_write() local 71 ret = php_embed_single_write(ptr, remaining); in php_embed_ub_write() 72 if (!ret) { in php_embed_ub_write() 75 ptr += ret; in php_embed_ub_write() [all …]
|
/PHP-5.5/ext/dom/ |
H A D | dom_iterators.c | 61 xmlEntityPtr ret; in create_notation() local 69 ret->length = 0; in create_notation() 70 ret->content = NULL; in create_notation() 71 ret->URI = NULL; in create_notation() 72 ret->orig = NULL; in create_notation() 73 ret->children = NULL; in create_notation() 74 ret->parent = NULL; in create_notation() 75 ret->doc = NULL; in create_notation() 76 ret->_private = NULL; in create_notation() 77 ret->last = NULL; in create_notation() [all …]
|
/PHP-5.5/ext/soap/ |
H A D | php_encoding.c | 590 return ret; in master_to_zval_int() 691 zval *ret; in to_zval_string() local 724 zval *ret; in to_zval_stringr() local 758 zval *ret; in to_zval_stringc() local 792 zval *ret; in to_zval_base64() local 823 zval *ret; in to_zval_hexbin() local 1031 zval *ret; in to_zval_double() local 1072 zval *ret; in to_zval_long() local 1163 zval *ret; in to_zval_bool() local 1214 zval *ret; in to_zval_null() local [all …]
|
/PHP-5.5/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-5.5/ext/dom/tests/ |
H A D | DOMDocument_encoding_basic.phpt | 24 $ret = $dom->encoding = 'NYPHP DOMinatrix'; 25 echo "Adding invalid encoding: $ret\n"; 27 $ret = $dom->encoding = 'ISO-8859-1'; 28 echo "Adding ISO-8859-1 encoding: $ret\n"; 31 $ret = $dom->encoding = 'UTF-8'; 32 echo "Adding UTF-8 encoding: $ret\n"; 35 $ret = $dom->encoding = 'UTF-16'; 36 echo "Adding UTF-16 encoding: $ret\n";
|
/PHP-5.5/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()
|