]> granicus.if.org Git - php/log
php
10 years agoMerge branch 'pull-request/1135'
Stanislav Malyshev [Mon, 9 Mar 2015 00:24:11 +0000 (17:24 -0700)]
Merge branch 'pull-request/1135'

* pull-request/1135:
  Return void like other functions
  Use zend_parse_parameters_none()
  Implemented FR #45235 A way to clear or reset the results for error_get_last()

10 years agoMerge branch 'PHP-5.6'
Stanislav Malyshev [Mon, 9 Mar 2015 00:13:32 +0000 (17:13 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Regression tests for SplFileInfo class setters

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Stanislav Malyshev [Mon, 9 Mar 2015 00:13:25 +0000 (17:13 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Regression tests for SplFileInfo class setters

10 years agoMerge branch 'pull-request/1134' into PHP-5.5
Stanislav Malyshev [Mon, 9 Mar 2015 00:13:02 +0000 (17:13 -0700)]
Merge branch 'pull-request/1134' into PHP-5.5

* pull-request/1134:
  Regression tests for SplFileInfo class setters

10 years agoMerge branch 'PHP-5.6'
Stanislav Malyshev [Mon, 9 Mar 2015 00:05:59 +0000 (17:05 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Add missing value for error_reporting directive

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Stanislav Malyshev [Mon, 9 Mar 2015 00:05:51 +0000 (17:05 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Add missing value for error_reporting directive

10 years agoMerge branch 'pull-request/1130' into PHP-5.5
Stanislav Malyshev [Mon, 9 Mar 2015 00:05:37 +0000 (17:05 -0700)]
Merge branch 'pull-request/1130' into PHP-5.5

* pull-request/1130:
  Add missing value for error_reporting directive

10 years agoMerge branch 'pull-request/1129'
Stanislav Malyshev [Mon, 9 Mar 2015 00:04:13 +0000 (17:04 -0700)]
Merge branch 'pull-request/1129'

* pull-request/1129:
  Array - make krsort FAST_ZPP compatibility

10 years agoMerge branch 'pull-request/1127'
Stanislav Malyshev [Mon, 9 Mar 2015 00:02:48 +0000 (17:02 -0700)]
Merge branch 'pull-request/1127'

* pull-request/1127:
  merge ZEND_SIGNED_MULTIPLY_LONG for i386 and x86_64

10 years agoAdding notes regarding implementation of FR #69089
Stanislav Malyshev [Sun, 8 Mar 2015 23:51:00 +0000 (16:51 -0700)]
Adding notes regarding implementation of FR #69089

10 years agoMerge branch 'pull-request/1070'
Stanislav Malyshev [Sun, 8 Mar 2015 23:46:15 +0000 (16:46 -0700)]
Merge branch 'pull-request/1070'

* pull-request/1070:
  More docs for /win32/build/confutils.js
  Adding some inline docs/docs cleanup

10 years agoMerge remote-tracking branch 'weltling/libmagic_upgrade'
Anatol Belski [Sun, 8 Mar 2015 19:31:02 +0000 (20:31 +0100)]
Merge remote-tracking branch 'weltling/libmagic_upgrade'

* weltling/libmagic_upgrade: (29 commits)
  partially revert wrong merge
  after merge fix
  updated libmagic.patch
  catching up
  catching up
  regenerated data file
  more after patch fixes
  restore good patch parts
  stat is done by php
  use zend_strndup
  started to patch for libmagic.next
  fix test outputs
  catch up with the previous cve-2014-3538 patch
  catching up
  catching up
  catching up
  updated the test magic file
  add patchlevel info
  portable off_t
  regenerated data file
  ...

10 years agopartially revert wrong merge
Anatol Belski [Sun, 8 Mar 2015 19:05:34 +0000 (20:05 +0100)]
partially revert wrong merge

10 years agoafter merge fix
Anatol Belski [Sun, 8 Mar 2015 18:56:31 +0000 (19:56 +0100)]
after merge fix

10 years agoupdated libmagic.patch
Anatol Belski [Sun, 8 Mar 2015 16:24:44 +0000 (17:24 +0100)]
updated libmagic.patch

10 years agocatching up
Anatol Belski [Fri, 6 Mar 2015 15:52:14 +0000 (16:52 +0100)]
catching up

10 years agocatching up
Anatol Belski [Fri, 6 Mar 2015 14:16:08 +0000 (15:16 +0100)]
catching up

10 years agoregenerated data file
Anatol Belski [Fri, 6 Mar 2015 08:43:00 +0000 (09:43 +0100)]
regenerated data file

10 years agomore after patch fixes
Anatol Belski [Fri, 6 Mar 2015 08:28:34 +0000 (09:28 +0100)]
more after patch fixes

10 years agorestore good patch parts
Anatol Belski [Thu, 5 Mar 2015 21:43:41 +0000 (22:43 +0100)]
restore good patch parts

10 years agostat is done by php
Anatol Belski [Thu, 5 Mar 2015 13:08:22 +0000 (14:08 +0100)]
stat is done by php

10 years agouse zend_strndup
Anatol Belski [Thu, 5 Mar 2015 13:01:36 +0000 (14:01 +0100)]
use zend_strndup

10 years agostarted to patch for libmagic.next
Anatol Belski [Thu, 5 Mar 2015 12:50:29 +0000 (13:50 +0100)]
started to patch for libmagic.next

everything is broken yet

10 years agofix test outputs
Anatol Belski [Sun, 8 Mar 2015 12:16:28 +0000 (13:16 +0100)]
fix test outputs

10 years agocatch up with the previous cve-2014-3538 patch
Anatol Belski [Sun, 8 Mar 2015 12:09:58 +0000 (13:09 +0100)]
catch up with the previous cve-2014-3538 patch

10 years agocatching up
Anatol Belski [Sat, 7 Mar 2015 22:42:44 +0000 (23:42 +0100)]
catching up

10 years agocatching up
Anatol Belski [Fri, 6 Mar 2015 15:52:14 +0000 (16:52 +0100)]
catching up

10 years agocatching up
Anatol Belski [Fri, 6 Mar 2015 14:16:08 +0000 (15:16 +0100)]
catching up

10 years agoupdated the test magic file
Anatol Belski [Fri, 6 Mar 2015 12:45:27 +0000 (13:45 +0100)]
updated the test magic file

10 years agoadd patchlevel info
Anatol Belski [Fri, 6 Mar 2015 10:43:49 +0000 (11:43 +0100)]
add patchlevel info

10 years agoportable off_t
Anatol Belski [Fri, 6 Mar 2015 10:19:28 +0000 (11:19 +0100)]
portable off_t

10 years agoregenerated data file
Anatol Belski [Fri, 6 Mar 2015 08:43:00 +0000 (09:43 +0100)]
regenerated data file

10 years agomore after patch fixes
Anatol Belski [Fri, 6 Mar 2015 08:28:34 +0000 (09:28 +0100)]
more after patch fixes

10 years agorestore good patch parts
Anatol Belski [Thu, 5 Mar 2015 21:43:41 +0000 (22:43 +0100)]
restore good patch parts

10 years agomissing prototype
Anatol Belski [Thu, 5 Mar 2015 14:42:03 +0000 (15:42 +0100)]
missing prototype

10 years agolibmagic.patch so far
Anatol Belski [Thu, 5 Mar 2015 14:32:04 +0000 (15:32 +0100)]
libmagic.patch so far

10 years agoupdated test magic file
Anatol Belski [Thu, 5 Mar 2015 14:04:51 +0000 (15:04 +0100)]
updated test magic file

10 years agouse right memory api
Anatol Belski [Thu, 5 Mar 2015 13:12:08 +0000 (14:12 +0100)]
use right memory api

10 years agostat is done by php
Anatol Belski [Thu, 5 Mar 2015 13:08:22 +0000 (14:08 +0100)]
stat is done by php

10 years agouse zend_strndup
Anatol Belski [Thu, 5 Mar 2015 13:01:36 +0000 (14:01 +0100)]
use zend_strndup

10 years agostarted to patch for libmagic.next
Anatol Belski [Thu, 5 Mar 2015 12:50:29 +0000 (13:50 +0100)]
started to patch for libmagic.next

everything is broken yet

10 years agoRevert "Fixed memleak while using custom mm"
Xinchen Hui [Sun, 8 Mar 2015 16:41:19 +0000 (00:41 +0800)]
Revert "Fixed memleak while using custom mm"

This reverts commit 5eabd979ffb2f0edb996baf91100197066a81a09.

10 years agoFixed memleak while using custom mm
Xinchen Hui [Sun, 8 Mar 2015 16:18:54 +0000 (00:18 +0800)]
Fixed memleak while using custom mm

10 years agoRevert "Fixed memleak in alloc_globals_ctor"
Xinchen Hui [Sun, 8 Mar 2015 16:17:52 +0000 (00:17 +0800)]
Revert "Fixed memleak in alloc_globals_ctor"

This reverts commit 85316b4bf02f75e6a89efb8b10416a0505a2ae4d.

10 years agoDeclares in top
Xinchen Hui [Sun, 8 Mar 2015 16:01:55 +0000 (00:01 +0800)]
Declares in top

10 years agoMerge branch 'batch-use' of https://github.com/marcioAlmada/php-src
Xinchen Hui [Sun, 8 Mar 2015 15:54:46 +0000 (23:54 +0800)]
Merge branch 'batch-use' of https://github.com/marcioAlmada/php-src

10 years agofix compilation warnings, rename batch_use to group_use
Márcio Almada [Sat, 7 Mar 2015 20:59:20 +0000 (17:59 -0300)]
fix compilation warnings, rename batch_use to group_use

10 years agoAdd ZEND_ARG_CALLABLE_INFO to allow internal function to type hint against callable
Rouven Weßling [Sun, 8 Mar 2015 14:55:23 +0000 (22:55 +0800)]
Add ZEND_ARG_CALLABLE_INFO to allow internal function to type hint against callable

10 years agoAdd configtest option to fpm init.d script
xingxing [Sun, 8 Mar 2015 14:48:29 +0000 (22:48 +0800)]
Add configtest option to fpm init.d script

10 years agoFixed bug #69201 (Memory leak using iterator and get by reference on PHP 7)
Xinchen Hui [Sun, 8 Mar 2015 12:22:02 +0000 (20:22 +0800)]
Fixed bug #69201 (Memory leak using iterator and get by reference on PHP 7)

10 years agoZTS cleanup
Reeze Xia [Sun, 8 Mar 2015 11:24:50 +0000 (19:24 +0800)]
ZTS cleanup

10 years agoMerge branch 'pull-request/1151'
Jakub Zelenka [Sun, 8 Mar 2015 10:47:22 +0000 (10:47 +0000)]
Merge branch 'pull-request/1151'

10 years agoMerge branch 'PHP-5.6'
Remi Collet [Sun, 8 Mar 2015 06:37:07 +0000 (07:37 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix odbc build as shared

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Remi Collet [Sun, 8 Mar 2015 06:36:35 +0000 (07:36 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fix odbc build as shared

10 years agoFix odbc build as shared
Remi Collet [Sun, 8 Mar 2015 06:34:51 +0000 (07:34 +0100)]
Fix odbc build as shared

Broken since a41aa46759d20e23af92df00b917ca66c6102412

10 years agoadd explicit tests for variations on whitespace usages
Márcio Almada [Wed, 11 Feb 2015 21:58:45 +0000 (18:58 -0300)]
add explicit tests for variations on whitespace usages

10 years agorequire trailing T_NS_SEPARATOR #1005
Márcio Almada [Fri, 30 Jan 2015 22:54:37 +0000 (19:54 -0300)]
require trailing T_NS_SEPARATOR #1005

10 years agofix test ns_092.phpt
Márcio Almada [Thu, 29 Jan 2015 05:26:41 +0000 (02:26 -0300)]
fix test ns_092.phpt

10 years agoallow non mixed use declarations, CC @nikic #1005
Márcio Almada [Thu, 29 Jan 2015 05:16:53 +0000 (02:16 -0300)]
allow non mixed use declarations, CC @nikic #1005

```
use function N\S { foo, bar, etc };
use const N\S { FOO, BAR, ETC };
```

Related tests:

```
make test -j4 TESTS="-m Zend/tests/ns_0{88..92}*.phpt"
```

All namespace tests:

```
make test -j4 TESTS="Zend/tests/ns_*.phpt"
```

10 years agoadd test for non mixed batch use statements... #1005
Márcio Almada [Thu, 29 Jan 2015 04:38:16 +0000 (01:38 -0300)]
add test for non mixed batch use statements... #1005

```
use function foo\math {sin, cos, sum};
use const foo\math { PI, E, GAMMA, GOLDEN_RATIO }
```

10 years agoensure that comments are allowed between batch use declarations #1005
Márcio Almada [Tue, 27 Jan 2015 05:48:39 +0000 (02:48 -0300)]
ensure that comments are allowed between batch use declarations #1005

10 years agosimplify batch use declaration syntax error test: ns_088.phpt
Márcio Almada [Tue, 20 Jan 2015 02:40:52 +0000 (23:40 -0300)]
simplify batch use declaration syntax error test: ns_088.phpt

10 years agofirst implementation of batch use compilation
Márcio Almada [Mon, 19 Jan 2015 05:22:23 +0000 (02:22 -0300)]
first implementation of batch use compilation

10 years agoadd tests for batch use declarations with classes, functions and constants
Márcio Almada [Mon, 19 Jan 2015 05:21:11 +0000 (02:21 -0300)]
add tests for batch use declarations with classes, functions and constants

10 years agofix typo
Márcio Almada [Sun, 18 Jan 2015 14:46:32 +0000 (11:46 -0300)]
fix typo

10 years agoAdded test for bug #69160 (current behavior is correct)
Bob Weinand [Sat, 7 Mar 2015 19:59:42 +0000 (20:59 +0100)]
Added test for bug #69160 (current behavior is correct)

10 years agoFixed zend_hash_append result duplicated key
Xinchen Hui [Sat, 7 Mar 2015 16:15:55 +0000 (00:15 +0800)]
Fixed zend_hash_append result duplicated key

actually, maybe we should precalculate before calling zend_hash_appen
when we are not sure whether the hash is caclculated(prop_info->name).

but it looks a little ugly.. (also for zend_string_copy)

10 years agoReduced initial VM_STACK page size of Generators to 4 KB (256 slots)
Bob Weinand [Sat, 7 Mar 2015 12:07:18 +0000 (13:07 +0100)]
Reduced initial VM_STACK page size of Generators to 4 KB (256 slots)
Generators all have their own vm_stack, but usually don't go really deep.
In most cases even most of the 4 KB will remain unused (in my tests average is rather 1 KB), but this was tested a straightforward implementation without a lot of abstraction layers.
That way I'm using a more conservative 4 KB stack size which really should be enough for, I think, at least 90% of the cases.
This was necessary to not immediately run out of memory with 95%+ usused vm_stack space: If you have a few thousands of Generators active, your application quickly hits memory_limit with a stack page size of 256 KB...
In addition, it's also a bit faster (70% less instructions for zend_vm_stack_new_page) due to emalloc() not having to allocate a whole new segment (segment size 256 KB). Also no mmap()/malloc() necessary.

10 years agoRestored incorrectly merged NEWS
Dmitry Stogov [Sat, 7 Mar 2015 12:07:48 +0000 (15:07 +0300)]
Restored incorrectly merged NEWS

10 years agoAdded test for bug 69187
Hugo Fonseca [Sat, 7 Mar 2015 10:53:31 +0000 (10:53 +0000)]
Added test for bug 69187

10 years agoFixed bug #69198 (Compact function generate array with length but no content)
Xinchen Hui [Sat, 7 Mar 2015 08:49:07 +0000 (16:49 +0800)]
Fixed bug #69198 (Compact function generate array with length but no content)

10 years agofix fetching wrong resource
Anatol Belski [Fri, 6 Mar 2015 20:02:29 +0000 (21:02 +0100)]
fix fetching wrong resource

10 years agoUpdate UPGRADING with info about JSON decode error for empty string
Jakub Zelenka [Fri, 6 Mar 2015 18:41:43 +0000 (18:41 +0000)]
Update UPGRADING with info about JSON decode error for empty string

10 years agoMerge branch 'PHP-5.6'
Daniel Lowrey [Fri, 6 Mar 2015 18:31:04 +0000 (11:31 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fixed bug #69197 (openssl_pkcs7_sign handles default value incorrectly)

Conflicts:
ext/openssl/openssl.c

10 years agoFixed bug #69197 (openssl_pkcs7_sign handles default value incorrectly)
Daniel Lowrey [Fri, 6 Mar 2015 18:29:56 +0000 (11:29 -0700)]
Fixed bug #69197 (openssl_pkcs7_sign handles default value incorrectly)

10 years agoUse fast zend_hash_append() API
Dmitry Stogov [Fri, 6 Mar 2015 16:23:54 +0000 (19:23 +0300)]
Use fast zend_hash_append() API

10 years agofix data type
Anatol Belski [Fri, 6 Mar 2015 15:49:08 +0000 (16:49 +0100)]
fix data type

10 years agofix invalid write
Anatol Belski [Fri, 6 Mar 2015 15:41:57 +0000 (16:41 +0100)]
fix invalid write

10 years agoMake fast path linear
Dmitry Stogov [Fri, 6 Mar 2015 14:07:36 +0000 (17:07 +0300)]
Make fast path linear

10 years agoImproved hash key manangement code
Dmitry Stogov [Fri, 6 Mar 2015 13:26:40 +0000 (16:26 +0300)]
Improved hash key manangement code

10 years agoMerge branch 'PHP-5.6'
Tjerk Meesters [Fri, 6 Mar 2015 12:59:52 +0000 (20:59 +0800)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fixed bug #68917 (parse_url fails on some partial urls)
  Update test to run locally instead of remotely

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Tjerk Meesters [Fri, 6 Mar 2015 12:58:20 +0000 (20:58 +0800)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fixed bug #68917 (parse_url fails on some partial urls)

10 years agoFixed bug #68917 (parse_url fails on some partial urls)
Tjerk Meesters [Fri, 6 Mar 2015 12:51:22 +0000 (20:51 +0800)]
Fixed bug #68917 (parse_url fails on some partial urls)

10 years agoFixed conditions
Dmitry Stogov [Fri, 6 Mar 2015 08:00:19 +0000 (11:00 +0300)]
Fixed conditions

10 years agoRevert "Fix logical-op-parentheses warning"
Dmitry Stogov [Fri, 6 Mar 2015 07:56:19 +0000 (10:56 +0300)]
Revert "Fix logical-op-parentheses warning"

This reverts commit b7408234b9d9846d69d4557aa1850f5dc4622d1a.

10 years agoUpdate test to run locally instead of remotely
Daniel Lowrey [Fri, 6 Mar 2015 05:00:38 +0000 (22:00 -0700)]
Update test to run locally instead of remotely

10 years agoUpdate test to run locally instead of remotely
Daniel Lowrey [Fri, 6 Mar 2015 05:00:38 +0000 (22:00 -0700)]
Update test to run locally instead of remotely

10 years agoFix logical-op-parentheses warning
Reeze Xia [Fri, 6 Mar 2015 04:18:45 +0000 (12:18 +0800)]
Fix logical-op-parentheses warning

What a condition ;-)

10 years agoMerge branch 'PHP-5.6'
Daniel Lowrey [Fri, 6 Mar 2015 04:18:09 +0000 (21:18 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fixed bug (#69195 Inconsistent stream crypto values across versions)

Conflicts:
ext/standard/http_fopen_wrapper.c

10 years agoFixed bug (#69195 Inconsistent stream crypto values across versions)
Daniel Lowrey [Fri, 6 Mar 2015 03:48:47 +0000 (20:48 -0700)]
Fixed bug (#69195 Inconsistent stream crypto values across versions)

PHP 5.6.0 altered the semantics of the following constants:

- STREAM_CRYPTO_METHOD_SSLv23_CLIENT
- STREAM_CRYPTO_METHOD_SSLv23_SERVER
- STREAM_CRYPTO_METHOD_TLS_CLIENT
- STREAM_CRYPTO_METHOD_TLS_SERVER

Instead of representing the SSLv23_*() handshake methods the v23
constants were changed to allow only SSLv2 or SSLv3 connections.
Likewise, the TLS methods were modified from using only the TLSv1
handshake to allowing TLS1,1.1, and 1.2. This created a situation
in which users upgrading from previous versions faced a potential
security degradation if they did not update code to use different
constants. In the interest of compatibility across PHP versions
the original semantics have been restored with the following
caveat:

**IMPORTANT**

The SSLv23 client/server methods will no longer negotiate the use
of the insecure SSLv2 or SSLv3 protocols by default. Users wishing
to allow these protocols must explicitly add them to the method
bitmask via the appropriate flags.

10 years agoMerge branch 'PHP-5.6'
Daniel Lowrey [Fri, 6 Mar 2015 00:53:04 +0000 (17:53 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix stream_select() issue with OpenSSL buffer

Conflicts:
main/streams/streams.c

10 years agoFix stream_select() issue with OpenSSL buffer
Chris Wright [Sat, 23 Aug 2014 00:40:19 +0000 (01:40 +0100)]
Fix stream_select() issue with OpenSSL buffer

Ensure data from OpenSSL internal buffer has been
transfered to PHP stream buffer before a select()
emulation operation is performed

Addresses bug #65137
https://bugs.php.net/bug.php?id=65137

Conflicts:
ext/openssl/xp_ssl.c

10 years agoImproved hash key manangement code
Dmitry Stogov [Thu, 5 Mar 2015 23:13:47 +0000 (02:13 +0300)]
Improved hash key manangement code

10 years agoMerge branch 'PHP-5.6'
Daniel Lowrey [Thu, 5 Mar 2015 21:11:35 +0000 (14:11 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Really fix zts this time

Conflicts:
ext/openssl/xp_ssl.c

10 years agoReally fix zts this time
Daniel Lowrey [Thu, 5 Mar 2015 21:08:46 +0000 (14:08 -0700)]
Really fix zts this time

10 years agoMerge branch 'PHP-5.6'
Ferenc Kovacs [Thu, 5 Mar 2015 20:07:34 +0000 (21:07 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  re-arrange NEWS

10 years agore-arrange NEWS
Ferenc Kovacs [Thu, 5 Mar 2015 20:07:05 +0000 (21:07 +0100)]
re-arrange NEWS

10 years agoMerge branch 'PHP-5.6'
Daniel Lowrey [Thu, 5 Mar 2015 19:24:04 +0000 (12:24 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix ZTS
  Fix ZTS build

Conflicts:
ext/openssl/openssl.c
ext/openssl/xp_ssl.c

10 years agoFix ZTS
Daniel Lowrey [Thu, 5 Mar 2015 19:19:15 +0000 (12:19 -0700)]
Fix ZTS

10 years agoMerge branch 'PHP-5.5' into PHP-5.6
Daniel Lowrey [Thu, 5 Mar 2015 19:13:33 +0000 (12:13 -0700)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fix ZTS build