]> granicus.if.org Git - php/log
php
9 years agoFixed bug #70108 sometimes empty $_SERVER['QUERY_STRING']
Anatol Belski [Fri, 31 Jul 2015 11:22:24 +0000 (13:22 +0200)]
Fixed bug #70108 sometimes empty $_SERVER['QUERY_STRING']

auto_globals_jit is the reason every thread needs a copy. Otherwise
every thread will operate on the master values which can't end good.

9 years agoRemove debug instructions (...)
Bob Weinand [Fri, 31 Jul 2015 11:23:30 +0000 (13:23 +0200)]
Remove debug instructions (...)

9 years agopear 1.10.0dev2
Ferenc Kovacs [Fri, 31 Jul 2015 08:19:51 +0000 (10:19 +0200)]
pear 1.10.0dev2

9 years agoImplicit return should be always on the last line of a function
Bob Weinand [Fri, 31 Jul 2015 00:44:42 +0000 (02:44 +0200)]
Implicit return should be always on the last line of a function

9 years agoDo not mark automatic return 1; as executable
Bob Weinand [Fri, 31 Jul 2015 00:26:28 +0000 (02:26 +0200)]
Do not mark automatic return 1; as executable

9 years agoFix oplog trace with already freed closures
Bob Weinand [Fri, 31 Jul 2015 00:05:49 +0000 (02:05 +0200)]
Fix oplog trace with already freed closures

9 years agoremoved another E_STRICT(with the approval of Derick), 3 more to go
Ferenc Kovacs [Thu, 30 Jul 2015 11:53:44 +0000 (13:53 +0200)]
removed another E_STRICT(with the approval of Derick), 3 more to go

9 years agoMore PHP7 compat (Rajendra/Senthil)
Christopher Jones [Thu, 30 Jul 2015 10:25:40 +0000 (20:25 +1000)]
More PHP7 compat (Rajendra/Senthil)

9 years agoupdate UPGRADING
Xinchen Hui [Thu, 30 Jul 2015 07:23:15 +0000 (15:23 +0800)]
update UPGRADING

9 years agoMerge branch 'master' of git.php.net:php-src
Xinchen Hui [Thu, 30 Jul 2015 07:21:07 +0000 (15:21 +0800)]
Merge branch 'master' of git.php.net:php-src

9 years agoFixed condition
Xinchen Hui [Thu, 30 Jul 2015 07:09:56 +0000 (15:09 +0800)]
Fixed condition

9 years agoadd macro to access globals as whole
Anatol Belski [Thu, 30 Jul 2015 06:31:00 +0000 (08:31 +0200)]
add macro to access globals as whole

9 years agofork test
Anatol Belski [Thu, 30 Jul 2015 05:31:42 +0000 (07:31 +0200)]
fork test

9 years agoFixed bug #70163 (curl_setopt_array() type confusion)
Xinchen Hui [Thu, 30 Jul 2015 05:40:59 +0000 (13:40 +0800)]
Fixed bug #70163 (curl_setopt_array() type confusion)

9 years agoMerge branch 'zval_dump_consistent' of https://github.com/laruence/php-src
Xinchen Hui [Thu, 30 Jul 2015 05:14:38 +0000 (13:14 +0800)]
Merge branch 'zval_dump_consistent' of https://github.com/laruence/php-src

9 years ago"This" is C++ keyword
Xinchen Hui [Thu, 30 Jul 2015 03:30:34 +0000 (11:30 +0800)]
"This" is C++ keyword

9 years agoAdd NEWS entry
Bob Weinand [Wed, 29 Jul 2015 19:00:43 +0000 (21:00 +0200)]
Add NEWS entry

9 years agofix wrong info
Anatol Belski [Wed, 29 Jul 2015 17:30:36 +0000 (19:30 +0200)]
fix wrong info

9 years agoFix bug #70164 (__COMPILER_HALT_OFFSET__ under namespace is not defined)
Bob Weinand [Wed, 29 Jul 2015 17:18:13 +0000 (19:18 +0200)]
Fix bug #70164 (__COMPILER_HALT_OFFSET__ under namespace is not defined)

