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

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

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

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

7 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

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

7 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)

7 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)

7 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.

7 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.

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

7 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

7 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.

7 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

7 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

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

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

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

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

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

7 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

7 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

7 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

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

7 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

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

7 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

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

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

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

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

7 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.

7 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

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

7 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

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

7 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

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

7 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

7 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

7 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)

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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 years agoFix: follow the indent of the other configure options
Tom Van Looy [Wed, 14 Feb 2018 20:47:56 +0000 (21:47 +0100)]
Fix: follow the indent of the other configure options

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Wed, 14 Feb 2018 18:00:41 +0000 (19:00 +0100)]
Merge branch 'PHP-7.2'

7 years agoRemove getmxrr alias dns_get_mx test
Gabriel Caruso [Sun, 4 Feb 2018 09:05:51 +0000 (07:05 -0200)]
Remove getmxrr alias dns_get_mx test

The test is currently failing, and the same functionality is
already tested (in a better way) in the getmxrr() test.

7 years agoFix datatypes for native AVX build
Anatol Belski [Wed, 14 Feb 2018 17:29:41 +0000 (18:29 +0100)]
Fix datatypes for native AVX build

7 years agoOptimized fast_memcpy with AVX instructions
Xinchen Hui [Wed, 14 Feb 2018 16:18:47 +0000 (00:18 +0800)]
Optimized fast_memcpy with AVX instructions

Great thanks to welting for helping :)

7 years agoUpgrade bundled PCRE2 to 10.31
Anatol Belski [Wed, 14 Feb 2018 12:44:38 +0000 (13:44 +0100)]
Upgrade bundled PCRE2 to 10.31

