com php-src: reverted a couple of things in ext/phar for now, but all tests pass now: ext/phar/phar_internal.h ext/phar/phar_object .c
ext/phar/stream.c
| From: | Anatol Belski | Date: | Thu, 28 Nov 2013 08:23:02 +0000 |
| Subject: | com php-src: reverted a couple of things in ext/phar for now, but all tests pass now: ext/phar/phar_internal.h ext/phar/phar_object .c ext/phar/stream.c |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74105@lists.php.net to get a copy of this message | ||
Commit: de453dbef6cc7a0ead22d82871331eb8c15a2b08
Author: Anatol Belski <ab@php.net> Thu, 28 Nov 2013 09:23:02 +0100
Parents: d135198559cd14805b42a2ddbe48511674475c40
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=de453dbef6cc7a0ead22d82871331eb8c15a2b08
Log:
reverted a couple of things in ext/phar for now, but all tests pass now
Changed paths:
M ext/phar/phar_internal.h
M ext/phar/phar_object.c
M ext/phar/stream.c
Diff:
diff --git a/ext/phar/phar_internal.h b/ext/phar/phar_internal.h
index 1a8bd1d..2f9320a 100644
--- a/ext/phar/phar_internal.h
+++ b/ext/phar/phar_internal.h
@@ -179,15 +179,15 @@ ZEND_BEGIN_MODULE_GLOBALS(phar)
void (*orig_stat)(INTERNAL_FUNCTION_PARAMETERS);
/* used for includes with . in them inside front controller */
char* cwd;
- zend_str_size_int cwd_len;
+ php_int_t cwd_len;
int cwd_init;
char *openssl_privatekey;
int openssl_privatekey_len;
/* phar_get_archive cache */
char* last_phar_name;
- zend_str_size_int last_phar_name_len;
+ int last_phar_name_len;
char* last_alias;
- zend_str_size_int last_alias_len;
+ int last_alias_len;
phar_archive_data* last_phar;
HashTable mime_types;
ZEND_END_MODULE_GLOBALS(phar)
@@ -244,7 +244,7 @@ typedef struct _phar_entry_info {
/* when changing compression, save old flags in case fp is NULL */
php_uint32 old_flags;
zval *metadata;
- zend_str_size_int metadata_len; /* only used for cached manifests */
+ int metadata_len; /* only used for cached manifests */
php_uint32 filename_len;
char *filename;
enum phar_fp_type fp_type;
@@ -287,12 +287,12 @@ typedef struct _phar_entry_info {
/* information about a phar file (the archive itself) */
struct _phar_archive_data {
char *fname;
- int fname_len;
+ zend_str_size_int fname_len;
/* for phar_detect_fname_ext, this stores the location of the file extension within fname */
char *ext;
zend_str_size_int ext_len;
char *alias;
- zend_str_size_int alias_len;
+ int alias_len;
char version[12];
size_t internal_file_start;
size_t halt_offset;
@@ -312,7 +312,7 @@ struct _phar_archive_data {
zend_str_size_int sig_len;
char *signature;
zval *metadata;
- zend_str_size_int metadata_len; /* only used for cached manifests */
+ int metadata_len; /* only used for cached manifests */
uint phar_pos;
/* if 1, then this alias was manually specified by the user and is not a permanent alias */
unsigned int is_temporary_alias:1;
@@ -456,7 +456,7 @@ static inline zend_off_t phar_get_fp_offset(phar_entry_info *entry TSRMLS_DC)
typedef struct _phar_mime_type {
char *mime;
- zend_str_size_int len;
+ int len;
/* one of PHAR_MIME_* */
char type;
} phar_mime_type;
diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c
index aac24a6..54b641b 100644
--- a/ext/phar/phar_object.c
+++ b/ext/phar/phar_object.c
@@ -1978,7 +1978,7 @@ PHP_METHOD(Phar, isFileFormat)
static int phar_copy_file_contents(phar_entry_info *entry, php_stream *fp TSRMLS_DC) /* {{{ */
{
char *error;
- off_t offset;
+ zend_off_t offset;
phar_entry_info *link;
if (FAILURE == phar_open_entry_fp(entry, &error, 1 TSRMLS_CC)) {
diff --git a/ext/phar/stream.c b/ext/phar/stream.c
index 6a2bb6c...4ba0e1f 100644
--- a/ext/phar/stream.c
+++ b/ext/phar/stream.c
@@ -413,7 +413,7 @@ static int phar_stream_seek(php_stream *stream, zend_off_t offset, int whence, z
default:
temp = 0;
}
- if (temp > data->zero + (off_t) entry->uncompressed_filesize) {
+ if (temp > data->zero + (zend_off_t) entry->uncompressed_filesize) {
*newoffset = -1;
return -1;
}