]> granicus.if.org Git - php/log
php
6 years agoShare identical arginfos
Gabriel Caruso [Sun, 18 Feb 2018 17:46:46 +0000 (14:46 -0300)]
Share identical arginfos

6 years agoRemove duplicated informations in tests
Gabriel Caruso [Sun, 18 Feb 2018 18:06:48 +0000 (15:06 -0300)]
Remove duplicated informations in tests

6 years agoTest more functions of ftp
Gabriel Caruso [Sun, 18 Feb 2018 22:45:39 +0000 (19:45 -0300)]
Test more functions of ftp

6 years agoTest more functionalities of SPL
Gabriel Caruso [Mon, 19 Feb 2018 00:34:17 +0000 (21:34 -0300)]
Test more functionalities of SPL

6 years agoAvoid multiple wcslen() calls
Anatol Belski [Sun, 18 Feb 2018 19:30:33 +0000 (20:30 +0100)]
Avoid multiple wcslen() calls

6 years agoReduce var scope
Anatol Belski [Sun, 18 Feb 2018 18:59:23 +0000 (19:59 +0100)]
Reduce var scope

6 years agoReduce variable scope
Anatol Belski [Sun, 18 Feb 2018 18:15:36 +0000 (19:15 +0100)]
Reduce variable scope

6 years agoRemove effectless assignment
Anatol Belski [Sun, 18 Feb 2018 18:07:25 +0000 (19:07 +0100)]
Remove effectless assignment

6 years agoFix possible int overflow on vars used in loop with size_t counter
Anatol Belski [Sun, 18 Feb 2018 15:07:37 +0000 (16:07 +0100)]
Fix possible int overflow on vars used in loop with size_t counter

6 years agoFix overflow, int var used in loop with size_t counter
Anatol Belski [Sun, 18 Feb 2018 14:34:55 +0000 (15:34 +0100)]
Fix overflow, int var used in loop with size_t counter

6 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sun, 18 Feb 2018 16:43:08 +0000 (17:43 +0100)]
Merge branch 'PHP-7.2'

6 years agoFix pfsockopen() func info
Nikita Popov [Sun, 18 Feb 2018 16:39:18 +0000 (17:39 +0100)]
Fix pfsockopen() func info

6 years agoFix ZEND_SL range inference
Nikita Popov [Sun, 18 Feb 2018 16:20:32 +0000 (17:20 +0100)]
Fix ZEND_SL range inference

This is a bit tricker than right shifts because shifting in the
sign bit flips the sign. The computed bounds are not tight.

6 years agoFix ZEND_SR range inference
Nikita Popov [Sun, 18 Feb 2018 16:03:20 +0000 (17:03 +0100)]
Fix ZEND_SR range inference

Handle out-of-range RHS correctly.

6 years agoFix constant() func info
Nikita Popov [Sun, 18 Feb 2018 15:41:53 +0000 (16:41 +0100)]
Fix constant() func info

Since PHP 5.6 this can also be an array.

6 years agoFix some compile results warnings
Gabriel Caruso [Sat, 17 Feb 2018 15:51:37 +0000 (13:51 -0200)]
Fix some compile results warnings

6 years agoFix pg_pconnect() func info
Nikita Popov [Sun, 18 Feb 2018 15:21:25 +0000 (16:21 +0100)]
Fix pg_pconnect() func info

6 years agoFix gettext func infos
Nikita Popov [Sun, 18 Feb 2018 15:19:42 +0000 (16:19 +0100)]
Fix gettext func infos

6 years agoFix DCE test
Nikita Popov [Sun, 18 Feb 2018 14:37:10 +0000 (15:37 +0100)]
Fix DCE test

Without the type hint the previous optimization no longer applied,
as the result could be an (overloaded) object, which might have
caused dtor effect reordering.

6 years agoMore mysqli func info fixes
Nikita Popov [Sat, 17 Feb 2018 22:27:20 +0000 (23:27 +0100)]
More mysqli func info fixes

