]>
granicus.if.org Git - php/log
Anatol Belski [Sat, 20 Sep 2014 00:14:35 +0000 (02:14 +0200)]
make the return value more logic
as if clz() were returning 32 on empty size
Anatol Belski [Fri, 19 Sep 2014 23:36:51 +0000 (01:36 +0200)]
make use of intrinsics available with VS for bitset lookups
Anatol Belski [Fri, 19 Sep 2014 21:21:03 +0000 (23:21 +0200)]
add the missing src file
Anatol Belski [Fri, 19 Sep 2014 20:53:51 +0000 (22:53 +0200)]
reduce the struct size by 8 byte on 64 bit
Nikita Popov [Fri, 19 Sep 2014 21:54:58 +0000 (23:54 +0200)]
Make header C++ compatible
Nikita Popov [Fri, 19 Sep 2014 21:22:26 +0000 (23:22 +0200)]
Make number printing functions less generic
Now that zend_ulong is 64bit on 64bit platforms, it should be
sufficient to always use it, rather than supporting multiple
types.
API changes:
* _zend_print_unsigned_to_buf and _zend_print_signed_to_buf
no longer exist.
* smart_str(ing)_print_long and smart_str(ing)_print_unsigned
no longer exist.
* Instead of all these, zend_print_ulong_to_buf and
zend_print_long_to_buf should be used.
* smart_str_append_generic_ex no longer exists.
* smart_str(ing)_append_off_t(_ex) no longer exists, use
smart_str(ing)_append_long(_ex) instead.
Nikita Popov [Fri, 19 Sep 2014 20:59:58 +0000 (22:59 +0200)]
Use append_unsigned instead of append_long where appropriate
Nikita Popov [Fri, 19 Sep 2014 20:16:01 +0000 (22:16 +0200)]
Use inline functions for most of smart_str
smart_str_free_ex no longer exists, always use smart_str_free instead.
smart_str_alloc no longer requires a newlen variable to be in scope,
instead it returns the new length.
Nikita Popov [Fri, 19 Sep 2014 19:34:05 +0000 (21:34 +0200)]
Remove SMART_STR_USE_REALLOC
Nikita Popov [Fri, 19 Sep 2014 17:57:36 +0000 (19:57 +0200)]
Remove superfluous Z_REFCOUNTED_P check
The string is never interned and IS_CONSTANT_EX is always refcounted.
Anatol Belski [Fri, 19 Sep 2014 18:15:56 +0000 (20:15 +0200)]
Merge branch 'PHP-5.6'
* PHP-5.6:
fix possible array underflow
Conflicts:
ext/standard/image.c
Anatol Belski [Fri, 19 Sep 2014 18:13:46 +0000 (20:13 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
fix possible array underflow
Anatol Belski [Fri, 19 Sep 2014 18:12:24 +0000 (20:12 +0200)]
fix possible array underflow
there are multiple issues with this code
- php_stream_read() returns an unsigned val, so is >= 0
- if it read less than sizeof(a) bytes, the function operates on garbage
- result->channels is an unsigned val, so >= 0
Nikita Popov [Thu, 18 Sep 2014 22:01:05 +0000 (00:01 +0200)]
Split inheritance into separate file
This moves handling of inheritance and interface implementation
from zend_compile.c into a separate zend_inheritance.c file, as
this is not really related to compilation.
Anatol Belski [Fri, 19 Sep 2014 17:35:29 +0000 (19:35 +0200)]
updated the comment to charset_hint
Johannes Schlüter [Fri, 19 Sep 2014 16:33:14 +0000 (18:33 +0200)]
s/PHP 5/PHP 7/
Anatol Belski [Fri, 19 Sep 2014 14:26:32 +0000 (16:26 +0200)]
reverted too much
Anatol Belski [Fri, 19 Sep 2014 13:59:55 +0000 (15:59 +0200)]
reverted some previous IS_ABSOLUTE_PATH related changes
It's fine with strlen usage now, only one call
Anatol Belski [Fri, 19 Sep 2014 13:44:04 +0000 (15:44 +0200)]
expand IS_ABSOLUTE_PATH on Windows, so then strlen() isn't called twice
Anatol Belski [Fri, 19 Sep 2014 13:04:06 +0000 (15:04 +0200)]
simplify condition
Dmitry Stogov [Fri, 19 Sep 2014 13:32:50 +0000 (17:32 +0400)]
Avoid double IS_INTERNED() check
Dmitry Stogov [Fri, 19 Sep 2014 13:05:03 +0000 (17:05 +0400)]
Reverted incorrect chunk
Dmitry Stogov [Fri, 19 Sep 2014 11:41:01 +0000 (15:41 +0400)]
Fixed useless or duplicated IS_INTERNED() checks
Anatol Belski [Fri, 19 Sep 2014 11:14:16 +0000 (13:14 +0200)]
forgot to replace the strlen call
Anatol Belski [Fri, 19 Sep 2014 10:39:17 +0000 (12:39 +0200)]
avoid multiple strlen calls for the same buffer
Anatol Belski [Fri, 19 Sep 2014 10:36:23 +0000 (12:36 +0200)]
avoid unnecessary strlen calls in loop
Anatol Belski [Fri, 19 Sep 2014 10:14:46 +0000 (12:14 +0200)]
fix length data types
Anatol Belski [Fri, 19 Sep 2014 10:00:41 +0000 (12:00 +0200)]
fix signed/unsigned warning and add a note
Anatol Belski [Fri, 19 Sep 2014 09:42:44 +0000 (11:42 +0200)]
fix condition
Anatol Belski [Fri, 19 Sep 2014 09:23:23 +0000 (11:23 +0200)]
fix empty string check
Anatol Belski [Fri, 19 Sep 2014 08:33:01 +0000 (10:33 +0200)]
fix an always true condition and improve the error check
Anatol Belski [Fri, 19 Sep 2014 08:09:37 +0000 (10:09 +0200)]
remove useless condition
Anatol Belski [Fri, 19 Sep 2014 08:04:12 +0000 (10:04 +0200)]
fix printf format
Anatol Belski [Fri, 19 Sep 2014 07:49:32 +0000 (09:49 +0200)]
fix conditions
Anatol Belski [Fri, 19 Sep 2014 07:26:07 +0000 (09:26 +0200)]
there can be only one ... of the identical expressions
Anatol Belski [Fri, 19 Sep 2014 07:09:20 +0000 (09:09 +0200)]
fix condition
Anatol Belski [Fri, 19 Sep 2014 06:44:35 +0000 (08:44 +0200)]
fix printf format
Anatol Belski [Fri, 19 Sep 2014 06:35:01 +0000 (08:35 +0200)]
remove useless check
Anatol Belski [Thu, 18 Sep 2014 23:59:55 +0000 (01:59 +0200)]
more usages for ZEND_SECURE_ZERO()
Anatol Belski [Thu, 18 Sep 2014 23:46:14 +0000 (01:46 +0200)]
generalized the case with secure memory zeroing
Anatol Belski [Thu, 18 Sep 2014 20:25:00 +0000 (22:25 +0200)]
remove useless condition 0 > unsigned
Anatol Belski [Thu, 18 Sep 2014 20:18:27 +0000 (22:18 +0200)]
zero sensitive data more secure way
Anatol Belski [Thu, 18 Sep 2014 20:13:30 +0000 (22:13 +0200)]
zero sensitive data more secure way
Anatol Belski [Thu, 18 Sep 2014 20:06:38 +0000 (22:06 +0200)]
fix sprintf format
Anatol Belski [Thu, 18 Sep 2014 20:02:04 +0000 (22:02 +0200)]
zero sensitive data more secure way
Anatol Belski [Thu, 18 Sep 2014 19:49:08 +0000 (21:49 +0200)]
remove useless check
Anatol Belski [Thu, 18 Sep 2014 19:28:02 +0000 (21:28 +0200)]
avoid repeated strlen usage
Nikita Popov [Thu, 18 Sep 2014 21:00:14 +0000 (23:00 +0200)]
Fix GMP serialization
Also fix same issue in PDO.
Dmitry Stogov [Thu, 18 Sep 2014 20:38:34 +0000 (00:38 +0400)]
Fix for Clang
jfha73 [Thu, 18 Sep 2014 17:30:17 +0000 (13:30 -0400)]
Update sapi_apache2.c
Change of php5 for php7
jfha73 [Thu, 18 Sep 2014 17:26:03 +0000 (13:26 -0400)]
Update php_functions.c
jfha73 [Thu, 18 Sep 2014 17:25:23 +0000 (13:25 -0400)]
Update php_apache.h
jfha73 [Thu, 18 Sep 2014 17:24:46 +0000 (13:24 -0400)]
Update and rename php5apache2.dsp to php7apache2.dsp
Change of php5 for php7
jfha73 [Thu, 18 Sep 2014 17:21:40 +0000 (13:21 -0400)]
Update php.sym
Change of php5 for php7
jfha73 [Thu, 18 Sep 2014 17:21:09 +0000 (13:21 -0400)]
Update and rename mod_php5.c to mod_php7.c
Change of php5 for php7
jfha73 [Thu, 18 Sep 2014 17:20:18 +0000 (13:20 -0400)]
Update config.w32
Change of php5 for php7
jfha73 [Thu, 18 Sep 2014 17:19:20 +0000 (13:19 -0400)]
Update config.m4
Change of php5 for php7
jfha73 [Thu, 18 Sep 2014 17:17:36 +0000 (13:17 -0400)]
Update apache_config.c
Dmitry Stogov [Thu, 18 Sep 2014 18:19:51 +0000 (22:19 +0400)]
Split is_numeric_string_ex() into inline and non-inline parts
Anatol Belski [Thu, 18 Sep 2014 15:11:48 +0000 (17:11 +0200)]
that's not char * but zend_string *
Anatol Belski [Thu, 18 Sep 2014 15:01:39 +0000 (17:01 +0200)]
ups, this is not needed
Anatol Belski [Thu, 18 Sep 2014 14:45:50 +0000 (16:45 +0200)]
fix CG(empty_string) init in ZTS
Anatol Belski [Thu, 18 Sep 2014 09:58:44 +0000 (11:58 +0200)]
correct type for the thread id
Dmitry Stogov [Thu, 18 Sep 2014 14:50:05 +0000 (18:50 +0400)]
Split big _zend_handle_numeric_str() into small always inlined function that makes initial check and regular big function
Dmitry Stogov [Thu, 18 Sep 2014 09:31:25 +0000 (13:31 +0400)]
Expose zend_safe_address() and use it in zend_arena_calloc()
Dmitry Stogov [Thu, 18 Sep 2014 07:50:00 +0000 (11:50 +0400)]
Clang attributes support
Dmitry Stogov [Thu, 18 Sep 2014 00:59:01 +0000 (04:59 +0400)]
Changed "inline" into "zend_always_inline"
Dmitry Stogov [Thu, 18 Sep 2014 00:58:04 +0000 (04:58 +0400)]
Moved some definitions from zend.h into more suitable header files
Dmitry Stogov [Thu, 18 Sep 2014 00:02:43 +0000 (04:02 +0400)]
Fixed compilation warnings
Anatol Belski [Wed, 17 Sep 2014 19:46:48 +0000 (21:46 +0200)]
fix macro usage
Anatol Belski [Wed, 17 Sep 2014 18:43:23 +0000 (20:43 +0200)]
fix atol usage
Dmitry Stogov [Wed, 17 Sep 2014 12:17:58 +0000 (16:17 +0400)]
Optimized enterance into functions
Anatol Belski [Wed, 17 Sep 2014 07:17:34 +0000 (09:17 +0200)]
reduce struct size by 8 byte on 64 bit
Anatol Belski [Wed, 17 Sep 2014 07:16:59 +0000 (09:16 +0200)]
improve empty string check
Anatol Belski [Wed, 17 Sep 2014 07:16:00 +0000 (09:16 +0200)]
reduce struct size by 8 byte on 64 bit
Anatol Belski [Wed, 17 Sep 2014 07:10:26 +0000 (09:10 +0200)]
reduce the struct size by 8 byte on 64 bit
Anatol Belski [Wed, 17 Sep 2014 07:03:47 +0000 (09:03 +0200)]
reduce struct size by 8 byte on 64 bit
Anatol Belski [Wed, 17 Sep 2014 06:59:19 +0000 (08:59 +0200)]
avoid strlen() usage in the loop
Anatol Belski [Tue, 16 Sep 2014 22:50:23 +0000 (00:50 +0200)]
fix printf fmt
Anatol Belski [Tue, 16 Sep 2014 21:25:18 +0000 (23:25 +0200)]
fix signed/unsigned mismatch
Anatol Belski [Tue, 16 Sep 2014 20:47:30 +0000 (22:47 +0200)]
fix signed/unsigned mismatch warnings
Dmitry Stogov [Tue, 16 Sep 2014 20:52:45 +0000 (00:52 +0400)]
Use runtime-cache to avoid hash lookups in BIND_GLOBAL instruction
Dmitry Stogov [Tue, 16 Sep 2014 20:52:03 +0000 (00:52 +0400)]
optimized colision list traverse
Anatol Belski [Tue, 16 Sep 2014 20:15:27 +0000 (22:15 +0200)]
fix signed/unsigned mismatch
Anatol Belski [Tue, 16 Sep 2014 19:06:22 +0000 (21:06 +0200)]
fix signed/unsigned mismatch
Anatol Belski [Tue, 16 Sep 2014 18:44:45 +0000 (20:44 +0200)]
fix signed/unsigned mismatch
Anatol Belski [Tue, 16 Sep 2014 18:33:25 +0000 (20:33 +0200)]
fix signed/unsigned mismatch
Anatol Belski [Tue, 16 Sep 2014 11:22:00 +0000 (13:22 +0200)]
redo the fix with cast to size_t
Anatol Belski [Tue, 16 Sep 2014 10:53:25 +0000 (12:53 +0200)]
redo the fix casting to size_t
Anatol Belski [Tue, 16 Sep 2014 10:48:15 +0000 (12:48 +0200)]
redo the fix casting to size_t where applicable
Anatol Belski [Mon, 15 Sep 2014 19:13:48 +0000 (21:13 +0200)]
fixed type
Anatol Belski [Mon, 15 Sep 2014 19:10:18 +0000 (21:10 +0200)]
fix signed/unsigned mismatch warnings
Anatol Belski [Mon, 15 Sep 2014 19:03:26 +0000 (21:03 +0200)]
fixed signed/unsigned mismatch warning
Nikita Popov [Tue, 16 Sep 2014 12:29:41 +0000 (14:29 +0200)]
Drop BC alias HASH_NON_EXISTANT
Nikita Popov [Tue, 16 Sep 2014 12:28:30 +0000 (14:28 +0200)]
Remove HASH_NEXT_INSERT flag
We already pass ht->nNextFreeElement and the rest is handled by
ZEND_HASH_ADD.
Nikita Popov [Tue, 16 Sep 2014 12:09:32 +0000 (14:09 +0200)]
Remove two more always-true conditions
krakjoe [Tue, 16 Sep 2014 14:40:31 +0000 (15:40 +0100)]
Merge branch 'pull-request/808'
Dmitry Stogov [Tue, 16 Sep 2014 11:28:46 +0000 (15:28 +0400)]
Improve opcache.fast_shutdown
Anatol Belski [Tue, 16 Sep 2014 10:27:25 +0000 (12:27 +0200)]
better error messages in ZMM on Windows
Dmitry Stogov [Tue, 16 Sep 2014 09:53:26 +0000 (13:53 +0400)]
emalloc() must not return NULL