]> granicus.if.org Git - php/log
php
8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Mon, 9 May 2016 15:29:56 +0000 (17:29 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Revert "Fixed bug #71820 pg_fetch_object bind parameters before call constructor"
  Revert "Backport patch for bug #71820"

8 years agoRevert "Fixed bug #71820 pg_fetch_object bind parameters before call constructor"
Anatol Belski [Mon, 9 May 2016 15:25:53 +0000 (17:25 +0200)]
Revert "Fixed bug #71820 pg_fetch_object bind parameters before call constructor"

This reverts commit b4eedd128ba9f61be08a50c94afd72837d7cf70b.

This fixed bug #72151, and reverts the fix for bug #71820.
See also bug #50636 and #49521 for the history.

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Mon, 9 May 2016 15:23:40 +0000 (17:23 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Revert "Backport patch for bug #71820"

8 years agoRevert "Backport patch for bug #71820"
Anatol Belski [Mon, 9 May 2016 15:15:40 +0000 (17:15 +0200)]
Revert "Backport patch for bug #71820"

This reverts commit 1b632cfe834bfd87d182566d7d960df7d10ded72.

This fixed bug #72151, and reverts the fix for bug #71820.
See also bug #50636 and #49521 for the history.

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Sun, 8 May 2016 13:13:01 +0000 (15:13 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed bug #64524 Add intl.use_exceptions to php.ini-*

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Sun, 8 May 2016 13:12:20 +0000 (15:12 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  Fixed bug #64524 Add intl.use_exceptions to php.ini-*

8 years agoFixed bug #64524 Add intl.use_exceptions to php.ini-*
Anatol Belski [Sun, 8 May 2016 13:09:50 +0000 (15:09 +0200)]
Fixed bug #64524 Add intl.use_exceptions to php.ini-*

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Sun, 8 May 2016 05:05:05 +0000 (22:05 -0700)]
Merge branch 'PHP-7.0'

8 years agoRemove unnecessary strlen check
Xinchen Hui [Sun, 8 May 2016 05:04:31 +0000 (22:04 -0700)]
Remove unnecessary strlen check

8 years agoFixed test
Xinchen Hui [Sun, 8 May 2016 05:04:20 +0000 (22:04 -0700)]
Fixed test

8 years agoFix include_once in phpdbg
Bob Weinand [Sat, 7 May 2016 12:45:29 +0000 (14:45 +0200)]
Fix include_once in phpdbg

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Sat, 7 May 2016 07:08:35 +0000 (00:08 -0700)]
Merge branch 'PHP-7.0'

8 years agoStrlen cleanup (additions for previous one fix)
Xinchen Hui [Sat, 7 May 2016 07:07:04 +0000 (00:07 -0700)]
Strlen cleanup (additions for previous one fix)

Probably compilers will do similar optimization

8 years agoMerge branch 'patch-1' of https://github.com/Valkyrurr/php-src
Xinchen Hui [Sat, 7 May 2016 06:55:13 +0000 (23:55 -0700)]
Merge branch 'patch-1' of https://github.com/Valkyrurr/php-src

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Sat, 7 May 2016 06:54:48 +0000 (23:54 -0700)]
Merge branch 'PHP-7.0'

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Xinchen Hui [Sat, 7 May 2016 06:52:48 +0000 (23:52 -0700)]
Merge branch 'PHP-5.6' into PHP-7.0

Conflicts:
Zend/zend_strtod.c

8 years agoFixed bug #72172 (zend_hex_strtod should not use strlen)
Xinchen Hui [Sat, 7 May 2016 06:52:06 +0000 (23:52 -0700)]
Fixed bug #72172 (zend_hex_strtod should not use strlen)

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Fri, 6 May 2016 12:25:43 +0000 (20:25 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Revert "Fixed bug #72170 (JsonSerializable may inc apply count without dec it)"

8 years agoRevert "Fixed bug #72170 (JsonSerializable may inc apply count without dec it)"
Xinchen Hui [Fri, 6 May 2016 12:25:24 +0000 (20:25 +0800)]
Revert "Fixed bug #72170 (JsonSerializable may inc apply count without dec it)"

This reverts commit 459a7cc209da130256d66c1f896199540f4dadbc.

8 years agoMerge branch 'master' of git.php.net:/php-src
Xinchen Hui [Fri, 6 May 2016 10:48:28 +0000 (18:48 +0800)]
Merge branch 'master' of git.php.net:/php-src

* 'master' of git.php.net:/php-src:
  Add $http_response_header tests

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Fri, 6 May 2016 10:39:18 +0000 (18:39 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed bug #72170 (JsonSerializable may inc apply count without dec it)

8 years agoFixed bug #72170 (JsonSerializable may inc apply count without dec it)
Xinchen Hui [Fri, 6 May 2016 10:38:26 +0000 (18:38 +0800)]
Fixed bug #72170 (JsonSerializable may inc apply count without dec it)

I don't want use zend_try here, but seems I have no choice :<

8 years agoAdd $http_response_header tests
Nikita Popov [Fri, 6 May 2016 10:36:07 +0000 (12:36 +0200)]
Add $http_response_header tests

Looks like we didn't have a single test for this functionality :/

8 years agoFixed possible crash
Dmitry Stogov [Fri, 6 May 2016 09:36:21 +0000 (12:36 +0300)]
Fixed possible crash

8 years agoReimplemented Bob's commit bac6fdb0c52c924e726c5a78de8858bf27b6586b without insignifi...
Dmitry Stogov [Fri, 6 May 2016 07:09:04 +0000 (10:09 +0300)]
Reimplemented Bob's commit bac6fdb0c52c924e726c5a78de8858bf27b6586b without insignificant renaming and white-space changes

8 years agoFixed typo
Dmitry Stogov [Fri, 6 May 2016 06:48:58 +0000 (09:48 +0300)]
Fixed typo

8 years agoRevert "Refactor zval cleanup into single function"
Dmitry Stogov [Fri, 6 May 2016 06:23:37 +0000 (09:23 +0300)]
Revert "Refactor zval cleanup into single function"

This reverts commit bac6fdb0c52c924e726c5a78de8858bf27b6586b.

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Fri, 6 May 2016 07:41:44 +0000 (09:41 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  update NEWS
  reorder entry alphabetically

8 years agoupdate NEWS
Anatol Belski [Fri, 6 May 2016 07:41:21 +0000 (09:41 +0200)]
update NEWS

8 years agoreorder entry alphabetically
Anatol Belski [Fri, 6 May 2016 07:39:02 +0000 (09:39 +0200)]
reorder entry alphabetically

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Fri, 6 May 2016 07:33:22 +0000 (09:33 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Re-fix #72165
  Revert "Fixed bug #72165 Null pointer dereference - openssl_csr_new"

8 years agoRe-fix #72165
Anatol Belski [Fri, 6 May 2016 07:30:41 +0000 (09:30 +0200)]
Re-fix #72165

Reverted previous wrong patch, throw warning for numeric keys.
Numeric field names are not supported, see "distinguished name"
section here https://www.openssl.org/docs/manmaster/apps/req.html

8 years agoRevert "Fixed bug #72165 Null pointer dereference - openssl_csr_new"
Anatol Belski [Fri, 6 May 2016 07:19:04 +0000 (09:19 +0200)]
Revert "Fixed bug #72165 Null pointer dereference - openssl_csr_new"

This reverts commit 7277c85765d1053c8cd1d1093902df541b3d101a.

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Fri, 6 May 2016 07:02:14 +0000 (09:02 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed bug #72165 Null pointer dereference - openssl_csr_new

8 years agoFixed bug #72165 Null pointer dereference - openssl_csr_new
Anatol Belski [Fri, 6 May 2016 07:00:58 +0000 (09:00 +0200)]
Fixed bug #72165 Null pointer dereference - openssl_csr_new

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Fri, 6 May 2016 02:53:25 +0000 (10:53 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed test
  Revert "Fix bug #72162 (again)"

8 years agoFixed test
Xinchen Hui [Fri, 6 May 2016 02:51:38 +0000 (10:51 +0800)]
Fixed test

8 years agoRevert "Fix bug #72162 (again)"
Xinchen Hui [Fri, 6 May 2016 02:45:44 +0000 (10:45 +0800)]
Revert "Fix bug #72162 (again)"

The problem is because we release p->value too early

and later you try to convert an object to string, which is a fatal error

then leave p->value double free, change to expect long is a BC break

This reverts commit 8e5b38100411d3b8fa4486c7c41dec7dedb4b474.

8 years agoRefactor zval cleanup into single function
Bob Weinand [Thu, 5 May 2016 21:31:57 +0000 (23:31 +0200)]
Refactor zval cleanup into single function

Also use zval_ptr_dtor_nogc() everywhere in Zend in favor of zval_dtor()

8 years agoMerge branch 'PHP-7.0'
Nikita Popov [Thu, 5 May 2016 15:31:25 +0000 (17:31 +0200)]
Merge branch 'PHP-7.0'

Conflicts:
Zend/zend_builtin_functions.c

8 years agoFix bug #72162 (again)
Nikita Popov [Thu, 5 May 2016 15:28:52 +0000 (17:28 +0200)]
Fix bug #72162 (again)

Not sure what the previous fix was supposed to do. The issue was
that error_reporting() simply assumes that the value must either
be an integer or a string.

Fixed by using zpp properly.

8 years agoMicro-optimization
Dmitry Stogov [Thu, 5 May 2016 13:19:59 +0000 (16:19 +0300)]
Micro-optimization

8 years agoUpdate comments consistently (#var0 -> #v)
Dmitry Stogov [Thu, 5 May 2016 11:41:34 +0000 (14:41 +0300)]
Update comments consistently (#var0 -> #v)

8 years agoRefactor DFA pass for better readability
Dmitry Stogov [Thu, 5 May 2016 11:37:41 +0000 (14:37 +0300)]
Refactor DFA pass for better readability

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Thu, 5 May 2016 09:27:58 +0000 (17:27 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed bug #72164 (Null Pointer Dereference - mb_ereg_replace)

8 years agoFixed bug #72164 (Null Pointer Dereference - mb_ereg_replace)
Xinchen Hui [Thu, 5 May 2016 09:27:34 +0000 (17:27 +0800)]
Fixed bug #72164 (Null Pointer Dereference - mb_ereg_replace)

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Thu, 5 May 2016 07:18:24 +0000 (15:18 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed bug #72154 (pcntl_wait/pcntl_waitpid array internal structure overwrite)

8 years agoFixed bug #72154 (pcntl_wait/pcntl_waitpid array internal structure overwrite)
Xinchen Hui [Thu, 5 May 2016 07:18:17 +0000 (15:18 +0800)]
Fixed bug #72154 (pcntl_wait/pcntl_waitpid array internal structure overwrite)

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Thu, 5 May 2016 03:12:24 +0000 (11:12 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed bug #72157 (use-after-free caused by dba_open)

8 years agoFixed bug #72157 (use-after-free caused by dba_open)
Xinchen Hui [Thu, 5 May 2016 03:12:17 +0000 (11:12 +0800)]
Fixed bug #72157 (use-after-free caused by dba_open)

8 years agoMerge branch 'PHP-7.0'
Xinchen Hui [Thu, 5 May 2016 03:02:34 +0000 (11:02 +0800)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  Fixed bug #72162 (use-after-free - error_reporting)

8 years agoFixed bug #72162 (use-after-free - error_reporting)
Xinchen Hui [Thu, 5 May 2016 03:02:21 +0000 (11:02 +0800)]
Fixed bug #72162 (use-after-free - error_reporting)

8 years agoMerge branch 'PHP-7.0'
Nikita Popov [Wed, 4 May 2016 22:01:56 +0000 (00:01 +0200)]
Merge branch 'PHP-7.0'

Conflicts:
ext/opcache/Optimizer/block_pass.c

8 years agoFix JMPZ, JMPZNZ_EX chain optimization
Nikita Popov [Wed, 4 May 2016 21:52:42 +0000 (23:52 +0200)]
Fix JMPZ, JMPZNZ_EX chain optimization

The result_type was not copied, resulting in a corrupted JMPZ_EX.
Fix can be verified by inspecting the opcodes of the following
function (it should not contain any _EX opcodes):

function test() {
    if ($a && $b) {
        echo "a";
    }

    if ($b || $c || $d) {
        echo "b";
    }
}

Conflicts:
ext/opcache/Optimizer/block_pass.c

8 years agoFixed type inference rules.
Dmitry Stogov [Wed, 4 May 2016 20:59:17 +0000 (23:59 +0300)]
Fixed type inference rules.

8 years agoFix bug #71897
Andrea Faulds [Fri, 25 Mar 2016 11:02:08 +0000 (11:02 +0000)]
Fix bug #71897

8 years agoMerge branch 'PHP-7.0'
Nikita Popov [Wed, 4 May 2016 16:43:55 +0000 (18:43 +0200)]
Merge branch 'PHP-7.0'

Conflicts:
Zend/zend_compile.c

8 years agoFix bug #72159
Nikita Popov [Wed, 4 May 2016 16:42:16 +0000 (18:42 +0200)]
Fix bug #72159

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Wed, 4 May 2016 16:15:18 +0000 (18:15 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix NEWS, patch for #71428 was reverted

8 years agofix NEWS, patch for #71428 was reverted
Anatol Belski [Wed, 4 May 2016 16:14:11 +0000 (18:14 +0200)]
fix NEWS, patch for #71428 was reverted

8 years agoMerge branch 'master' of https://github.com/php/php-src
Joe Watkins [Wed, 4 May 2016 16:05:05 +0000 (17:05 +0100)]
Merge branch 'master' of https://github.com/php/php-src

8 years agoMerge branch 'PHP-7.0'
Joe Watkins [Wed, 4 May 2016 16:04:49 +0000 (17:04 +0100)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  correct wording

8 years agocorrect wording
Joe Watkins [Wed, 4 May 2016 16:04:38 +0000 (17:04 +0100)]
correct wording

8 years agoInlined fast path
Dmitry Stogov [Wed, 4 May 2016 14:33:35 +0000 (17:33 +0300)]
Inlined fast path

8 years agoMerge branch 'PHP-7.0'
Joe Watkins [Wed, 4 May 2016 09:54:29 +0000 (10:54 +0100)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  add compiler option to disable builtins (special case function calls)

8 years agoadd compiler option to disable builtins (special case function calls)
Joe Watkins [Wed, 4 May 2016 09:53:59 +0000 (10:53 +0100)]
add compiler option to disable builtins (special case function calls)

8 years agochange fcall and statement handlers to accept frame
Joe Watkins [Wed, 4 May 2016 08:25:59 +0000 (09:25 +0100)]
change fcall and statement handlers to accept frame

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Tue, 3 May 2016 17:11:15 +0000 (19:11 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  add test fo rbug 71805

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Tue, 3 May 2016 17:10:40 +0000 (19:10 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  add test fo rbug 71805

8 years agoadd test fo rbug 71805
Anatol Belski [Tue, 3 May 2016 17:09:11 +0000 (19:09 +0200)]
add test fo rbug 71805

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

* PHP-7.0:
  update libs versions
  upate libs versions

8 years agoupdate libs versions
Anatol Belski [Tue, 3 May 2016 16:27:21 +0000 (18:27 +0200)]
update libs versions

8 years agoMerge branch 'PHP-5.6' into PHP-7.0
Anatol Belski [Tue, 3 May 2016 16:27:03 +0000 (18:27 +0200)]
Merge branch 'PHP-5.6' into PHP-7.0

* PHP-5.6:
  upate libs versions

8 years agoupate libs versions
Anatol Belski [Tue, 3 May 2016 16:24:35 +0000 (18:24 +0200)]
upate libs versions

8 years agoMerge branch 'PHP-7.0'
Nikita Popov [Tue, 3 May 2016 16:15:29 +0000 (18:15 +0200)]
Merge branch 'PHP-7.0'

8 years agoFix leaks in QM_ASSIGN, JMP_SET and COALESCE
Nikita Popov [Tue, 3 May 2016 16:12:56 +0000 (18:12 +0200)]
Fix leaks in QM_ASSIGN, JMP_SET and COALESCE

The QM_ASSIGN code was rewritten to use the standard pattern for
handling CVs and VARs.

8 years agoFix potential double free with phpdbg
Bob Weinand [Tue, 3 May 2016 11:36:21 +0000 (13:36 +0200)]
Fix potential double free with phpdbg

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

* PHP-7.0:
  Mark fcc as initialized for object calls

8 years agoMark fcc as initialized for object calls
Bob Weinand [Tue, 3 May 2016 00:07:06 +0000 (02:07 +0200)]
Mark fcc as initialized for object calls

This results in 1% speedup (cycle count) on some real world applications

8 years agoMerge branch 'master' of https://github.com/php/php-src
Joe Watkins [Mon, 2 May 2016 21:17:16 +0000 (22:17 +0100)]
Merge branch 'master' of https://github.com/php/php-src

8 years agohide implementation details in tests
Joe Watkins [Mon, 2 May 2016 21:16:56 +0000 (22:16 +0100)]
hide implementation details in tests

8 years agoMerge branch 'PHP-7.0'
Nikita Popov [Mon, 2 May 2016 18:02:44 +0000 (20:02 +0200)]
Merge branch 'PHP-7.0'

Conflicts:
Zend/zend_constants.c

8 years agoFix leak in zend_get_constant_ex
Nikita Popov [Mon, 2 May 2016 17:58:56 +0000 (19:58 +0200)]
Fix leak in zend_get_constant_ex

8 years agoimprove test coverage of multicatch
Joe Watkins [Mon, 2 May 2016 17:48:50 +0000 (18:48 +0100)]
improve test coverage of multicatch

8 years agoMerge remote-tracking branch 'origin/PHP-7.0'
Bob Weinand [Mon, 2 May 2016 16:22:35 +0000 (18:22 +0200)]
Merge remote-tracking branch 'origin/PHP-7.0'

8 years agoFix use after free on AST expressions in constant declarations
Bob Weinand [Mon, 2 May 2016 16:22:15 +0000 (18:22 +0200)]
Fix use after free on AST expressions in constant declarations

8 years agoAdded NEWS entry for socket_export_stream()
Bob Weinand [Mon, 2 May 2016 15:11:26 +0000 (17:11 +0200)]
Added NEWS entry for socket_export_stream()

Closes pull request https://github.com/php/php-src/pull/762

8 years agoImplement socket_export_stream()
Chris Wright [Wed, 6 Aug 2014 15:22:56 +0000 (16:22 +0100)]
Implement socket_export_stream()

8 years agoMerge branch 'PHP-7.0'
Nikita Popov [Mon, 2 May 2016 09:58:31 +0000 (11:58 +0200)]
Merge branch 'PHP-7.0'

8 years agoDrop dup declare with inconsistent linkage
Nikita Popov [Mon, 2 May 2016 09:56:28 +0000 (11:56 +0200)]
Drop dup declare with inconsistent linkage

This is already declared in zend_stream.h as ZEND_API.

8 years agoFix compile warning in ast.c
Nikita Popov [Mon, 2 May 2016 09:55:49 +0000 (11:55 +0200)]
Fix compile warning in ast.c

8 years agoAdd missing update_constants in ReflectionClassConstant
Nikita Popov [Mon, 2 May 2016 09:42:06 +0000 (11:42 +0200)]
Add missing update_constants in ReflectionClassConstant

Also fix indentation of __toString().

8 years agoEnsure an ORDER BY gets the expected row order
Christopher Jones [Mon, 2 May 2016 06:08:48 +0000 (16:08 +1000)]
Ensure an ORDER BY gets the expected row order

8 years agoAdd NEWS entry for rfc:multiple-catch
Pierrick Charron [Sun, 1 May 2016 22:56:11 +0000 (18:56 -0400)]
Add NEWS entry for rfc:multiple-catch

8 years agoAllow catching multiple exception types in a single catch statement
Pierrick Charron [Sun, 1 May 2016 22:47:08 +0000 (18:47 -0400)]
Allow catching multiple exception types in a single catch statement

This commit add the possibility to catch multiple exception types in
a single catch statement to avoid code duplication.

try {
   // Some code...
} catch (ExceptionType1 | ExceptionType2 $e) {
   // Code to handle the exception
} catch (\Exception $e) {
   // ...
}

8 years agoMerge branch 'PHP-7.0'
Anatol Belski [Sun, 1 May 2016 17:27:13 +0000 (19:27 +0200)]
Merge branch 'PHP-7.0'

* PHP-7.0:
  fix test if unlink fails occasionally
  fix dir separator in test

8 years agofix test if unlink fails occasionally
Anatol Belski [Sun, 1 May 2016 17:25:39 +0000 (19:25 +0200)]
fix test if unlink fails occasionally

8 years agofix dir separator in test
Anatol Belski [Sun, 1 May 2016 17:05:02 +0000 (19:05 +0200)]
fix dir separator in test

8 years agoMerge branch 'master' of git.php.net:php-src
Anatol Belski [Sun, 1 May 2016 11:23:57 +0000 (13:23 +0200)]
Merge branch 'master' of git.php.net:php-src

8 years agoMerge branch 'PHP-7.0' of git.php.net:php-src into PHP-7.0
Anatol Belski [Sun, 1 May 2016 11:23:35 +0000 (13:23 +0200)]
Merge branch 'PHP-7.0' of git.php.net:php-src into PHP-7.0