Mainly changing resource returns to objects

6 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sun, 18 Feb 2018 14:34:04 +0000 (15:34 +0100)]
Merge branch 'PHP-7.2'

6 years agoHandle overloaded GMP operators in type inference
Nikita Popov [Sun, 18 Feb 2018 14:27:53 +0000 (15:27 +0100)]
Handle overloaded GMP operators in type inference

6 years agoDisable negative range inference
Nikita Popov [Sun, 18 Feb 2018 14:13:14 +0000 (15:13 +0100)]
Disable negative range inference

The negative range inference implementation does not work correctly,
and it's not clear right now how it can be fixed. As such, disable
it entirely for now.

6 years agoAvoid multiple wcslen calls
Anatol Belski [Sun, 18 Feb 2018 14:26:33 +0000 (15:26 +0100)]
Avoid multiple wcslen calls

6 years agochange layout
Xinchen Hui [Sun, 18 Feb 2018 11:47:41 +0000 (19:47 +0800)]
change layout

6 years agoMove map out of loop
Xinchen Hui [Sun, 18 Feb 2018 11:34:48 +0000 (19:34 +0800)]
Move map out of loop

6 years agoRemove redelcaration of zend_parse_parameters_none
Gabriel Caruso [Fri, 16 Feb 2018 03:15:48 +0000 (01:15 -0200)]
Remove redelcaration of zend_parse_parameters_none

6 years agoUse zend_parse_parameters_none_throw
Gabriel Caruso [Fri, 16 Feb 2018 03:01:02 +0000 (01:01 -0200)]
Use zend_parse_parameters_none_throw

6 years agoFix lcfirst() + ucfirst() func info
Nikita Popov [Sat, 17 Feb 2018 22:07:07 +0000 (23:07 +0100)]
Fix lcfirst() + ucfirst() func info

These may return the original string

6 years agoFix bcpowmod() func_info
Nikita Popov [Sat, 17 Feb 2018 21:47:25 +0000 (22:47 +0100)]
Fix bcpowmod() func_info

Returns false on error

6 years agoFix error_get_last() func info
Nikita Popov [Sat, 17 Feb 2018 21:43:25 +0000 (22:43 +0100)]
Fix error_get_last() func info

6 years agoFix mysqli_connect() func info
Nikita Popov [Sat, 17 Feb 2018 22:00:02 +0000 (23:00 +0100)]
Fix mysqli_connect() func info

This function returns an object, not a resource...

6 years agoFix bcscale() function info
Nikita Popov [Sat, 17 Feb 2018 21:48:19 +0000 (22:48 +0100)]
Fix bcscale() function info

Master only: This function now returns the old scale.

6 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sat, 17 Feb 2018 22:21:31 +0000 (23:21 +0100)]
Merge branch 'PHP-7.2'

6 years agoFix COUNT range inference
Nikita Popov [Sat, 17 Feb 2018 22:04:31 +0000 (23:04 +0100)]
Fix COUNT range inference

