]> granicus.if.org Git - php/log
php
8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Wed, 1 Jun 2016 02:44:37 +0000 (10:44 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Forgotten test script for bug #72300

8 years agoForgotten test script for bug #72300
Xinchen Hui [Wed, 1 Jun 2016 02:43:53 +0000 (10:43 +0800)]
Forgotten test script for bug #72300

8 years agoCorrect inline comments regarding pass1/pass2 actions
Sara Golemon [Tue, 31 May 2016 22:33:08 +0000 (22:33 +0000)]
Correct inline comments regarding pass1/pass2 actions

BRK/CONT no longer reach the optimizing following 8542befa7b
Pre-evaluate constant function calls is in pass1, not pass2

8 years agofix test
Anatol Belski [Tue, 31 May 2016 16:54:57 +0000 (18:54 +0200)]
fix test

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 31 May 2016 16:53:37 +0000 (18:53 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix test portability

8 years agofix test portability
Anatol Belski [Tue, 31 May 2016 16:42:40 +0000 (18:42 +0200)]
fix test portability

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Tue, 31 May 2016 14:24:22 +0000 (07:24 -0700)]
Merge branch 'PHP-7.0'

8 years agoFixed bug #72300 (ignore_user_abort(false) has no effect)
Xinchen Hui [Tue, 31 May 2016 14:24:02 +0000 (07:24 -0700)]
Fixed bug #72300 (ignore_user_abort(false) has no effect)

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Tue, 31 May 2016 09:23:03 +0000 (17:23 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  No sure why this is failed in travis

8 years agoNo sure why this is failed in travis
Xinchen Hui [Tue, 31 May 2016 09:22:47 +0000 (17:22 +0800)]
No sure why this is failed in travis

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Tue, 31 May 2016 08:56:12 +0000 (16:56 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed test (keyword is local related)

8 years agoFixed test (keyword is local related)
Xinchen Hui [Tue, 31 May 2016 08:54:38 +0000 (16:54 +0800)]
Fixed test (keyword is local related)

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Tue, 31 May 2016 08:48:33 +0000 (16:48 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Attempt to fix tests fails

8 years agoAttempt to fix tests fails
Xinchen Hui [Tue, 31 May 2016 08:48:19 +0000 (16:48 +0800)]
Attempt to fix tests fails

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Tue, 31 May 2016 03:44:33 +0000 (11:44 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Re-Fixed bug #72155 (use-after-free caused by get_zval_xmlrpc_type)
  Revert "fix #72155 (use-after-free caused by get_zval_xmlrpc_type)"

8 years agoRe-Fixed bug #72155 (use-after-free caused by get_zval_xmlrpc_type)
Xinchen Hui [Tue, 31 May 2016 03:44:20 +0000 (11:44 +0800)]
Re-Fixed bug #72155 (use-after-free caused by get_zval_xmlrpc_type)

8 years agoRevert "fix #72155 (use-after-free caused by get_zval_xmlrpc_type)"
Xinchen Hui [Tue, 31 May 2016 03:32:09 +0000 (11:32 +0800)]
Revert "fix #72155 (use-after-free caused by get_zval_xmlrpc_type)"

This reverts commit 1690dcb827e2b50eb575b1c6acadab0b8f248723.

8 years agoSplit ZEND_SEND_VAR_NO_REF into ZEND_SEND_VAR_NO_REF and ZEND_SEND_VAR_NO_REF_EX...
Dmitry Stogov [Tue, 31 May 2016 01:06:00 +0000 (04:06 +0300)]
Split ZEND_SEND_VAR_NO_REF into ZEND_SEND_VAR_NO_REF and ZEND_SEND_VAR_NO_REF_EX (similar to ZEND_SEND_VAL) and remove ZEND_ARG_* flags.

8 years agoInitialize only the necessary fields.
Dmitry Stogov [Mon, 30 May 2016 21:04:52 +0000 (00:04 +0300)]
Initialize only the necessary fields.

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Mon, 30 May 2016 16:36:06 +0000 (18:36 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix condition

8 years agofix condition
Anatol Belski [Mon, 30 May 2016 16:32:39 +0000 (18:32 +0200)]
fix condition

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Mon, 30 May 2016 12:10:48 +0000 (14:10 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  update NEWS

8 years agoupdate NEWS
Anatol Belski [Mon, 30 May 2016 12:10:27 +0000 (14:10 +0200)]
update NEWS

8 years agoMerge remote-tracking branch 'origin/PHP-7.0'
Bob Weinand [Mon, 30 May 2016 11:32:37 +0000 (13:32 +0200)]
Merge remote-tracking branch 'origin/PHP-7.0'

8 years agoFixed bug #72284 (phpdbg fatal errors with coverage)
Bob Weinand [Tue, 3 May 2016 11:36:21 +0000 (13:36 +0200)]
Fixed bug #72284 (phpdbg fatal errors with coverage)

Cherry-pick of original commits d3371b and 0f20e11 only present in master

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Mon, 30 May 2016 10:50:25 +0000 (12:50 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix test title
  Add test for bug #72258
  update UPGRADING
  Expose missing flags from libzip at least >= 0.11.x

8 years agofix test title
Anatol Belski [Mon, 30 May 2016 10:48:00 +0000 (12:48 +0200)]
fix test title

8 years agoAdd test for bug #72258
Anatol Belski [Mon, 30 May 2016 10:47:04 +0000 (12:47 +0200)]
Add test for bug #72258

8 years agoupdate UPGRADING
Anatol Belski [Mon, 30 May 2016 08:31:04 +0000 (10:31 +0200)]
update UPGRADING

8 years agoExpose missing flags from libzip at least >= 0.11.x
Anatol Belski [Mon, 30 May 2016 08:16:12 +0000 (10:16 +0200)]
Expose missing flags from libzip at least >= 0.11.x

These are helpful with reading/writing zips containing non UTF-8
filenames to mitigate possibly changed libzip behaviors.

Partial cherry-pick of 893c2405ff34250ffefbbc1d223de4df6c154c8a

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Mon, 30 May 2016 08:31:56 +0000 (10:31 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  update UPGRADING

8 years agoupdate UPGRADING
Anatol Belski [Mon, 30 May 2016 08:31:04 +0000 (10:31 +0200)]
update UPGRADING

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Mon, 30 May 2016 08:22:12 +0000 (10:22 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Expose missing flags from libzip at least >= 0.11.x

8 years agoExpose missing flags from libzip at least >= 0.11.x
Anatol Belski [Mon, 30 May 2016 08:16:12 +0000 (10:16 +0200)]
Expose missing flags from libzip at least >= 0.11.x

These are helpful with reading/writing zips containing non UTF-8
filenames to mitigate possibly changed libzip behaviors.

Partial cherry-pick of 893c2405ff34250ffefbbc1d223de4df6c154c8a

8 years agoMerge branch 'PHP-7.0'
Joe Watkins [Mon, 30 May 2016 07:57:11 +0000 (08:57 +0100)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix #72155 (use-after-free caused by get_zval_xmlrpc_type)

8 years agofix #72155 (use-after-free caused by get_zval_xmlrpc_type)
Joe Watkins [Mon, 30 May 2016 07:56:50 +0000 (08:56 +0100)]
fix #72155 (use-after-free caused by get_zval_xmlrpc_type)

8 years agoMerge branch 'PHP-7.0'
Joe Watkins [Sun, 29 May 2016 05:03:33 +0000 (06:03 +0100)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  This is exported at implementation site, but no forward declaration can cause compile warnings

8 years agoThis is exported at implementation site, but no forward declaration can cause compile...
Joe Watkins [Sun, 29 May 2016 05:02:38 +0000 (06:02 +0100)]
This is exported at implementation site, but no forward declaration can cause compile warnings

8 years agoFix bug #71604
Nikita Popov [Sat, 28 May 2016 12:38:11 +0000 (14:38 +0200)]
Fix bug #71604

Alternatively could throw some kind of uncatchable dummy exception
into the generator. Right now just checking for NULL in two places
seems simpler.

8 years agoMerge branch 'PHP-7.0'
Nikita Popov [Sat, 28 May 2016 11:22:49 +0000 (13:22 +0200)]
Merge branch 'PHP-7.0'

Conflicts:
Zend/zend_vm_execute.h

8 years agoForbid "yield from" in force closed generators
Nikita Popov [Sat, 28 May 2016 11:13:11 +0000 (13:13 +0200)]
Forbid "yield from" in force closed generators

Same check we do for "yield", was missed when "yield from" was
added. We could make this more granular by only forbidding to
actually yield values and still allow something like "yield from []",
but this does not seem worthwhile.

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Sat, 28 May 2016 08:12:20 +0000 (16:12 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Added NEWS Entry
  Test for bug #72221, segfault in zend_memnstr_ex
  Fix bug #72221 (segfault, past-the-end access)

8 years agoAdded NEWS Entry
Xinchen Hui [Sat, 28 May 2016 08:12:10 +0000 (16:12 +0800)]
Added NEWS Entry

8 years agoTest for bug #72221, segfault in zend_memnstr_ex
Lauri Kenttä [Tue, 24 May 2016 14:33:44 +0000 (17:33 +0300)]
Test for bug #72221, segfault in zend_memnstr_ex

8 years agoFix bug #72221 (segfault, past-the-end access)
Lauri Kenttä [Sat, 21 May 2016 15:46:00 +0000 (18:46 +0300)]
Fix bug #72221 (segfault, past-the-end access)

8 years agoMerge branch 'fix-72221' of https://github.com/Metabolix/php-src
Xinchen Hui [Sat, 28 May 2016 08:09:31 +0000 (16:09 +0800)]
Merge branch 'fix-72221' of https://github.com/Metabolix/php-src

* 'fix-72221' of https://github.com/Metabolix/php-src:
  Test for bug #72221, segfault in zend_memnstr_ex
  Fix bug #72221 (segfault, past-the-end access)

8 years agoThis is not a problem here
Xinchen Hui [Sat, 28 May 2016 07:15:53 +0000 (15:15 +0800)]
This is not a problem here

if only for PHI placement, we may get rid of this `use` here.
But as the comment said, it is useful if we are going to do code generation

8 years agoRevert "assert won't cause indrect var access if it's disabled"
Xinchen Hui [Fri, 27 May 2016 17:53:32 +0000 (10:53 -0700)]
Revert "assert won't cause indrect var access if it's disabled"

in the other hand, it should not be there if it's disabled...

This reverts commit 27f40676e6f506f353ad8d679dd9b21aa87b828e.

8 years agoassert won't cause indrect var access if it's disabled
Xinchen Hui [Fri, 27 May 2016 17:48:36 +0000 (10:48 -0700)]
assert won't cause indrect var access if it's disabled

8 years agoTypo & cleanup
Xinchen Hui [Fri, 27 May 2016 08:17:07 +0000 (16:17 +0800)]
Typo & cleanup

8 years agoMerge branch 'PHP-7.0'
Ferenc Kovacs [Thu, 26 May 2016 01:06:32 +0000 (03:06 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  update NEWS

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Ferenc Kovacs [Thu, 26 May 2016 01:05:52 +0000 (03:05 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  update NEWS

8 years agoupdate NEWS
Ferenc Kovacs [Thu, 26 May 2016 01:05:06 +0000 (03:05 +0200)]
update NEWS

8 years agoExpose missing flags from libzip at least >= 0.11.x
Anatol Belski [Wed, 25 May 2016 20:10:24 +0000 (22:10 +0200)]
Expose missing flags from libzip at least >= 0.11.x

These are helpful with reading/writing zips containing non UTF-8
filenames to mitigate possibly changed libzip behaviors.

8 years agoMerge branch 'PHP-7.0'
Adam Harvey [Wed, 25 May 2016 17:48:00 +0000 (12:48 -0500)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fix typo in phpdbg help.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Adam Harvey [Wed, 25 May 2016 17:47:49 +0000 (12:47 -0500)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fix typo in phpdbg help.

8 years agoFix typo in phpdbg help.
Adam Harvey [Wed, 25 May 2016 17:47:16 +0000 (12:47 -0500)]
Fix typo in phpdbg help.

Sorry, I would have included this in the last push had I spotted it a
minute earlier.

8 years agoMerge branch 'PHP-7.0'
Adam Harvey [Wed, 25 May 2016 17:42:17 +0000 (12:42 -0500)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Add missing newlines to phpdbg's help for the run command.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Adam Harvey [Wed, 25 May 2016 17:40:23 +0000 (12:40 -0500)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Add missing newlines to phpdbg's help for the run command.

8 years agoAdd missing newlines to phpdbg's help for the run command.
Adam Harvey [Wed, 25 May 2016 17:38:41 +0000 (12:38 -0500)]
Add missing newlines to phpdbg's help for the run command.

This is not at all related to needing screenshots for a talk I'm giving
in two days. No sir. Not at all.

8 years agoMerge branch 'PHP-7.0'
Remi Collet [Wed, 25 May 2016 14:20:15 +0000 (16:20 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Skip test which is 64bits only

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Remi Collet [Wed, 25 May 2016 14:19:52 +0000 (16:19 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Skip test which is 64bits only

8 years agoSkip test which is 64bits only
Remi Collet [Wed, 25 May 2016 14:17:12 +0000 (16:17 +0200)]
Skip test which is 64bits only

Diff from test output
001+ Warning: fread(): Length parameter must be greater than 0 in ...
001- Warning: fread(): Length parameter must be no more than 2147483647 in ...

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Wed, 25 May 2016 09:30:25 +0000 (11:30 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  update NEWS

8 years agoupdate NEWS
Anatol Belski [Wed, 25 May 2016 09:30:00 +0000 (11:30 +0200)]
update NEWS

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Wed, 25 May 2016 09:21:41 +0000 (11:21 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix test portability

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Wed, 25 May 2016 09:21:16 +0000 (11:21 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  fix test portability

8 years agofix test portability
Anatol Belski [Wed, 25 May 2016 09:19:19 +0000 (11:19 +0200)]
fix test portability

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Wed, 25 May 2016 09:17:02 +0000 (11:17 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  prepare for 5.6.22RC1

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Wed, 25 May 2016 09:15:39 +0000 (11:15 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  prepare for 5.6.22RC1

8 years agoMerge branch 'PHP-7.0'
Stanislav Malyshev [Wed, 25 May 2016 03:53:34 +0000 (20:53 -0700)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fix memory leak in imagescale()
  Update NEWS
  Better fix for bug #72135
  Fixed bug #72227: imagescale out-of-bounds read
  Fix bug #72241: get_icu_value_internal out-of-bounds read
  Fix bug #72135 - don't create strings with lengths outside int range
  set versions
  Add check for string overflow to all string add operations
  Fix bug #72114 - int/size_t confusion in fread
  Updated NEWS
  Fixed bug #71331 - Uninitialized pointer in phar_make_dirstream()

8 years agoMerge branch 'PHP-7.0.7' into PHP-7.0
Stanislav Malyshev [Wed, 25 May 2016 03:51:52 +0000 (20:51 -0700)]
Merge branch 'PHP-7.0.7' into PHP-7.0

* PHP-7.0.7:
  Fix memory leak in imagescale()
  Update NEWS
  Better fix for bug #72135
  Fixed bug #72227: imagescale out-of-bounds read
  Fix bug #72241: get_icu_value_internal out-of-bounds read
  Fix bug #72135 - don't create strings with lengths outside int range
  set versions
  Add check for string overflow to all string add operations
  Fix bug #72114 - int/size_t confusion in fread
  Updated NEWS
  Fixed bug #71331 - Uninitialized pointer in phar_make_dirstream()

Conflicts:
configure.in
main/php_version.h

8 years agoMerge branch 'PHP-5.5' into PHP-7.0.7
Stanislav Malyshev [Wed, 25 May 2016 00:58:37 +0000 (17:58 -0700)]
Merge branch 'PHP-5.5' into PHP-7.0.7

* PHP-5.5:
  Fix memory leak in imagescale()
  Update NEWS
  Better fix for bug #72135
  Fixed bug #72227: imagescale out-of-bounds read
  Fix bug #72241: get_icu_value_internal out-of-bounds read
  Fix bug #72135 - don't create strings with lengths outside int range
  Add check for string overflow to all string add operations
  Fix bug #72114 - int/size_t confusion in fread
  Updated NEWS
  Fixed bug #71331 - Uninitialized pointer in phar_make_dirstream()

Conflicts:
Zend/zend_operators.c
ext/intl/locale/locale_methods.c
ext/phar/dirstream.c
ext/phar/tests/bug71331.phpt
ext/standard/file.c
ext/standard/html.c

8 years agoMerge branch 'PHP-5.6.22' into PHP-5.6
Stanislav Malyshev [Wed, 25 May 2016 00:21:22 +0000 (17:21 -0700)]
Merge branch 'PHP-5.6.22' into PHP-5.6

* PHP-5.6.22:
  Fix memory leak in imagescale()
  Update NEWS
  Better fix for bug #72135
  Fixed bug #72227: imagescale out-of-bounds read
  Fix bug #72241: get_icu_value_internal out-of-bounds read
  Fix bug #72135 - don't create strings with lengths outside int range
  prepare for 5.6.22RC1
  Add check for string overflow to all string add operations
  Fix bug #72114 - int/size_t confusion in fread
  Updated NEWS
  Fixed bug #71331 - Uninitialized pointer in phar_make_dirstream()

Conflicts:
configure.in
main/php_version.h

8 years agoMerge branch 'PHP-5.5' into PHP-5.6.22
Stanislav Malyshev [Tue, 24 May 2016 23:35:12 +0000 (16:35 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6.22

* PHP-5.5:
  Fix memory leak in imagescale()
  Update NEWS
  Better fix for bug #72135
  Fixed bug #72227: imagescale out-of-bounds read
  Fix bug #72241: get_icu_value_internal out-of-bounds read
  Fix bug #72135 - don't create strings with lengths outside int range
  Add check for string overflow to all string add operations
  Fix bug #72114 - int/size_t confusion in fread
  Updated NEWS
  Fixed bug #71331 - Uninitialized pointer in phar_make_dirstream()

Conflicts:
Zend/zend_operators.c
ext/phar/dirstream.c
ext/phar/tests/bug71331.phpt

8 years agoFix memory leak in imagescale()
Stanislav Malyshev [Tue, 24 May 2016 23:12:01 +0000 (16:12 -0700)]
Fix memory leak in imagescale()

8 years agoUpdate NEWS
Stanislav Malyshev [Tue, 24 May 2016 22:56:02 +0000 (15:56 -0700)]
Update NEWS

8 years agoBetter fix for bug #72135
Stanislav Malyshev [Tue, 24 May 2016 22:52:15 +0000 (15:52 -0700)]
Better fix for bug #72135

8 years agoFixed bug #72213 (Finally leaks on nested exceptions).
Dmitry Stogov [Tue, 24 May 2016 22:25:12 +0000 (01:25 +0300)]
Fixed bug #72213 (Finally leaks on nested exceptions).

Squashed commit of the following:

commit 8461b0407fc9eab0869d43b84e6a92ba2fe06997
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed May 25 00:34:42 2016 +0300

    Rmoved zend_try_catch_element.parent and walk through op_array.try_catch_array backward from the current try_cacth_offset.

commit 0c71e249649bed178bfbef30bb3e63c57f07af05
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed May 25 00:04:53 2016 +0300

    Move SAVE_OPLINE() to its original place

commit 111432a4df738fcd65878a42f23194dc3c4983a2
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed May 25 00:01:10 2016 +0300

    Separate the common part of ZEND_HANDLE_EXCEPTION and FAST_RET into zend_dispatch_try_catch_finally_helper.

commit 4f21c06c2ec17819a708bc037f318784554a6ecd
Author: Nikita Popov <nikic@php.net>
Date:   Tue May 24 14:55:27 2016 +0200

    Improve finally fix

commit da5c7274997b8308e682b5bf280124e3a1483086
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue May 24 10:36:08 2016 +0300

    Fixed Zend/tests/try/bug70228_3.phpt and Zend/tests/try/bug70228_4.phpt

commit cfcedf2fb4f4fc1f7de9f7d53a3037fed7795f19
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue May 24 02:59:27 2016 +0300

    Added test

commit 4c6aa93d43da941eb4fda15b48154bfb104bdc04
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Tue May 24 00:38:20 2016 +0300

    Added tests

commit 8a8f4704b0eca2e460d42c1f253a363b0db8e510
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon May 23 23:27:34 2016 +0300

    Fixed bug #72213 (Finally leaks on nested exceptions)

8 years agoForbid dynamic calls to scope introspection functions
Nikita Popov [Sun, 24 Apr 2016 21:49:52 +0000 (23:49 +0200)]
Forbid dynamic calls to scope introspection functions

Per RFC:
https://wiki.php.net/rfc/forbid_dynamic_scope_introspection

8 years agoAllow empty property names
Nikita Popov [Wed, 23 Mar 2016 17:57:59 +0000 (18:57 +0100)]
Allow empty property names

Conflicts:
Zend/zend_compile.c

8 years agoEnsure no entry predecessors for SSA construction
Nikita Popov [Wed, 18 May 2016 21:46:20 +0000 (23:46 +0200)]
Ensure no entry predecessors for SSA construction

8 years agoReplace BB end with BB len
Nikita Popov [Wed, 18 May 2016 16:03:05 +0000 (18:03 +0200)]
Replace BB end with BB len

And support empty blocks everywhere.

8 years agoTest for bug #72221, segfault in zend_memnstr_ex
Lauri Kenttä [Tue, 24 May 2016 14:33:44 +0000 (17:33 +0300)]
Test for bug #72221, segfault in zend_memnstr_ex

8 years agoFixed white-spaces
Dmitry Stogov [Tue, 24 May 2016 09:37:20 +0000 (12:37 +0300)]
Fixed white-spaces

8 years agoFixed bug #72227: imagescale out-of-bounds read
Stanislav Malyshev [Mon, 23 May 2016 07:28:02 +0000 (00:28 -0700)]
Fixed bug #72227: imagescale out-of-bounds read

Ported from https://github.com/libgd/libgd/commit/4f65a3e4eedaffa1efcf9ee1eb08f0b504fbc31a

8 years agoMerge branch 'nullable_types' of github.com:morrisonlevi/php-src
Dmitry Stogov [Mon, 23 May 2016 07:14:26 +0000 (10:14 +0300)]
Merge branch 'nullable_types' of github.com:morrisonlevi/php-src

* 'nullable_types' of github.com:morrisonlevi/php-src:
  Fix bug #71428
  Add nullable parameter types
  Implement nullable return types.

8 years agoFix bug #72241: get_icu_value_internal out-of-bounds read
Stanislav Malyshev [Mon, 23 May 2016 00:49:02 +0000 (17:49 -0700)]
Fix bug #72241: get_icu_value_internal out-of-bounds read

8 years agoImprove previous fix
Nikita Popov [Sat, 21 May 2016 22:05:06 +0000 (00:05 +0200)]
Improve previous fix

Do not mark loop var free blocks as reachable after all -- as we
can't construct SSA for unreachable blocks, this would cause
issues down the line.

Instead add an extra UNREACHABLE_FREE flag and retain only the
FREE instruction during NOP removal. (If we retain all
instructions in the BB we might leave a jump instruction that goes
into the nowhere.)

8 years agoFix reachability detection if live ranges aren't split
Nikita Popov [Sat, 21 May 2016 18:17:09 +0000 (20:17 +0200)]
Fix reachability detection if live ranges aren't split

Even if we don't split, we still want to keep the same logic for
reachibility detection.

8 years agoFix bug #72221 (segfault, past-the-end access)
Lauri Kenttä [Sat, 21 May 2016 15:46:00 +0000 (18:46 +0300)]
Fix bug #72221 (segfault, past-the-end access)

8 years agoAllow for [] = $array; (alias for list())
Bob Weinand [Mon, 4 Apr 2016 22:34:42 +0000 (00:34 +0200)]
Allow for [] = $array; (alias for list())

8 years agoAdded and fixed tests related to "finally" handling
Dmitry Stogov [Thu, 19 May 2016 10:22:46 +0000 (13:22 +0300)]
Added and fixed tests related to "finally" handling

8 years agoAdded specialized handler for ZEND_FETCH_DIM_R opcode with only numeric indexes.
Dmitry Stogov [Wed, 18 May 2016 12:06:49 +0000 (15:06 +0300)]
Added specialized handler for ZEND_FETCH_DIM_R opcode with only numeric indexes.

8 years agoMerge branch 'PHP-7.0'
Derick Rethans [Wed, 18 May 2016 11:19:58 +0000 (12:19 +0100)]
Merge branch 'PHP-7.0'

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Derick Rethans [Wed, 18 May 2016 11:19:49 +0000 (12:19 +0100)]
Merge branch 'PHP-5.6' into PHP-7.0

8 years agoFixed bug #63740 (strtotime seems to use both sunday and monday as start of week)
Derick Rethans [Wed, 18 May 2016 11:19:11 +0000 (12:19 +0100)]
Fixed bug #63740 (strtotime seems to use both sunday and monday as start of week)

8 years agoFixed typo
Dmitry Stogov [Wed, 18 May 2016 08:29:02 +0000 (11:29 +0300)]
Fixed typo

8 years agoMove builtin_ctzl portability into zend_bitset.h
Nikita Popov [Tue, 17 May 2016 20:17:22 +0000 (22:17 +0200)]
Move builtin_ctzl portability into zend_bitset.h

Use this function in both zend_mm_bitset_find_one and
zend_bitset_first.

Maybe zend_bitset.h is not quite the right place for it, but I did
not want to include this in a globally included header like
zend_long.h or zend_portability.h.

8 years agoMerge branch 'PHP-7.0'
Dmitry Stogov [Tue, 17 May 2016 14:17:09 +0000 (17:17 +0300)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Use PHP_VERSION as OPcahce version