/php-src/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-src/ext/dba/ |
H A D | dba.c | 144 if ((info)->mode != DBA_WRITER && (info)->mode != DBA_TRUNC && (info)->mode != DBA_CREAT) { \ 247 info->hnd->close(info); in dba_close_info() 254 if (info->fp && info->fp != info->lock.fp) { in dba_close_info() 269 pefree(info, info->flags & DBA_PERSISTENT); in dba_close_info() 270 info = NULL; in dba_close_info() 497 if (info && zend_string_equals(path, info->path)) { in php_dba_find() 1129 zend_string *fkey = info->hnd->firstkey(info); in PHP_FUNCTION() 1152 zend_string *nkey = info->hnd->nextkey(info); in PHP_FUNCTION() 1222 if (info->hnd->optimize(info) == SUCCESS) { in PHP_FUNCTION() 1243 if (info->hnd->sync(info) == SUCCESS) { in PHP_FUNCTION() [all …]
|
H A D | dba_db4.c | 92 (info->mode == DBA_TRUNC || info->mode == DBA_CREAT) ? DB_BTREE : 122 info->dbf = data; 138 dba_db4_data *dba = info->dbf; 147 dba_db4_data *dba = info->dbf; 171 dba_db4_data *dba = info->dbf; 192 dba_db4_data *dba = info->dbf; 217 dba_db4_data *dba = info->dbf; 229 dba_db4_data *dba = info->dbf; 240 return dba_nextkey_db4(info); 245 dba_db4_data *dba = info->dbf; [all …]
|
H A D | dba_db2.c | 42 int filemode = info->file_permission; in DBA_OPEN_FUNC() 68 info->dbf = pemalloc(sizeof(dba_db2_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC() 76 dba_db2_data *dba = info->dbf; in DBA_CLOSE_FUNC() 86 dba_db2_data *dba = info->dbf; in DBA_FETCH_FUNC() 102 dba_db2_data *dba = info->dbf; in DBA_UPDATE_FUNC() 121 dba_db2_data *dba = info->dbf; in DBA_EXISTS_FUNC() 136 dba_db2_data *dba = info->dbf; in DBA_DELETE_FUNC() 147 dba_db2_data *dba = info->dbf; 162 return dba_nextkey_db2(info); 167 dba_db2_data *dba = info->dbf; [all …]
|
H A D | dba_qdbm.c | 38 switch(info->mode) { in DBA_OPEN_FUNC() 56 info->dbf = pemalloc(sizeof(dba_qdbm_data), info->flags & DBA_PERSISTENT); in DBA_OPEN_FUNC() 68 dba_qdbm_data *dba = info->dbf; in DBA_CLOSE_FUNC() 76 dba_qdbm_data *dba = info->dbf; in DBA_FETCH_FUNC() 92 dba_qdbm_data *dba = info->dbf; in DBA_UPDATE_FUNC() 107 dba_qdbm_data *dba = info->dbf; in DBA_EXISTS_FUNC() 121 dba_qdbm_data *dba = info->dbf; in DBA_DELETE_FUNC() 128 dba_qdbm_data *dba = info->dbf; in DBA_FIRSTKEY_FUNC() 146 dba_qdbm_data *dba = info->dbf; in DBA_NEXTKEY_FUNC() 162 dba_qdbm_data *dba = info->dbf; in DBA_OPTIMIZE_FUNC() [all …]
|
H A D | dba_tcadb.c | 40 switch(info->mode) { in DBA_OPEN_FUNC() 66 info->dbf = pemalloc(sizeof(dba_tcadb_data), info->flags & DBA_PERSISTENT); in DBA_OPEN_FUNC() 77 dba_tcadb_data *dba = info->dbf; in DBA_CLOSE_FUNC() 86 dba_tcadb_data *dba = info->dbf; in DBA_FETCH_FUNC() 102 dba_tcadb_data *dba = info->dbf; in DBA_UPDATE_FUNC() 124 dba_tcadb_data *dba = info->dbf; in DBA_EXISTS_FUNC() 139 dba_tcadb_data *dba = info->dbf; in DBA_DELETE_FUNC() 146 dba_tcadb_data *dba = info->dbf; in DBA_FIRSTKEY_FUNC() 164 dba_tcadb_data *dba = info->dbf; in DBA_NEXTKEY_FUNC() 180 dba_tcadb_data *dba = info->dbf; in DBA_OPTIMIZE_FUNC() [all …]
|
H A D | dba_db3.c | 54 int filemode = info->file_permission; 93 info->dbf = data; 109 dba_db3_data *dba = info->dbf; 118 dba_db3_data *dba = info->dbf; 135 dba_db3_data *dba = info->dbf; 156 dba_db3_data *dba = info->dbf; 173 dba_db3_data *dba = info->dbf; 185 dba_db3_data *dba = info->dbf; 196 return dba_nextkey_db3(info); 201 dba_db3_data *dba = info->dbf; [all …]
|
H A D | dba_gdbm.c | 39 int filemode = info->file_permission; in DBA_OPEN_FUNC() 52 info->dbf = pemalloc(sizeof(dba_gdbm_data), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC() 63 dba_gdbm_data *dba = info->dbf; in DBA_CLOSE_FUNC() 72 dba_gdbm_data *dba = info->dbf; in DBA_FETCH_FUNC() 90 dba_gdbm_data *dba = info->dbf; in DBA_UPDATE_FUNC() 117 dba_gdbm_data *dba = info->dbf; in DBA_EXISTS_FUNC() 128 dba_gdbm_data *dba = info->dbf; in DBA_DELETE_FUNC() 139 dba_gdbm_data *dba = info->dbf; in DBA_FIRSTKEY_FUNC() 159 dba_gdbm_data *dba = info->dbf; in DBA_NEXTKEY_FUNC() 178 dba_gdbm_data *dba = info->dbf; in DBA_OPTIMIZE_FUNC() [all …]
|
H A D | php_dba.h | 56 dba_info *info; member 94 char* (*info)(const struct dba_handler *hnd, dba_info *); member 101 zend_result dba_open_##x(dba_info *info, const char **error) 103 void dba_close_##x(dba_info *info) 109 zend_result dba_exists_##x(dba_info *info, zend_string *key) 111 zend_result dba_delete_##x(dba_info *info, zend_string *key) 113 zend_string *dba_firstkey_##x(dba_info *info) 115 zend_string *dba_nextkey_##x(dba_info *info) 117 zend_result dba_optimize_##x(dba_info *info) 119 zend_result dba_sync_##x(dba_info *info) [all …]
|
H A D | dba_flatfile.c | 37 info->dbf = pemalloc(sizeof(flatfile), info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC() 38 memset(info->dbf, 0, sizeof(flatfile)); in DBA_OPEN_FUNC() 40 ((flatfile*)info->dbf)->fp = info->fp; in DBA_OPEN_FUNC() 47 flatfile *dba = info->dbf; in DBA_CLOSE_FUNC() 52 pefree(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC() 57 flatfile *dba = info->dbf; in DBA_FETCH_FUNC() 75 flatfile *dba = info->dbf; in DBA_UPDATE_FUNC() 102 flatfile *dba = info->dbf; in DBA_EXISTS_FUNC() 118 flatfile *dba = info->dbf; in DBA_DELETE_FUNC() 128 flatfile *dba = info->dbf; in DBA_FIRSTKEY_FUNC() [all …]
|
H A D | dba_inifile.c | 37 info->dbf = inifile_alloc(info->fp, info->mode == DBA_READER, info->flags&DBA_PERSISTENT); in DBA_OPEN_FUNC() 39 return info->dbf ? SUCCESS : FAILURE; in DBA_OPEN_FUNC() 44 inifile *dba = info->dbf; in DBA_CLOSE_FUNC() 46 inifile_free(dba, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC() 51 inifile *dba = info->dbf; in DBA_FETCH_FUNC() 73 inifile *dba = info->dbf; in DBA_UPDATE_FUNC() 107 inifile *dba = info->dbf; in DBA_EXISTS_FUNC() 128 inifile *dba = info->dbf; in DBA_DELETE_FUNC() 147 inifile *dba = info->dbf; in DBA_FIRSTKEY_FUNC() 161 inifile *dba = info->dbf; in DBA_NEXTKEY_FUNC()
|
H A D | dba_ndbm.c | 35 int filemode = info->file_permission; in DBA_OPEN_FUNC() 36 dba_info *pinfo = (dba_info *) info; in DBA_OPEN_FUNC() 38 switch(info->mode) { in DBA_OPEN_FUNC() 55 dbf = dbm_open(ZSTR_VAL(info->path), gmode, filemode); in DBA_OPEN_FUNC() 63 dbm_close(info->dbf); in DBA_CLOSE_FUNC() 73 gval = dbm_fetch(info->dbf, gkey); in DBA_FETCH_FUNC() 90 if(!dbm_store(info->dbf, gkey, gval, mode == 1 ? DBM_INSERT : DBM_REPLACE)) in DBA_UPDATE_FUNC() 102 gval = dbm_fetch(info->dbf, gkey); in DBA_EXISTS_FUNC() 115 return(dbm_delete(info->dbf, gkey) == -1 ? FAILURE : SUCCESS); in DBA_DELETE_FUNC() 122 gkey = dbm_firstkey(info->dbf); in DBA_FIRSTKEY_FUNC() [all …]
|
H A D | dba_db1.c | 44 int filemode = info->file_permission; in DBA_OPEN_FUNC() 47 switch (info->mode) { in DBA_OPEN_FUNC() 73 info->dbf = dba; in DBA_OPEN_FUNC() 80 dba_db1_data *dba = info->dbf; in DBA_CLOSE_FUNC() 82 pefree(info->dbf, info->flags&DBA_PERSISTENT); in DBA_CLOSE_FUNC() 87 dba_db1_data *dba = info->dbf; in DBA_FETCH_FUNC() 103 dba_db1_data *dba = info->dbf; in DBA_UPDATE_FUNC() 118 dba_db1_data *dba = info->dbf; in DBA_EXISTS_FUNC() 130 dba_db1_data *dba = info->dbf; in DBA_DELETE_FUNC() 141 dba_db1_data *dba = info->dbf; in DBA_FIRSTKEY_FUNC() [all …]
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_loaddata.c | 28 MYSQLND_INFILE_INFO *info; in mysqlnd_local_infile_init() local 34 if (!info) { in mysqlnd_local_infile_init() 38 *ptr = info; in mysqlnd_local_infile_init() 49 info->filename = filename; in mysqlnd_local_infile_init() 52 if (info->fd == NULL) { in mysqlnd_local_infile_init() 92 if (info) { in mysqlnd_local_infile_error() 111 if (info) { in mysqlnd_local_infile_end() 113 if (info->fd) { in mysqlnd_local_infile_end() 115 info->fd = NULL; in mysqlnd_local_infile_end() 117 mnd_efree(info); in mysqlnd_local_infile_end() [all …]
|
/php-src/ext/mysqli/tests/ |
H A D | mysqli_get_connection_stats.phpt | 18 if (!is_array($info = mysqli_get_connection_stats($link)) || empty($info)) 19 printf("[003] Expecting array/any_non_empty, got %s/%s\n", gettype($info), $info); 35 if ($info !== $info2) { 37 var_dump($info); 41 if (!is_array($info = $link->get_connection_stats()) || empty($info)) 42 printf("[006] Expecting array/any_non_empty, got %s/%s\n", gettype($info), $info); 50 if ($info !== $info2) { 52 var_dump($info); 59 if (!is_array($info = mysqli_get_connection_stats($link)) || empty($info)) 66 if ($info === $info2) { [all …]
|
H A D | mysqli_get_client_stats.phpt | 138 ++$test_counter, gettype($info), $info); 156 ++$test_counter, gettype($info), $info); 180 ++$test_counter, gettype($info), $info); 204 ++$test_counter, gettype($info), $info); 226 ++$test_counter, gettype($info), $info); 240 ++$test_counter, gettype($info), $info); 257 ++$test_counter, gettype($info), $info); 282 ++$test_counter, gettype($info), $info); 303 ++$test_counter, gettype($info), $info); 342 ++$test_counter, gettype($info), $info); [all …]
|
H A D | mysqli_stmt_get_result_metadata.phpt | 76 while ($info = $res->fetch_field()) 77 $fields['res'][] = $info; 78 var_dump($info); 79 while ($info = $res_meta->fetch_field()) 80 $fields['meta'][] = $info; 81 var_dump($info); 91 foreach ($fields['res'] as $k => $info) { 92 printf("%s\n", $info->name); 95 …$k, gettype($info->name), $info->name, gettype($fields['meta'][$k]->name), $fields['meta'][$k]->na… 111 … $k, gettype($info->def), $info->def, gettype($fields['meta'][$k]->def), $fields['meta'][$k]->def); [all …]
|
/php-src/ext/pdo/ |
H A D | pdo_sqlstate.c | 311 const struct pdo_sqlstate_info *info; in pdo_sqlstate_init_error_table() local 316 info = &err_initializer[i]; in pdo_sqlstate_init_error_table() 318 zend_hash_str_add_ptr(&err_hash, info->state, sizeof(info->state), (void *)info); in pdo_sqlstate_init_error_table() 324 const struct pdo_sqlstate_info *info; in pdo_sqlstate_state_to_description() local 325 if ((info = zend_hash_str_find_ptr(&err_hash, state, sizeof(err_initializer[0].state))) != NULL) { in pdo_sqlstate_state_to_description() 326 return info->desc; in pdo_sqlstate_state_to_description()
|
/php-src/ext/mbstring/ |
H A D | mb_gpc.c | 42 php_mb_encoding_handler_info_t info; in ZEND_EXTERN_MODULE_GLOBALS() local 125 info.data_type = arg; in ZEND_EXTERN_MODULE_GLOBALS() 126 info.separator = separator; in ZEND_EXTERN_MODULE_GLOBALS() 127 info.report_errors = false; in ZEND_EXTERN_MODULE_GLOBALS() 225 if (info->num_from_encodings == 0) { in _php_mb_encoding_handler_ex() 228 from_encoding = info->from_encodings[0]; in _php_mb_encoding_handler_ex() 232 if (info->report_errors) { in _php_mb_encoding_handler_ex() 288 php_mb_encoding_handler_info_t info; in SAPI_POST_HANDLER_FUNC() local 293 info.data_type = PARSE_POST; in SAPI_POST_HANDLER_FUNC() 294 info.separator = "&"; in SAPI_POST_HANDLER_FUNC() [all …]
|
/php-src/ext/intl/tests/ |
H A D | normalizer_normalize.phpt | 98 is in form 'UNORM_FORM_C'? = yes error info: 'U_ZERO_ERROR' (0) 100 is in form 'UNORM_FORM_C'? = yes error info: 'U_ZERO_ERROR' (0) 102 is in form 'UNORM_FORM_C'? = no error info: 'U_ZERO_ERROR' (0) 104 is in form 'UNORM_FORM_C'? = no error info: 'U_ZERO_ERROR' (0) 106 is in form 'UNORM_FORM_C'? = yes error info: 'U_ZERO_ERROR' (0) 108 is in form 'UNORM_FORM_C'? = yes error info: 'U_ZERO_ERROR' (0) 110 is in form 'UNORM_FORM_D'? = yes error info: 'U_ZERO_ERROR' (0) 112 is in form 'UNORM_FORM_D'? = no error info: 'U_ZERO_ERROR' (0) 114 is in form 'UNORM_FORM_D'? = no error info: 'U_ZERO_ERROR' (0) 116 is in form 'UNORM_FORM_D'? = no error info: 'U_ZERO_ERROR' (0) [all …]
|
/php-src/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); 44 if (!preg_match('/Uptime: (\d+)/i', $info, $matches) || $uptime - $matches[1] > 1) { 45 …07] SHOW STATUS and server info have reported a different uptime, please check. Server info: '%s',…
|
/php-src/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-src/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-src/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"]);
|