9 years agoupdated UPGRADING
Christoph M. Becker [Wed, 29 Jul 2015 16:28:18 +0000 (18:28 +0200)]
updated UPGRADING

9 years agoMerge branch 'pull-request/1439'
Christoph M. Becker [Wed, 29 Jul 2015 16:21:46 +0000 (18:21 +0200)]
Merge branch 'pull-request/1439'

* pull-request/1439:
  fixed broken test
  add new error constant PREG_JIT_STACKLIMIT_ERROR

9 years agodocument globals accesor macro and tls specifiers
Anatol Belski [Wed, 29 Jul 2015 15:26:05 +0000 (17:26 +0200)]
document globals accesor macro and tls specifiers

9 years agoadd one more thread storage specifier to allow external link
Anatol Belski [Wed, 29 Jul 2015 14:56:22 +0000 (16:56 +0200)]
add one more thread storage specifier to allow external link

9 years agofix thread safety
Anatol Belski [Wed, 29 Jul 2015 13:12:45 +0000 (15:12 +0200)]
fix thread safety

9 years agofix thread safety and zeroing method
Anatol Belski [Wed, 29 Jul 2015 11:35:26 +0000 (13:35 +0200)]
fix thread safety and zeroing method

9 years agoupdated NEWS
Christoph M. Becker [Wed, 29 Jul 2015 15:04:09 +0000 (17:04 +0200)]
updated NEWS

9 years agoFix #70158: Building with static imap fails
Christoph M. Becker [Wed, 29 Jul 2015 15:00:37 +0000 (17:00 +0200)]
Fix #70158: Building with static imap fails

Static builds of ext/imap have duplicate symbols, and so won't link on Windows.
To get around this issue, we simply disallow static building of the extension.

9 years agoswitch to the unified globals accessor where appropriate
Anatol Belski [Wed, 29 Jul 2015 10:26:23 +0000 (12:26 +0200)]
switch to the unified globals accessor where appropriate

9 years agoFix temporary-LOB leak and add tests (Senthil)
Christopher Jones [Wed, 29 Jul 2015 10:15:43 +0000 (20:15 +1000)]
Fix temporary-LOB leak and add tests (Senthil)

9 years agofirst stone on using the unified globals accessor
Anatol Belski [Wed, 29 Jul 2015 08:35:57 +0000 (10:35 +0200)]
first stone on using the unified globals accessor

9 years agoadd unified globals accessor macro
Anatol Belski [Wed, 29 Jul 2015 07:31:10 +0000 (09:31 +0200)]
add unified globals accessor macro

9 years agofix thread safety
Anatol Belski [Tue, 28 Jul 2015 19:06:10 +0000 (21:06 +0200)]
fix thread safety

9 years agofix thread safety
Anatol Belski [Tue, 28 Jul 2015 16:38:06 +0000 (18:38 +0200)]
fix thread safety

