/PHP-7.2/ext/gd/libgd/ |
H A D | gd_bmp.c | 480 im = gdImageCreate(info->width, info->height); in gdImageCreateFromBmpCtx() 591 info->height = -info->height; in bmp_read_windows_v3_info() 598 if (info->width <= 0 || info->height <= 0 || info->numplanes <= 0 || in bmp_read_windows_v3_info() 599 info->depth <= 0 || info->numcolors < 0 || info->mincolors < 0) { in bmp_read_windows_v3_info() 620 info->numcolors = 1 << info->depth; in bmp_read_os2_v1_info() 623 if (info->width <= 0 || info->height <= 0 || info->numplanes <= 0 || in bmp_read_os2_v1_info() 624 info->depth <= 0 || info->numcolors < 0) { in bmp_read_os2_v1_info() 656 info->height = -info->height; in bmp_read_os2_v2_info() 663 if (info->width <= 0 || info->height <= 0 || info->numplanes <= 0 || in bmp_read_os2_v2_info() 664 info->depth <= 0 || info->numcolors < 0 || info->mincolors < 0) { in bmp_read_os2_v2_info() [all …]
|
/PHP-7.2/ext/mysqlnd/ |
H A D | mysqlnd_loaddata.c | 30 MYSQLND_INFILE_INFO *info; in mysqlnd_local_infile_init() local 36 if (!info) { in mysqlnd_local_infile_init() 40 *ptr = info; in mysqlnd_local_infile_init() 51 info->filename = filename; in mysqlnd_local_infile_init() 54 if (info->fd == NULL) { in mysqlnd_local_infile_init() 94 if (info) { in mysqlnd_local_infile_error() 113 if (info) { in mysqlnd_local_infile_end() 115 if (info->fd) { in mysqlnd_local_infile_end() 117 info->fd = NULL; in mysqlnd_local_infile_end() 119 mnd_efree(info); in mysqlnd_local_infile_end() [all …]
|
/PHP-7.2/ext/dba/ |
H A D | dba.c | 310 if(info->mode != DBA_WRITER && info->mode != DBA_TRUNC && info->mode != DBA_CREAT) { \ 317 if(info->mode != DBA_WRITER && info->mode != DBA_TRUNC && info->mode != DBA_CREAT) { \ 429 info->hnd->close(info); in dba_close() 432 pefree(info->path, info->flags&DBA_PERSISTENT); in dba_close() 434 if (info->fp && info->fp != info->lock.fp) { in dba_close() 451 pefree(info, info->flags&DBA_PERSISTENT); in dba_close() 968 close_both = (info->fp != info->lock.fp); in php_dba_open() 1153 fkey = info->hnd->firstkey(info, &len); in PHP_FUNCTION() 1180 nkey = info->hnd->nextkey(info, &len); in PHP_FUNCTION() 1244 if (info->hnd->optimize(info) == SUCCESS) { in PHP_FUNCTION() [all …]
|
H A D | dba_db4.c | 88 info->mode == DBA_TRUNC ? DB_BTREE : 102 (info->mode == DBA_TRUNC || info->mode == DBA_CREAT) ? DB_BTREE : 115 if (info->flags & DBA_PERSISTENT) { 119 if (info->argc > 0) { 120 convert_to_long_ex(&info->argv[0]); 121 filemode = Z_LVAL(info->argv[0]); 137 info->dbf = data; 168 if (info->flags & DBA_PERSISTENT) { 174 if (info->flags & DBA_PERSISTENT) { 206 if (info->flags & DBA_PERSISTENT) { [all …]
|
H A D | dba_db2.c | 54 int s = VCWD_STAT(info->path, &check_stat); in DBA_OPEN_FUNC() 61 info->mode == DBA_TRUNC ? DB_BTREE : in DBA_OPEN_FUNC() 66 (info->mode == DBA_CREAT && !s) ? 0 : in DBA_OPEN_FUNC() 67 info->mode == DBA_WRITER ? 0 : in DBA_OPEN_FUNC() 74 if (info->argc > 0) { in DBA_OPEN_FUNC() 75 convert_to_long_ex(&info->argv[0]); in DBA_OPEN_FUNC() 76 filemode = Z_LVAL(info->argv[0]); in DBA_OPEN_FUNC() 83 info->dbf = pemalloc(sizeof(dba_db2_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC() 85 ((dba_db2_data *) info->dbf)->dbp = dbp; in DBA_OPEN_FUNC() 96 pefree(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC() [all …]
|
H A D | dba_ndbm.c | 42 dba_info *pinfo = (dba_info *) info; in DBA_OPEN_FUNC() 44 switch(info->mode) { in DBA_OPEN_FUNC() 61 if(info->argc > 0) { in DBA_OPEN_FUNC() 62 convert_to_long_ex(&info->argv[0]); in DBA_OPEN_FUNC() 63 filemode = Z_LVAL(info->argv[0]); in DBA_OPEN_FUNC() 66 dbf = dbm_open(info->path, gmode, filemode); in DBA_OPEN_FUNC() 74 dbm_close(info->dbf); in DBA_CLOSE_FUNC() 83 gval = dbm_fetch(info->dbf, gkey); in DBA_FETCH_FUNC() 108 gval = dbm_fetch(info->dbf, gkey); in DBA_EXISTS_FUNC() 126 gkey = dbm_firstkey(info->dbf); in DBA_FIRSTKEY_FUNC() [all …]
|
H A D | dba_db3.c | 48 #define DB3_DATA dba_db3_data *dba = info->dbf 66 int s = VCWD_STAT(info->path, &check_stat); 73 info->mode == DBA_TRUNC ? DB_BTREE : 78 (info->mode == DBA_CREAT && !s) ? 0 : 79 info->mode == DBA_WRITER ? 0 : 86 if (info->argc > 0) { 87 convert_to_long_ex(&info->argv[0]); 88 filemode = Z_LVAL(info->argv[0]); 108 info->dbf = data; 128 pefree(dba, info->flags&DBA_PERSISTENT); [all …]
|
H A D | dba_dbm.c | 42 #define DBM_DATA dba_dbm_data *dba = info->dbf 62 if(info->argc > 0) { in DBA_OPEN_FUNC() 63 convert_to_long_ex(&info->argv[0]); in DBA_OPEN_FUNC() 64 filemode = Z_LVAL(info->argv[0]); in DBA_OPEN_FUNC() 67 if(info->mode == DBA_TRUNC) { in DBA_OPEN_FUNC() 75 if(info->mode == DBA_CREAT) { in DBA_OPEN_FUNC() 82 if(dbminit((char *) info->path) == -1) { in DBA_OPEN_FUNC() 86 info->dbf = pemalloc(sizeof(dba_dbm_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC() 87 memset(info->dbf, 0, sizeof(dba_dbm_data)); in DBA_OPEN_FUNC() 93 pefree(info->dbf, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC() [all …]
|
H A D | dba_gdbm.c | 34 #define GDBM_DATA dba_gdbm_data *dba = info->dbf 49 info->mode == DBA_WRITER ? GDBM_WRITER : in DBA_OPEN_FUNC() 50 info->mode == DBA_CREAT ? GDBM_WRCREAT : in DBA_OPEN_FUNC() 51 info->mode == DBA_TRUNC ? GDBM_NEWDB : -1; in DBA_OPEN_FUNC() 56 if(info->argc > 0) { in DBA_OPEN_FUNC() 57 convert_to_long_ex(&info->argv[0]); in DBA_OPEN_FUNC() 58 filemode = Z_LVAL(info->argv[0]); in DBA_OPEN_FUNC() 64 info->dbf = pemalloc(sizeof(dba_gdbm_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC() 65 memset(info->dbf, 0, sizeof(dba_gdbm_data)); in DBA_OPEN_FUNC() 66 ((dba_gdbm_data *) info->dbf)->dbf = dbf; in DBA_OPEN_FUNC() [all …]
|
H A D | php_dba.h | 90 char* (*info)(struct dba_handler *hnd, dba_info *); member 97 int dba_open_##x(dba_info *info, char **error) 99 void dba_close_##x(dba_info *info) 101 char *dba_fetch_##x(dba_info *info, char *key, size_t keylen, int skip, size_t *newlen) 105 int dba_exists_##x(dba_info *info, char *key, size_t keylen) 107 int dba_delete_##x(dba_info *info, char *key, size_t keylen) 109 char *dba_firstkey_##x(dba_info *info, size_t *newlen) 111 char *dba_nextkey_##x(dba_info *info, size_t *newlen) 113 int dba_optimize_##x(dba_info *info) 115 int dba_sync_##x(dba_info *info) [all …]
|
/PHP-7.2/ext/mbstring/ |
H A D | mb_gpc.c | 61 php_mb_encoding_handler_info_t info; in ZEND_EXTERN_MODULE_GLOBALS() local 151 info.data_type = arg; in ZEND_EXTERN_MODULE_GLOBALS() 153 info.report_errors = 0; in ZEND_EXTERN_MODULE_GLOBALS() 206 mbfl_string_init_set(&string, info->to_language, info->to_encoding->no_encoding); in _php_mb_encoding_handler_ex() 207 mbfl_string_init_set(&resvar, info->to_language, info->to_encoding->no_encoding); in _php_mb_encoding_handler_ex() 208 mbfl_string_init_set(&resval, info->to_language, info->to_encoding->no_encoding); in _php_mb_encoding_handler_ex() 264 if (info->num_from_encodings <= 0) { in _php_mb_encoding_handler_ex() 286 if (info->report_errors) { in _php_mb_encoding_handler_ex() 300 if (info->report_errors) { in _php_mb_encoding_handler_ex() 370 info.separator = "&"; in SAPI_POST_HANDLER_FUNC() [all …]
|
/PHP-7.2/ext/mysqli/tests/ |
H A D | mysqli_get_client_stats.phpt | 146 ++$test_counter, gettype($info), $info); 164 ++$test_counter, gettype($info), $info); 188 ++$test_counter, gettype($info), $info); 212 ++$test_counter, gettype($info), $info); 234 ++$test_counter, gettype($info), $info); 248 ++$test_counter, gettype($info), $info); 265 ++$test_counter, gettype($info), $info); 290 ++$test_counter, gettype($info), $info); 311 ++$test_counter, gettype($info), $info); 350 ++$test_counter, gettype($info), $info); [all …]
|
H A D | mysqli_get_connection_stats.phpt | 26 if (!is_array($info = mysqli_get_connection_stats($link)) || empty($info)) 27 printf("[003] Expecting array/any_non_empty, got %s/%s\n", gettype($info), $info); 43 if ($info !== $info2) { 45 var_dump($info); 49 if (!is_array($info = $link->get_connection_stats()) || empty($info)) 50 printf("[006] Expecting array/any_non_empty, got %s/%s\n", gettype($info), $info); 58 if ($info !== $info2) { 60 var_dump($info); 67 if (!is_array($info = mysqli_get_connection_stats($link)) || empty($info)) 74 if ($info === $info2) { [all …]
|
H A D | mysqli_stmt_get_result_metadata.phpt | 79 while ($info = $res->fetch_field()) 80 $fields['res'][] = $info; 81 var_dump($info); 82 while ($info = $res_meta->fetch_field()) 83 $fields['meta'][] = $info; 84 var_dump($info); 95 printf("%s\n", $info->name); 98 …$k, gettype($info->name), $info->name, gettype($fields['meta'][$k]->name), $fields['meta'][$k]->na… 106 …$k, gettype($info->table), $info->table, gettype($fields['meta'][$k]->table), $fields['meta'][$k]-… 114 … $k, gettype($info->def), $info->def, gettype($fields['meta'][$k]->def), $fields['meta'][$k]->def); [all …]
|
/PHP-7.2/ext/intl/tests/ |
H A D | normalizer_normalize.phpt | 79 . "\terror info: '$error_message' ($error_code)\n" 87 . "\terror info: '$error_message' ($error_code)\n" 101 is in form 'UNORM_FORM_C'? = yes error info: 'U_ZERO_ERROR' (0) 103 is in form 'UNORM_FORM_C'? = yes error info: 'U_ZERO_ERROR' (0) 105 is in form 'UNORM_FORM_C'? = no error info: 'U_ZERO_ERROR' (0) 107 is in form 'UNORM_FORM_C'? = no error info: 'U_ZERO_ERROR' (0) 109 is in form 'UNORM_FORM_C'? = yes error info: 'U_ZERO_ERROR' (0) 115 is in form 'UNORM_FORM_D'? = no error info: 'U_ZERO_ERROR' (0) 117 is in form 'UNORM_FORM_D'? = no error info: 'U_ZERO_ERROR' (0) 119 is in form 'UNORM_FORM_D'? = no error info: 'U_ZERO_ERROR' (0) [all …]
|
/PHP-7.2/ext/pdo/ |
H A D | pdo_sqlstate.c | 315 const struct pdo_sqlstate_info *info; in pdo_sqlstate_init_error_table() local 320 info = &err_initializer[i]; in pdo_sqlstate_init_error_table() 322 zend_hash_str_add_ptr(&err_hash, info->state, sizeof(info->state), (void *)info); in pdo_sqlstate_init_error_table() 330 const struct pdo_sqlstate_info *info; in pdo_sqlstate_state_to_description() local 331 if ((info = zend_hash_str_find_ptr(&err_hash, state, sizeof(err_initializer[0].state))) != NULL) { in pdo_sqlstate_state_to_description() 332 return info->desc; in pdo_sqlstate_state_to_description()
|
/PHP-7.2/ext/spl/tests/ |
H A D | SplFileInfo_setInfoClass_basic.phpt | 8 $info = new SplFileInfo(__FILE__); 10 $info->setInfoClass('MyInfoObject'); 11 echo get_class($info->getFileInfo()), "\n"; 12 echo get_class($info->getPathInfo()), "\n"; 14 $info->setInfoClass('SplFileInfo'); 15 echo get_class($info->getFileInfo()), "\n"; 16 echo get_class($info->getPathInfo()), "\n";
|
H A D | SplFileInfo_setFileClass_basic.phpt | 8 $info = new SplFileInfo(__FILE__); 10 $info->setFileClass('MyFileObject'); 11 echo get_class($info->openFile()), "\n"; 13 $info->setFileClass('SplFileObject'); 14 echo get_class($info->openFile()), "\n";
|
/PHP-7.2/ext/opcache/Optimizer/ |
H A D | compact_literals.c | 195 info, in zend_optimizer_compact_literals() 360 info[j] = info[i]; in zend_optimizer_compact_literals() 369 info[j] = info[i]; in zend_optimizer_compact_literals() 379 info[j] = info[i]; in zend_optimizer_compact_literals() 390 info[j] = info[i]; in zend_optimizer_compact_literals() 405 info[j] = info[i]; in zend_optimizer_compact_literals() 419 info[j] = info[i]; in zend_optimizer_compact_literals() 452 info[i].flags == info[Z_LVAL_P(pos)].flags) { in zend_optimizer_compact_literals() 472 info[j] = info[i]; in zend_optimizer_compact_literals() 494 info[j] = info[i]; in zend_optimizer_compact_literals() [all …]
|
/PHP-7.2/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_attr_server_info.phpt | 17 $info = $db->getAttribute(PDO::ATTR_SERVER_INFO); 18 if ('' == $info) 19 printf("[001] Server info must not be empty\n"); 26 if (soundex($new_info) != soundex($info)) 27 printf("[003] Did we change it from '%s' to '%s'?\n", $info, $info); 29 // lets hope we always run this in the same second as we did run the server info request... 40 if (!preg_match('/Uptime/i', $info)) 41 printf("[006] Can't find uptime in server info '%s'\n", $info); 43 if (isset($uptime) && !preg_match(sprintf('/Uptime: %d/i', $uptime), $info)) 44 …07] SHOW STATUS and server info have reported a different uptime, please check. Server info: '%s',…
|
H A D | pdo_mysql_attr_errmode.phpt | 52 $code, $info[0]); 53 if ('' == $info[1]) 55 if ('' == $info[2]) 68 $code, $info[0]); 69 if ('' == $info[1]) 71 if ('' == $info[2]) 87 $code, $info[0]); 88 if ('' == $info[1]) 90 if ('' == $info[2]) 125 $code, $info[0]); [all …]
|
/PHP-7.2/win32/ |
H A D | cp_enc_map_gen.c | 175 CPINFOEX info; in main() local 220 } else if (GetCPInfoEx(cur->id, 0, &info)) { in main() 234 …, %u, %u, %u, \"%s\", NULL, \"%s\" },\n", info.CodePage, to_w_fl, from_w_fl, info.MaxCharSize, cur… in main() 239 …u, %u, \"%s\", \"%s\", \"%s\" },\n", info.CodePage, to_w_fl, from_w_fl, info.MaxCharSize, cur->nam… in main()
|
/PHP-7.2/ext/fileinfo/libmagic/ |
H A D | readcdf.c | 154 switch (info[i].pi_type) { in cdf_file_property_info() 192 e = info[i].pi_str.s_buf + len; in cdf_file_property_info() 216 tp = info[i].pi_tp; in cdf_file_property_info() 293 cdf_property_info_t *info; in cdf_file_summary_info() local 341 free(info); in cdf_file_summary_info() 536 cdf_info_t info; in file_trycdf() local 546 info.i_fd = fd; in file_trycdf() 547 info.i_buf = buf; in file_trycdf() 548 info.i_len = nbytes; in file_trycdf() 551 if (cdf_read_header(&info, &h) == -1) in file_trycdf() [all …]
|
/PHP-7.2/ext/openssl/tests/ |
H A D | bug65698.phpt | 8 $info = openssl_x509_parse("file://$crt"); 9 var_dump($info["validFrom"], $info["validFrom_time_t"], $info["validTo"], $info["validTo_time_t"]);
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_wait.c | 74 info->ht[0] = ht1; in phpdbg_array_intersect_init() 75 info->ht[1] = ht2; in phpdbg_array_intersect_init() 80 zend_hash_internal_pointer_reset_ex(info->ht[0], &info->pos[0]); in phpdbg_array_intersect_init() 81 zend_hash_internal_pointer_reset_ex(info->ht[1], &info->pos[1]); in phpdbg_array_intersect_init() 88 int invalid = !info->ht[0] + !info->ht[1]; in phpdbg_array_intersect() 97 zend_hash_move_forward_ex(info->ht[invalid], &info->pos[invalid]); in phpdbg_array_intersect() 102 if (!(zvp[0] = zend_hash_get_current_data_ex(info->ht[0], &info->pos[0]))) { in phpdbg_array_intersect() 103 info->ht[0] = NULL; in phpdbg_array_intersect() 107 info->ht[1] = NULL; in phpdbg_array_intersect() 115 zend_hash_move_forward_ex(info->ht[0], &info->pos[0]); in phpdbg_array_intersect() [all …]
|