]> granicus.if.org Git - php/log
php
10 years agoMerge branch 'PHP-5.6'
Ard Biesheuvel [Sat, 20 Sep 2014 23:42:31 +0000 (16:42 -0700)]
Merge branch 'PHP-5.6'

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Ard Biesheuvel [Sat, 20 Sep 2014 23:42:12 +0000 (16:42 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Ard Biesheuvel [Sat, 20 Sep 2014 23:40:02 +0000 (16:40 -0700)]
Merge branch 'PHP-5.4' into PHP-5.5

10 years agoFixed bug #66242 (don't assume char is signed)
Ard Biesheuvel [Sat, 20 Sep 2014 23:32:31 +0000 (16:32 -0700)]
Fixed bug #66242 (don't assume char is signed)

This fixes a bug in libmagic where a cast to 'char' is assumed to result
in sign extension to occur. However, unqualified 'char' is unsigned on
architectures such as ARM, so the cast needs to be to 'signed char'
explicitly.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
10 years agoMerge branch 'PHP-5.6'
Nikita Popov [Sat, 20 Sep 2014 19:58:06 +0000 (21:58 +0200)]
Merge branch 'PHP-5.6'

Conflicts:
Zend/zend_compile.c

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Nikita Popov [Sat, 20 Sep 2014 19:47:16 +0000 (21:47 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

10 years agoFixed bug #67633
Nikita Popov [Sat, 20 Sep 2014 19:46:25 +0000 (21:46 +0200)]
Fixed bug #67633

10 years agofixed copying of the struct as it's not being modified
Anatol Belski [Sat, 20 Sep 2014 18:58:00 +0000 (20:58 +0200)]
fixed copying of the struct as it's not being modified

in the subsequent function call

10 years agoavoid strlen usage in loop
Anatol Belski [Sat, 20 Sep 2014 18:05:27 +0000 (20:05 +0200)]
avoid strlen usage in loop

10 years agoMerge branch 'pull-request/805'
Anatol Belski [Sat, 20 Sep 2014 17:46:44 +0000 (19:46 +0200)]
Merge branch 'pull-request/805'

* pull-request/805:
  Removes accidentally added files.
  Reverts some unwanted changes
  Deletes patch leftovers
  Replaces php5 with php7, without whitespace changes.

10 years agoRemoves accidentally added files.
Florian MARGAINE [Sat, 20 Sep 2014 16:27:09 +0000 (18:27 +0200)]
Removes accidentally added files.

10 years agoReverts some unwanted changes
Florian MARGAINE [Sat, 20 Sep 2014 16:24:38 +0000 (18:24 +0200)]
Reverts some unwanted changes

10 years agorefixed printf fmt, used portable macros
Anatol Belski [Sat, 20 Sep 2014 13:46:19 +0000 (15:46 +0200)]
refixed printf fmt, used portable macros

10 years agoforked bug41655 test for windows
Anatol Belski [Sat, 20 Sep 2014 13:13:42 +0000 (15:13 +0200)]
forked bug41655 test for windows

10 years agoSimplify foreach flags
Nikita Popov [Sat, 20 Sep 2014 10:56:05 +0000 (12:56 +0200)]
Simplify foreach flags

 * FE_RESET_VARIABLE and FE_RESET_REFERENCE were always set
   together.
 * In some places the code checked FE_FETCH_BYREF instead of
   FE_RESET_REFERENCE and relied on them having the same value.
 * Now the FE_RESET_* flags are dropped and everything uses
   FE_FETCH_BYREF

10 years agoFix leak in foreach with by-ref iteration of ref array
Nikita Popov [Sat, 20 Sep 2014 10:46:05 +0000 (12:46 +0200)]
Fix leak in foreach with by-ref iteration of ref array

10 years agoMerge branch 'master' into issue-67910
Florian MARGAINE [Sat, 20 Sep 2014 08:09:21 +0000 (10:09 +0200)]
Merge branch 'master' into issue-67910

Conflicts:
README.PARAMETER_PARSING_API
ext/gmp/tests/001.phpt

10 years agoDeletes patch leftovers
Florian MARGAINE [Sat, 20 Sep 2014 08:03:54 +0000 (10:03 +0200)]
Deletes patch leftovers

10 years agoReplaces php5 with php7, without whitespace changes.
Florian MARGAINE [Sat, 20 Sep 2014 08:01:44 +0000 (10:01 +0200)]
Replaces php5 with php7, without whitespace changes.

10 years agoAvoid strlen usage
Xinchen Hui [Sat, 20 Sep 2014 07:22:12 +0000 (15:22 +0800)]
Avoid strlen usage

10 years agofolder marks
Xinchen Hui [Sat, 20 Sep 2014 07:16:09 +0000 (15:16 +0800)]
folder marks

10 years agoAdded missed mod str
Xinchen Hui [Sat, 20 Sep 2014 07:12:08 +0000 (15:12 +0800)]
Added missed mod str

10 years agoFixed built on OSX
Xinchen Hui [Sat, 20 Sep 2014 05:51:58 +0000 (13:51 +0800)]
Fixed built on OSX

10 years agos,PHP 5,PHP 7,
Johannes Schlüter [Sat, 20 Sep 2014 01:27:40 +0000 (03:27 +0200)]
s,PHP 5,PHP 7,

10 years agoUpdate README.PARAMETER_PARSING_API
Johannes Schlüter [Sat, 20 Sep 2014 01:05:32 +0000 (03:05 +0200)]
Update README.PARAMETER_PARSING_API

10 years agomake the return value more logic
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

10 years agomake use of intrinsics available with VS for bitset lookups
Anatol Belski [Fri, 19 Sep 2014 23:36:51 +0000 (01:36 +0200)]
make use of intrinsics available with VS for bitset lookups

10 years agoadd the missing src file
Anatol Belski [Fri, 19 Sep 2014 21:21:03 +0000 (23:21 +0200)]
add the missing src file

10 years agoreduce the struct size by 8 byte on 64 bit
Anatol Belski [Fri, 19 Sep 2014 20:53:51 +0000 (22:53 +0200)]
reduce the struct size by 8 byte on 64 bit

10 years agoMake header C++ compatible
Nikita Popov [Fri, 19 Sep 2014 21:54:58 +0000 (23:54 +0200)]
Make header C++ compatible

10 years agoMake number printing functions less generic
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.

10 years agoUse append_unsigned instead of append_long where appropriate
Nikita Popov [Fri, 19 Sep 2014 20:59:58 +0000 (22:59 +0200)]
Use append_unsigned instead of append_long where appropriate

10 years agoUse inline functions for most of smart_str
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.

10 years agoRemove SMART_STR_USE_REALLOC
Nikita Popov [Fri, 19 Sep 2014 19:34:05 +0000 (21:34 +0200)]
Remove SMART_STR_USE_REALLOC

10 years agoRemove superfluous Z_REFCOUNTED_P check
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.

10 years agoMerge branch 'PHP-5.6'
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

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
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

10 years agofix 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

10 years agoSplit inheritance into separate file
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.

10 years agoupdated the comment to charset_hint
Anatol Belski [Fri, 19 Sep 2014 17:35:29 +0000 (19:35 +0200)]
updated the comment to charset_hint

10 years agos/PHP 5/PHP 7/
Johannes Schlüter [Fri, 19 Sep 2014 16:33:14 +0000 (18:33 +0200)]
s/PHP 5/PHP 7/

10 years agoreverted too much
Anatol Belski [Fri, 19 Sep 2014 14:26:32 +0000 (16:26 +0200)]
reverted too much

10 years agoreverted some previous IS_ABSOLUTE_PATH related changes
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

10 years agoexpand IS_ABSOLUTE_PATH on Windows, so then strlen() isn't called twice
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

10 years agosimplify condition
Anatol Belski [Fri, 19 Sep 2014 13:04:06 +0000 (15:04 +0200)]
simplify condition

10 years agoAvoid double IS_INTERNED() check
Dmitry Stogov [Fri, 19 Sep 2014 13:32:50 +0000 (17:32 +0400)]
Avoid double IS_INTERNED() check

10 years agoReverted incorrect chunk
Dmitry Stogov [Fri, 19 Sep 2014 13:05:03 +0000 (17:05 +0400)]
Reverted incorrect chunk

10 years agoFixed useless or duplicated IS_INTERNED() checks
Dmitry Stogov [Fri, 19 Sep 2014 11:41:01 +0000 (15:41 +0400)]
Fixed useless or duplicated IS_INTERNED() checks

10 years agoforgot to replace the strlen call
Anatol Belski [Fri, 19 Sep 2014 11:14:16 +0000 (13:14 +0200)]
forgot to replace the strlen call

10 years agoavoid multiple strlen calls for the same buffer
Anatol Belski [Fri, 19 Sep 2014 10:39:17 +0000 (12:39 +0200)]
avoid multiple strlen calls for the same buffer

10 years agoavoid unnecessary strlen calls in loop
Anatol Belski [Fri, 19 Sep 2014 10:36:23 +0000 (12:36 +0200)]
avoid unnecessary strlen calls in loop

10 years agofix length data types
Anatol Belski [Fri, 19 Sep 2014 10:14:46 +0000 (12:14 +0200)]
fix length data types

10 years agofix signed/unsigned warning and add a note
Anatol Belski [Fri, 19 Sep 2014 10:00:41 +0000 (12:00 +0200)]
fix signed/unsigned warning and add a note

10 years agofix condition
Anatol Belski [Fri, 19 Sep 2014 09:42:44 +0000 (11:42 +0200)]
fix condition

10 years agofix empty string check
Anatol Belski [Fri, 19 Sep 2014 09:23:23 +0000 (11:23 +0200)]
fix empty string check

10 years agofix an always true condition and improve the error check
Anatol Belski [Fri, 19 Sep 2014 08:33:01 +0000 (10:33 +0200)]
fix an always true condition and improve the error check

10 years agoremove useless condition
Anatol Belski [Fri, 19 Sep 2014 08:09:37 +0000 (10:09 +0200)]
remove useless condition

10 years agofix printf format
Anatol Belski [Fri, 19 Sep 2014 08:04:12 +0000 (10:04 +0200)]
fix printf format

10 years agofix conditions
Anatol Belski [Fri, 19 Sep 2014 07:49:32 +0000 (09:49 +0200)]
fix conditions

10 years agothere can be only one ... of the identical expressions
Anatol Belski [Fri, 19 Sep 2014 07:26:07 +0000 (09:26 +0200)]
there can be only one ... of the identical expressions

10 years agofix condition
Anatol Belski [Fri, 19 Sep 2014 07:09:20 +0000 (09:09 +0200)]
fix condition

10 years agofix printf format
Anatol Belski [Fri, 19 Sep 2014 06:44:35 +0000 (08:44 +0200)]
fix printf format

10 years agoremove useless check
Anatol Belski [Fri, 19 Sep 2014 06:35:01 +0000 (08:35 +0200)]
remove useless check

10 years agomore usages for ZEND_SECURE_ZERO()
Anatol Belski [Thu, 18 Sep 2014 23:59:55 +0000 (01:59 +0200)]
more usages for ZEND_SECURE_ZERO()

10 years agogeneralized the case with secure memory zeroing
Anatol Belski [Thu, 18 Sep 2014 23:46:14 +0000 (01:46 +0200)]
generalized the case with secure memory zeroing

10 years agoremove useless condition 0 > unsigned
Anatol Belski [Thu, 18 Sep 2014 20:25:00 +0000 (22:25 +0200)]
remove useless condition 0 > unsigned

10 years agozero sensitive data more secure way
Anatol Belski [Thu, 18 Sep 2014 20:18:27 +0000 (22:18 +0200)]
zero sensitive data more secure way

10 years agozero sensitive data more secure way
Anatol Belski [Thu, 18 Sep 2014 20:13:30 +0000 (22:13 +0200)]
zero sensitive data more secure way

10 years agofix sprintf format
Anatol Belski [Thu, 18 Sep 2014 20:06:38 +0000 (22:06 +0200)]
fix sprintf format

10 years agozero sensitive data more secure way
Anatol Belski [Thu, 18 Sep 2014 20:02:04 +0000 (22:02 +0200)]
zero sensitive data more secure way

10 years agoremove useless check
Anatol Belski [Thu, 18 Sep 2014 19:49:08 +0000 (21:49 +0200)]
remove useless check

10 years agoavoid repeated strlen usage
Anatol Belski [Thu, 18 Sep 2014 19:28:02 +0000 (21:28 +0200)]
avoid repeated strlen usage

10 years agoFix GMP serialization
Nikita Popov [Thu, 18 Sep 2014 21:00:14 +0000 (23:00 +0200)]
Fix GMP serialization

Also fix same issue in PDO.

10 years agoFix for Clang
Dmitry Stogov [Thu, 18 Sep 2014 20:38:34 +0000 (00:38 +0400)]
Fix for Clang

10 years agoUpdate sapi_apache2.c
jfha73 [Thu, 18 Sep 2014 17:30:17 +0000 (13:30 -0400)]
Update sapi_apache2.c

Change of php5 for php7

10 years agoUpdate php_functions.c
jfha73 [Thu, 18 Sep 2014 17:26:03 +0000 (13:26 -0400)]
Update php_functions.c

10 years agoUpdate php_apache.h
jfha73 [Thu, 18 Sep 2014 17:25:23 +0000 (13:25 -0400)]
Update php_apache.h

10 years agoUpdate and rename php5apache2.dsp to php7apache2.dsp
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

10 years agoUpdate php.sym
jfha73 [Thu, 18 Sep 2014 17:21:40 +0000 (13:21 -0400)]
Update php.sym

Change of php5 for php7

10 years agoUpdate and rename mod_php5.c to mod_php7.c
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

10 years agoUpdate config.w32
jfha73 [Thu, 18 Sep 2014 17:20:18 +0000 (13:20 -0400)]
Update config.w32

Change of php5 for php7

10 years agoUpdate config.m4
jfha73 [Thu, 18 Sep 2014 17:19:20 +0000 (13:19 -0400)]
Update config.m4

Change of php5 for php7

10 years agoUpdate apache_config.c
jfha73 [Thu, 18 Sep 2014 17:17:36 +0000 (13:17 -0400)]
Update apache_config.c

10 years agoSplit is_numeric_string_ex() into inline and non-inline parts
Dmitry Stogov [Thu, 18 Sep 2014 18:19:51 +0000 (22:19 +0400)]
Split is_numeric_string_ex() into inline and non-inline parts

10 years agothat's not char * but zend_string *
Anatol Belski [Thu, 18 Sep 2014 15:11:48 +0000 (17:11 +0200)]
that's not char * but zend_string *

10 years agoups, this is not needed
Anatol Belski [Thu, 18 Sep 2014 15:01:39 +0000 (17:01 +0200)]
ups, this is not needed

10 years agofix CG(empty_string) init in ZTS
Anatol Belski [Thu, 18 Sep 2014 14:45:50 +0000 (16:45 +0200)]
fix CG(empty_string) init in ZTS

10 years agocorrect type for the thread id
Anatol Belski [Thu, 18 Sep 2014 09:58:44 +0000 (11:58 +0200)]
correct type for the thread id

10 years agoSplit big _zend_handle_numeric_str() into small always inlined function that makes...
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

10 years agoExpose zend_safe_address() and use it in zend_arena_calloc()
Dmitry Stogov [Thu, 18 Sep 2014 09:31:25 +0000 (13:31 +0400)]
Expose zend_safe_address() and use it in zend_arena_calloc()

10 years agoClang attributes support
Dmitry Stogov [Thu, 18 Sep 2014 07:50:00 +0000 (11:50 +0400)]
Clang attributes support

10 years agoChanged "inline" into "zend_always_inline"
Dmitry Stogov [Thu, 18 Sep 2014 00:59:01 +0000 (04:59 +0400)]
Changed "inline" into "zend_always_inline"

10 years agoMoved some definitions from zend.h into more suitable header files
Dmitry Stogov [Thu, 18 Sep 2014 00:58:04 +0000 (04:58 +0400)]
Moved some definitions from zend.h into more suitable header files

10 years agoFixed compilation warnings
Dmitry Stogov [Thu, 18 Sep 2014 00:02:43 +0000 (04:02 +0400)]
Fixed compilation warnings

10 years agofix macro usage
Anatol Belski [Wed, 17 Sep 2014 19:46:48 +0000 (21:46 +0200)]
fix macro usage

10 years agofix atol usage
Anatol Belski [Wed, 17 Sep 2014 18:43:23 +0000 (20:43 +0200)]
fix atol usage

10 years agoOptimized enterance into functions
Dmitry Stogov [Wed, 17 Sep 2014 12:17:58 +0000 (16:17 +0400)]
Optimized enterance into functions

10 years agoreduce struct size by 8 byte on 64 bit
Anatol Belski [Wed, 17 Sep 2014 07:17:34 +0000 (09:17 +0200)]
reduce struct size by 8 byte on 64 bit

10 years agoimprove empty string check
Anatol Belski [Wed, 17 Sep 2014 07:16:59 +0000 (09:16 +0200)]
improve empty string check

10 years agoreduce struct size by 8 byte on 64 bit
Anatol Belski [Wed, 17 Sep 2014 07:16:00 +0000 (09:16 +0200)]
reduce struct size by 8 byte on 64 bit