/php-src/ext/standard/tests/math/ |
H A D | base_convert_basic.phpt | 26 echo ".........value= ", $values[$i], " res = ", $res, "\n"; 34 .........value= 10 res = 10 37 .........value= 27 res = 0 40 .........value= 39 res = 0 43 .........value= 3 res = 0 46 .........value= 95 res = 0 50 .........value= 27 res = 0 53 .........value= 39 res = 0 56 .........value= 5F res = 0 61 .........value= 10 res = 2 [all …]
|
/php-src/ext/gd/tests/ |
H A D | bug24594.phpt | 26 $res = imagecolorat($base,0,10)==$black?'1':'0'; 27 $res .= imagecolorat($base,0,20)==$black?'1':'0'; 28 $res .= imagecolorat($base,0,30)==$black?'1':'0'; 29 $res .= imagecolorat($base,0,40)==$black?'1':'0'; 30 $res .= imagecolorat($base,0,50)==$black?'1':'0'; 31 $res .= imagecolorat($base,0,60)==$black?'1':'0'; 33 $res .= imagecolorat($base,11,12)==$white?'1':'0'; 34 $res .= imagecolorat($base,12,13)==$white?'1':'0'; 46 echo "$res\n"; 53 $res = imagecolorat($base,0,10)==$black?'1':'0'; [all …]
|
/php-src/ext/date/tests/ |
H A D | bug41964.phpt | 10 var_dump($res['zone'], $res['tz_abbr']); 13 $res = date_parse('A '); 14 var_dump($res['zone'], $res['tz_abbr']); 17 $res = date_parse('A'); 18 var_dump($res['zone'], $res['tz_abbr']); 21 $res = date_parse('a '); 22 var_dump($res['zone'], $res['tz_abbr']); 25 $res = date_parse('a'); 26 var_dump($res['zone'], $res['tz_abbr']); 30 var_dump($res['zone'], $res['tz_abbr']); [all …]
|
/php-src/Zend/ |
H A D | zend_list.c | 66 res->type = -1; in zend_resource_dtor() 67 res->ptr = NULL; in zend_resource_dtor() 81 zend_list_free(res); in zend_list_close() 98 if (res) { in zend_fetch_resource2() 100 return res->ptr; in zend_fetch_resource2() 104 return res->ptr; in zend_fetch_resource2() 120 return res->ptr; in zend_fetch_resource() 135 if (res == NULL) { in zend_fetch_resource_ex() 156 if (res == NULL) { in zend_fetch_resource2_ex() 179 if (res->type >= 0) { in list_entry_destructor() [all …]
|
H A D | zend_list.h | 28 typedef void (*rsrc_dtor_func_t)(zend_resource *res); 29 #define ZEND_RSRC_DTOR_FUNC(name) void name(zend_resource *res) 56 ZEND_API void ZEND_FASTCALL zend_list_free(zend_resource *res); 57 ZEND_API zend_result ZEND_FASTCALL zend_list_delete(zend_resource *res); 58 ZEND_API void ZEND_FASTCALL zend_list_close(zend_resource *res); 61 ZEND_API void *zend_fetch_resource(zend_resource *res, const char *resource_type_name, int resource… 62 ZEND_API void *zend_fetch_resource2(zend_resource *res, const char *resource_type_name, int resourc… 63 ZEND_API void *zend_fetch_resource_ex(zval *res, const char *resource_type_name, int resource_type); 64 ZEND_API void *zend_fetch_resource2_ex(zval *res, const char *resource_type_name, int resource_type… 66 ZEND_API const char *zend_rsrc_list_get_rsrc_type(zend_resource *res);
|
H A D | zend_multiply.h | 178 : "%0"(res), in zend_safe_address() 183 : "%0"(res), in zend_safe_address() 193 return res; in zend_safe_address() 213 : "%0"(res), in zend_safe_address() 220 : "%0"(res), in zend_safe_address() 230 return res; in zend_safe_address() 237 size_t res; in zend_safe_address() local 252 return res; in zend_safe_address() 259 size_t res; in zend_safe_address() local 273 return res; in zend_safe_address() [all …]
|
/php-src/ext/pgsql/tests/ |
H A D | gh13354.phpt | 25 pg_free_result($res); 29 pg_free_result($res); 35 pg_free_result($res); 39 pg_free_result($res); 45 $res = pg_get_result($db); 47 pg_free_result($res); 51 $res = pg_get_result($db); 53 pg_free_result($res); 59 $res = pg_get_result($db); 61 pg_free_result($res); [all …]
|
/php-src/ext/filter/tests/ |
H A D | 038.phpt | 9 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL)); 10 var_dump($res); 13 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL)); 14 var_dump($res); 17 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL|FILTER_FORCE_AR… 18 var_dump($res); 23 $res = filter_var($var, FILTER_VALIDATE_INT, array('flags'=>FILTER_FLAG_ALLOW_OCTAL|FILTER_REQUIRE_… 24 var_dump($res); 28 var_dump($res); 32 var_dump($res); [all …]
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_fetch_column.phpt | 17 var_dump(mysqli_fetch_column($res)); 20 var_dump(mysqli_fetch_column($res)); 25 $res = mysqli_query($link, "SELECT 32 $res = mysqli_query($link, "SELECT 39 $res = mysqli_query($link, "SELECT 47 $res = mysqli_query($link, "SELECT 56 $res = mysqli_query($link, "SELECT 94 mysqli_free_result($res); 96 mysqli_fetch_column($res); 104 var_dump($res->fetch_column()); [all …]
|
H A D | mysqli_fetch_assoc_no_alias.phpt | 17 var_dump(mysqli_fetch_assoc($res)); 18 mysqli_free_result($res); 24 var_dump(mysqli_fetch_assoc($res)); 25 mysqli_free_result($res); 31 var_dump(mysqli_fetch_assoc($res)); 32 mysqli_free_result($res); 39 mysqli_free_result($res); 50 mysqli_free_result($res); 60 mysqli_free_result($res); 70 mysqli_free_result($res); [all …]
|
H A D | mysqli_stmt_get_result2.phpt | 29 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 34 mysqli_free_result($res); 38 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 44 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 67 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 79 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 98 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 105 mysqli_fetch_assoc($res); 108 mysqli_free_result($res); 119 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); [all …]
|
H A D | mysqli_stmt_get_result_seek.phpt | 22 if (!is_object($res = mysqli_stmt_get_result($stmt)) || 'mysqli_result' != get_class($res)) { 24 gettype($res), $res, mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 27 if (3 !== $res->num_rows) 28 printf("[005] Expecting 3 rows, got %s/%s rows\n", gettype($res->num_rows), $res->num_rows); 30 if (2 !== $res->field_count) 33 if (0 !== $res->current_field) 37 if (!$res->data_seek($i)) 62 $res->data_seek(-1); 67 if (false !== ($tmp = $res->data_seek($res->num_rows + 1))) 97 mysqli_free_result($res); [all …]
|
H A D | mysqli_field_tell.phpt | 16 var_dump(mysqli_field_tell($res)); 17 var_dump(mysqli_field_tell($res)); 18 var_dump(mysqli_fetch_field($res)); 19 var_dump(mysqli_fetch_field($res)); 20 var_dump(mysqli_field_tell($res)); 27 var_dump(mysqli_field_tell($res)); 34 var_dump(mysqli_field_tell($res)); 36 var_dump(mysqli_field_seek($res, 0)); 37 var_dump(mysqli_field_tell($res)); 41 mysqli_free_result($res); [all …]
|
/php-src/ext/standard/ |
H A D | php_dns.h | 23 #define php_dns_search(res, dname, class, type, answer, anslen) \ argument 25 #define php_dns_free_handle(res) \ argument 26 dns_free(res) 31 res_nsearch(res, dname, class, type, answer, anslen); 33 #define php_dns_free_handle(res) \ argument 34 res_ndestroy(res); \ 35 php_dns_free_res(res) 37 #define php_dns_free_handle(res) \ argument 38 res_nclose(res); \ 39 php_dns_free_res(res) [all …]
|
H A D | crc32.c | 43 static int res = -1; in has_crc32_insn() local 44 if (res != -1) in has_crc32_insn() 45 return res; in has_crc32_insn() 48 return res; in has_crc32_insn() 51 return res; in has_crc32_insn() 53 size_t reslen = sizeof(res); in has_crc32_insn() 55 res = 0; in has_crc32_insn() 56 return res; in has_crc32_insn() 59 return res; in has_crc32_insn() 61 res = 0; in has_crc32_insn() [all …]
|
/php-src/ext/pdo_pgsql/tests/ |
H A D | bug_33876.phpt | 25 if (!$res->execute()) 26 print_r($res->errorInfo()); 32 if (!$res->execute()) 33 print_r($res->errorInfo()); 40 if (!$res->execute(array(true))) 41 print_r($res->errorInfo()); 61 if (!$res->execute()) 62 print_r($res->errorInfo()); 68 if (!$res->execute()) 69 print_r($res->errorInfo()); [all …]
|
/php-src/ext/standard/tests/time/ |
H A D | strptime_parts.phpt | 23 var_dump($res["tm_sec"]); 24 var_dump($res["tm_min"]); 25 var_dump($res["tm_hour"]); 26 var_dump($res["tm_mday"]); 27 var_dump($res["tm_mon"]); 28 var_dump($res["tm_year"]); 32 var_dump($res["tm_sec"]); 33 var_dump($res["tm_min"]); 36 var_dump($res["tm_mon"]); 41 var_dump($res["tm_sec"]); [all …]
|
/php-src/ext/sqlite3/tests/ |
H A D | bug79294.phpt | 12 $res = $stmt->execute(); 13 var_dump($res->fetchArray() !== false); 14 var_dump($res->columnType(0)); 15 var_dump($res->fetchArray() !== false); 16 var_dump($res->columnType(0)); 18 var_dump($res->fetchArray() !== false); 19 var_dump($res->columnType(0)); 20 $res->reset(); 21 var_dump($res->fetchArray() !== false); 22 var_dump($res->columnType(0));
|
/php-src/ext/com_dotnet/ |
H A D | com_persist.c | 318 HRESULT res; in CPH_METHOD() local 351 HRESULT res; in CPH_METHOD() local 412 HRESULT res; in CPH_METHOD() local 456 HRESULT res; in CPH_METHOD() local 479 if (res != S_OK) { in CPH_METHOD() 491 HRESULT res; in CPH_METHOD() local 521 HRESULT res; in CPH_METHOD() local 541 res = S_OK; in CPH_METHOD() 566 if (FAILED(res)) { in CPH_METHOD() 579 HRESULT res; in CPH_METHOD() local [all …]
|
/php-src/ext/pdo/tests/ |
H A D | bug_44861.phpt | 48 $res = $db->prepare($query, $aParams); 49 $res->execute(); 50 var_dump($res->fetchColumn()); 51 var_dump($res->fetchColumn()); 52 var_dump($res->fetchColumn()); 53 var_dump($res->fetchColumn()); 54 var_dump($res->fetchColumn()); 66 $res->execute(array("it's working")); 71 $res->execute(array("try again")); 72 var_dump($res->fetchColumn()); [all …]
|
/php-src/ext/gd/libgd/ |
H A D | gd_io_ss.c | 82 int res; in sourceGetbuf() local 93 if (res == 0) { in sourceGetbuf() 95 } else if (res < 0) { in sourceGetbuf() 98 return res; in sourceGetbuf() 104 int res; in sourceGetchar() local 107 res = sourceGetbuf (ctx, &buf, 1); in sourceGetchar() 109 if (res == 1) { in sourceGetchar() 119 int res; in sinkPutbuf() local 123 res = (lctx->snk->sink) (lctx->snk->context, buf, size); in sinkPutbuf() 125 if (res <= 0) { in sinkPutbuf() [all …]
|
/php-src/ext/odbc/tests/ |
H A D | odbc_primarykeys_001.phpt | 31 var_dump(odbc_fetch_array($res)); 32 odbc_free_result($res); 37 var_dump(odbc_fetch_array($res)); 38 odbc_free_result($res); 41 var_dump(odbc_fetch_array($res)); 42 odbc_free_result($res); 44 $res = odbc_primarykeys($conn, null, "dbo", "primarykeys"); 45 var_dump(odbc_fetch_array($res)); 46 odbc_free_result($res); 49 var_dump(odbc_fetch_array($res)); [all …]
|
H A D | odbc_fetch_row_001.phpt | 18 $res = odbc_exec($conn, 'SELECT * FROM fetch_row'); 20 var_dump(odbc_fetch_row($res, 0)); 22 var_dump(odbc_fetch_row($res, null)); 23 var_dump(odbc_result($res, 'test')); 25 var_dump(odbc_fetch_row($res, null)); 26 var_dump(odbc_result($res, 'test')); 28 var_dump(odbc_fetch_row($res, 2)); 29 var_dump(odbc_result($res, 'test')); 31 var_dump(odbc_fetch_row($res, 4)); 33 odbc_free_result($res);
|
/php-src/ext/opcache/tests/jit/ |
H A D | mul_004.phpt | 18 $res = $a * 8; // shift cnt: 3 19 var_dump($res); 23 $res = 16 * $a; // shift cnt: 4 24 var_dump($res); 28 $res = $a * 0x10000000; // shift cnt: 29 29 var_dump($res); 33 $res = $a * 0x100000000; // shift cnt: 32 34 var_dump($res); 38 $res = $a * 2; // $a + $a 39 var_dump($res);
|
/php-src/ext/intl/tests/ |
H A D | collation_customization.phpt | 15 $res = ''; 20 $res .= "$i"; 25 $res .= " $eq $i"; 30 $res .= "\n"; 32 return $res; 37 $res = ''; 42 $res .= cmp_array( $coll, array( 'di Silva', 'Di Silva', 'diSilva', 'U.S.A.', 'USA' ) ); 46 $res .= cmp_array( $coll, array( 'di Silva', 'diSilva', 'Di Silva', 'U.S.A.', 'USA' ) ); 50 $res .= cmp_array( $coll, array( 'di Silva', 'diSilva', 'Di Silva', 'U.S.A.', 'USA' ) ); 51 $res .= "\n"; [all …]
|