count() on objects may return a negative number :(

6 years agoFix hash_init() and hash_copy() func info
Nikita Popov [Sat, 17 Feb 2018 21:53:14 +0000 (22:53 +0100)]
Fix hash_init() and hash_copy() func info

These functions were switched to use objects instead of resources.

6 years agoFix curl_multi_close() func info
Nikita Popov [Sat, 17 Feb 2018 21:50:17 +0000 (22:50 +0100)]
Fix curl_multi_close() func info

Returns false on failure

6 years agoFix get_object_vars() func info
Nikita Popov [Sat, 17 Feb 2018 17:44:48 +0000 (18:44 +0100)]
Fix get_object_vars() func info

Numeric keys will be converted to integer nowadays.

6 years agoAdd RC flags in init_func_return_info
Nikita Popov [Sat, 17 Feb 2018 17:42:08 +0000 (18:42 +0100)]
Add RC flags in init_func_return_info

6 years agoFix array_values() and array_keys() func info
Nikita Popov [Sat, 17 Feb 2018 17:36:17 +0000 (18:36 +0100)]
Fix array_values() and array_keys() func info

Can return RCN for empty/packed arrays

6 years agoOptimized strrev with SSSE3
Xinchen Hui [Sat, 17 Feb 2018 15:19:31 +0000 (23:19 +0800)]
Optimized strrev with SSSE3

since strrev is not wildly used, and SSSE3 is defined default by some
compiler, so won't try to do ifunc here.

6 years agochange argument parsing
Xinchen Hui [Sat, 17 Feb 2018 14:29:59 +0000 (22:29 +0800)]
change argument parsing

6 years agoFix DCE of throwing NEWs
Nikita Popov [Sat, 17 Feb 2018 13:50:20 +0000 (14:50 +0100)]
Fix DCE of throwing NEWs

6 years agoFix another bug in coalesce elimination
Nikita Popov [Sat, 17 Feb 2018 11:59:25 +0000 (12:59 +0100)]
Fix another bug in coalesce elimination

6 years agoRemove unnecessary cast
Anatol Belski [Sat, 17 Feb 2018 13:19:06 +0000 (14:19 +0100)]
Remove unnecessary cast

6 years agoMerge branch 'PHP-7.2'
Anatol Belski [Sat, 17 Feb 2018 12:13:17 +0000 (13:13 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Remove duplicated assignment

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Sat, 17 Feb 2018 12:12:29 +0000 (13:12 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Remove duplicated assignment

6 years agoRemove duplicated assignment
Anatol Belski [Sat, 17 Feb 2018 12:10:59 +0000 (13:10 +0100)]
Remove duplicated assignment

6 years agoReduce variable scope
Anatol Belski [Sat, 17 Feb 2018 11:59:12 +0000 (12:59 +0100)]
Reduce variable scope

6 years agoRemove always true condition
Anatol Belski [Sat, 17 Feb 2018 10:27:15 +0000 (11:27 +0100)]
Remove always true condition

6 years agoFix unsigned comparisons
Anatol Belski [Sat, 17 Feb 2018 01:07:23 +0000 (02:07 +0100)]
Fix unsigned comparisons

6 years agoReduce var scope
Anatol Belski [Sat, 17 Feb 2018 01:07:04 +0000 (02:07 +0100)]
Reduce var scope

6 years agoReduce var scope
Anatol Belski [Fri, 16 Feb 2018 17:42:02 +0000 (18:42 +0100)]
Reduce var scope

6 years agoFix COALESCE jump optimization
Nikita Popov [Sat, 17 Feb 2018 11:41:57 +0000 (12:41 +0100)]
Fix COALESCE jump optimization

6 years agoMerge branch 'PHP-7.2'
Xinchen Hui [Sat, 17 Feb 2018 08:39:31 +0000 (16:39 +0800)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Update NEWS
  Fixed bug #75961 (Strange references behavior)

Conflicts:
ext/standard/array.c

6 years agoUpdate NEWS
Xinchen Hui [Sat, 17 Feb 2018 08:35:42 +0000 (16:35 +0800)]
Update NEWS

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Xinchen Hui [Sat, 17 Feb 2018 08:33:39 +0000 (16:33 +0800)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fixed bug #75961 (Strange references behavior)

6 years agoFixed bug #75961 (Strange references behavior)
Xinchen Hui [Sat, 17 Feb 2018 08:31:59 +0000 (16:31 +0800)]
Fixed bug #75961 (Strange references behavior)

6 years agoExplicitly sort live ranges by start opnum
Nikita Popov [Fri, 16 Feb 2018 20:47:00 +0000 (21:47 +0100)]
Explicitly sort live ranges by start opnum

Instead of moving live ranges around to maintain the start opnum
invariant, add an explicit sorting step in pass two.

6 years agoAvoid live range references in opcodes
Nikita Popov [Fri, 16 Feb 2018 20:25:49 +0000 (21:25 +0100)]
Avoid live range references in opcodes

Don't store the live range of the freed variable for FREE_ON_RETURN
frees, instead look it up at runtime. As this is an extremely
unlikely codepath (in particular, it requires a loop variable with
a throwing destructor), saving the runtime lookup of the live range
is not worth the extra complexity this adds everywhere else.

6 years agoMerge branch 'PHP-7.2'
Nikita Popov [Fri, 16 Feb 2018 19:31:01 +0000 (20:31 +0100)]
Merge branch 'PHP-7.2'

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Fri, 16 Feb 2018 19:30:23 +0000 (20:30 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

6 years agoFixed bug #75969
Nikita Popov [Fri, 16 Feb 2018 19:27:13 +0000 (20:27 +0100)]
Fixed bug #75969

Move NOP stripping out of zend_optimize_block: NOP stripping may
move instructions, which may invalidate a Tsource shared across
an extended basic block.

6 years agoHandle special case when SSE only requested for 32-bit build
Anatol Belski [Fri, 16 Feb 2018 15:51:11 +0000 (16:51 +0100)]
Handle special case when SSE only requested for 32-bit build

6 years agoRework --with-codegen-arch and --enable-native-intrinsics config
Anatol Belski [Fri, 16 Feb 2018 15:23:27 +0000 (16:23 +0100)]
Rework --with-codegen-arch and --enable-native-intrinsics config

6 years agoReduce var scope
Anatol Belski [Fri, 16 Feb 2018 14:43:54 +0000 (15:43 +0100)]
Reduce var scope

6 years agoRemove always true condition
Anatol Belski [Fri, 16 Feb 2018 14:22:46 +0000 (15:22 +0100)]
Remove always true condition

6 years agoSimplify declaration
Anatol Belski [Fri, 16 Feb 2018 14:21:32 +0000 (15:21 +0100)]
Simplify declaration

6 years agoSimplify declaration
Anatol Belski [Fri, 16 Feb 2018 14:12:43 +0000 (15:12 +0100)]
Simplify declaration

6 years agoFix unused variable warning
Nikita Popov [Fri, 16 Feb 2018 14:31:54 +0000 (15:31 +0100)]
Fix unused variable warning

6 years agoMerge branch 'PHP-7.2'
Anatol Belski [Fri, 16 Feb 2018 12:42:04 +0000 (13:42 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Wrap var depending on conditional compilation

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Fri, 16 Feb 2018 12:41:13 +0000 (13:41 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Wrap var depending on conditional compilation

6 years agoWrap var depending on conditional compilation
Anatol Belski [Fri, 16 Feb 2018 12:37:38 +0000 (13:37 +0100)]
Wrap var depending on conditional compilation

6 years agoSimplify REFCOUNTED checks
Dmitry Stogov [Fri, 16 Feb 2018 12:37:40 +0000 (15:37 +0300)]
Simplify REFCOUNTED checks

6 years agoDon't make expectations about non-constant zval refcauntability
Dmitry Stogov [Fri, 16 Feb 2018 12:37:04 +0000 (15:37 +0300)]
Don't make expectations about non-constant zval refcauntability

6 years agoFix duplicated strlen call
Anatol Belski [Fri, 16 Feb 2018 11:45:05 +0000 (12:45 +0100)]
Fix duplicated strlen call

6 years agoRemove unnecessary conditions and improve assignment
Anatol Belski [Fri, 16 Feb 2018 11:27:49 +0000 (12:27 +0100)]
Remove unnecessary conditions and improve assignment

6 years agoReduce var scope
Anatol Belski [Fri, 16 Feb 2018 11:10:28 +0000 (12:10 +0100)]
Reduce var scope

6 years agoReduce var scope
Anatol Belski [Fri, 16 Feb 2018 10:45:07 +0000 (11:45 +0100)]
Reduce var scope

6 years agoReduce variable scope
Anatol Belski [Thu, 15 Feb 2018 22:08:14 +0000 (23:08 +0100)]
Reduce variable scope

6 years agoAdded missed "return"
Dmitry Stogov [Fri, 16 Feb 2018 11:13:52 +0000 (14:13 +0300)]
Added missed "return"

6 years agoImproved ZPP to reduce amount of generated code.
Dmitry Stogov [Fri, 16 Feb 2018 08:37:20 +0000 (11:37 +0300)]
Improved ZPP to reduce amount of generated code.

6 years agoMove exceptional code into "cold" helpers
Dmitry Stogov [Thu, 15 Feb 2018 23:45:31 +0000 (02:45 +0300)]
Move exceptional code into "cold" helpers

6 years agoReduce variable scope
Anatol Belski [Thu, 15 Feb 2018 20:34:55 +0000 (21:34 +0100)]
Reduce variable scope

6 years agoUse explicit for more type safety
Anatol Belski [Thu, 15 Feb 2018 20:30:16 +0000 (21:30 +0100)]
Use explicit for more type safety

6 years agoReduce variable scope
Anatol Belski [Thu, 15 Feb 2018 20:26:01 +0000 (21:26 +0100)]
Reduce variable scope

6 years agoRemove condition that is always false
Anatol Belski [Thu, 15 Feb 2018 20:19:33 +0000 (21:19 +0100)]
Remove condition that is always false

6 years agoReduce variable scope
Anatol Belski [Thu, 15 Feb 2018 20:18:58 +0000 (21:18 +0100)]
Reduce variable scope

6 years agoUse Z_TYPE_INFO_REFCOUNTED() macro
Dmitry Stogov [Thu, 15 Feb 2018 18:54:49 +0000 (21:54 +0300)]
Use Z_TYPE_INFO_REFCOUNTED() macro

6 years agoOptimize "backup" functions of inlined opcode handlers for size
Dmitry Stogov [Thu, 15 Feb 2018 14:04:41 +0000 (17:04 +0300)]
Optimize "backup" functions of inlined opcode handlers for size

6 years agoAdded ability to manually sort opcode handlers (not used yet)
Dmitry Stogov [Thu, 15 Feb 2018 12:56:38 +0000 (15:56 +0300)]
Added ability to manually sort opcode handlers (not used yet)

6 years agoAdded simple VM instrumentation ability
Dmitry Stogov [Thu, 15 Feb 2018 12:55:19 +0000 (15:55 +0300)]
Added simple VM instrumentation ability

6 years agoAvoid generation of rarely used specialized handler
Dmitry Stogov [Thu, 15 Feb 2018 11:50:42 +0000 (14:50 +0300)]
Avoid generation of rarely used specialized handler

6 years agoAvoid inlining of rarely used handlers
Dmitry Stogov [Thu, 15 Feb 2018 10:48:04 +0000 (13:48 +0300)]
Avoid inlining of rarely used handlers

6 years agoMerge branch 'PHP-7.2'
Joe Watkins [Thu, 15 Feb 2018 07:57:52 +0000 (08:57 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fixed print_const_table function and zval types in ____printzv_contents

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Joe Watkins [Thu, 15 Feb 2018 07:57:43 +0000 (08:57 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fixed print_const_table function and zval types in ____printzv_contents

6 years agoFixed print_const_table function and zval types in ____printzv_contents
Mitch Hagstrand [Wed, 14 Feb 2018 20:39:01 +0000 (14:39 -0600)]
Fixed print_const_table function and zval types in ____printzv_contents

1. Fixed print_const_table to work in ZE3
2. Removed ____print_const_table to use more generic ____print_ht
3. Fixed up zval types in ____printzv_contents

6 years agoMerge branch 'PHP-7.2'
Joe Watkins [Thu, 15 Feb 2018 07:56:40 +0000 (08:56 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  bump versions

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Joe Watkins [Thu, 15 Feb 2018 07:56:08 +0000 (08:56 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  bump versions

6 years agoBetter error message when fail to find test file
Gabriel Caruso [Wed, 14 Feb 2018 23:00:13 +0000 (21:00 -0200)]
Better error message when fail to find test file