Searched defs:alias (Results 1 - 16 of 16) sorted by relevance

/PHP_TRUNK/ext/phar/
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/main/
H A Doutput.c496 php_output_handler_alias_ctor_t alias = NULL; local
504 if (Z_STRLEN_P(output_handler) && (alias = php_output_handler_alias(Z_STRVAL_P(output_handler), Z_STRLEN_P(output_handler) TSRMLS_CC))) {
505 handler = alias(Z_STRVAL_P(output_handler), Z_STRLEN_P(output_handler), chunk_size, flags TSRMLS_CC);
676 * Registers an internal output handler as alias for a user handler */
680 zend_error(E_ERROR, "Cannot register an output handler alias outside of MINIT");
/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}
/PHP_TRUNK/Zend/
H A Dzend_inheritance.c322 /* Check for class alias */
1098 zend_trait_alias *alias, **alias_ptr; local
1105 alias = *alias_ptr;
1106 while (alias) {
1107 /* Scope unset or equal to the function we compare to, and the alias applies to fn */
1108 if (alias->alias != NULL
1109 && (!alias->trait_method->ce || fn->common.scope == alias->trait_method->ce)
1110 && alias
[all...]
H A Dzend.h104 zend_string *alias; member in struct:_zend_trait_alias
H A Dzend_API.c4073 zend_trait_alias *alias, **alias_ptr; local
4076 alias = *alias_ptr;
4077 while (alias) {
4078 if (alias->alias->len == name->len &&
4079 !strncasecmp(name->val, alias->alias->val, alias->alias->len)) {
4080 return alias
[all...]
H A Dzend_compile.c636 /* If an unqualified name is a function/const alias, replace it. */
656 /* If the first part of a qualified name is an alias, substitute it. */
708 /* If the first part of a qualified name is an alias, substitute it. */
717 /* If an unqualified name is an alias, replace it. */
727 /* If not fully qualified and not an alias, prepend the current namespace */
4335 zend_trait_alias *alias; local
4345 alias = emalloc(sizeof(zend_trait_alias));
4346 alias->trait_method = zend_compile_method_ref(method_ref_ast TSRMLS_CC);
4347 alias->modifiers = modifiers;
4350 alias
[all...]
/PHP_TRUNK/ext/gd/
H A Dgd.c4917 zend_bool alias; local
4920 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rb", &IM, &alias) == FAILURE) {
4925 gdImageAntialias(im, alias);

Completed in 58 milliseconds