com php-src: Merge branch 'master' of https://github.com/php/php-src into string_size_refactor_take_2: Zend/zend_builtin _functions.c
Zend/zend_compile.c Zend/zend_execut e_API.c Zend/zend_operators.h Zend/zend_vm_def .h Zend/zend_vm_execute.h configure.in ext/date /php_date.c
ext/date/php_date.h ext/reflection/php _reflection.c ext/spl/php_spl.c ext/spl/php_spl .h ext/standard/file.c ext/standard/file.h ext/stan
dard/filestat.c ext/standard/ftp_fopen_w

From: Date: Tue, 13 Aug 2013 08:07:12 +0000
Subject: com php-src: Merge branch 'master' of https://github.com/php/php-src into string_size_refactor_take_2: Zend/zend_builtin _functions.c
Zend/zend_compile.c Zend/zend_execut e_API.c Zend/zend_operators.h Zend/zend_vm_def .h Zend/zend_vm_execute.h configure.in ext/date /php_date.c
ext/date/php_date.h ext/reflection/php _reflection.c ext/spl/php_spl.c ext/spl/php_spl .h ext/standard/file.c ext/standard/file.h ext/stan
dard/filestat.c ext/standard/ftp_fopen_w
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73631@lists.php.net to get a copy of this message
Commit: 6478088a2cc54401e95198697e2b78d0b66ec8df Author: Anatol Belski <ab@php.net> Tue, 13 Aug 2013 01:07:12 -0700 Parents: a95f8dbac2dfe7a2941dd9cac7b5308357bd5cef c5674bb502ba5a0b4f14c3171de1ab617245a39d Branches: str_size_and_int64 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6478088a2cc54401e95198697e2b78d0b66ec8df Log: Merge branch 'master' of https://github.com/php/php-src into string_size_refactor_take_2 Conflicts: Zend/zend_operators.h main/SAPI.h main/rfc1867.c main/streams/php_stream_transport.h main/streams/streams.c main/streams/transports.c main/streams/xp_socket.c Changed paths: MM Zend/zend_builtin_functions.c MM Zend/zend_compile.c MM Zend/zend_execute_API.c MM Zend/zend_operators.h MM Zend/zend_vm_def.h MM Zend/zend_vm_execute.h MM configure.in MM ext/date/php_date.c MM ext/date/php_date.h MM ext/reflection/php_reflection.c MM ext/spl/php_spl.c MM ext/spl/php_spl.h MM ext/standard/file.c MM ext/standard/file.h MM ext/standard/filestat.c MM ext/standard/ftp_fopen_wrapper.c MM ext/standard/http_fopen_wrapper.c MM ext/standard/pack.c MM ext/standard/string.c MM main/SAPI.h MM main/fopen_wrappers.c MM main/php.h MM main/rfc1867.c MM main/streams/glob_wrapper.c MM main/streams/memory.c MM main/streams/php_stream_transport.h MM main/streams/plain_wrapper.c MM main/streams/streams.c MM main/streams/transports.c MM main/streams/userspace.c MM main/streams/xp_socket.c Diff: diff --cc Zend/zend_operators.h index a6311f4,38d96f1..e576d68 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@@ -269,13 -269,11 +269,13 @@@ static inline zend_uchar is_numeric_str return is_numeric_string_ex(str, length, lval, dval, allow_errors, NULL); } -static inline const char * -zend_memnstr(const char *haystack, const char *needle, int needle_len, char *end) +static inline char * - zend_memnstr(char *haystack, char *needle, zend_str_size_int needle_len, char *end) ++zend_memnstr(const char *haystack, const char *needle, zend_str_size_int needle_len, char *end) { - char *p = haystack; - char ne = needle[needle_len-1]; + const char *p = haystack; + const char ne = needle[needle_len-1]; + ptrdiff_t off_p; + zend_str_size_int off_s; if (needle_len == 1) { return (char *)memchr(p, *needle, (end-p)); diff --cc ext/standard/file.h index bbdce6d,d6f142a..ab8bf49 --- a/ext/standard/file.h +++ b/ext/standard/file.h @@@ -74,13 -74,13 +74,13 @@@ PHP_MINIT_FUNCTION(user_streams) PHPAPI int php_le_stream_context(TSRMLS_D); PHPAPI int php_set_sock_blocking(int socketd, int block TSRMLS_DC); - PHPAPI int php_copy_file(char *src, char *dest TSRMLS_DC); - PHPAPI int php_copy_file_ex(char *src, char *dest, int src_chk TSRMLS_DC); - PHPAPI int php_copy_file_ctx(char *src, char *dest, int src_chk, php_stream_context *ctx TSRMLS_DC); - PHPAPI int php_mkdir_ex(char *dir, long mode, int options TSRMLS_DC); - PHPAPI int php_mkdir(char *dir, long mode TSRMLS_DC); + PHPAPI int php_copy_file(const char *src, const char *dest TSRMLS_DC); + PHPAPI int php_copy_file_ex(const char *src, const char *dest, int src_chk TSRMLS_DC); + PHPAPI int php_copy_file_ctx(const char *src, const char *dest, int src_chk, php_stream_context *ctx TSRMLS_DC); + PHPAPI int php_mkdir_ex(const char *dir, long mode, int options TSRMLS_DC); + PHPAPI int php_mkdir(const char *dir, long mode TSRMLS_DC); PHPAPI void php_fgetcsv(php_stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval *return_value TSRMLS_DC); -PHPAPI int php_fputcsv(php_stream *stream, zval *fields, char delimiter, char enclosure, char escape_char TSRMLS_DC); +PHPAPI zend_str_size_int php_fputcsv(php_stream *stream, zval *fields, char delimiter, char enclosure, char escape_char TSRMLS_DC); #define META_DEF_BUFSIZE 8192 diff --cc main/rfc1867.c index 0f0efe0,3c16070..869eb95 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@@ -676,10 -680,9 +680,10 @@@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867 { char *boundary, *s = NULL, *boundary_end = NULL, *start_arr = NULL, *array_index = NULL; char *temp_filename = NULL, *lbuf = NULL, *abuf = NULL; - zend_str_size_int boundary_len = 0; - zend_str_size_int total_bytes = 0; - int cancel_upload = 0, is_arr_upload = 0, array_len = 0; - int max_file_size = 0, skip_upload = 0, anonindex = 0, is_anonymous; - int boundary_len = 0, cancel_upload = 0, is_arr_upload = 0, array_len = 0; ++ zend_str_size_int boundary_len = 0, array_len = 0; ++ int cancel_upload = 0, is_arr_upload = 0; + int64_t total_bytes = 0, max_file_size = 0; + int skip_upload = 0, anonindex = 0, is_anonymous; zval *http_post_files = NULL; HashTable *uploaded_files = NULL; multipart_buffer *mbuff; diff --cc main/streams/plain_wrapper.c index 3657d6b,949b827..63d1772 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@@ -1241,10 -1235,10 +1241,10 @@@ static int php_plain_files_mkdir(php_st } } - static int php_plain_files_rmdir(php_stream_wrapper *wrapper, char *url, int options, php_stream_context *context TSRMLS_DC) + static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, int options, php_stream_context *context TSRMLS_DC) { #if PHP_WIN32 - int url_len = strlen(url); + zend_str_size_int url_len = strlen(url); #endif if (php_check_open_basedir(url TSRMLS_CC)) { return 0; diff --cc main/streams/streams.c index 082e9c1,d74f9fd..bd72287 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@@ -803,9 -803,9 +803,9 @@@ PHPAPI int _php_stream_getc(php_stream return EOF; } - PHPAPI int _php_stream_puts(php_stream *stream, char *buf TSRMLS_DC) + PHPAPI int _php_stream_puts(php_stream *stream, const char *buf TSRMLS_DC) { - int len; + zend_str_size_int len; char newline[2] = "\n"; /* is this OK for Win? */ len = strlen(buf); @@@ -1676,9 -1676,9 +1676,9 @@@ int php_shutdown_stream_wrappers(int mo /* Validate protocol scheme names during registration * Must conform to /^[a-zA-Z0-9+.-]+$/ */ - static inline int php_stream_wrapper_scheme_validate(char *protocol, zend_str_size_int protocol_len) -static inline int php_stream_wrapper_scheme_validate(const char *protocol, unsigned int protocol_len) ++static inline int php_stream_wrapper_scheme_validate(const char *protocol, zend_str_size_uint protocol_len) { - zend_str_size_int i; - unsigned int i; ++ zend_str_size_uint i; for(i = 0; i < protocol_len; i++) { if (!isalnum((int)protocol[i]) && @@@ -1693,9 -1693,9 +1693,9 @@@ } /* API for registering GLOBAL wrappers */ - PHPAPI int php_register_url_stream_wrapper(char *protocol, php_stream_wrapper *wrapper TSRMLS_DC) + PHPAPI int php_register_url_stream_wrapper(const char *protocol, php_stream_wrapper *wrapper TSRMLS_DC) { - zend_str_size_int protocol_len = strlen(protocol); - unsigned int protocol_len = strlen(protocol); ++ zend_str_size_uint protocol_len = strlen(protocol); if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { return FAILURE; @@@ -1719,9 -1719,9 +1719,9 @@@ static void clone_wrapper_hash(TSRMLS_D } /* API for registering VOLATILE wrappers */ - PHPAPI int php_register_url_stream_wrapper_volatile(char *protocol, php_stream_wrapper *wrapper TSRMLS_DC) + PHPAPI int php_register_url_stream_wrapper_volatile(const char *protocol, php_stream_wrapper *wrapper TSRMLS_DC) { - zend_str_size_int protocol_len = strlen(protocol); - unsigned int protocol_len = strlen(protocol); ++ zend_str_size_uint protocol_len = strlen(protocol); if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) { return FAILURE;

« previous php.cvs (#73631) next »