summaryrefslogtreecommitdiff
path: root/ext/spl
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2014-12-01 16:09:15 +0100
committerRemi Collet <remi@php.net>2014-12-01 16:10:44 +0100
commit4d16ca0beb793b16921ff79c43f08e55d1d94c30 (patch)
tree563e0bc1cd5f4db9f339dd68b90ebaa832fcb497 /ext/spl
parentc64ce84cd65ac0825ad67d6177d1f3e272f49b1f (diff)
downloadphp-git-4d16ca0beb793b16921ff79c43f08e55d1d94c30.tar.gz
Fix type of string lengths.
Those values are used in various call (including zpp) where a size_t is expected. This fix 82 failed test on ppc64 (bigendian is perfect to detect stack issue)
Diffstat (limited to 'ext/spl')
-rw-r--r--ext/spl/spl_directory.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/spl/spl_directory.h b/ext/spl/spl_directory.h
index f1db1f69b9..b6c8b72933 100644
--- a/ext/spl/spl_directory.h
+++ b/ext/spl/spl_directory.h
@@ -63,10 +63,10 @@ struct _spl_filesystem_object {
void *oth;
spl_other_handler *oth_handler;
char *_path;
- int _path_len;
+ size_t _path_len;
char *orig_path;
char *file_name;
- int file_name_len;
+ size_t file_name_len;
SPL_FS_OBJ_TYPE type;
zend_long flags;
zend_class_entry *file_class;
@@ -76,7 +76,7 @@ struct _spl_filesystem_object {
php_stream *dirp;
php_stream_dirent entry;
char *sub_path;
- int sub_path_len;
+ size_t sub_path_len;
int index;
int is_recursive;
zend_function *func_rewind;
@@ -88,7 +88,7 @@ struct _spl_filesystem_object {
php_stream_context *context;
zval *zcontext;
char *open_mode;
- int open_mode_len;
+ size_t open_mode_len;
zval current_zval;
char *current_line;
size_t current_line_len;