Searched refs:alias (Results 1 - 25 of 32) sorted by relevance

12

/PHP_TRUNK/ext/phar/phar/
H A Dpharcommand.inc61 'typ' => 'alias',
63 'inf' => '<alias> Provide an alias name for the phar file.'
562 $alias = $this->args['a']['val'];
576 $phar = new Phar($archive, 0, $alias);
/PHP_TRUNK/ext/phar/
H A Dphar.c209 if (phar->alias && phar->alias != phar->fname) {
210 pefree(phar->alias, phar->is_persistent);
211 phar->alias = NULL;
298 /* this is a new phar that has perhaps had an alias/metadata set, but has never
529 int phar_open_parsed_phar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ argument
543 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error TSRMLS_CC)
544 && ((alias && fname_len == phar->fname_len
545 && !strncmp(unixfname, phar->fname, fname_len)) || !alias)
550 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_le
660 phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, long halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error TSRMLS_DC) argument
1242 phar_open_or_create_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) argument
1319 phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) argument
1473 phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error TSRMLS_DC) argument
1564 phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, int is_data, char **error TSRMLS_DC) argument
2297 phar_open_executed_filename(char *alias, int alias_len, char **error TSRMLS_DC) argument
[all...]
H A Dphar_internal.h294 char *alias; member in struct:_phar_archive_data
317 /* if 1, then this alias was manually specified by the user and is not a permanent alias */
524 * validate an alias, returns 1 for success, 0 for failure
526 static inline int phar_validate_alias(const char *alias, int alias_len) /* {{{ */ argument
528 return !(memchr(alias, '/', alias_len) || memchr(alias, '\\', alias_len) || memchr(alias, ':', alias_len) ||
529 memchr(alias, ';', alias_len) || memchr(alias, '\
[all...]
H A Dphp_phar.h37 PHP_PHAR_API int phar_resolve_alias(char *alias, int alias_len, char **filename, int *filename_len TSRMLS_DC);
H A Dtar.c124 int phar_open_or_create_tar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ argument
127 int ret = phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &phar, error TSRMLS_CC);
195 int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, int is_data, php_uint32 compression, char **error TSRMLS_DC) /* {{{ */ argument
501 if (!actual_alias && entry.filename_len == sizeof(".phar/alias.txt")-1 && !strncmp(entry.filename, ".phar/alias.txt", sizeof(".phar/alias.txt")-1)) {
502 /* found explicit alias */
505 spprintf(error, 4096, "phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, cannot process", fname);
525 spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname);
534 myphar->alias
[all...]
H A Dutil.c926 PHP_PHAR_API int phar_resolve_alias(char *alias, int alias_len, char **filename, int *filename_len TSRMLS_DC) /* {{{ */ { argument
929 && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void**)&fd_ptr)) {
938 int phar_free_alias(phar_archive_data *phar, char *alias, int alias_len TSRMLS_DC) /* {{{ */ argument
958 * Looks up a phar archive in the filename map, connecting it to the alias
961 int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC) /* {{{ */ argument
978 if (alias && alias_len) {
980 if (!PHAR_G(last_phar)->is_temporary_alias && (alias_len != PHAR_G(last_phar)->alias_len || memcmp(PHAR_G(last_phar)->alias, alias, alias_len))) {
982 spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, PHAR_
[all...]
H A Dzip.c166 int phar_parse_zipfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ argument
320 if (mydata->alias) { \
321 pefree(mydata->alias, mydata->is_persistent); \
344 if (mydata->alias) { \
345 pefree(mydata->alias, mydata->is_persistent); \
557 if (!actual_alias && entry.filename_len == sizeof(".phar/alias.txt")-1 && !strncmp(entry.filename, ".phar/alias.txt", sizeof(".phar/alias.txt")-1)) {
563 /* archive alias found */
569 PHAR_ZIP_FAIL("phar error: internal corruption of zip-based phar (cannot read local file header for alias)");
720 phar_open_or_create_zip(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) argument
[all...]
H A Dphar_object.c557 /* {{{ proto void Phar::webPhar([string alias, [string index, [string f404, [array mimetypes, [callback rewrites]]]]])
567 char *alias = NULL, *error, *index_php = NULL, *f404 = NULL, *ru = NULL; local
575 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!s!saz", &alias, &alias_len, &index_php, &index_php_len, &f404, &f404_len, &mimeoverride, &rewrite) == FAILURE) {
583 if (phar_open_executed_filename(alias, alias_len, &error TSRMLS_CC) != SUCCESS) {
977 /* {{{ proto mixed Phar::mapPhar([string alias, [int dataoffset]])
981 char *alias = NULL, *error; local
985 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!l", &alias, &alias_len, &dataoffset) == FAILURE) {
991 RETVAL_BOOL(phar_open_executed_filename(alias, alias_len, &error TSRMLS_CC) == SUCCESS);
999 /* {{{ proto mixed Phar::loadPhar(string filename [, string alias])
1000 * Loads any phar archive with an alias */
1003 char *fname, *alias = NULL, *error; local
2697 char *alias, *error, *oldalias; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_cmd.h79 char alias; /* Alias */ member in struct:_phpdbg_command_t
149 #define PHPDBG_COMMAND_D_EX(name, tip, alias, handler, children, has_args) \
150 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_##handler, children, has_args}
152 #define PHPDBG_COMMAND_D(name, tip, alias, children, has_args) \
153 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_##name, children, has_args}
H A Dphpdbg_cmd.c593 (command->alias &&
595 (command->alias == *input->argv[0]->string))) {
H A Dphpdbg_prompt.c60 PHPDBG_COMMAND_D(aliases, "show alias list", 'a', NULL, 0),
918 if (prompt_command->alias) {
922 phpdbg_writeln(" %c -> %9s", prompt_command->alias, prompt_command->name);
924 if (sub_command->alias) {
925 phpdbg_writeln(" |-------- %c -> %15s\t%s", sub_command->alias,
932 phpdbg_writeln(" %c -> %9s\t\t\t%s", prompt_command->alias,
H A Dphpdbg_help.c174 if (print_command->alias) {
175 phpdbg_writeln("\t[%c]\t%s\t\t%s", print_command->alias, print_command->name, print_command->tip);
288 if (break_command->alias) {
289 phpdbg_writeln("\t[%c]\t%s\t\t%s", break_command->alias, break_command->name, break_command->tip);
330 if (info_command->alias) {
331 phpdbg_writeln("\t[%c]\t%s\t\t%s", info_command->alias, info_command->name, info_command->tip);
429 if (list_command->alias) {
430 phpdbg_writeln("\t[%c]\t%s\t\t%s", list_command->alias, list_command->name, list_command->tip);
473 if (set_command->alias) {
474 phpdbg_writeln("\t[%c]\t%s\t\t%s", set_command->alias, set_comman
[all...]
/PHP_TRUNK/Zend/
H A Dzend_opcode.c239 if (ce->trait_aliases[i]->alias) {
240 efree((char*)ce->trait_aliases[i]->alias);
H A Dzend_API.h79 #define ZEND_FALIAS(name, alias, arg_info) ZEND_FENTRY(name, ZEND_FN(alias), arg_info, 0)
80 #define ZEND_DEP_FALIAS(name, alias, arg_info) ZEND_FENTRY(name, ZEND_FN(alias), arg_info, ZEND_ACC_DEPRECATED)
84 #define ZEND_MALIAS(classname, name, alias, arg_info, flags) \
85 ZEND_FENTRY(name, ZEND_MN(classname##_##alias), arg_info, flags)
96 #define ZEND_NS_FALIAS(ns, name, alias, arg_info) ZEND_NS_FENTRY(ns, name, ZEND_FN(alias), arg_info, 0)
97 #define ZEND_NS_DEP_FALIAS(ns, name, alias, arg_info) ZEND_NS_FENTRY(ns, name, ZEND_FN(alias), arg_inf
[all...]
H A Dzend.h468 const char* alias; member in struct:_zend_trait_alias
H A Dzend_API.c3997 zend_trait_alias *alias, **alias_ptr; local
4000 alias = *alias_ptr;
4001 while (alias) {
4002 if (alias->alias_len == len &&
4003 !strncasecmp(name, alias->alias, alias->alias_len)) {
4004 return alias->alias;
4007 alias
[all...]
H A Dzend_compile.c3321 /* Check for class alias */
4093 zend_trait_alias *alias, **alias_ptr; local
4109 alias = *alias_ptr;
4110 while (alias) {
4111 /* Scope unset or equal to the function we compare to, and the alias applies to fn */
4112 if (alias->alias != NULL
4113 && (!alias->trait_method->ce || fn->common.scope == alias->trait_method->ce)
4114 && alias
[all...]
/PHP_TRUNK/ext/dba/
H A Ddba.c289 #define DBA_NAMED_HND(alias, name, flags) \
291 #alias, flags, dba_open_##name, dba_close_##name, dba_fetch_##name, dba_update_##name, \
/PHP_TRUNK/ext/intl/converter/
H A Dconverter.c956 const char *alias; local
959 alias = ucnv_getAlias(name, i, &error);
965 add_next_index_string(return_value, alias, 1);
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c3318 const char **alias; local
3319 for (alias = *encoding->aliases; *alias; ++alias) {
3320 add_next_index_string(return_value, (char *)*alias, 1);
/PHP_TRUNK/main/
H A Doutput.c489 php_output_handler_alias_ctor_t *alias = NULL; local
497 if (Z_STRLEN_P(output_handler) && (alias = php_output_handler_alias(Z_STRVAL_P(output_handler), Z_STRLEN_P(output_handler) TSRMLS_CC))) {
498 handler = (*alias)(Z_STRVAL_P(output_handler), Z_STRLEN_P(output_handler), chunk_size, flags TSRMLS_CC);
673 * Registers an internal output handler as alias for a user handler */
677 zend_error(E_ERROR, "Cannot register an output handler alias outside of MINIT");
/PHP_TRUNK/ext/interbase/
H A Dibase_query.c1508 char buf[METADATALENGTH+4], *alias = var->aliasname; local
1518 switch (*alias) {
1523 base = alias;
1526 Z_ARRVAL_P(return_value),alias,strlen(alias)+1,&p)) {
1529 snprintf(alias = buf, sizeof(buf), "%s_%02d", base, i++);
1642 add_assoc_zval(return_value, alias, result);
1648 add_assoc_null(return_value, alias);
1923 add_assoc_stringl(return_value, "alias", var->aliasname, var->aliasname_length, 1);
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_util_funcs.c827 if (trait_aliases[i]->alias) {
828 trait_aliases[i]->alias =
829 estrndup(trait_aliases[i]->alias,
H A Dzend_persist.c569 if (ce->trait_aliases[i]->alias) {
570 zend_accel_store(ce->trait_aliases[i]->alias,
H A Dzend_persist_calc.c321 if (ce->trait_aliases[i]->alias) {

Completed in 76 milliseconds

12