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

/PHP_5_5/ext/phar/
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 */
549 * validate an alias, returns 1 for success, 0 for failure
551 static inline int phar_validate_alias(const char *alias, int alias_len) /* {{{ */ argument
553 return !(memchr(alias, '/', alias_len) || memchr(alias, '\\', alias_len) || memchr(alias, ':', alias_len) ||
554 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.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
2696 char *alias, *error, *oldalias; local
[all...]
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
2321 phar_open_executed_filename(char *alias, int alias_len, char **error TSRMLS_DC) argument
[all...]
/PHP_5_5/Zend/
H A Dzend.h466 const char* alias; member in struct:_zend_trait_alias
H A Dzend_API.c3986 zend_trait_alias *alias, **alias_ptr; local
3989 alias = *alias_ptr;
3990 while (alias) {
3991 if (alias->alias_len == len &&
3992 !strncasecmp(name, alias->alias, alias->alias_len)) {
3993 return alias->alias;
3996 alias
[all...]
H A Dzend_compile.c3196 /* Check for class alias */
3969 zend_trait_alias *alias, **alias_ptr; local
3985 alias = *alias_ptr;
3986 while (alias) {
3987 /* Scope unset or equal to the function we compare to, and the alias applies to fn */
3988 if (alias->alias != NULL
3989 && (!alias->trait_method->ce || fn->common.scope == alias->trait_method->ce)
3990 && alias
[all...]
/PHP_5_5/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_5/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_5_5/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_5/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_5_5/ext/gd/
H A Dgd.c4949 zend_bool alias; local
4952 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rb", &IM, &alias) == FAILURE) {
4957 gdImageAntialias(im, alias);

Completed in 93 milliseconds