9 years agoMerge branch 'PHP-5.6'
Julien Pauli [Wed, 29 Jul 2015 08:05:19 +0000 (10:05 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Adjust Git-Rules
  5.4.44 next

9 years agoMerge branch 'PHP-5.5' into PHP-5.6
Julien Pauli [Wed, 29 Jul 2015 08:04:33 +0000 (10:04 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Adjust Git-Rules
  5.4.44 next

9 years agoMerge branch 'PHP-5.4' into PHP-5.5
Julien Pauli [Wed, 29 Jul 2015 08:04:08 +0000 (10:04 +0200)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Adjust Git-Rules
  5.4.44 next

Conflicts:
configure.in
main/php_version.h

9 years agoAdjust Git-Rules
Julien Pauli [Wed, 29 Jul 2015 08:02:39 +0000 (10:02 +0200)]
Adjust Git-Rules

9 years agoImprove performance of PowerPC64 fast_long_add_function
Anton Blanchard [Tue, 26 May 2015 13:41:42 +0000 (23:41 +1000)]
Improve performance of PowerPC64 fast_long_add_function

Detecting overflow with the XER is slow, partially because we have to
clear it before use.

PHP already has a fast way of detecting overflow in its fallback
c implementation. Overflow only occurs if the signs of the two
operands are the same and the sign of the result is different.
Furthermore, leaving it in c allows gcc to schedule the instructions
better.

This is 9% faster on a POWER8 running a simple testcase:

<?php
        function testcase($count = 100000000) {
$x = 1;
                for ($i = 0; $i < $count; $i++) {
                        $x = $x + 1;
                        $x = $x + 1;
                        $x = $x + 1;
                        $x = $x + 1;
                        $x = $x + 1;
                }
        }

        testcase();
?>

9 years agoMerge branch 'master' of git.php.net:php-src
Remi Collet [Wed, 29 Jul 2015 07:22:21 +0000 (09:22 +0200)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Fixed bug #69674 (SIGSEGV array.c:953)

9 years agoFixed bug #69674 (SIGSEGV array.c:953)
Xinchen Hui [Wed, 29 Jul 2015 02:46:12 +0000 (10:46 +0800)]
Fixed bug #69674 (SIGSEGV array.c:953)

9 years agoImprove performance of PowerPC64 fast_long_increment_function
Anton Blanchard [Tue, 26 May 2015 13:06:12 +0000 (23:06 +1000)]
Improve performance of PowerPC64 fast_long_increment_function

Detecting overflow with the XER is slow, partially because we have to
clear it before use.

gcc does a better job of detecting overflow of an increment or decrement
than we can with inline assembly. It knows that an increment will only
overflow if it is one less than the overflow value. This means we end
up with a simple compare/branch. Furthermore, leaving it in c allows gcc
to schedule the instructions better.

This is 6% faster on a POWER8 running a simple testcase:

<?php
        function testcase($count = 100000000) {
$x = 1;
                for ($i = 0; $i < $count; $i++) {
                        $x++;
                        $x++;
                        $x++;
                        $x++;
                        $x++;
                }
        }

        testcase();
?>

9 years agoImprove performance of PowerPC64 ZEND_SIGNED_MULTIPLY_LONG
Anton Blanchard [Tue, 26 May 2015 12:42:13 +0000 (22:42 +1000)]
Improve performance of PowerPC64 ZEND_SIGNED_MULTIPLY_LONG

Detecting overflow with the XER is slow, partially because we have to
clear it before use. We can do better by using a trick where we compare
the high 64 bits of the result with the low 64 bits shifted right
63 bits.

This is 7% faster on a POWER8 running a simple testcase:

<?php
        function testcase($count = 100000000) {
                for ($i = 0; $i < $count; $i++) {
                        $x = 1;
                        $x = $x * 2;
                        $x = $x * 2;
                        $x = $x * 2;
                        $x = $x * 2;
                }
        }

        testcase();
?>

9 years agoMerge branch 'PHP-5.6'
Anatol Belski [Tue, 28 Jul 2015 15:44:14 +0000 (17:44 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  updated NEWS
  Fixed bug #70002 TS issues with temporary dir handling
  update NEWS
  Fixed bug #69900 Too long timeout on pipes

9 years agoMerge branch 'PHP-5.5' into PHP-5.6
Anatol Belski [Tue, 28 Jul 2015 15:42:37 +0000 (17:42 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fixed bug #70002 TS issues with temporary dir handling

9 years agoupdated NEWS
Anatol Belski [Tue, 28 Jul 2015 15:42:25 +0000 (17:42 +0200)]
updated NEWS

9 years agoFixed bug #70002 TS issues with temporary dir handling
Anatol Belski [Tue, 28 Jul 2015 15:41:38 +0000 (17:41 +0200)]
Fixed bug #70002 TS issues with temporary dir handling

9 years agoimprove ZEND_TLS declaration even more and move it to the better place
Anatol Belski [Tue, 28 Jul 2015 14:55:30 +0000 (16:55 +0200)]
improve ZEND_TLS declaration even more and move it to the better place

9 years agouse better name
Anatol Belski [Tue, 28 Jul 2015 13:19:24 +0000 (15:19 +0200)]
use better name

9 years agosimplify declaration
Anatol Belski [Tue, 28 Jul 2015 10:18:22 +0000 (12:18 +0200)]
simplify declaration

9 years agoadd ZEND_THREAD specifier
Anatol Belski [Tue, 28 Jul 2015 10:17:53 +0000 (12:17 +0200)]
add ZEND_THREAD specifier

9 years agoadjust storage class
Anatol Belski [Tue, 28 Jul 2015 09:45:36 +0000 (11:45 +0200)]
adjust storage class

It's more convenient do explicitly disable the external linking. Also
it's an improvement from the build access time perspective.

9 years agoFix for #70159 - Better magic constants substitution
Julien Pauli [Tue, 28 Jul 2015 13:27:58 +0000 (15:27 +0200)]
Fix for #70159 - Better magic constants substitution

9 years agoonline test
Xinchen Hui [Tue, 28 Jul 2015 08:43:12 +0000 (16:43 +0800)]
online test

9 years agoFixed bug #70156 (Segfault in zend_find_alias_name)
Xinchen Hui [Tue, 28 Jul 2015 08:39:58 +0000 (16:39 +0800)]
Fixed bug #70156 (Segfault in zend_find_alias_name)

9 years agoupdate NEWS
Anatol Belski [Tue, 28 Jul 2015 08:29:24 +0000 (10:29 +0200)]
update NEWS

9 years agoFixed bug #69900 Too long timeout on pipes
Anatol Belski [Tue, 28 Jul 2015 08:28:45 +0000 (10:28 +0200)]
Fixed bug #69900 Too long timeout on pipes

9 years agoAlways checks for exception before push call frame
Xinchen Hui [Tue, 28 Jul 2015 08:06:06 +0000 (16:06 +0800)]
Always checks for exception before push call frame

9 years agoPreviously fix is not right
Xinchen Hui [Tue, 28 Jul 2015 06:54:53 +0000 (14:54 +0800)]
Previously fix is not right

9 years agoRevert "Attempt to fix bug35437.phpt fails"
Xinchen Hui [Tue, 28 Jul 2015 06:54:20 +0000 (14:54 +0800)]
Revert "Attempt to fix bug35437.phpt fails"

This reverts commit 16d6dfddef5ac43de3b20ffa7818d5b11f4e6a4b.

9 years agoRevert "re-generate zend_vm_execute.h"
Xinchen Hui [Tue, 28 Jul 2015 06:54:12 +0000 (14:54 +0800)]
Revert "re-generate zend_vm_execute.h"

This reverts commit 4b6d4a12145bf5cbf862b524078596db99cfec06.

9 years agore-generate zend_vm_execute.h
Xinchen Hui [Tue, 28 Jul 2015 03:15:57 +0000 (11:15 +0800)]
re-generate zend_vm_execute.h

9 years agoMerge branch 'master' of git.php.net:php-src
Xinchen Hui [Tue, 28 Jul 2015 03:07:24 +0000 (11:07 +0800)]
Merge branch 'master' of git.php.net:php-src

9 years agoAttempt to fix bug35437.phpt fails
Xinchen Hui [Tue, 28 Jul 2015 03:06:52 +0000 (11:06 +0800)]
Attempt to fix bug35437.phpt fails

9 years agoFix test execution result with opcache
Bob Weinand [Tue, 28 Jul 2015 00:14:15 +0000 (02:14 +0200)]
Fix test execution result with opcache

9 years agouse https for fetching the pear installer
Ferenc Kovacs [Mon, 27 Jul 2015 23:46:38 +0000 (01:46 +0200)]
use https for fetching the pear installer

9 years agoupdated NEWS
Christoph M. Becker [Mon, 27 Jul 2015 23:12:25 +0000 (01:12 +0200)]
updated NEWS

9 years agoFix #36365: scandir duplicates file name at every 65535th file
Christoph M. Becker [Thu, 23 Jul 2015 12:11:28 +0000 (14:11 +0200)]
Fix #36365: scandir duplicates file name at every 65535th file

Due to DIR.offset being declared as short we have an overflow. This patch
changes the field to int.

9 years agoSet CG(zend_lineno) to beginning for final class errors/ops
Bob Weinand [Mon, 27 Jul 2015 22:56:18 +0000 (00:56 +0200)]
Set CG(zend_lineno) to beginning for final class errors/ops

9 years agoAdd support for regenerating phpdbg lexers and scanners on Windows
Christoph M. Becker [Fri, 24 Jul 2015 17:14:07 +0000 (19:14 +0200)]
Add support for regenerating phpdbg lexers and scanners on Windows

9 years agoFix phpdbg stepping on CATCH with exception
Bob Weinand [Mon, 27 Jul 2015 22:10:08 +0000 (00:10 +0200)]
Fix phpdbg stepping on CATCH with exception

9 years agofix memleak
Remi Collet [Mon, 27 Jul 2015 14:56:53 +0000 (16:56 +0200)]
fix memleak

9 years agoFix: A buf == NULL on filehandle will segfault
Bob Weinand [Mon, 27 Jul 2015 14:56:54 +0000 (16:56 +0200)]
Fix: A buf == NULL on filehandle will segfault

9 years agoCleanup and also include the error path into test
Xinchen Hui [Mon, 27 Jul 2015 14:22:13 +0000 (22:22 +0800)]
Cleanup and also include the error path into test

9 years agoFix test
Remi Collet [Mon, 27 Jul 2015 14:14:13 +0000 (16:14 +0200)]
Fix test

Notice: we have duplicated tests
  ext/standard/tests/file/dirname_*
  ext/standard/tests/strings/dirname_*

9 years agoUPGRADING
Remi Collet [Mon, 27 Jul 2015 13:26:31 +0000 (15:26 +0200)]
UPGRADING

9 years agoNEWS
Remi Collet [Mon, 27 Jul 2015 13:24:06 +0000 (15:24 +0200)]
NEWS

9 years agoFix #70112 RFE Allow dirname to go up various times
Remi Collet [Sat, 25 Jul 2015 14:58:36 +0000 (16:58 +0200)]
Fix #70112 RFE Allow dirname to go up various times

9 years agoRemove -Wunused-result warnings
Bob Weinand [Mon, 27 Jul 2015 13:02:01 +0000 (15:02 +0200)]
Remove -Wunused-result warnings

9 years agoHmm, not sure why this is missed while merged
Xinchen Hui [Mon, 27 Jul 2015 03:19:58 +0000 (11:19 +0800)]
Hmm, not sure why this is missed while merged

9 years agoMerge branch 'master' of git.php.net:php-src
Xinchen Hui [Mon, 27 Jul 2015 03:17:23 +0000 (11:17 +0800)]
Merge branch 'master' of git.php.net:php-src

9 years agoFixed bug #70140 (str_ireplace/php_string_tolower - Arbitrary Code Execution)
Xinchen Hui [Mon, 27 Jul 2015 03:17:05 +0000 (11:17 +0800)]
Fixed bug #70140 (str_ireplace/php_string_tolower - Arbitrary Code Execution)

9 years agofixed broken test
Christoph M. Becker [Sun, 26 Jul 2015 20:47:12 +0000 (22:47 +0200)]
fixed broken test

9 years agoadd new error constant PREG_JIT_STACKLIMIT_ERROR
Christoph M. Becker [Sun, 26 Jul 2015 16:33:01 +0000 (18:33 +0200)]
add new error constant PREG_JIT_STACKLIMIT_ERROR

9 years agoFix infinite lexer loop for :\ sequence in phpdbg
Bob Weinand [Sun, 26 Jul 2015 20:57:12 +0000 (22:57 +0200)]
Fix infinite lexer loop for :\ sequence in phpdbg

9 years agoMerge branch 'PHP-5.6'
Ferenc Kovacs [Sun, 26 Jul 2015 20:07:07 +0000 (22:07 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  make the travis irc notification a oneliner

9 years agoMerge branch 'PHP-5.5' into PHP-5.6
Ferenc Kovacs [Sun, 26 Jul 2015 20:06:51 +0000 (22:06 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  make the travis irc notification a oneliner

9 years agomake the travis irc notification a oneliner
Ferenc Kovacs [Sun, 26 Jul 2015 20:06:26 +0000 (22:06 +0200)]
make the travis irc notification a oneliner

9 years agoFix bug #70138 (difference between gcc and clang)
Bob Weinand [Sun, 26 Jul 2015 19:49:11 +0000 (21:49 +0200)]
Fix bug #70138 (difference between gcc and clang)

9 years agoFix leaks from bug #70138
Bob Weinand [Sun, 26 Jul 2015 16:11:45 +0000 (18:11 +0200)]
Fix leaks from bug #70138

9 years agoFix RECV_VARIADIC literal compacting wrt cache slot
Nikita Popov [Sun, 26 Jul 2015 19:22:31 +0000 (21:22 +0200)]
Fix RECV_VARIADIC literal compacting wrt cache slot

9 years agoexclude the platform diff case from the test
Anatol Belski [Sun, 26 Jul 2015 18:31:32 +0000 (20:31 +0200)]
exclude the platform diff case from the test

Say the string is \377\000, basename will use mbrlen() to check whether
it's a start of a multibyte sequence. While on Linux it'll return -1 for
any char in the extended ASCII, on Windows it's returning 1. From what I
see the reason is that Windows doesn't implement UTF-8 in the CRT lib,
it's rather 16-bit Unicode or DBCS. Since extended ASCII is convertable
to Unicode directly - thus the behavior. On Linux however, it's a true
UTF-8 locale and implementation, for it \377\000 is invalid.

Maybe mbrlen needs an independent implementation for Windows supporting
UTF-8. For now I just split out this case so the most of the big basename
test doesn't fail on this one case.

9 years agoadd NULL check
Anatol Belski [Sat, 25 Jul 2015 18:05:58 +0000 (20:05 +0200)]
add NULL check

9 years agoMerge branch 'PHP-5.6'
Christoph M. Becker [Sun, 26 Jul 2015 15:35:23 +0000 (17:35 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  allow to skip slow tests

9 years agoallow to skip slow tests
Christoph M. Becker [Sun, 26 Jul 2015 15:33:09 +0000 (17:33 +0200)]
allow to skip slow tests

9 years agouse the new php7 compatible pear installer
Ferenc Kovacs [Sun, 26 Jul 2015 12:17:32 +0000 (14:17 +0200)]
use the new php7 compatible pear installer

9 years agoFixed Bug #70092 pg_field_type() is too slow
Yasuo Ohgaki [Sat, 25 Jul 2015 20:29:06 +0000 (05:29 +0900)]
Fixed Bug #70092 pg_field_type() is too slow

9 years agoJust always copy the buffer, that makes it much safer
Bob Weinand [Sat, 25 Jul 2015 17:50:31 +0000 (19:50 +0200)]
Just always copy the buffer, that makes it much safer
At least compared to conditionally using the mmap()ped input

9 years agoRemove old unused header file
Bob Weinand [Fri, 24 Jul 2015 23:35:29 +0000 (01:35 +0200)]
Remove old unused header file

9 years agoFix memory leak with opcache
Bob Weinand [Fri, 24 Jul 2015 23:08:57 +0000 (01:08 +0200)]
Fix memory leak with opcache

9 years agoFix op_arrays with opcache
Bob Weinand [Fri, 24 Jul 2015 22:31:05 +0000 (00:31 +0200)]
Fix op_arrays with opcache