]> granicus.if.org Git - php/log
php
10 years agoAdd "SEARCH" as supported HTTP verb.
Mats Lindh [Thu, 16 Apr 2015 11:36:01 +0000 (13:36 +0200)]
Add "SEARCH" as supported HTTP verb.

The "SEARCH" HTTP request method is described in RFC5323 as part of
WebDAV, and allows a client to initiate a server side search.

10 years agoUpdated UPGRADING
Julien Pauli [Tue, 12 May 2015 09:20:12 +0000 (11:20 +0200)]
Updated UPGRADING

10 years agoFixed tests
Julien Pauli [Tue, 12 May 2015 09:18:35 +0000 (11:18 +0200)]
Fixed tests

10 years agoBan rebinding closures to different internal classes
Stanislav Malyshev [Tue, 28 Apr 2015 04:43:43 +0000 (21:43 -0700)]
Ban rebinding closures to different internal classes

10 years agoUpdated UPGRADING
Julien Pauli [Tue, 12 May 2015 08:47:02 +0000 (10:47 +0200)]
Updated UPGRADING

10 years agoprohibit empty cookie names for setcookie()
Christoph M. Becker [Fri, 1 May 2015 22:10:28 +0000 (00:10 +0200)]
prohibit empty cookie names for setcookie()

10 years agoMerge branch 'fpm-trace' of https://github.com/laruence/php-src
Xinchen Hui [Tue, 12 May 2015 08:38:40 +0000 (16:38 +0800)]
Merge branch 'fpm-trace' of https://github.com/laruence/php-src

10 years agoUse explicit type here
Xinchen Hui [Tue, 12 May 2015 08:35:57 +0000 (16:35 +0800)]
Use explicit type here

10 years agoImplements extended error messages
Andreas Heigl [Tue, 5 May 2015 19:30:29 +0000 (21:30 +0200)]
Implements extended error messages

This commit introduces a new constant that can be used to retrieve more
detailed error messages.

This fixes #47222

The new constant LDAP_OPT_DIAGNOSTIC_MESSAGE is defined in PHP when the
underlying library provides (and understands) it. This is the case in
the current OpenLDAP-implementation.

Tanks to Johnny Willer who provided the solution at http://stackoverflow.com/questions/28765077/get-number-of-ad-errors-with-ldap-and-php-ldap-function-return-unprecise-error/28816473#28816473

10 years agoFix typo in INSTALL
Loïck Piera [Thu, 7 May 2015 14:59:08 +0000 (16:59 +0200)]
Fix typo in INSTALL

10 years agoRemove MSIE 5-specific Cache-Control fields.
Josef Šimánek [Sun, 12 Apr 2015 20:35:57 +0000 (22:35 +0200)]
Remove MSIE 5-specific Cache-Control fields.

reverts 04daa55

10 years agoImplemented fpm_trace for PHP7
Xinchen Hui [Mon, 11 May 2015 03:22:38 +0000 (11:22 +0800)]
Implemented fpm_trace for PHP7

10 years agocatch more places for libxml headers search
Anatol Belski [Sun, 10 May 2015 19:56:41 +0000 (21:56 +0200)]
catch more places for libxml headers search

10 years agoimprove searchability for libxml2 headers
Anatol Belski [Sun, 10 May 2015 19:28:20 +0000 (21:28 +0200)]
improve searchability for libxml2 headers

and bring the configs inline with the current libxml2 build

10 years agofix snprintf redefinition in libxmlrpc under vc14
Anatol Belski [Sun, 10 May 2015 19:27:20 +0000 (21:27 +0200)]
fix snprintf redefinition in libxmlrpc under vc14

10 years agofix timezone usage in soap for vc14
Anatol Belski [Sun, 10 May 2015 19:16:56 +0000 (21:16 +0200)]
fix timezone usage in soap for vc14