7 years agoMerge branch 'PHP-7.2'
Remi Collet [Wed, 14 Feb 2018 12:29:27 +0000 (13:29 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  add pkg-config example in extension skeleton

7 years agoadd pkg-config example in extension skeleton
Remi Collet [Wed, 14 Feb 2018 12:28:21 +0000 (13:28 +0100)]
add pkg-config example in extension skeleton

7 years agoMerge branch 'PHP-7.2'
Remi Collet [Wed, 14 Feb 2018 12:16:55 +0000 (13:16 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  factorization of duplicated code

7 years agofactorization of duplicated code
Remi Collet [Wed, 14 Feb 2018 12:15:09 +0000 (13:15 +0100)]
factorization of duplicated code

7 years agoRevert "Added return type for some basic functions"
Joe [Wed, 14 Feb 2018 10:18:52 +0000 (11:18 +0100)]
Revert "Added return type for some basic functions"

This reverts commit b7d2e04f1f229cc10a73628b4a56240f317c746d.

7 years agoRemove empty sections in tests
Gabriel Caruso [Tue, 13 Feb 2018 16:04:31 +0000 (14:04 -0200)]
Remove empty sections in tests

7 years agoAdded return type for some basic functions
Dmitry Patsura [Wed, 26 Aug 2015 06:00:00 +0000 (15:00 +0900)]
Added return type for some basic functions

7 years agoMerge branch 'PHP-7.2'
Remi Collet [Wed, 14 Feb 2018 07:59:59 +0000 (08:59 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fix timezone var_dump from 51f2a5803fa4f09e212fed4b14ab8b4a003d4ef5

7 years agoFix timezone var_dump from 51f2a5803fa4f09e212fed4b14ab8b4a003d4ef5
Remi Collet [Wed, 14 Feb 2018 07:59:24 +0000 (08:59 +0100)]
Fix timezone var_dump from 51f2a5803fa4f09e212fed4b14ab8b4a003d4ef5

7 years agoMerge branch 'PHP-7.2'
Sara Golemon [Tue, 13 Feb 2018 19:37:34 +0000 (14:37 -0500)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Now working on 7.2.4-dev

7 years agoNow working on 7.2.4-dev
Sara Golemon [Tue, 13 Feb 2018 19:37:00 +0000 (14:37 -0500)]
Now working on 7.2.4-dev

7 years agoMerge branch 'PHP-7.2'
Sara Golemon [Tue, 13 Feb 2018 19:33:59 +0000 (14:33 -0500)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Now working on 7.2.4-dev

7 years agoNow working on 7.2.4-dev
Sara Golemon [Tue, 13 Feb 2018 19:32:37 +0000 (14:32 -0500)]
Now working on 7.2.4-dev

7 years agobump versions
Joe [Tue, 13 Feb 2018 19:24:34 +0000 (20:24 +0100)]
bump versions

7 years agoMerge branch 'PHP-7.2'
Anatol Belski [Tue, 13 Feb 2018 13:06:27 +0000 (14:06 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Extend skipif check

7 years agoExtend skipif check
Anatol Belski [Tue, 13 Feb 2018 13:04:51 +0000 (14:04 +0100)]
Extend skipif check

7 years agoAdded SSE3 detection
Xinchen Hui [Tue, 13 Feb 2018 08:10:43 +0000 (16:10 +0800)]
Added SSE3 detection

7 years agoFix typo
Gabriel Caruso [Mon, 12 Feb 2018 20:22:50 +0000 (18:22 -0200)]
Fix typo

7 years agoRevert "Improve conversion loop"
Anatol Belski [Mon, 12 Feb 2018 21:57:32 +0000 (22:57 +0100)]
Revert "Improve conversion loop"

This reverts commit 7a4573a55ad244b66c40b4086e432775b6f185b7.

Don't read over '\0'.

7 years agoMicro optimization
Dmitry Stogov [Mon, 12 Feb 2018 21:56:48 +0000 (00:56 +0300)]
Micro optimization

7 years agoExtend intrinsics config with AVX and AVX2
Anatol Belski [Mon, 12 Feb 2018 19:54:27 +0000 (20:54 +0100)]
Extend intrinsics config with AVX and AVX2

7 years agoUpdate author info
Xinchen Hui [Mon, 12 Feb 2018 13:01:12 +0000 (21:01 +0800)]
Update author info

7 years agoOptimized base64_encode/decode with SIMD instructions
Xinchen Hui [Mon, 12 Feb 2018 12:46:17 +0000 (20:46 +0800)]
Optimized base64_encode/decode with SIMD instructions

7 years agoFixes for #74707 some methods of tidy class didn't have arginfo declared
Gabriel Caruso [Sun, 11 Feb 2018 15:13:39 +0000 (13:13 -0200)]
Fixes for #74707 some methods of tidy class didn't have arginfo declared

7 years agofix unknown opcode overflow error
Haitao Lv [Mon, 12 Feb 2018 01:25:31 +0000 (09:25 +0800)]
fix unknown opcode overflow error

7 years agoAdd test for bcpwmod
Gabriel Caruso [Mon, 12 Feb 2018 01:52:54 +0000 (23:52 -0200)]
Add test for bcpwmod

bc_raisemod's mod can't be zero and expo can't be negative

7 years agoFixed bug #68406 calling var_dump on a DateTimeZone object modifies it
CHU Zhaowei [Sun, 11 Feb 2018 13:07:52 +0000 (21:07 +0800)]
Fixed bug #68406 calling var_dump on a DateTimeZone object modifies it

7 years agofix #68406
CHU Zhaowei [Thu, 8 Feb 2018 17:14:13 +0000 (01:14 +0800)]
fix #68406

7 years agoMerge branch 'PHP-7.2'
Joe [Mon, 12 Feb 2018 08:19:29 +0000 (09:19 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fixed bug #68406 calling var_dump on a DateTimeZone object modifies it

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Joe [Mon, 12 Feb 2018 08:17:56 +0000 (09:17 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fixed bug #68406 calling var_dump on a DateTimeZone object modifies it

7 years agoFixed bug #68406 calling var_dump on a DateTimeZone object modifies it
jhdxr [Thu, 21 Sep 2017 18:15:22 +0000 (02:15 +0800)]
Fixed bug #68406 calling var_dump on a DateTimeZone object modifies it

7 years agoFix use of Z_LVAL_P in snmp
Nikita Popov [Sun, 11 Feb 2018 21:47:01 +0000 (22:47 +0100)]
Fix use of Z_LVAL_P in snmp

7 years agoRemoved unused variables
Gabriel Caruso [Sat, 10 Feb 2018 11:39:12 +0000 (09:39 -0200)]
Removed unused variables

7 years agoMerge branch 'PHP-7.2'
Christoph M. Becker [Sun, 11 Feb 2018 11:56:39 +0000 (12:56 +0100)]
Merge branch 'PHP-7.2'

* PHP-7.2:
  Fix #75857: Timezone gets truncated when formatted

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Christoph M. Becker [Sun, 11 Feb 2018 11:49:41 +0000 (12:49 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix #75857: Timezone gets truncated when formatted

7 years agoFix #75857: Timezone gets truncated when formatted
Gabriel Caruso [Thu, 8 Feb 2018 12:05:00 +0000 (10:05 -0200)]
Fix #75857: Timezone gets truncated when formatted

Use sizeof buffer instead of hard-coded lenghts

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sat, 10 Feb 2018 18:31:09 +0000 (19:31 +0100)]
Merge branch 'PHP-7.2'

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Sat, 10 Feb 2018 18:30:57 +0000 (19:30 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

7 years agoFixed bug #75928
Pedro Lacerda [Wed, 7 Feb 2018 02:55:31 +0000 (23:55 -0300)]
Fixed bug #75928

7 years agoRemove trailing whitespace in inc files
Gabriel Caruso [Sat, 10 Feb 2018 00:49:21 +0000 (22:49 -0200)]
Remove trailing whitespace in inc files

7 years agoMerge branch 'PHP-7.2'
Nikita Popov [Sat, 10 Feb 2018 18:19:16 +0000 (19:19 +0100)]
Merge branch 'PHP-7.2'

7 years agoMerge branch 'PHP-7.1' into PHP-7.2
Nikita Popov [Sat, 10 Feb 2018 18:19:09 +0000 (19:19 +0100)]
Merge branch 'PHP-7.1' into PHP-7.2

7 years agoEnhancements and fixes for print_pi in gdbinit
Mitch Hagstrand [Fri, 9 Feb 2018 17:30:45 +0000 (11:30 -0600)]
Enhancements and fixes for print_pi in gdbinit

1) Outputs the default value and the offset of a property
2) Fixed output of property flags

7 years agoFixed bug #74707
Gabriel Caruso [Wed, 7 Feb 2018 19:41:03 +0000 (17:41 -0200)]
Fixed bug #74707

Several tidy functions receive a tidy object as mandatory parameter