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

/PHP_5_4/ext/phar/
H A Dphar.c211 if (phar->alias && phar->alias != phar->fname) {
212 pefree(phar->alias, phar->is_persistent);
213 phar->alias = NULL;
300 /* this is a new phar that has perhaps had an alias/metadata set, but has never
531 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
545 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error TSRMLS_CC)
546 && ((alias && fname_len == phar->fname_len
547 && !strncmp(unixfname, phar->fname, fname_len)) || !alias)
552 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_le
662 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
1244 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
1321 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
1475 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
1566 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
2323 phar_open_executed_filename(char *alias, int alias_len, char **error TSRMLS_DC) argument
[all...]
H A Dphar_internal.h310 char *alias; member in struct:_phar_archive_data
333 /* if 1, then this alias was manually specified by the user and is not a permanent alias */
608 * validate an alias, returns 1 for success, 0 for failure
610 static inline int phar_validate_alias(const char *alias, int alias_len) /* {{{ */ argument
612 return !(memchr(alias, '/', alias_len) || memchr(alias, '\\', alias_len) || memchr(alias, ':', alias_len) ||
613 memchr(alias, ';', alias_len) || memchr(alias, '\
[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 Dutil.c1188 int phar_free_alias(phar_archive_data *phar, char *alias, int alias_len TSRMLS_DC) /* {{{ */ argument
1208 * Looks up a phar archive in the filename map, connecting it to the alias
1211 int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC) /* {{{ */ argument
1228 if (alias && alias_len) {
1230 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))) {
1232 spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, PHAR_G(last_phar)->fname, fname);
1238 if (PHAR_G(last_phar)->alias_len && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), PHAR_G(last_phar)->alias, PHAR_G(last_phar)->alias_len, (void**)&fd_ptr)) {
1239 zend_hash_del(&(PHAR_GLOBALS->phar_alias_map), PHAR_G(last_phar)->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)");
730 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) {
991 /* {{{ proto mixed Phar::mapPhar([string alias, [int dataoffset]])
995 char *alias = NULL, *error; local
999 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!l", &alias, &alias_len, &dataoffset) == FAILURE) {
1005 RETVAL_BOOL(phar_open_executed_filename(alias, alias_len, &error TSRMLS_CC) == SUCCESS);
1013 /* {{{ proto mixed Phar::loadPhar(string filename [, string alias])
1014 * Loads any phar archive with an alias */
1017 char *fname, *alias = NULL, *error; local
2776 char *alias, *error, *oldalias; local
[all...]
/PHP_5_4/Zend/
H A Dzend.h454 const char* alias; member in struct:_zend_trait_alias
H A Dzend_API.c3923 zend_trait_alias *alias, **alias_ptr; local
3926 alias = *alias_ptr;
3927 while (alias) {
3928 if (alias->alias_len == len &&
3929 !strncasecmp(name, alias->alias, alias->alias_len)) {
3930 return alias->alias;
3933 alias
[all...]
H A Dzend_compile.c3010 /* Check for class alias */
3783 zend_trait_alias *alias, **alias_ptr; local
3799 alias = *alias_ptr;
3800 while (alias) {
3801 /* Scope unset or equal to the function we compare to, and the alias applies to fn */
3802 if (alias->alias != NULL
3803 && (!alias->trait_method->ce || fn->common.scope == alias->trait_method->ce)
3804 && alias
[all...]
/PHP_5_4/ext/gd/
H A Dgd.c5073 zend_bool alias; local
5076 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rb", &IM, &alias) == FAILURE) {
5081 gdImageAntialias(im, alias);
/PHP_5_4/ext/mbstring/
H A Dmbstring.c3294 const char **alias; local
3295 for (alias = *encoding->aliases; *alias; ++alias) {
3296 add_next_index_string(return_value, (char *)*alias, 1);
/PHP_5_4/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_5_4/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);

Completed in 56 milliseconds