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 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) {
978 /* {{{ proto mixed Phar::mapPhar([string alias, [int dataoffset]])
982 char *alias = NULL, *error; local
986 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!l", &alias, &alias_len, &dataoffset) == FAILURE) {
992 RETVAL_BOOL(phar_open_executed_filename(alias, alias_len, &error TSRMLS_CC) == SUCCESS);
1000 /* {{{ proto mixed Phar::loadPhar(string filename [, string alias])
1001 * Loads any phar archive with an alias */
1004 char *fname, *alias = NULL, *error; local
2698 char *alias, *error, *oldalias; local
[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/Zend/
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 */
4099 zend_trait_alias *alias, **alias_ptr; local
4115 alias = *alias_ptr;
4116 while (alias) {
4117 /* Scope unset or equal to the function we compare to, and the alias applies to fn */
4118 if (alias->alias != NULL
4119 && (!alias->trait_method->ce || fn->common.scope == alias->trait_method->ce)
4120 && alias
[all...]
H A Dzend_compile.h553 void zend_add_trait_alias(znode *method_reference, znode *modifiers, znode *alias TSRMLS_DC);
H A Dzend_opcode.c239 if (ce->trait_aliases[i]->alias) {
240 efree((char*)ce->trait_aliases[i]->alias);
/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_persist_calc.c321 if (ce->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_accelerator_util_funcs.c827 if (trait_aliases[i]->alias) {
828 trait_aliases[i]->alias =
829 estrndup(trait_aliases[i]->alias,
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_cmd.h97 char alias; /* Alias */ member in struct:_phpdbg_command_t
158 #define PHPDBG_COMMAND_D_EXP(name, tip, alias, handler, children, args, parent) \
159 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_##handler, children, args, parent}
161 #define PHPDBG_COMMAND_D_EX(name, tip, alias, handler, children, args) \
162 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_##handler, children, args, NULL}
164 #define PHPDBG_COMMAND_D(name, tip, alias, children, args) \
165 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, phpdbg_do_##name, children, args, NULL}
H A Dphpdbg_cmd.c650 /* match single letter alias */
651 if (command->alias && (name->len == 1)) {
652 if (command->alias == (*name->str)) {
663 if (((name->len != command->name_len) && command->alias) ||
H A Dphpdbg_help.c30 #define PHPDBG_COMMAND_HELP_D(name, tip, alias, action) \
31 {PHPDBG_STRL(#name), tip, sizeof(tip)-1, alias, action, NULL, 0}
34 PHPDBG_COMMAND_HELP_D(aliases, "show alias list", 'a', phpdbg_do_help_aliases),
138 /* {{{ summary_print. Print a summary line giving, the command, its alias and tip */
142 spprintf(&summary, 0, "Command: **%s** Alias: **%c** **%s**\n", cmd->name, cmd->alias, cmd->tip);
166 * * Any single character key is taken as an alias.
184 if (c->alias == key[0]) {
234 phpdbg_error("Internal help error, non-unique alias \"%c\"", param->str[0]);
242 if (cmd->alias == 'a') { /* help aliases executes a canned routine */
264 if (c->alias
[all...]

Completed in 70 milliseconds

12