10 years agoTidy up and regenerate json parser with latest bison version
Jakub Zelenka [Sun, 10 May 2015 17:08:16 +0000 (18:08 +0100)]
Tidy up and regenerate json parser with latest bison version

10 years agofix _timezone usage for vc14
Anatol Belski [Sat, 9 May 2015 20:57:56 +0000 (22:57 +0200)]
fix _timezone usage for vc14

10 years agorandom_int: Fix power of two check.
Lauri Kenttä [Sun, 10 May 2015 10:40:29 +0000 (13:40 +0300)]
random_int: Fix power of two check.

(x & ~x) is always 0.
((x & (~x + 1)) != x) works.
((x & (x - 1)) != 0) works too.

10 years agoMerge branch 'PHP-5.6'
Stanislav Malyshev [Sun, 10 May 2015 02:00:40 +0000 (19:00 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix #48147 - implement manual handling of  //IGNORE for broken libc

Conflicts:
ext/iconv/iconv.c

10 years agoMerge branch 'fix48147'
Stanislav Malyshev [Sun, 10 May 2015 01:59:10 +0000 (18:59 -0700)]
Merge branch 'fix48147'

* fix48147:
  Fix #48147 - implement manual handling of  //IGNORE for broken libc

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Stanislav Malyshev [Sun, 10 May 2015 01:56:25 +0000 (18:56 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fix #48147 - implement manual handling of  //IGNORE for broken libc

10 years agoFix #48147 - implement manual handling of //IGNORE for broken libc
Stanislav Malyshev [Fri, 8 May 2015 07:03:54 +0000 (00:03 -0700)]
Fix #48147 - implement manual handling of  //IGNORE for broken libc

Conflicts:
ext/iconv/iconv.c

10 years agoAdd tests for CSPRNG, fix C99 comments
SammyK [Sat, 9 May 2015 19:45:22 +0000 (21:45 +0200)]
Add tests for CSPRNG, fix C99 comments

Also replace one return; with RETURN_FALSE; for consistency.

10 years agoImprove CSPRNG implementation
Leigh [Sat, 21 Feb 2015 15:30:43 +0000 (15:30 +0000)]
Improve CSPRNG implementation

10 years agoInitial implementation for CSPRNG API
SammyK [Fri, 13 Feb 2015 02:53:55 +0000 (20:53 -0600)]
Initial implementation for CSPRNG API

10 years agoFix #48147 - implement manual handling of //IGNORE for broken libc
Stanislav Malyshev [Fri, 8 May 2015 07:03:54 +0000 (00:03 -0700)]
Fix #48147 - implement manual handling of  //IGNORE for broken libc

10 years agoFix static closure error in call_user_func opcode
Nikita Popov [Fri, 8 May 2015 13:05:59 +0000 (15:05 +0200)]
Fix static closure error in call_user_func opcode

I'm assuming this is the only error that is_callable() can generate
with retval=1.

This problem manifested after making closures in static methods
not implicitly static, but would also occur when binding any non-static
closure to a scope without a $this.

10 years agoSorry, missed here should be checked
Xinchen Hui [Fri, 8 May 2015 06:02:50 +0000 (14:02 +0800)]
Sorry, missed here should be checked

10 years agoRemove not necessary checks
Xinchen Hui [Fri, 8 May 2015 05:54:28 +0000 (13:54 +0800)]
Remove not necessary checks

10 years agoReorder fields of curl
Xinchen Hui [Fri, 8 May 2015 05:32:22 +0000 (13:32 +0800)]
Reorder fields of curl

10 years agorevert previously change to this
Xinchen Hui [Fri, 8 May 2015 02:33:19 +0000 (10:33 +0800)]
revert previously change to this

10 years agoImprove ZBLOCK handling with zlib < 1.2.4
Daniel Lowrey [Thu, 7 May 2015 14:26:56 +0000 (10:26 -0400)]
Improve ZBLOCK handling with zlib < 1.2.4

The original commit for this issue (62b1293) assumed Z_BLOCK was
only defined in < 1.2.4. However, this flush type *is* defined but
is only unavailable for use with deflate().

This new commit correctly checks the ZLIB_VERNUM constant to
determine if Z_BLOCK flush is available for the current deflate()
operation and triggers an appropriate error as needed.

New ZLIB_VERSION and ZLIB_VERNUM constants are also exposed in
userland to allow testing this behavior in environments running
zlib < 1.2.4 (ZLIB_VERNUM check is needed).

10 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Thu, 7 May 2015 14:27:29 +0000 (17:27 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  Add some NEWS entries
  Allow self etc in eval / file scope
  fix typo in php.ini

10 years agoImproved fast path locality
Dmitry Stogov [Thu, 7 May 2015 14:26:35 +0000 (17:26 +0300)]
Improved fast path locality

10 years agoFixed $this release
Dmitry Stogov [Thu, 7 May 2015 14:26:01 +0000 (17:26 +0300)]
Fixed $this release

10 years agoMerge branch 'php-ini-typo' of https://github.com/lazysoundsystem/php-src
Xinchen Hui [Thu, 7 May 2015 14:24:21 +0000 (22:24 +0800)]
Merge branch 'php-ini-typo' of https://github.com/lazysoundsystem/php-src

10 years agoAdd some NEWS entries
Nikita Popov [Thu, 7 May 2015 13:37:46 +0000 (15:37 +0200)]
Add some NEWS entries

10 years agoAllow self etc in eval / file scope
Nikita Popov [Thu, 7 May 2015 13:17:37 +0000 (15:17 +0200)]
Allow self etc in eval / file scope

This fixes a regression from 16a9bc1ec20533c76ba992bfc64dd69e7b7d9001.
Together with the recent closure related changes this should allow
all usages of self etc, while previously (in PHP 5) some things like
self::class did not work.

10 years agoAvoid unnecessary reference counter incrementation on $this when call methods
Dmitry Stogov [Thu, 7 May 2015 13:28:23 +0000 (16:28 +0300)]
Avoid unnecessary reference counter incrementation on $this when call methods

10 years agoFix Z_BLOCK breakage when built against zlib < 1.2.4
Daniel Lowrey [Thu, 7 May 2015 13:02:30 +0000 (09:02 -0400)]
Fix Z_BLOCK breakage when built against zlib < 1.2.4

10 years agoMerge branch 'master' of git.php.net:php-src
Xinchen Hui [Thu, 7 May 2015 11:25:41 +0000 (19:25 +0800)]
Merge branch 'master' of git.php.net:php-src

10 years agoFixed test in some cases(for more children, needs more time)
Xinchen Hui [Thu, 7 May 2015 11:25:04 +0000 (19:25 +0800)]
Fixed test in some cases(for more children, needs more time)

10 years agoMerge branch 'master' of git.php.net:php-src
Dmitry Stogov [Thu, 7 May 2015 09:19:33 +0000 (12:19 +0300)]
Merge branch 'master' of git.php.net:php-src

* 'master' of git.php.net:php-src:
  set ext/zip version to 1.13 (as we have new methods... semver...)

10 years agoMerge branch 'PHP-5.6'
Dmitry Stogov [Thu, 7 May 2015 09:17:55 +0000 (12:17 +0300)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fixed bug #69549 (Memory leak with opcache.optimization_level=0xFFFFFFFF)

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Dmitry Stogov [Thu, 7 May 2015 09:16:40 +0000 (12:16 +0300)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fixed bug #69549 (Memory leak with opcache.optimization_level=0xFFFFFFFF)

Conflicts:
NEWS

10 years agoFixed bug #69549 (Memory leak with opcache.optimization_level=0xFFFFFFFF)
Dmitry Stogov [Thu, 7 May 2015 09:14:14 +0000 (12:14 +0300)]
Fixed bug #69549 (Memory leak with opcache.optimization_level=0xFFFFFFFF)

10 years agoset ext/zip version to 1.13 (as we have new methods... semver...)
Remi Collet [Thu, 7 May 2015 08:41:48 +0000 (10:41 +0200)]
set ext/zip version to 1.13 (as we have new methods... semver...)

10 years agoStrings and other pointers should be handled differently
Dmitry Stogov [Thu, 7 May 2015 08:36:01 +0000 (11:36 +0300)]
Strings and other pointers should be handled differently

10 years agoFixed redundand internal constructor behavior (they shouldn't return NULL anymore)
Dmitry Stogov [Thu, 7 May 2015 07:38:47 +0000 (10:38 +0300)]
Fixed redundand internal constructor behavior (they shouldn't return NULL anymore)

10 years agoFix build
Rasmus Lerdorf [Thu, 7 May 2015 05:46:56 +0000 (22:46 -0700)]
Fix build

10 years agoTemporary fix for SIGFPE
Xinchen Hui [Thu, 7 May 2015 03:25:04 +0000 (11:25 +0800)]
Temporary fix for SIGFPE

10 years agoAdded experimental (disabled by default) file based opcode cache.
Dmitry Stogov [Wed, 6 May 2015 20:46:49 +0000 (23:46 +0300)]
Added experimental (disabled by default) file based opcode cache.

10 years agoFixed return without value
Dmitry Stogov [Wed, 6 May 2015 19:53:48 +0000 (22:53 +0300)]
Fixed return without value

10 years agoFixed bug #69534 (Cycle leaks through declared properties on internal classes)
Dmitry Stogov [Wed, 6 May 2015 18:33:49 +0000 (21:33 +0300)]
Fixed bug #69534 (Cycle leaks through declared properties on internal classes)

10 years agoFix compiler assumptions about self/etc wrt closures
Nikita Popov [Tue, 5 May 2015 17:52:03 +0000 (19:52 +0200)]
Fix compiler assumptions about self/etc wrt closures

* Don't throw an error if self/parent/static are used in a closure
  (outside a class).
* Don't propagate self:: constants into closures
* Use runtime fetch for self::class in closures

Fixes bug #66811.

10 years agoDon't implicitly make closures in static methods static
Nikita Popov [Wed, 6 May 2015 15:29:05 +0000 (17:29 +0200)]
Don't implicitly make closures in static methods static

It makes no sense that you can't write a closure using $this in a
static method, even though you can write one outside a class.

Now only closures that have been marked as static will be considered
to be static.

Fixes bug #65598.

10 years agobetter fix (also fix i386 build)
Remi Collet [Wed, 6 May 2015 14:59:50 +0000 (16:59 +0200)]
better fix (also fix i386 build)

10 years agotry to fix build when LONG_MAX not defined
Remi Collet [Wed, 6 May 2015 14:24:21 +0000 (16:24 +0200)]
try to fix build when LONG_MAX not defined

10 years agoNEWS
Remi Collet [Wed, 6 May 2015 13:24:41 +0000 (15:24 +0200)]
NEWS

10 years agoadd ZipArchive::setCompressionName and ZipArchive::setCompressionIndex methods
Remi Collet [Wed, 6 May 2015 13:11:00 +0000 (15:11 +0200)]
add ZipArchive::setCompressionName and ZipArchive::setCompressionIndex methods

10 years agodon't use deprecated libzip call
Remi Collet [Wed, 6 May 2015 12:43:47 +0000 (14:43 +0200)]
don't use deprecated libzip call

10 years agoupdate libzip to version 1.0.1
Remi Collet [Wed, 6 May 2015 12:36:18 +0000 (14:36 +0200)]
update libzip to version 1.0.1

10 years agoUse fast zpp for frequently used gettext(_)
Xinchen Hui [Wed, 6 May 2015 06:29:19 +0000 (14:29 +0800)]
Use fast zpp for frequently used gettext(_)

10 years agoOptimized json_parser
Xinchen Hui [Wed, 6 May 2015 03:37:30 +0000 (11:37 +0800)]
Optimized json_parser

1. use zend_string in key
2. use faster APIs
3. use ZVAL_COPY_VALUE instead of assignment (save u2 copy)

10 years agoUse Z_ARRVAL_P since we already know it's an array
Xinchen Hui [Wed, 6 May 2015 03:10:33 +0000 (11:10 +0800)]
Use Z_ARRVAL_P since we already know it's an array

10 years agoFixed comment
Xinchen Hui [Wed, 6 May 2015 03:03:44 +0000 (11:03 +0800)]
Fixed comment

10 years agouse zval_get_long
Xinchen Hui [Wed, 6 May 2015 02:58:01 +0000 (10:58 +0800)]
use zval_get_long

10 years agoMerge branch 'master' of git.php.net:php-src
Xinchen Hui [Wed, 6 May 2015 02:51:52 +0000 (10:51 +0800)]
Merge branch 'master' of git.php.net:php-src

10 years agoFixed returning void instead of NULL
Dmitry Stogov [Tue, 5 May 2015 20:50:50 +0000 (23:50 +0300)]
Fixed returning void instead of NULL

10 years agoFix build
Nikita Popov [Tue, 5 May 2015 19:40:28 +0000 (21:40 +0200)]
Fix build

10 years agoFix LSB handling for closures
Nikita Popov [Tue, 5 May 2015 19:06:34 +0000 (21:06 +0200)]
Fix LSB handling for closures

Closures will now use the called_scope from their instantiation
site. If they are rebound either the class of $this is used or if
no $this is provided the bound scope is used.

With this change the scope for static closures can be changed back
to use EG(scope) rather than EX(called_scope), thus fixing
bug #69568.

10 years agoThrow exception from FETCH_CLASS_NAME
Nikita Popov [Tue, 5 May 2015 16:36:06 +0000 (18:36 +0200)]
Throw exception from FETCH_CLASS_NAME

Instead of empty strings.

This does not affect the existing case of __CLASS__ in traits as
a scope will always exists in that case.

10 years agoUse ZEND_FETCH_CLASS_NAME for dynamic self::class etc
Nikita Popov [Tue, 5 May 2015 16:22:20 +0000 (18:22 +0200)]
Use ZEND_FETCH_CLASS_NAME for dynamic self::class etc

Extend the opcode to support getting the parent and static name and
then use it for dynamic ::class resolution.

10 years agoUse Fast ZPP
Dmitry Stogov [Tue, 5 May 2015 18:38:52 +0000 (21:38 +0300)]
Use Fast ZPP

10 years agoLoop splitting and specialization
Dmitry Stogov [Tue, 5 May 2015 15:51:08 +0000 (18:51 +0300)]
Loop splitting and specialization

10 years agoMicro optimization
Dmitry Stogov [Tue, 5 May 2015 15:50:47 +0000 (18:50 +0300)]
Micro optimization

10 years agoFixed compilation warning
Dmitry Stogov [Tue, 5 May 2015 13:28:54 +0000 (16:28 +0300)]
Fixed compilation warning

10 years agoe more efficient zend_hash_*() functions
Dmitry Stogov [Tue, 5 May 2015 13:20:29 +0000 (16:20 +0300)]
e more efficient zend_hash_*() functions

10 years agoUse zend_string to represent pdo_column_data.name and avoid duplication.
Dmitry Stogov [Tue, 5 May 2015 13:19:51 +0000 (16:19 +0300)]
Use zend_string to represent pdo_column_data.name and avoid duplication.

10 years agoUse zend heap instead of system
Dmitry Stogov [Tue, 5 May 2015 13:06:10 +0000 (16:06 +0300)]
Use zend heap instead of system

10 years agomicro optimizations
Xinchen Hui [Tue, 5 May 2015 10:22:38 +0000 (18:22 +0800)]
micro optimizations

10 years agoUse better zend_hash_*() functions.
Dmitry Stogov [Tue, 5 May 2015 09:58:11 +0000 (12:58 +0300)]
Use better zend_hash_*() functions.

10 years agoRemoved check for count() in SXE class
Dmitry Stogov [Tue, 5 May 2015 09:57:30 +0000 (12:57 +0300)]
Removed check for count() in SXE class

10 years agofixed comment
Xinchen Hui [Tue, 5 May 2015 09:37:42 +0000 (17:37 +0800)]
fixed comment

10 years agoMerge branch 'PHP-5.6'
Remi Collet [Tue, 5 May 2015 09:37:03 +0000 (11:37 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Relax tests failing on i386 with new zic

Conflicts:
ext/date/tests/getdate_variation7.phpt
ext/date/tests/localtime_variation3.phpt

10 years agoUnused macros
Xinchen Hui [Tue, 5 May 2015 09:25:25 +0000 (17:25 +0800)]
Unused macros

10 years agoMerge branch 'master' of git.php.net:php-src
Xinchen Hui [Tue, 5 May 2015 09:24:17 +0000 (17:24 +0800)]
Merge branch 'master' of git.php.net:php-src

10 years agoOptimize cast simplexml to IS_BOOL
Xinchen Hui [Tue, 5 May 2015 09:23:54 +0000 (17:23 +0800)]
Optimize cast simplexml to IS_BOOL

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Remi Collet [Tue, 5 May 2015 09:23:13 +0000 (11:23 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Relax tests failing on i386 with new zic

10 years agoRelax tests failing on i386 with new zic
Remi Collet [Tue, 5 May 2015 09:22:29 +0000 (11:22 +0200)]
Relax tests failing on i386 with new zic

10 years agoUnused var
Xinchen Hui [Tue, 5 May 2015 09:02:54 +0000 (17:02 +0800)]
Unused var

10 years agoMerge branch 'PHP-5.6'
Remi Collet [Tue, 5 May 2015 08:41:47 +0000 (10:41 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Remove SSLv3 test dependencies SSLv3 is going away. Debian8 already ships with an openssl with no SSLv3 support which was causing these tests to fail.

10 years agoRemove SSLv3 test dependencies
Rasmus Lerdorf [Wed, 8 Apr 2015 16:55:55 +0000 (09:55 -0700)]
Remove SSLv3 test dependencies
SSLv3 is going away. Debian8 already ships with an openssl
with no SSLv3 support which was causing these tests to fail.

Conflicts:
ext/openssl/tests/session_meta_capture.phpt

10 years agoAvoid repeatable lookups for count() method in the same class entry.
Dmitry Stogov [Tue, 5 May 2015 08:10:21 +0000 (11:10 +0300)]
Avoid repeatable lookups for count() method in the same class entry.

10 years agoInline IS_LONG value calculation and avoid strtol() call.
Dmitry Stogov [Tue, 5 May 2015 08:09:18 +0000 (11:09 +0300)]
Inline IS_LONG value calculation and avoid strtol() call.

10 years agoMerge branch 'PHP-5.6'
Xinchen Hui [Tue, 5 May 2015 03:07:02 +0000 (11:07 +0800)]
Merge branch 'PHP-5.6'

Conflicts:
ext/opcache/ZendAccelerator.h

10 years agoMerge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6
Xinchen Hui [Tue, 5 May 2015 03:06:23 +0000 (11:06 +0800)]
Merge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Xinchen Hui [Tue, 5 May 2015 03:06:14 +0000 (11:06 +0800)]
Merge branch 'PHP-5.5' into PHP-5.6

10 years agoUpdate version
Xinchen Hui [Tue, 5 May 2015 03:06:04 +0000 (11:06 +0800)]
Update version