Searched refs:alias (Results 1 - 25 of 31) 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 Dphp_phar.h37 PHP_PHAR_API int phar_resolve_alias(char *alias, int alias_len, char **filename, int *filename_len TSRMLS_DC);
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 && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len))) {
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
977 if (alias && alias_len) {
979 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))) {
981 spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, PHAR_
[all...]
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 Dphar_object.c538 /* {{{ proto void Phar::webPhar([string alias, [string index, [string f404, [array mimetypes, [callback rewrites]]]]])
548 char *alias = NULL, *error, *index_php = NULL, *f404 = NULL, *ru = NULL; local
558 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) {
566 if (phar_open_executed_filename(alias, alias_len, &error TSRMLS_CC) != SUCCESS) {
947 /* {{{ proto mixed Phar::mapPhar([string alias, [int dataoffset]])
951 char *alias = NULL, *error; local
955 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!l", &alias, &alias_len, &dataoffset) == FAILURE) {
961 RETVAL_BOOL(phar_open_executed_filename(alias, alias_len, &error TSRMLS_CC) == SUCCESS);
969 /* {{{ proto mixed Phar::loadPhar(string filename [, string alias])
970 * Loads any phar archive with an alias */
973 char *fname, *alias = NULL, *error; local
2645 char *alias, *error, *oldalias; local
[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
310 if (mydata->alias) { \
311 pefree(mydata->alias, mydata->is_persistent); \
332 if (mydata->alias) { \
333 pefree(mydata->alias, mydata->is_persistent); \
538 if (!actual_alias && entry.filename_len == sizeof(".phar/alias.txt")-1 && !strncmp(entry.filename, ".phar/alias.txt", sizeof(".phar/alias.txt")-1)) {
544 /* archive alias found */
550 PHAR_ZIP_FAIL("phar error: internal corruption of zip-based phar (cannot read local file header for alias)");
742 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_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 */
516 * validate an alias, returns 1 for success, 0 for failure
518 static inline int phar_validate_alias(const char *alias, int alias_len) /* {{{ */ argument
520 return !(memchr(alias, '/', alias_len) || memchr(alias, '\\', alias_len) || memchr(alias, ':', alias_len) ||
521 memchr(alias, ';', alias_len) || memchr(alias, '\
[all...]
H A Dphar.c208 if (phar->alias && phar->alias != phar->fname) {
209 pefree(phar->alias, phar->is_persistent);
210 phar->alias = NULL;
297 /* this is a new phar that has perhaps had an alias/metadata set, but has never
535 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
549 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error TSRMLS_CC)
550 && ((alias && fname_len == phar->fname_len
551 && !strncmp(unixfname, phar->fname, fname_len)) || !alias)
556 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_le
665 phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, zend_long halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error TSRMLS_DC) argument
1247 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
1324 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
1478 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
1569 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
2253 phar_open_executed_filename(char *alias, int alias_len, char **error TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/interbase/
H A Dibase_query.c1507 char buf[METADATALENGTH+4], *alias = var->aliasname; local
1517 switch (*alias) {
1522 base = alias;
1525 Z_ARRVAL_P(return_value), alias, strlen(alias))) != NULL) {
1528 snprintf(alias = buf, sizeof(buf), "%s_%02d", base, i++);
1644 add_assoc_zval(return_value, alias, &result);
1650 add_assoc_null(return_value, alias);
1925 add_assoc_stringl(return_value, "alias", var->aliasname, var->aliasname_length);
/PHP_TRUNK/ext/intl/converter/
H A Dconverter.c948 const char *alias; local
951 alias = ucnv_getAlias(name, i, &error);
957 add_next_index_string(return_value, alias);
/PHP_TRUNK/ext/mbstring/
H A Dmbstring.c3341 const char **alias; local
3342 for (alias = *encoding->aliases; *alias; ++alias) {
3343 add_next_index_string(return_value, (char *)*alias);
/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/opcache/
H A Dzend_persist.c590 if (ce->trait_aliases[i]->alias) {
591 zend_accel_store_interned_string(ce->trait_aliases[i]->alias);
H A Dzend_persist_calc.c300 if (ce->trait_aliases[i]->alias) {
301 ADD_INTERNED_STRING(ce->trait_aliases[i]->alias, 0);
H A Dzend_accelerator_util_funcs.c661 if (trait_aliases[i]->alias) {
662 trait_aliases[i]->alias =
663 zend_clone_str(trait_aliases[i]->alias TSRMLS_CC);
/PHP_TRUNK/Zend/
H A Dzend.h104 zend_string *alias; member in struct:_zend_trait_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_API.c4070 zend_trait_alias *alias, **alias_ptr; local
4073 alias = *alias_ptr;
4074 while (alias) {
4075 if (alias->alias->len == name->len &&
4076 !strncasecmp(name->val, alias->alias->val, alias->alias->len)) {
4077 return alias
[all...]
H A Dzend_inheritance.c322 /* Check for class alias */
1101 zend_trait_alias *alias, **alias_ptr; local
1108 alias = *alias_ptr;
1109 while (alias) {
1110 /* Scope unset or equal to the function we compare to, and the alias applies to fn */
1111 if (alias->alias != NULL
1112 && (!alias->trait_method->ce || fn->common.scope == alias->trait_method->ce)
1113 && alias
[all...]
H A Dzend_opcode.c205 if (ce->trait_aliases[i]->alias) {
206 zend_string_release(ce->trait_aliases[i]->alias);
H A Dzend_compile.c637 /* If an unqualified name is a function/const alias, replace it. */
657 /* If the first part of a qualified name is an alias, substitute it. */
709 /* If the first part of a qualified name is an alias, substitute it. */
718 /* If an unqualified name is an alias, replace it. */
728 /* If not fully qualified and not an alias, prepend the current namespace */
4360 zend_trait_alias *alias; local
4370 alias = emalloc(sizeof(zend_trait_alias));
4371 alias->trait_method = zend_compile_method_ref(method_ref_ast TSRMLS_CC);
4372 alias->modifiers = modifiers;
4375 alias
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_help.c31 #define PHPDBG_COMMAND_HELP_D(name, tip, alias, action) \
32 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, action, NULL, 0}
35 PHPDBG_COMMAND_HELP_D(aliases, "show alias list", 'a', phpdbg_do_help_aliases),
144 /* {{{ summary_print. Print a summary line giving, the command, its alias and tip */
148 spprintf(&summary, 0, "Command: **%s** Alias: **%c** **%s**\n", cmd->name, cmd->alias, cmd->tip);
172 * * Any single character key is taken as an alias.
190 if (c->alias == key[0]) {
240 phpdbg_error("help", "type=\"ambiguousalias\" alias=\"%s\"", "Internal help error, non-unique alias \"%c\"", param->str[0]);
248 if (cmd->alias
[all...]
H A Dphpdbg_cmd.c555 /* match single letter alias */
556 if (command->alias && (name->len == 1)) {
557 if (command->alias == (*name->str)) {
566 if ((name->len != command->name_len && command->alias) || name->len == command->name_len) {
H A Dphpdbg_cmd.h99 char alias; /* Alias */ member in struct:_phpdbg_command_t
161 #define PHPDBG_COMMAND_D_EXP(name, tip, alias, handler, children, args, parent, flags) \
162 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_##handler, children, args, parent, flags}
164 #define PHPDBG_COMMAND_D_EX(name, tip, alias, handler, children, args, flags) \
165 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_##handler, children, args, NULL, flags}
167 #define PHPDBG_COMMAND_D(name, tip, alias, children, args, flags) \
168 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_##name, children, args, NULL, flags}
/PHP_TRUNK/main/
H A Doutput.c482 php_output_handler_alias_ctor_t alias = NULL; local
490 if (Z_STRLEN_P(output_handler) && (alias = php_output_handler_alias(Z_STRVAL_P(output_handler), Z_STRLEN_P(output_handler) TSRMLS_CC))) {
491 handler = alias(Z_STRVAL_P(output_handler), Z_STRLEN_P(output_handler), chunk_size, flags TSRMLS_CC);
662 * Registers an internal output handler as alias for a user handler */
666 zend_error(E_ERROR, "Cannot register an output handler alias outside of MINIT");

Completed in 179 milliseconds

12