Davey Shafik
6a77550df1
Update versions/dates for PHP 7.1.0RC2
2016-09-14 11:58:39 +00:00
Jakub Zelenka
25b4bd1606
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-14 12:34:39 +01:00
Jakub Zelenka
cfc8522238
Sync NEWS for bug #73072
2016-09-14 12:31:45 +01:00
Christoph M. Becker
219d8599b0
Fix #72430 : [] operator not supported for strings
2016-09-14 12:43:22 +02:00
Anatol Belski
001fbbb94f
fix erroneous resource destruction
2016-09-14 12:07:38 +02:00
Davey Shafik
acc574d76b
Sync NEWS
2016-09-13 19:38:39 -07:00
Adam Baratz
f6b6e97b29
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Add special case for earlier versions of TDS
Adjust error formatting so ext/pdo/tests/bug_43130.phpt passes with pdo_dblib
Free error and message strings when cleaning up PDO instances that use pdo_dblib
Add common suite
2016-09-13 17:02:53 -04:00
Adam Baratz
bcee34c649
Add special case for earlier versions of TDS
2016-09-13 17:01:51 -04:00
Adam Baratz
0de333bd62
Adjust error formatting so ext/pdo/tests/bug_43130.phpt passes with pdo_dblib
2016-09-13 16:43:33 -04:00
Adam Baratz
69eef8c361
Free error and message strings when cleaning up PDO instances that use pdo_dblib
2016-09-13 16:43:30 -04:00
Adam Baratz
efadcb0390
Add common suite
2016-09-13 16:43:25 -04:00
Adam Baratz
45850213bd
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Explicitly allow NULL values for dblib compatibility
Add dblib-specific query
Remove test cases don't test distinct behavior
2016-09-13 16:38:56 -04:00
Adam Baratz
9fb94f03e7
Explicitly allow NULL values for dblib compatibility
...
MSSQL won't necessarily default columns to NULL, see:
https://msdn.microsoft.com/en-us/library/ms174979.aspx
2016-09-13 16:36:23 -04:00
Adam Baratz
69013f6b26
Add dblib-specific query
2016-09-13 16:36:23 -04:00
Adam Baratz
f0a12af65b
Remove test cases don't test distinct behavior
...
These cases are also incompatible with pdo_dblib. Removing is easier.
2016-09-13 16:36:23 -04:00
Adam Baratz
c02ff02953
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Handle SQLDECIMAL/SQLNUMERIC types, which are used by later TDS versions
2016-09-13 16:33:18 -04:00
Adam Baratz
91c49c4ab0
Handle SQLDECIMAL/SQLNUMERIC types, which are used by later TDS versions
2016-09-13 16:32:37 -04:00
Adam Baratz
421f654874
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Allow \PDO::setAttribute() to set pdo_dblib query timeouts
2016-09-13 16:14:55 -04:00
Adam Baratz
9cdf2042bd
Allow \PDO::setAttribute() to set pdo_dblib query timeouts
2016-09-13 16:13:26 -04:00
Jakub Zelenka
1b1b7f8809
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-13 18:27:55 +01:00
Jakub Zelenka
3a739c9f9f
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-13 18:19:20 +01:00
Jakub Zelenka
05baa92727
Fix bug #73072 (Invalid path SNI_server_certs causes segfault)
2016-09-13 18:15:34 +01:00
Christoph M. Becker
db95bd5807
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-13 16:00:01 +02:00
Christoph M. Becker
c8a9ad1527
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-13 15:59:12 +02:00
Christoph M. Becker
c43ecfd798
Merge branch 'pull-request/2126' into PHP-5.6
2016-09-13 15:57:39 +02:00
Anatol Belski
0492a05f97
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
2016-09-13 15:56:16 +02:00
Anatol Belski
667d8d3522
update NEWS
2016-09-13 15:55:31 +02:00
Anatol Belski
252b28dbb6
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
upgrade bundled sqlite to 3.14.2
2016-09-13 15:46:55 +02:00
Anatol Belski
598ed66f82
update NEWS
2016-09-13 15:45:18 +02:00
Anatol Belski
1382e88ac1
upgrade bundled sqlite to 3.14.2
2016-09-13 15:44:21 +02:00
Anatol Belski
86d6f29e8f
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
add test for bug #73068
2016-09-13 15:30:35 +02:00
Anatol Belski
5163925796
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
add test for bug #73068
2016-09-13 15:29:46 +02:00
Anatol Belski
248f8c3a91
add test for bug #73068
2016-09-13 15:28:28 +02:00
Christoph M. Becker
07aab07ce5
Update to SQLite 3.14.2
2016-09-13 13:40:18 +02:00
Anatol Belski
128043babe
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
2016-09-13 12:34:55 +02:00
Anatol Belski
941b56dd4a
update NEWS
2016-09-13 12:34:03 +02:00
Anatol Belski
2820adcc7e
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix test portability
2016-09-13 12:09:50 +02:00
Anatol Belski
855b8e4f79
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix test portability
2016-09-13 12:02:05 +02:00
Anatol Belski
fc31d6fed4
fix test portability
2016-09-13 12:00:29 +02:00
Anatol Belski
2088e3eb45
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
pick up the safe alloc pieces from 19866fb76c
2016-09-13 11:51:17 +02:00
Anatol Belski
c403b30291
pick up the safe alloc pieces from
...
19866fb76c
2016-09-13 11:50:18 +02:00
Anatol Belski
0dd2f072b1
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
missed semicolon
fix C89 conformity
Fix bug #72293 - Heap overflow in mysqlnd related to BIT fields
Fix test
Fix bug #73065 : Out-Of-Bounds Read in php_wddx_push_element of wddx.c
Fix bug #73035 (Out of bound when verify signature of tar phar in phar_parse_tarfile)
Fix bug #73052 - Memory Corruption in During Deserialized-object Destruction
Add check in fgetcsv in case sizeof(unit) != sizeof(size_t)
Fix bug #73029 - Missing type check when unserializing SplArray
Fix bug #72860 : wddx_deserialize use-after-free
Also fix overflow in wordwrap
Fix bug #73007 : add locale length check
Add more checks for int overflow
Fix bug #72928 - Out of bound when verify signature of zip phar in phar_parse_zipfile
Fix various int size overflows.
2016-09-13 10:57:03 +02:00
Anatol Belski
01f6a0a860
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
missed semicolon
fix C89 conformity
Fix bug #72293 - Heap overflow in mysqlnd related to BIT fields
Fix test
Fix bug #73065 : Out-Of-Bounds Read in php_wddx_push_element of wddx.c
Fix bug #73035 (Out of bound when verify signature of tar phar in phar_parse_tarfile)
Fix bug #73052 - Memory Corruption in During Deserialized-object Destruction
Add check in fgetcsv in case sizeof(unit) != sizeof(size_t)
Fix bug #73029 - Missing type check when unserializing SplArray
Fix bug #72860 : wddx_deserialize use-after-free
Also fix overflow in wordwrap
Fix bug #73007 : add locale length check
Add more checks for int overflow
Fix bug #72928 - Out of bound when verify signature of zip phar in phar_parse_zipfile
Fix various int size overflows.
2016-09-13 10:54:54 +02:00
Anatol Belski
8fd0e0285f
missed semicolon
2016-09-13 10:50:44 +02:00
Anatol Belski
363c2524dd
fix C89 conformity
2016-09-13 10:43:51 +02:00
Stanislav Malyshev
dad0e9d1a3
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0: (22 commits)
Fix bug #72293 - Heap overflow in mysqlnd related to BIT fields
I don't think 8cceb012a7 is needed
Fix test
Add check in fgetcsv in case sizeof(unit) != sizeof(size_t)
Fix bug #73065 : Out-Of-Bounds Read in php_wddx_push_element of wddx.c
Fix bug #73035 (Out of bound when verify signature of tar phar in phar_parse_tarfile)
Fix bug #73052 - Memory Corruption in During Deserialized-object Destruction
Fix bug #73029 - Missing type check when unserializing SplArray
Fix bug #72860 : wddx_deserialize use-after-free
Fix bug #73007 : add locale length check
Fix bug #72928 - Out of bound when verify signature of zip phar in phar_parse_zipfile
sync NEWS
Revert "Merge branch 'PHP-5.6' into PHP-7.0"
Merge branch 'PHP-5.6' into PHP-7.0
Merge branch 'PHP-5.6' into PHP-7.0
Revert "Revert "Merge branch 'PHP-5.6' into PHP-7.0""
fix version
sync NEWS
Fix bug #72957
set versions
...
2016-09-12 21:10:34 -07:00
Stanislav Malyshev
07c6bdb85d
Merge branch 'PHP-7.0.11' into PHP-7.0
...
* PHP-7.0.11: (22 commits)
Fix bug #72293 - Heap overflow in mysqlnd related to BIT fields
I don't think 8cceb012a7 is needed
Fix test
Add check in fgetcsv in case sizeof(unit) != sizeof(size_t)
Fix bug #73065 : Out-Of-Bounds Read in php_wddx_push_element of wddx.c
Fix bug #73035 (Out of bound when verify signature of tar phar in phar_parse_tarfile)
Fix bug #73052 - Memory Corruption in During Deserialized-object Destruction
Fix bug #73029 - Missing type check when unserializing SplArray
Fix bug #72860 : wddx_deserialize use-after-free
Fix bug #73007 : add locale length check
Fix bug #72928 - Out of bound when verify signature of zip phar in phar_parse_zipfile
sync NEWS
Revert "Merge branch 'PHP-5.6' into PHP-7.0"
Merge branch 'PHP-5.6' into PHP-7.0
Merge branch 'PHP-5.6' into PHP-7.0
Revert "Revert "Merge branch 'PHP-5.6' into PHP-7.0""
fix version
sync NEWS
Fix bug #72957
set versions
...
2016-09-12 21:09:30 -07:00
Stanislav Malyshev
caea2c876b
Fix bug #72293 - Heap overflow in mysqlnd related to BIT fields
2016-09-12 21:07:44 -07:00
Stanislav Malyshev
28f80baf3c
Fix bug #72293 - Heap overflow in mysqlnd related to BIT fields
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
33d0ef0fef
Fix test
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
c4cca4c20e
Fix bug #73065 : Out-Of-Bounds Read in php_wddx_push_element of wddx.c
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
f5a9592ad8
Fix bug #73035 (Out of bound when verify signature of tar phar in phar_parse_tarfile)
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
6a7cc8ff85
Fix bug #73052 - Memory Corruption in During Deserialized-object Destruction
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
7381d4c00e
Add check in fgetcsv in case sizeof(unit) != sizeof(size_t)
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
ecb7f58a06
Fix bug #73029 - Missing type check when unserializing SplArray
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
b88393f08a
Fix bug #72860 : wddx_deserialize use-after-free
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
65c8caafa8
Also fix overflow in wordwrap
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
6d55ba2656
Fix bug #73007 : add locale length check
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
ba5ac0d360
Add more checks for int overflow
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
223266e4e4
Fix bug #72928 - Out of bound when verify signature of zip phar in phar_parse_zipfile
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
19866fb76c
Fix various int size overflows.
...
Add function for detection of string zvals with length that does not fit
INT_MAX.
2016-09-12 21:04:23 -07:00
Stanislav Malyshev
c984661d39
Fix bug #72293 - Heap overflow in mysqlnd related to BIT fields
2016-09-12 20:28:50 -07:00
Stanislav Malyshev
32e0b46997
I don't think 8cceb012a7 is needed
2016-09-12 20:15:22 -07:00
Stanislav Malyshev
fab33740c5
Fix test
2016-09-12 20:15:18 -07:00
Xinchen Hui
339a865d87
Update NEWS
2016-09-13 10:59:30 +08:00
Xinchen Hui
a339523fe5
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #73067 (__debugInfo crashes when throwing an exception)
2016-09-13 10:59:09 +08:00
Xinchen Hui
2d8ab51576
Fixed bug #73067 (__debugInfo crashes when throwing an exception)
2016-09-13 10:58:57 +08:00
Adam Baratz
76af2def79
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Never quote values as raw binary data
2016-09-12 17:44:33 -04:00
Adam Baratz
2302eef5c9
Never quote values as raw binary data
...
This reverts a1a18fca6e which was intended to fix
bug #52885 . That commit introduced a BC break which wasn't universally
desirable. The issue of quoting binary data (or NVARCHAR strings, or other
nonstandard types) will have to be addressed separately.
2016-09-12 17:32:50 -04:00
Anatol Belski
8cceb012a7
Add check in fgetcsv in case sizeof(unit) != sizeof(size_t)
...
(cherry picked from commit 99ac11222cb2a4e9aa6a865f908b28def349c049)
Conflicts:
ext/standard/file.c
2016-09-12 18:59:38 +02:00
Adam Baratz
39f45e208c
Add myself as pdo_dblib maintainer
2016-09-12 12:43:39 -04:00
Stanislav Malyshev
9528ce7315
Fix bug #73065 : Out-Of-Bounds Read in php_wddx_push_element of wddx.c
...
(cherry picked from commit bbaf784f8d213e201baf67e861f20b38c6e87d3b)
Conflicts:
ext/wddx/wddx.c
2016-09-12 18:13:04 +02:00
Stanislav Malyshev
c5f34c9eca
Fix bug #73035 (Out of bound when verify signature of tar phar in phar_parse_tarfile)
...
(cherry picked from commit 75ebf471ff46ec6e5ee279b3650c11d51ebaf9e3)
2016-09-12 17:54:32 +02:00
Stanislav Malyshev
27876d22ef
Fix bug #73052 - Memory Corruption in During Deserialized-object Destruction
...
(cherry picked from commit b6e1e5e0b3e6221c7b14fa10cba30f5c5e719e1b)
Conflicts:
Zend/zend_objects_API.c
ext/standard/var_unserializer.c
ext/standard/var_unserializer.re
2016-09-12 17:53:44 +02:00
Stanislav Malyshev
022e75cba1
Fix bug #73029 - Missing type check when unserializing SplArray
...
(cherry picked from commit 6d16288150be33392a3249e417a0929881feb9a2)
Conflicts:
ext/spl/spl_array.c
2016-09-12 17:42:23 +02:00
Stanislav Malyshev
060ab26cfe
Fix bug #72860 : wddx_deserialize use-after-free
...
(cherry picked from commit ee552853ff4d72f626102025133e2cd1575043ee)
Conflicts:
ext/wddx/wddx.c
2016-09-12 17:33:32 +02:00
Stanislav Malyshev
92db16e456
Fix bug #73007 : add locale length check
...
(cherry picked from commit 9e07089626f373d0e7b24b7aeb8b8459aae5f5f8)
Conflicts:
ext/intl/msgformat/msgformat_format.c
2016-09-12 17:19:47 +02:00
Stanislav Malyshev
0bfb970f43
Fix bug #72928 - Out of bound when verify signature of zip phar in phar_parse_zipfile
...
(cherry picked from commit 19484ab77466f99c78fc0e677f7e03da0584d6a2)
2016-09-12 17:04:19 +02:00
Christoph M. Becker
c7adfeb6c6
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-12 13:36:24 +02:00
Christoph M. Becker
82fa85fd08
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-12 13:27:57 +02:00
Christoph M. Becker
0cbf634657
Skip regression test for issue that has not yet been released in libgd
...
<https://github.com/libgd/libgd/issues/177 > has been assessed as enhancement,
so most likely it will be released with GD 2.3.
2016-09-12 13:21:34 +02:00
Christoph M. Becker
6ef0b09948
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-12 12:44:49 +02:00
Christoph M. Becker
c2044e60f3
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-12 12:39:14 +02:00
Christoph M. Becker
fcdc30b347
Skip test for external GD because of not yet published bugfix
2016-09-12 12:34:11 +02:00
Christoph M. Becker
6c3f90cab9
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-12 00:03:56 +02:00
Christoph M. Becker
c02cfd4e25
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-11 23:51:32 +02:00
Christoph M. Becker
6d0e773292
Skip tests for unpatched external libgd regarding libvpx
...
Some issues have never been fixed in the external libgd's libvpx binding,
so we skip the respective tests.
2016-09-11 23:49:09 +02:00
Andrea Faulds
fc5497cb92
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-11 22:46:20 +01:00
Andrea Faulds
d690014bf3
Remove zpp fallback code (always use Fast ZPP)
...
Squashed commit of the following:
commit 3e27fbb3d22b42d181e15c345f1c59a007b6b58c
Author: Andrea Faulds <ajf@ajf.me >
Date: Sun Sep 11 19:14:37 2016 +0100
Keep dummy FAST_ZPP macro for compatibility
commit 8a7cfd00deaa4a3c5026c97580c49c886c72a5b4
Author: Andrea Faulds <ajf@ajf.me >
Date: Mon Sep 5 22:36:03 2016 +0100
Remove FAST_ZPP macro and plain zpp fallback code
2016-09-11 22:44:46 +01:00
Christoph M. Becker
c90f7f66ea
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-11 23:03:58 +02:00
Christoph M. Becker
529811cfb0
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-11 19:32:54 +02:00
Christoph M. Becker
6ef987e012
Split test for bundled vs. external libgd
...
The behavior of imagecropauto($im, IMG_CROP_DEFAULT) is rather different
for the bundled and an external libgd, see
<https://github.com/libgd/libgd/issues/298 >.
Therefore we split the test for now.
2016-09-11 19:30:55 +02:00
Christoph M. Becker
c911aa9def
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-11 18:40:46 +02:00
Christoph M. Becker
225478bccf
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-11 18:35:11 +02:00
Christoph M. Becker
38455293f7
Make test case more resilient
...
This test case fails with external libgd, because libgd < 2.2.4 converts
palette images to truecolor (<https://github.com/libgd/libgd/issues/297 >).
However, even if there happens no truecolor conversion, it is not guaranteed
that the palette indexes of the original and the cropped image are identical
(this is, for instance, not the case with current libgd master where the bug
has been fixed). Therefore we check for the expected RGBA value instead of
the palette index.
2016-09-11 18:29:27 +02:00
Christoph M. Becker
29cb3c89e5
Replace md5 image comparision with test_image_equals_file()
2016-09-11 14:56:11 +02:00
Christoph M. Becker
b843d65599
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-11 14:05:19 +02:00
Christoph M. Becker
cd16b64f01
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-11 13:26:30 +02:00
Anatol Belski
c300fdfa36
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix bug category
update NEWS
2016-09-11 13:21:15 +02:00
Anatol Belski
95e4e6a3ce
fix bug category
2016-09-11 13:20:25 +02:00
Anatol Belski
1b2007dada
sync NEWS
2016-09-11 13:19:17 +02:00
Anatol Belski
0fdf2ffae1
update NEWS
2016-09-11 13:05:07 +02:00
Anatol Belski
65bf5e88c7
Revert "Merge branch 'PHP-5.6' into PHP-7.0"
...
This reverts commit 946335ba70 , reversing
changes made to 3437dbfa00 .
2016-09-11 12:59:43 +02:00
Christoph M. Becker
2970630133
Merge branch 'PHP-5.6' into PHP-7.0
...
(cherry picked from commit f93fd8ce32 )
2016-09-11 12:59:43 +02:00
Christoph M. Becker
874697e30a
Merge branch 'PHP-5.6' into PHP-7.0
...
(cherry picked from commit 8f32d609c5 )
2016-09-11 12:59:43 +02:00
Anatol Belski
d947d974d5
Revert "Revert "Merge branch 'PHP-5.6' into PHP-7.0""
...
This reverts commit 62d5bfb527 .
2016-09-11 12:59:43 +02:00
Christoph M. Becker
dc09f30933
A picture is worth a thousand message digests
...
The bundled GD test suites makes heavy use of md5() to verify the result
of drawing operations. This leads to fragile tests (even a slight change
in a PNG header would cause failure, and of course there is the
possibility of collisions), and even worse, eventual test failures are
rather unrevealing.
Therefore we replace all md5() verification with a simplistic
test_image_equals_file(), which is basically a simplified port of libgd's
gdTestImageCompareToFile(), adapted to the needs of PHPTs.
In the long run better tests helpers should be introduced (see also
<http://news.php.net/php.internals/94081 >), but for now this solution
is preferable over the former.
(cherry picked from commit 24f9e96792518ec2a75f26b1eb2471dd7694f2b7)
2016-09-11 12:56:53 +02:00
Christoph M. Becker
625e43caa8
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-11 00:14:49 +02:00
Christoph M. Becker
8753356eb0
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-11 00:09:23 +02:00
Christoph M. Becker
326a4e38fb
Add regression test for bug #73053
...
The test succeeds with libxml < 2.9.4, and is supposed to succeed with
libxml > 2.9.4. Unfortunately, we can't conditionally mark a test case
as XFAIL, so we're simply skipping the test for libxml 2.9.4 instead.
2016-09-11 00:06:45 +02:00
Anatol Belski
aa5abe113b
update NEWS
2016-09-10 11:04:57 +02:00
Anatol Belski
6e1d8d9c71
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
update NEWS
2016-09-10 11:04:38 +02:00
Anatol Belski
1ed07676e6
update NEWS
2016-09-10 11:04:00 +02:00
Anatol Belski
1c789dba7b
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
update NEWS
2016-09-10 11:03:39 +02:00
Anatol Belski
6c9d37d059
update NEWS
2016-09-10 11:02:17 +02:00
Anatol Belski
435048935e
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Bug #73058 crypt broken when salt is 'too' long
2016-09-10 02:49:30 +02:00
Anatol Belski
e539ea439b
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Bug #73058 crypt broken when salt is 'too' long
2016-09-10 02:44:21 +02:00
Anatol Belski
669fda00b7
Bug #73058 crypt broken when salt is 'too' long
2016-09-10 02:39:28 +02:00
Xinchen Hui
a90e438af3
Merge branch 'PHP-7.1' of git.php.net:/php-src into PHP-7.1
...
* 'PHP-7.1' of git.php.net:/php-src:
Don't optimize (string) cast on arrays
2016-09-09 22:40:53 +08:00
Xinchen Hui
2a3b75a0eb
Fixed function info
2016-09-09 22:40:08 +08:00
Nikita Popov
1d4b831d63
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-09 16:38:42 +02:00
Nikita Popov
e3c08de08a
Don't optimize (string) cast on arrays
...
Otherwise we throw a notice during pass1_5 optimization.
2016-09-09 16:38:26 +02:00
Christoph M. Becker
7d80b64ac8
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-09 16:32:27 +02:00
Christoph M. Becker
7a90fc96d8
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-09 16:30:26 +02:00
Christoph M. Becker
c42a7f2f3f
Remove ignored --FAIL-- section from test case
...
This is just confusing.
2016-09-09 16:27:50 +02:00
Nikita Popov
766264f8d2
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-09 16:02:59 +02:00
Nikita Popov
bbcf77c309
Fix some block_pass bugs
2016-09-09 15:58:36 +02:00
Nikita Popov
30af80610e
Compile intval() etc to casts
2016-09-09 15:45:46 +02:00
Nikita Popov
b4213f0d0b
Add fast paths for bitwise operators
2016-09-09 15:30:41 +02:00
Christoph M. Becker
e8e41aa8cd
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-09 14:43:16 +02:00
Christoph M. Becker
1a30a7a422
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-09 14:34:11 +02:00
Christoph M. Becker
23e721fc93
Fix #73054 : default option ignored when object passed to int filter
...
If an object that can't be converted to string is validated, we must not
bail out early, but rather check for a requested default value.
2016-09-09 14:30:24 +02:00
Christoph M. Becker
e5ff8b2f31
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-09 12:53:35 +02:00
Christoph M. Becker
807c49e6be
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-09 12:49:02 +02:00
Levi Morrison
cb91a51b00
Partially fix bug #67167 - Wrong return value...
...
...from FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE
The remainer of the fix would require the filter functions to only
convert to string when it makes sense for that particular filter.
(cherry picked from commit 432dc527ad )
2016-09-09 12:45:46 +02:00
Yasuo Ohgaki
17dbb916fc
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Update NEWS
Fixed Bug #68015 Session does not report invalid uid for files save handler
2016-09-09 11:39:40 +09:00
Yasuo Ohgaki
fb9444e053
Update NEWS
2016-09-09 11:34:34 +09:00
Yasuo Ohgaki
0e3b30fad1
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed Bug #68015 Session does not report invalid uid for files save handler
2016-09-09 11:32:20 +09:00
Yasuo Ohgaki
38553e853b
Fixed Bug #68015 Session does not report invalid uid for files save handler
2016-09-09 11:31:54 +09:00
Anatol Belski
1cf0a2c9ae
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
backport 59444347 and 3d7343f6
2016-09-08 17:50:46 +02:00
Anatol Belski
4fda0a9479
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
backport 59444347 and 3d7343f6
2016-09-08 17:49:47 +02:00
Anatol Belski
b1f33db39f
backport 59444347 and 3d7343f6
2016-09-08 17:46:53 +02:00
Yasuo Ohgaki
71ff5cd3c4
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug26639.phpt
2016-09-08 14:10:55 +09:00
Yasuo Ohgaki
963454b93f
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug26639.phpt
2016-09-08 14:10:21 +09:00
Yasuo Ohgaki
8c700076d7
Fix bug26639.phpt
2016-09-08 14:07:57 +09:00
Yasuo Ohgaki
2c3bc4eb55
Update NEWS
2016-09-08 13:35:38 +09:00
Yasuo Ohgaki
c50ae8fda7
Update NEWS
2016-09-08 13:35:35 +09:00
Yasuo Ohgaki
fb1c46f013
Update NEWS
2016-09-08 13:35:30 +09:00
Yasuo Ohgaki
1ecf361c15
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix Bug #72992 mbstring.internal_encoding doesn't inherit default_charset
2016-09-08 13:32:47 +09:00
Yasuo Ohgaki
379d9a1cfc
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix Bug #72992 mbstring.internal_encoding doesn't inherit default_charset
2016-09-08 13:32:31 +09:00
Yasuo Ohgaki
8bbd0952e5
Fix Bug #72992 mbstring.internal_encoding doesn't inherit default_charset
2016-09-08 13:17:10 +09:00
Dmitry Stogov
6aa07c9083
Fixed type inference bug
2016-09-07 11:36:14 +03:00
Nikita Popov
135f275836
Add ISSET_ISEMPTY_STATIC_PROP to smart branch list
2016-09-06 22:19:34 +02:00
Christoph M. Becker
68d3501381
Merge branch 'pull-request/2115' into PHP-7.1
2016-09-06 14:14:23 +02:00
Nikita Popov
09f7bb2082
Followup for bug #72785
...
Fix incorrect handling of nesting ... need to reset to the old
value afterwards.
2016-09-06 12:59:35 +02:00
Christoph M. Becker
5d394b3bb4
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-06 12:16:42 +02:00
Christoph M. Becker
af3031d755
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-06 12:11:24 +02:00
Christoph M. Becker
dad793630d
Fix #73025 : Heap Buffer Overflow in virtual_popen of zend_virtual_cwd.c
...
`command_length` is retrieved via strlen() and later passed to emalloc()
and memcpy(), so the appropriate type is `size_t`.
We don't add a regression test, because that would need to allocate a string
of at least 2 GiB.
2016-09-06 12:05:58 +02:00
Yasuo Ohgaki
3a35d43ad9
Update NEWS
2016-09-06 18:29:20 +09:00
Yasuo Ohgaki
0adf9191ad
Update NEWS
2016-09-06 18:29:00 +09:00
Yasuo Ohgaki
a58e6d4e34
Update NEWS
2016-09-06 18:28:45 +09:00
Yasuo Ohgaki
012232b9a4
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed Bug #66964 mb_convert_variables() cannot detect recursion
2016-09-06 16:42:07 +09:00
Yasuo Ohgaki
6f1a52bfbb
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed Bug #66964 mb_convert_variables() cannot detect recursion
2016-09-06 16:41:52 +09:00
Yasuo Ohgaki
608decfd3f
Merge branch 'PHP-7.1' of git.php.net:php-src into PHP-7.1
...
* 'PHP-7.1' of git.php.net:php-src: (53 commits)
Fix bug #72785 - allowed_classes only applies to outermost unserialize()
Fix #70752 : Depacking with wrong password leaves 0 length files
Unbreak FAST_ZPP dead code
Updated NEWS
Fixes #72590 : Opcache restart with kill_all_lockers does not work
Limit editorconfig to C code
Updated NEWS
Updated NEWS
Updated NEWS
Fix #72972 , Bad filter for the flags FILTER_FLAG_NO_RES_RANGE and FILTER_FLAG_NO_PRIV_RANGE
Change the name of the second parameter of image writer functions
Added editorconfig file
Implement #47456 : Missing PCRE option 'J'
Use integer placeholders, since values can vary with the TDS version
phpdbg: couple of network function return checks. Possible overflow when copy the socket_path configuration.
Same issue as #72926 in another place.
Sync fix for bug #72910 with current upstream
Fix #72994 : mbc_to_code() out of bounds read
Bump PHP_API_VERSION
Fix bug #72996
...
2016-09-06 16:41:09 +09:00
Yasuo Ohgaki
a25f6f89cd
Fixed Bug #66964 mb_convert_variables() cannot detect recursion
2016-09-06 16:05:34 +09:00
Stanislav Malyshev
747d21cfd2
Fix bug #72785 - allowed_classes only applies to outermost unserialize()
2016-09-05 19:56:36 -07:00
Christoph M. Becker
1928cdcacb
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-06 01:18:22 +02:00
Christoph M. Becker
81ec843d0e
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-06 01:15:36 +02:00
Christoph M. Becker
8aad3131a1
Fix #70752 : Depacking with wrong password leaves 0 length files
...
We should not open the output stream before we have tried to open the
archive entry, as failing the latter could leave an empty file behind.
2016-09-06 01:03:46 +02:00
Andrea Faulds
cfc83af978
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-05 22:13:20 +01:00
Andrea Faulds
009ee6e503
Unbreak FAST_ZPP dead code
2016-09-05 22:12:26 +01:00
Julien Pauli
b86e15849e
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Updated NEWS
Fixes #72590 : Opcache restart with kill_all_lockers does not work
2016-09-05 17:04:15 +02:00
Julien Pauli
4fa52b42c7
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Updated NEWS
Fixes #72590 : Opcache restart with kill_all_lockers does not work
2016-09-05 17:03:51 +02:00
Julien Pauli
dd6da58fac
Updated NEWS
2016-09-05 17:03:29 +02:00
Keyur
0045d16863
Fixes #72590 : Opcache restart with kill_all_lockers does not work
...
ACCEL_LOG_ERROR is special and causes a zend_bailout() and the code
never gets to call kill() in the next line after the logging. Change
the log level to WARNING.
2016-09-05 16:59:28 +02:00
Nikita Popov
a463da7204
Merge branch 'PHP-7.0' into PHP-7.1
...
[ci skip]
2016-09-05 14:22:45 +02:00
Nikita Popov
1cd0c80acf
Merge branch 'PHP-5.6' into PHP-7.0
...
[ci skip]
2016-09-05 14:22:29 +02:00
Nikita Popov
b92cb6b238
Limit editorconfig to C code
...
PHPT files do not follow this.
[ci skip]
2016-09-05 14:22:13 +02:00
Julien Pauli
5f9fe06555
Updated NEWS
2016-09-05 10:19:21 +02:00
Julien Pauli
51de65c20e
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Updated NEWS
Updated NEWS
2016-09-05 10:18:57 +02:00
Julien Pauli
d185c2f13a
Updated NEWS
2016-09-05 10:18:39 +02:00
Julien Pauli
14d754d6fd
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Updated NEWS
2016-09-05 10:18:08 +02:00
Julien Pauli
1abbcc8cc5
Updated NEWS
2016-09-05 10:17:56 +02:00
Julien Pauli
376dcaa39a
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix #72972 , Bad filter for the flags FILTER_FLAG_NO_RES_RANGE and FILTER_FLAG_NO_PRIV_RANGE
2016-09-05 10:13:19 +02:00
Julien Pauli
e5047ac2d2
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix #72972 , Bad filter for the flags FILTER_FLAG_NO_RES_RANGE and FILTER_FLAG_NO_PRIV_RANGE
2016-09-05 10:12:49 +02:00
Julien Pauli
9834978a8b
Fix #72972 , Bad filter for the flags FILTER_FLAG_NO_RES_RANGE and FILTER_FLAG_NO_PRIV_RANGE
2016-09-05 10:08:42 +02:00
Christoph M. Becker
f203de0748
Change the name of the second parameter of image writer functions
...
As of PHP 5.4.0 the second parameter of all image writer functions (except
imagexbm) accepts also a stream resource. Therefore the parameter name
`filename` is inappropriate. We change it to `to` according to what it's
already called in _php_image_output_ctx().
We consider the reflection only related BC break acceptable for a minor version.
2016-09-05 00:43:30 -07:00
Stanislav Malyshev
0d4411d7c8
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Added editorconfig file
2016-09-05 00:41:26 -07:00
Stanislav Malyshev
4e0605044a
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Added editorconfig file
2016-09-05 00:41:23 -07:00
Richard Fussenegger
5c38fbe543
Added editorconfig file
2016-09-05 00:40:58 -07:00
Stanislav Malyshev
9650b8e241
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Implement #47456 : Missing PCRE option 'J'
2016-09-05 00:39:01 -07:00
Stanislav Malyshev
92db92c620
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Implement #47456 : Missing PCRE option 'J'
2016-09-05 00:38:57 -07:00
Christoph M. Becker
39423e425d
Implement #47456 : Missing PCRE option 'J'
...
While it is possible to force the same behavior by setting the internal
option (?J), having a dedicated modifier appears to be useful. After all,
J is even listed on the "Pattern Modifiers" man page[1], but the description
referrs to (?J).
[1] <http://php.net/manual/en/reference.pcre.pattern.modifiers.php >
2016-09-05 00:30:48 -07:00
Stanislav Malyshev
f57c059b96
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Recognize TDS versions 7.3 and 7.4
2016-09-05 00:29:21 -07:00
Stanislav Malyshev
b5f9427ca9
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Recognize TDS versions 7.3 and 7.4
2016-09-05 00:29:18 -07:00
Stanislav Malyshev
cee363d609
Merge branch 'pull-request/2061' into PHP-5.6
...
* pull-request/2061:
Recognize TDS versions 7.3 and 7.4
2016-09-05 00:29:11 -07:00
Stanislav Malyshev
498e36294e
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Use integer placeholders, since values can vary with the TDS version
2016-09-05 00:19:34 -07:00
Stanislav Malyshev
54f6c8d6df
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Use integer placeholders, since values can vary with the TDS version
2016-09-05 00:19:26 -07:00
Adam Baratz
84d495055d
Use integer placeholders, since values can vary with the TDS version
2016-09-05 00:17:59 -07:00
Stanislav Malyshev
8c16f2262f
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
phpdbg: couple of network function return checks. Possible overflow when copy the socket_path configuration.
2016-09-04 23:24:31 -07:00
David Carlier
19350b6b73
phpdbg: couple of network function return checks. Possible
...
overflow when copy the socket_path configuration.
2016-09-04 23:18:51 -07:00
Stanislav Malyshev
defa47b94d
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Same issue as #72926 in another place.
2016-09-04 20:58:09 -07:00
Stanislav Malyshev
a2fdf0f413
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Same issue as #72926 in another place.
2016-09-04 20:57:46 -07:00
Stanislav Malyshev
b578580e88
Same issue as #72926 in another place.
2016-09-04 20:49:34 -07:00
Stanislav Malyshev
3bfd06061e
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Sync fix for bug #72910 with current upstream
2016-09-04 19:15:45 -07:00
Stanislav Malyshev
c3dfe57c23
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Sync fix for bug #72910 with current upstream
2016-09-04 19:15:30 -07:00
Stanislav Malyshev
d1fbc98ff6
Sync fix for bug #72910 with current upstream
2016-09-04 19:13:48 -07:00
Christoph M. Becker
94b66b8793
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-04 16:47:55 +02:00
Christoph M. Becker
7f97d63130
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-04 16:39:45 +02:00
Christoph M. Becker
b7259b71b4
Fix #72994 : mbc_to_code() out of bounds read
...
We're backporting commit 999a3553 to the still supported PHP 5.6.
2016-09-04 16:37:06 +02:00
Nikita Popov
69f0d3df60
Bump PHP_API_VERSION
2016-09-04 14:27:28 +02:00
Nikita Popov
f1bfd7fe00
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-03 23:31:05 +02:00
Nikita Popov
1ae2d074f8
Fix bug #72996
2016-09-03 23:30:23 +02:00
Christoph M. Becker
85824eda36
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-03 20:09:50 +02:00
Christoph M. Becker
8cc9570f53
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-03 19:59:44 +02:00
Christoph M. Becker
d582241368
Fix #67325 : imagetruecolortopalette: white is duplicated in palette
...
gdImageTrueColorToPalette() is sometimes wasteful by putting multiple white
color entries into the palette. This is caused by an obvious typo, where
to avoid a division by zero when `total` is zero, `count` is checked instead
of `total`.
We fix this issue to improve the quality of the color quantization.
Cf. <https://github.com/libgd/libgd/commit/24b4550f >
2016-09-03 19:50:42 +02:00
Anatol Belski
1b2a06fe64
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix leak and error check order
2016-09-03 17:04:43 +02:00
Anatol Belski
c9040d43a8
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix leak and error check order
2016-09-03 17:03:55 +02:00
Anatol Belski
9513187dee
fix leak and error check order
2016-09-03 16:59:17 +02:00
Christoph M. Becker
9eeb705eca
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-03 13:53:07 +02:00
Christoph M. Becker
0bc7e0c0ce
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-03 13:46:03 +02:00
Christoph M. Becker
bca913d70a
Fix proto comment
...
While we're at it, we also change a related comment to use American English
consistently.
2016-09-03 13:41:29 +02:00
Christoph M. Becker
727b422ad9
Fix #72948 : Uncatchable "Catchable" fatal error for class to string conversions
...
E_RECOVERABLE errors are reported as "Catchable fatal error". This is
misleading, because they actually can't be caught via try-catch statements.
Therefore we change the wording to "Recoverable fatal error" as suggested by
Nikita.
2016-09-03 13:05:37 +02:00
Christoph M. Becker
5bdf2fa345
Merge branch 'pull-request/2114' into PHP-7.1
2016-09-03 12:00:46 +02:00
Christoph M. Becker
b8d26ebb9a
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-03 00:40:05 +02:00
Christoph M. Becker
f3dc00fdfb
Merge branch 'PHP-5.6' into PHP-7.0
2016-09-03 00:30:05 +02:00
Christoph M. Becker
c83bdb8e6a
Make test case more resilient
...
When ran from a root directory the test case failed, because the open_basedir
restriction for "../[…]" won't kick in. Therefore we change the current
working directory to the test case's directory, as discussed on internals,
see <http://news.php.net/php.internals/95585 >.
2016-09-03 00:24:30 +02:00
Anatol Belski
e89c09ba29
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix double free
2016-09-03 00:06:16 +02:00
Anatol Belski
7483acf511
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix double free
2016-09-03 00:05:02 +02:00
Anatol Belski
5efd2a33df
fix double free
2016-09-03 00:01:04 +02:00
Anatol Belski
e4564e4b98
improve fix
2016-09-02 23:33:43 +02:00
Anatol Belski
93bb779433
fix leak
2016-09-02 23:31:26 +02:00
Anatol Belski
0b5faa4461
fix leak
2016-09-02 20:20:37 +02:00
Anatol Belski
596f488e06
Add skipifs to some mb path tests
...
These were invented primarily to test the multibyte path handling
patch on Windows. How it turns out by PR #2105 , some test issues
on some filesystems are possible. Particularly HFS is configurable
to use different ways to save filenames, see
https://developer.apple.com/library/mac/qa/qa1173/_index.html
This makes it impossible to test the filenames byte wise, while
the results are still correct. There are still several other tests
using UTF-8 file names spread over other extensions. So far no
false positives are to see, they don't need to be touched.
2016-09-02 19:46:32 +02:00
Anatol Belski
2c02e93e69
fix leak
2016-09-02 19:46:32 +02:00
Anatol Belski
44e43a4738
fix mem leak
2016-09-02 19:46:32 +02:00
Christoph M. Becker
8f110ee4dc
Update to SQLite 3.14.1
2016-09-02 17:58:16 +02:00
Stephan Muggli
9c69d98614
Fix typo in UPGRADING
2016-09-02 15:04:58 +00:00
Julien Pauli
e681b8771b
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix warning about sign-mismatch comparisons
2016-09-02 17:02:25 +02:00
Julien Pauli
e14b14d026
Fix warning about sign-mismatch comparisons
2016-09-02 17:01:52 +02:00
Stanislav Malyshev
01f4a52aaa
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug #72910
5.6.27 will be next
2016-09-01 23:29:17 -07:00
Stanislav Malyshev
2adc335eb5
Merge branch 'PHP-7.1' of git.php.net:php-src into PHP-7.1
...
* 'PHP-7.1' of git.php.net:php-src: (134 commits)
fix useless assignment
avoid needless function call
remove useless assignment
remove unused assignment
rewrite the getcwd part
fix leak
fix unused assignment
remove duplicated symbol
Revert 39587c4817 8b7f594a2b Because of 24fdffdacb
add extra test to protected behavior of compact and array string key order
fix unintentional bc break with compact('this') behavior
Fix some grammatical errors in PHP 7.1 Upgrade Notes
Update NEWS
Fixed bug #72982 (Memory leak in zend_accel_blacklist_update_regexp() function)
Update NEWS and UPGRADING
Revert "Revert "Implement RFC Add session_gc() https://wiki.php.net/rfc/session-gc ""
Revert "Revert "Merge RFC https://wiki.php.net/rfc/session-create-id ""
Revert "Revert "Add tests""
Revert "Fix NEWS"
Fix bug #72940 properly. Reduce needless branches
...
2016-09-01 23:28:56 -07:00
Stanislav Malyshev
ccc8d92d3d
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #72910
5.6.27 will be next
2016-09-01 23:28:44 -07:00
Stanislav Malyshev
e576714f6b
Fix bug #72910
...
Merge upstream patch from https://github.com/kkos/oniguruma/commit/65bdf2a0d160d06556415e5f396a75f6b11bad5c
2016-09-01 23:27:06 -07:00
Anatol Belski
f1cf26ea4f
fix useless assignment
2016-09-01 23:45:31 +02:00
Anatol Belski
1d64b4c71e
avoid needless function call
2016-09-01 23:45:31 +02:00
Anatol Belski
a989091880
remove useless assignment
2016-09-01 23:45:31 +02:00
Anatol Belski
0382a64fdf
remove unused assignment
2016-09-01 23:45:31 +02:00
Anatol Belski
ac82a34185
rewrite the getcwd part
...
Also fixes a possible memory leak. Still not ideal, as seems CWD
longer than MAX_PATH is still not supported. But a heap allocation
is not needed anyway, as MAXPATHLEN value is the maximum supported.
2016-09-01 23:45:31 +02:00
Anatol Belski
7020e6f9ae
fix leak
2016-09-01 23:45:31 +02:00
Anatol Belski
0a50cbabf6
fix unused assignment
2016-09-01 23:45:31 +02:00
Anatol Belski
cd7853b455
remove duplicated symbol
2016-09-01 23:45:31 +02:00
Ferenc Kovacs
fbb81dd755
5.6.27 will be next
2016-09-01 20:27:19 +02:00
Remi Collet
5a9691bf08
Revert
...
39587c4817
8b7f594a2b
Because of
24fdffdacb
2016-09-01 15:21:45 +02:00
Márcio Almada
cba560e67f
add extra test to protected behavior of compact and array string key order
2016-09-01 13:01:42 +02:00
Márcio Almada
00c2c3a476
fix unintentional bc break with compact('this') behavior
2016-09-01 13:01:38 +02:00
Teoh Han Hui
2c3408f5cb
Fix some grammatical errors in PHP 7.1 Upgrade Notes
...
[skip ci]
2016-09-01 12:58:32 +02:00
Xinchen Hui
06e4a03e01
Update NEWS
2016-09-01 12:11:24 +08:00
Xinchen Hui
5f3a26c741
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72982 (Memory leak in zend_accel_blacklist_update_regexp() function)
2016-09-01 12:10:54 +08:00
Xinchen Hui
1ee41683dc
Fixed bug #72982 (Memory leak in zend_accel_blacklist_update_regexp() function)
2016-09-01 12:10:38 +08:00
Yasuo Ohgaki
4f07f0e93f
Update NEWS and UPGRADING
2016-09-01 10:32:34 +09:00
Yasuo Ohgaki
a4a2f66e75
Revert "Revert "Implement RFC Add session_gc() https://wiki.php.net/rfc/session-gc ""
...
This reverts commit 355c7e7d1c .
2016-09-01 10:12:26 +09:00
Yasuo Ohgaki
b36ae7467e
Revert "Revert "Merge RFC https://wiki.php.net/rfc/session-create-id ""
...
This reverts commit 663f1c8fb0 .
2016-09-01 10:12:23 +09:00
Yasuo Ohgaki
7505eaf6fa
Revert "Revert "Add tests""
...
This reverts commit 4f11dedc43 .
2016-09-01 10:12:19 +09:00
Yasuo Ohgaki
5366df75b4
Revert "Fix NEWS"
...
This reverts commit abc2271b8d .
2016-09-01 10:12:16 +09:00
Yasuo Ohgaki
90352bb4a2
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug #72940 properly. Reduce needless branches
2016-09-01 07:47:27 +09:00
Yasuo Ohgaki
cc797d4fc3
Fix bug #72940 properly. Reduce needless branches
2016-09-01 07:47:13 +09:00
Yasuo Ohgaki
355c7e7d1c
Revert "Implement RFC Add session_gc() https://wiki.php.net/rfc/session-gc "
...
This reverts commit 1cf179e415 .
2016-09-01 05:54:55 +09:00
Yasuo Ohgaki
663f1c8fb0
Revert "Merge RFC https://wiki.php.net/rfc/session-create-id "
...
This reverts commit 7ee9f81c54 .
2016-09-01 05:54:30 +09:00
Yasuo Ohgaki
4f11dedc43
Revert "Add tests"
...
This reverts commit aff4c7d826 .
2016-09-01 05:54:19 +09:00
Yasuo Ohgaki
abc2271b8d
Fix NEWS
2016-09-01 05:53:26 +09:00
Yasuo Ohgaki
80d514d294
Update UPGRADING
2016-09-01 03:24:50 +09:00
Davey Shafik
f17d67123f
Update NEWS for 7.1.0RC2
2016-08-31 17:01:42 +00:00
Christoph M. Becker
9cc11dbded
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-31 16:45:15 +02:00
Christoph M. Becker
f93fd8ce32
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-31 16:38:38 +02:00
Christoph M. Becker
b2d267d9ee
Fix #71882 amendment 2: Negative ftruncate() on php://memory exhausts memory
2016-08-31 16:33:14 +02:00
Christoph M. Becker
cb78ea9cc3
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-31 14:55:37 +02:00
Christoph M. Becker
8f32d609c5
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-31 14:53:53 +02:00
Christoph M. Becker
314a9f8553
Fix #71882 amendment: Negative ftruncate() on php://memory exhausts memory
...
To avoid BC breaks, we do not raise a warning for now.
2016-08-31 14:51:37 +02:00
Christoph M. Becker
56ed966bc6
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-31 14:32:24 +02:00
Yasuo Ohgaki
97f2bb894a
Update NEWS
2016-08-31 21:10:57 +09:00
Yasuo Ohgaki
e385b05ebe
Update NEWS
2016-08-31 21:08:23 +09:00
Yasuo Ohgaki
747b61808b
Update NEWS
2016-08-31 21:06:19 +09:00
Yasuo Ohgaki
aff4c7d826
Add tests
2016-08-31 21:03:10 +09:00
Yasuo Ohgaki
7ee9f81c54
Merge RFC https://wiki.php.net/rfc/session-create-id
2016-08-31 20:34:20 +09:00
Christoph M. Becker
08a71df612
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-31 13:27:23 +02:00
Christoph M. Becker
f215fb874f
Fix #71882 amendment: Negative ftruncate() on php://memory exhausts memory
...
To avoid BC breaks, we do not raise a warning for now.
2016-08-31 13:24:37 +02:00
Anatol Belski
aeb7b4094a
sync tests
2016-08-31 12:26:51 +02:00
Anatol Belski
e446ec14e5
add more defs for resource alloc/dealloc
2016-08-31 12:10:40 +02:00
Anatol Belski
4c8e6a2c95
add yet one define
2016-08-31 12:10:40 +02:00
Davey Shafik
11f0f97160
Update NEWS
2016-08-30 19:47:50 -07:00
Davey Shafik
12ee17d5e0
Implement \ArgumentCountError exception
2016-08-30 19:35:56 -07:00
Anatol Belski
ed51f34795
fix version
2016-08-30 18:37:43 +02:00
Nikita Popov
02fb46e17c
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-30 18:07:21 +02:00
Nikita Popov
3317287ce1
Fix bug #71711
...
Also handle another case of bug #71996 .
2016-08-30 18:06:18 +02:00
Nikita Popov
b218eb916f
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-30 17:21:33 +02:00
Nikita Popov
8e487aefaa
Fixed bug #71996
2016-08-30 17:20:55 +02:00
Christoph M. Becker
ecdef60d00
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-30 15:12:49 +02:00
Christoph M. Becker
972302d2f0
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-30 15:01:12 +02:00
Christoph M. Becker
2f10db36af
Fix #66797 : mb_substr only takes 32-bit signed integer
...
`from` and `len` are `long`, but get passed to mbfl_substr() which expects
`int`s. Therefore we clamp the values to avoid the undefined conversion
behavior.
2016-08-30 14:52:47 +02:00
Anatol Belski
3d66d56c1d
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix typo
prepare for next
2016-08-30 14:16:48 +02:00
Anatol Belski
52afd8b744
fix typo
2016-08-30 14:11:47 +02:00
Anatol Belski
bc7460260b
prepare for next
2016-08-30 14:11:22 +02:00
Nikita Popov
c361020f04
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-30 13:45:49 +02:00
Nikita Popov
2c12a5f0a8
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-30 13:44:59 +02:00
Ville Hukkamäki
af7828a20f
Test case for bug #72771
2016-08-30 13:44:34 +02:00
Anatol Belski
119744fc22
sync NEWS
2016-08-30 13:39:27 +02:00
Nikita Popov
345b96c4a3
Fix bug #72957
...
(cherry picked from commit bfd4277008 )
2016-08-30 13:38:54 +02:00
Nikita Popov
d49024c6de
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-30 13:06:32 +02:00
Nikita Popov
bfd4277008
Fix bug #72957
2016-08-30 13:05:53 +02:00
Nikita Popov
6adb7e0b7a
Followup for bug #72971
...
Property writes did not respect the namespace either. This is an
incomplete fix in that it only handles the case where an existing
child element is modified, not when a new one is created.
2016-08-30 12:53:50 +02:00
Anatol Belski
f6d02733fd
set versions
2016-08-30 12:11:22 +02:00
Anatol Belski
191ff3d995
sync NEWS
2016-08-30 12:07:51 +02:00
Anatol Belski
62d5bfb527
Revert "Merge branch 'PHP-5.6' into PHP-7.0"
...
This reverts commit 65f0c163f9 , reversing
changes made to 4b45c0a9a7 .
2016-08-30 12:06:46 +02:00
Nikita Popov
51a564e505
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-30 10:56:06 +02:00
Nikita Popov
07cc6a6ba2
Fix bug #72971
2016-08-30 10:54:31 +02:00
Yasuo Ohgaki
4a12450de2
Update NEWS
2016-08-30 16:05:49 +09:00
Yasuo Ohgaki
f5cd6e5710
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72940 SID always return "name=ID", even if session cookie exist
2016-08-30 15:58:55 +09:00
Yasuo Ohgaki
b5f2f6fbd8
Fixed bug #72940 SID always return "name=ID", even if session cookie exist
2016-08-30 15:58:25 +09:00
Christoph M. Becker
38a7c0e0f7
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-30 02:24:43 +02:00
Christoph M. Becker
65f0c163f9
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-30 02:13:48 +02:00
Christoph M. Becker
207dab585a
Fix #71882 : Negative ftruncate() on php://memory exhausts memory
...
We must not pass negative sizes to a size_t parameter.
2016-08-30 02:05:45 +02:00
Christoph M. Becker
ec8bbba9c6
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-30 01:18:59 +02:00
Christoph M. Becker
4b45c0a9a7
Merge branch 'pull-request/2043' into PHP-7.0
2016-08-30 01:16:45 +02:00
Anatol Belski
2bfe926eb1
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix HANDLE leak
2016-08-29 21:48:50 +02:00
Anatol Belski
1b227de970
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix HANDLE leak
2016-08-29 21:47:54 +02:00
Anatol Belski
c7b4cd1a51
fix HANDLE leak
2016-08-29 21:45:39 +02:00
Anatol Belski
6bb5b6e8a3
update NEWS
2016-08-29 21:26:13 +02:00
Anatol Belski
2b9670512b
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
update NEWS
2016-08-29 21:24:08 +02:00
Anatol Belski
5bcae9d586
update NEWS
2016-08-29 21:23:20 +02:00
Anatol Belski
b6b7696114
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
update NEWS
2016-08-29 21:22:43 +02:00
Anatol Belski
ae81e8fc32
update NEWS
2016-08-29 21:20:36 +02:00
Anatol Belski
c560678c14
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
ensure null termination
2016-08-29 21:15:55 +02:00
Anatol Belski
2004585d03
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
ensure null termination
2016-08-29 21:13:39 +02:00
Anatol Belski
d787b0ea13
ensure null termination
2016-08-29 21:03:03 +02:00
Anatol Belski
22a825db85
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72703 Out of bounds global memory read in BF_crypt triggered by password_verify
2016-08-29 20:34:44 +02:00
Anatol Belski
946335ba70
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed bug #72703 Out of bounds global memory read in BF_crypt triggered by password_verify
2016-08-29 20:32:55 +02:00
Anatol Belski
295303b590
Fixed bug #72703 Out of bounds global memory read in BF_crypt triggered by password_verify
2016-08-29 20:25:34 +02:00
Dmitry Stogov
722783c2c6
Merge branch 'PHP-7.1' of git.php.net:php-src into PHP-7.1
...
* 'PHP-7.1' of git.php.net:php-src:
fix double free
2016-08-29 20:37:01 +03:00
Dmitry Stogov
94fbcbe172
Allow optional splitting of basic blocks at RECV/RECV_INIT opcodes.
2016-08-29 20:35:17 +03:00
Anatol Belski
a349afd26b
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix double free
2016-08-29 19:34:19 +02:00
Anatol Belski
3437dbfa00
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix double free
2016-08-29 19:33:22 +02:00
Anatol Belski
1a840b9af0
fix double free
2016-08-29 19:27:47 +02:00
Anatol Belski
5c8aa478da
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix double free
2016-08-29 18:57:50 +02:00
Anatol Belski
1d93086937
fix double free
2016-08-29 18:56:25 +02:00
Anatol Belski
3196ea195b
add note to UPGRADING.INTERNALS
2016-08-29 18:37:35 +02:00
Anatol Belski
78401a7f01
extend help message
2016-08-29 18:25:00 +02:00
Anatol Belski
78c15e2744
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix leak
2016-08-29 18:08:17 +02:00
Anatol Belski
ca4eeedd36
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix leak
2016-08-29 18:05:47 +02:00
Anatol Belski
e2609a38d9
fix leak
2016-08-29 18:01:21 +02:00
Anatol Belski
faccbeb588
fix search path
2016-08-29 17:44:37 +02:00
Anatol Belski
3ab2a58753
support also cppcheck for static analyze
2016-08-29 17:44:37 +02:00
Anatol Belski
201f90a8cc
add error check and fix leak
2016-08-29 17:25:46 +02:00
Anatol Belski
7ecfb4b954
fix leak
2016-08-29 17:25:13 +02:00
Jakub Zelenka
c4961fa8b6
Bump PHP_JSON_VERSION to 1.5.0
2016-08-29 15:18:00 +01:00
Jakub Zelenka
ab65665a0e
Merge branch 'json_encode_fail_return' into PHP-7.1
2016-08-29 15:01:00 +01:00
Jakub Zelenka
f5b4aae7ac
Update NEWS with info about a json_encode fail return
2016-08-29 14:59:44 +01:00
Jakub Zelenka
27acbcf4df
Add test for fixed bug #68992
2016-08-29 14:49:40 +01:00
Jakub Zelenka
df05dbb3df
Fix recursion and protection in the failed JSON encoding
2016-08-29 14:49:40 +01:00
Jakub Zelenka
12a8c3f6e7
Add initial failure checking for json_encode
2016-08-29 14:49:40 +01:00
Anatol Belski
50c5d13d26
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix leak
2016-08-29 15:44:13 +02:00
Anatol Belski
d80a317c0b
fix leak
2016-08-29 15:43:10 +02:00
Anatol Belski
a747578497
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix possible memory leak
2016-08-29 15:29:52 +02:00
Anatol Belski
1d7ec685c1
fix possible memory leak
2016-08-29 15:28:09 +02:00
Anatol Belski
0e709fe42d
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix dealloc mismatch
2016-08-29 13:43:08 +02:00
Anatol Belski
eac7f4b670
fix dealloc mismatch
2016-08-29 12:46:23 +02:00
Dmitry Stogov
b5bab0fce8
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72944 (Null pointer deref in zval_delref_p).
2016-08-29 12:07:54 +03:00
Dmitry Stogov
b66039db33
Fixed bug #72944 (Null pointer deref in zval_delref_p).
2016-08-29 12:02:50 +03:00
George Wang
0a09eecfcc
code cleanup.
2016-08-28 22:31:08 -04:00
George Wang
413bd261ec
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-28 22:29:38 -04:00
George Wang
ca1eb585ee
Merge branch 'PHP-5.6' into PHP-7.0
...
Conflicts:
sapi/litespeed/lsapi_main.c
2016-08-28 22:23:28 -04:00
George Wang
c73bcbefbd
Added .user.ini support.
...
Added LSPHPRC support.
update LiteSpeed SAPI version to 6.10 .
2016-08-28 21:49:30 -04:00
Yasuo Ohgaki
1cf179e415
Implement RFC Add session_gc() https://wiki.php.net/rfc/session-gc
2016-08-29 05:57:37 +09:00
Anatol Belski
be0958d291
extend help msg
2016-08-28 20:18:11 +02:00
Anatol Belski
b415290c92
fix leak
2016-08-28 19:42:41 +02:00
Anatol Belski
48b1cb2f12
extend clang vs compat options
2016-08-28 19:42:41 +02:00
Anatol Belski
378ed99424
fix leak
2016-08-28 19:42:41 +02:00
Anatol Belski
10c2ac8c81
integrate clang analyzer
2016-08-28 19:42:41 +02:00
Xinchen Hui
01701912c7
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72936 (Zend API's zend_symtable_str_update() asserts key should end with '\0')
2016-08-29 00:10:57 +08:00
Xinchen Hui
986d0f87ec
Fixed bug #72936 (Zend API's zend_symtable_str_update() asserts key should end with '\0')
2016-08-29 00:10:31 +08:00
Anatol Belski
92a60a67cf
fix leak
2016-08-27 22:28:13 +02:00
Anatol Belski
b6440a74c1
add parentheses
2016-08-27 22:26:18 +02:00
Anatol Belski
8a8a441972
fix clang compat
2016-08-27 22:25:02 +02:00
Anatol Belski
d58202853d
fix leak
2016-08-27 22:24:24 +02:00
Christoph M. Becker
3a78530b8a
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-27 01:23:36 +02:00
Christoph M. Becker
8fcfacf746
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-27 01:18:10 +02:00
Christoph M. Becker
2139918ea6
Fix #65550 : get_browser() incorrectly parsers entries with "+" sign
...
+ signs in the browscap patterns are meant to be literal characters, so we
have to escape them for the regex matching.
2016-08-27 01:12:01 +02:00
Anatol Belski
88f6706656
fix leak
2016-08-26 22:05:06 +02:00
Christoph M. Becker
14cd14ddaf
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-26 18:52:06 +02:00
Christoph M. Becker
c4c3eb55a7
Fix #72949 : Typo in opcache error message
2016-08-26 18:50:30 +02:00
Xinchen Hui
557f1ccf0c
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72943 (assign_dim on string doesn't reset hval)
Conflicts:
Zend/zend_execute.c
2016-08-26 18:32:54 +08:00
Xinchen Hui
c67fa3c91d
Fixed bug #72943 (assign_dim on string doesn't reset hval)
2016-08-26 18:30:08 +08:00
Anatol Belski
726e3b8ff0
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
pdo_dblib: stringify uniqidentifier field
2016-08-25 19:46:01 +02:00
Anatol Belski
9f6d2c05b4
update NEWS
2016-08-25 19:44:55 +02:00
Anatol Belski
57509fb969
update NEWS
2016-08-25 19:43:39 +02:00
Alexander Zhuravlev
a000bff2c3
pdo_dblib: stringify uniqidentifier field
...
Keep old 5.6 behavior: return Uniqidentifier value as 36-byte hex string (not binary),
when PDO::ATTR_STRINGIFY_FETCHES is TRUE
pdo_dblib: Stringify uniqidentifier field
Keep old 5.6 behavior: return Uniqidentifier value as 36-byte hex string (not binary),
when PDO::ATTR_STRINGIFY_FETCHES is TRUE
Tests added.
pdo_dblib: Stringify uniqidentifier field
Keep old 5.6 behavior: return Uniqidentifier value as 36-byte hex string (not binary),
when PDO::ATTR_STRINGIFY_FETCHES is TRUE
Tests fix.
pdo_dblib: Stringify uniqueidentifier field Added separate PDO::DBLIB_ATTR_STRINGIFY_UNIQUEIDENTIFIER attribute instead of PDO::ATTR_STRINGIFY_FETCHES.
pdo_dblib: Stringify uniqueidentifier field Added `getAttribute` support for PDO::DBLIB_ATTR_STRINGIFY_UNIQUEIDENTIFIER.
Simplify storage of stringify_uniqueidentifier attribute
2016-08-25 19:37:21 +02:00
Christoph M. Becker
3f53814ca7
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-25 18:41:45 +02:00
Christoph M. Becker
433976f931
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-25 18:29:23 +02:00
Christoph M. Becker
84512a1177
Fix #70825 : Cannot fetch multiple values with group in ini file
...
If we have the position already from the last fetch, we also have to preset
the current group, because it won't be read again.
2016-08-25 18:18:10 +02:00
Anatol Belski
9f0f7c0336
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix check for args by ref
2016-08-25 18:09:37 +02:00
Anatol Belski
51d19c12a5
fix check for args by ref
2016-08-25 18:06:47 +02:00
Christoph M. Becker
96ea8de591
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-25 16:31:03 +02:00
Christoph M. Becker
5f6a1d1472
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-25 16:22:57 +02:00
Christoph M. Becker
bd8112afe0
Fix #71514 : Bad dba_replace condition because of wrong API usage
...
We're backporting commit 9e309a2d to PHP-5.6, because it is a bugfix.
2016-08-25 16:20:30 +02:00
Anatol Belski
2e1bb5ee22
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
backport relevant part from bug #72858 patch in 7.0
2016-08-25 12:53:37 +02:00
Anatol Belski
d3058a69d8
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
backport relevant part from bug #72858 patch in 7.0
2016-08-25 12:52:29 +02:00
Anatol Belski
a1ff39ffe5
backport relevant part from bug #72858 patch in 7.0
2016-08-25 12:46:28 +02:00
Anatol Belski
cd5cab6288
update NEWS
2016-08-25 12:14:33 +02:00
Anatol Belski
fe4fa1fadf
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72922 COM called from PHP does not return out parameters
2016-08-25 12:13:55 +02:00
Anatol Belski
392c5ea472
Fixed bug #72922 COM called from PHP does not return out parameters
2016-08-25 12:12:45 +02:00
Xinchen Hui
38f7d595c0
Remove redundant \t
2016-08-25 13:29:22 +08:00
Levi Morrison
f4e68a3968
Revert "Do not prepend ? on nullables in ReflectionType::__toString()"
...
This reverts commit 8855a2ce76 .
2016-08-23 09:43:31 -06:00
Dmitry Stogov
129e8dadf4
op_arrays may be optimized independetly and "script" might be NULL
2016-08-23 13:17:53 +03:00
Dmitry Stogov
76707dc204
Don't keep dangling pointers.
2016-08-23 12:58:46 +03:00
Dmitry Stogov
62ab40bc96
Added tests and NEWS entry
...
Fixed bug #72598 (Reference is lost after array_slice())
2016-08-23 12:14:31 +03:00
Dmitry Stogov
0cc8ff2b41
Run ext/opcache/tests/*.phpt by default
2016-08-23 11:51:08 +03:00
Nikita Popov
906456c410
call_user_func(_array): Don't abort on reference warning
...
Change zend_call_function() to not abort the call if a non-reference
is passed to a reference argument. The usual warning will still be
thrown, but the call will proceed as usual.
2016-08-23 10:29:15 +03:00
Xinchen Hui
26d74a0420
Fixed tests
2016-08-23 11:32:21 +08:00
Xinchen Hui
434ae90e85
Fixed bug #72920 (Accessing a private constant using constant() creates an exception AND warning)
2016-08-22 23:44:38 +08:00
Dmitry Stogov
caf890b291
Fixed CFG construction for stackless execution (split basic blocks after calls)
2016-08-22 16:48:26 +03:00
Yasuo Ohgaki
7d703a0060
Adjust test so that it passes on more restrictive filesystems
2016-08-22 17:01:07 +09:00
Jakub Zelenka
21c72827c7
Do not expect error 0407006A in openssl_private_(en|de)crypt
...
It makes the test work with OpenSSL 1.1
2016-08-21 20:29:03 +01:00
Christoph M. Becker
5347246f56
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-21 19:55:09 +02:00
Christoph M. Becker
4c13a7f5c4
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-21 19:48:38 +02:00
Christoph M. Becker
6a232c3604
Fix #68716 : possible resource leaks in _php_image_convert()
...
We properly clean up after ourselves wrt. to closing opened file pointers
and created images.
2016-08-21 19:39:58 +02:00
Anatol Belski
096b0a556c
extend readdir utf-8 name test
2016-08-21 18:21:49 +02:00
Christoph M. Becker
3dc6c4b329
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-21 17:51:53 +02:00
Christoph M. Becker
4c68fc5392
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-21 17:45:49 +02:00
Christoph M. Becker
d65adac2be
Fix #72913 : imagecopy() loses single-color transparency on palette images
...
The proper code to handle true-color to palette copies is already contained
in gdImageCopy(), so we can simply remove the buggy duplicated code.
2016-08-21 17:39:23 +02:00
Christoph M. Becker
15f1b04198
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-21 16:21:13 +02:00
Christoph M. Becker
7a36056d6c
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-21 16:15:22 +02:00
Christoph M. Becker
9eb5bbd8bd
Fix #66005 : imagecopy does not support 1bit transparency on truecolor images
...
We must not copy transparent pixels, see
<https://github.com/libgd/libgd/commit/daac285c >.
2016-08-21 16:08:57 +02:00
Xinchen Hui
e849e65d89
This is unecessary for 7.1 (IS_ERROR is an internal type)
2016-08-21 17:40:10 +08:00
Xinchen Hui
e572035ecf
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72911 (Memleak in zend_binary_assign_op_obj_helper)
Fixed bug #72907 (null pointer deref, segfault in gc_remove_zval_from_buffer (zend_gc.c:260))
2016-08-21 17:39:52 +08:00
Xinchen Hui
0476bb1de5
Fixed bug #72911 (Memleak in zend_binary_assign_op_obj_helper)
2016-08-21 17:38:03 +08:00
Xinchen Hui
17e8a3df13
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed bug #72907 (null pointer deref, segfault in gc_remove_zval_from_buffer (zend_gc.c:260))
2016-08-21 17:19:36 +08:00
Xinchen Hui
226e21b0fe
Merge branch 'PHP-5.6' of git.php.net:/php-src into PHP-5.6
...
* 'PHP-5.6' of git.php.net:/php-src:
Improvements to fix #72714 , suggested by nikic
Fix #65732 : grapheme_*() is not Unicode compliant on CR LF sequence
Fix #72714 : _xml_startElementHandler() segmentation fault
update NEWS
Fixed bug #72852 imap_mail null dereference
Revert "Fix dba configuration for Windows"
Fix dba configuration for Windows
Fix broken test include
fix NEWS
Add myself as PDO_OCI maintainer
2016-08-21 17:19:24 +08:00
Xinchen Hui
b740bb3987
Fixed bug #72907 (null pointer deref, segfault in gc_remove_zval_from_buffer (zend_gc.c:260))
2016-08-21 17:10:10 +08:00
Aaron Piotrowski
8855a2ce76
Do not prepend ? on nullables in ReflectionType::__toString()
...
Better BC with 7.0.
2016-08-21 00:12:47 -05:00
Aaron Piotrowski
08c5d77027
Revert "Fix closure tests using ReflectionType::__toString()"
...
This reverts commit 6fcedc96fb .
2016-08-20 23:26:01 -05:00
Aaron Piotrowski
c9ee0cb202
Revert "Append \ to class name returned from ReflectionType::__toString()"
...
This reverts commit 20fdd47921 .
2016-08-20 23:26:01 -05:00
Anatol Belski
872028de20
fix TS issues with url rewrite globals
2016-08-20 22:41:06 +02:00
Nikita Popov
dfed09afca
Fix off-by-one in ReflectionType::__toString()
...
Review mistake...
2016-08-20 19:00:03 +02:00
Christoph M. Becker
9988863d37
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-20 12:50:48 +02:00
Christoph M. Becker
39172d44d8
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-20 12:46:08 +02:00
Christoph M. Becker
52793c14d9
Improvements to fix #72714 , suggested by nikic
2016-08-20 12:44:20 +02:00
Christoph M. Becker
29849e5ba1
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-20 03:11:05 +02:00
Christoph M. Becker
078f674212
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-20 03:04:08 +02:00
Christoph M. Becker
e4a006cd3e
Fix #65732 : grapheme_*() is not Unicode compliant on CR LF sequence
...
According to the Unicode specification (at least as of 5.1), CRLF sequences
are considered to be a single grapheme. We cater to that special case by
letting grapheme_ascii_check() fail. While it would be trivial to fix
grapheme_ascii_check() wrt. grapheme_strlen(), grapheme_substr() and
grapheme_strrpos() would be much harder to handle, so we accept the slight
performance penalty if CRLF is involved.
2016-08-20 03:01:35 +02:00
Christoph M. Becker
76c796fb27
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-20 02:28:18 +02:00
Christoph M. Becker
db1ef5cb00
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-20 02:14:49 +02:00
Christoph M. Becker
9164dc11e2
Fix #72714 : _xml_startElementHandler() segmentation fault
...
The issue is caused by an integer overflow when the `long` passed as
XML_OPTION_SKIP_TAGSTART is assigned to `xml_parser::toffset` which is
declared as `int`. We can simply work around this issue, by clipping
resulting negative values to 0 (and raising a notice in this case), because
the reasonable range for this value is certainly catered to by positive
`int`s.
However, there still remains the issue that `xml_parser::toffset` is later
added to `char *`s, which can cause OOB reads, so we make sure that the
upper bound never exceeds the strlen(). We eschew optimizing `SKIP_TAGSTART`
wrt. to the potentially duplicate strlen() call, because that code path is
unexpected anyway.
2016-08-20 01:58:08 +02:00
Anatol Belski
98a155f336
update NEWS
2016-08-20 01:38:56 +02:00
Anatol Belski
f613582898
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
update NEWS
Fixed bug #72852 imap_mail null dereference
2016-08-20 01:38:30 +02:00
Anatol Belski
a556543a3f
update NEWS
2016-08-20 01:38:01 +02:00
Anatol Belski
a569b8816b
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
update NEWS
Fixed bug #72852 imap_mail null dereference
2016-08-20 01:37:26 +02:00
Anatol Belski
f682193609
update NEWS
2016-08-20 01:36:37 +02:00
Anatol Belski
21f08a7488
Fixed bug #72852 imap_mail null dereference
2016-08-20 01:34:46 +02:00
Stanislav Malyshev
52cef90fde
Revert "Fix closure tests using ReflectionType::__toString()"
...
This reverts commit 6fcedc96fb .
2016-08-19 11:37:02 -07:00
Stanislav Malyshev
6e6e81c402
Revert "Append \ to class name returned from ReflectionType::__toString()"
...
This reverts commit 20fdd47921 .
2016-08-19 11:36:49 -07:00
Christoph M. Becker
ae92977191
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-19 16:39:56 +02:00
Christoph M. Becker
61344c6d66
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-19 16:38:53 +02:00
Christoph M. Becker
057278b759
Revert "Fix dba configuration for Windows"
...
This reverts commit ad76e8a529 .
After a discussion with Anatol it seems to be better QA wise to not make
this change in stable versions or betas.
2016-08-19 16:35:31 +02:00
Anatol Belski
83255b1e8c
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Improve fix for bug #72837
2016-08-19 12:52:13 +02:00
Anatol Belski
2d123a916d
Improve fix for bug #72837
2016-08-19 12:50:32 +02:00
Christoph M. Becker
9fcee1e656
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-19 11:49:07 +02:00
Christoph M. Becker
4df85466b6
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-19 11:47:42 +02:00
Christoph M. Becker
ad76e8a529
Fix dba configuration for Windows
...
To be able to build the dba extension on Windows, libdb was required. This
is contrary to *nix where each handler can be configured individually. To
avoid BC breaks, we only do minimal modifications, instead of adjusting the
Windows configuration to match the *nix configuration, for now.
2016-08-19 11:42:16 +02:00
Davey Shafik
0880bd1bb6
Update NEWS for 7.1.0RC1
2016-08-19 06:51:53 +00:00
Xinchen Hui
566d65d222
Fixed bug #72888 (Segfault on clone on splFileObject)
2016-08-19 11:28:36 +08:00
Davey Shafik
0b1c8178ab
Sync NEWS
2016-08-19 09:00:34 +10:00
Nikita Popov
37b0dcc8e0
Decouple DEBUG_FILE_UPLOAD from ZEND_DEBUG
...
Enabling ZEND_DEBUG should not result in intrusive program
behavior changes.
2016-08-19 00:34:13 +02:00
Christoph M. Becker
cf40f999ba
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-18 18:03:15 +02:00
Christoph M. Becker
caf0ad403d
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-18 17:56:16 +02:00
Christoph M. Becker
bc1214f25e
Fix broken test include
...
To avoid that the test stalls, we must always use `t` mode.
2016-08-18 17:53:57 +02:00
Anatol Belski
2a1d35ec6c
update NEWS
2016-08-18 17:53:08 +02:00
Anatol Belski
b4b8d0887a
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
2016-08-18 17:51:18 +02:00
Anatol Belski
e6d3221766
update NEWS
2016-08-18 17:50:17 +02:00
Anatol Belski
74cfb2284e
fix format
2016-08-18 16:29:46 +02:00
Anatol Belski
2f430a4b6c
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
avoid other efforts if memory mapping fails
2016-08-18 16:01:23 +02:00
Anatol Belski
98d8794eae
avoid other efforts if memory mapping fails
2016-08-18 15:58:33 +02:00
Julien Pauli
5818b09a45
Updated UPGRADING about function call args
2016-08-18 15:46:02 +02:00
Anatol Belski
ecdd24f0fc
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix test
2016-08-18 15:36:07 +02:00
Anatol Belski
91cd55e32a
fix test
2016-08-18 15:35:26 +02:00
Anatol Belski
20aae1caa3
map ell the err code
2016-08-18 15:28:15 +02:00
Anatol Belski
b81a073b85
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72858 shm_attach null dereference
2016-08-18 14:40:20 +02:00
Anatol Belski
67f8c14c29
Fixed bug #72858 shm_attach null dereference
2016-08-18 14:15:10 +02:00
Ferenc Kovacs
a2ee13b5ea
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-18 13:04:43 +02:00
Ferenc Kovacs
7ecd4bb0a4
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-18 13:03:14 +02:00
Ferenc Kovacs
761d2f629b
fix NEWS
2016-08-18 13:01:53 +02:00
Xinchen Hui
1eb4851fa2
Remove leftover of previous change
2016-08-18 15:44:33 +08:00
Xinchen Hui
66a527b8c1
Fixed segfault introduced in 447e57a1e1
2016-08-18 15:37:39 +08:00
Xinchen Hui
a3740dadec
Remove outdate checks
2016-08-18 15:37:15 +08:00
Christopher Jones
1685282a15
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-18 15:47:47 +10:00
Christopher Jones
127b42f9b3
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-18 15:47:36 +10:00
Christopher Jones
f2d5305097
Add myself as PDO_OCI maintainer
2016-08-18 15:47:25 +10:00
Christopher Jones
cb34882e61
Prepare for OCI8 PECL release
2016-08-18 13:58:24 +10:00
Christopher Jones
fe3e330c2e
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-18 13:52:56 +10:00
Christopher Jones
7ed2602af8
Prepare for OCI8 PECL release
2016-08-18 13:52:50 +10:00
Christopher Jones
b12ac316eb
Prepare for OCI8 PECL release
2016-08-18 13:50:36 +10:00
Anatol Belski
2103e9f21f
fix test
...
The improvements to the base64 functionality allows now to loosen
strictness. Strict mode still can be activated later, if there are
any issues.
2016-08-18 00:18:26 +02:00
Anatol Belski
fc1b69888e
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
sync NEWS
2016-08-18 00:16:50 +02:00
Anatol Belski
52787e902f
sync NEWS
2016-08-18 00:15:54 +02:00
Christoph M. Becker
38f2c6262f
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-17 22:13:57 +02:00
Christoph M. Becker
9fa0009702
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-17 22:12:01 +02:00
Christoph M. Becker
54293d21cb
Skip tests that are supposed to fail due to bugs in old external libgd
2016-08-17 21:36:26 +02:00
Kalle Sommer Nielsen
d85fd07923
Merge branch 'PHP-7.1' of git.php.net:php-src into PHP-7.1
2016-08-17 20:27:46 +02:00
Kalle Sommer Nielsen
447e57a1e1
Fixed 7.1 build, decls first please!
2016-08-17 20:26:32 +02:00
Christoph M. Becker
09898f91a3
Make this test also a little more resilient
...
See <http://git.php.net/?p=php-src.git;a=commit;h=a3159d29bb24d5c946c14b7aa33e96bebcd56e59 >.
2016-08-17 19:09:31 +02:00
Christoph M. Becker
7f47dcf31b
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-17 18:25:45 +02:00
Christoph M. Becker
1bc9ea4f10
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-17 18:13:41 +02:00
Christoph M. Becker
a3159d29bb
Make tests a little more resilient
...
PNG allows identical images to be stored differently what makes nearly all
tests checking the MD5 hash of the PNG representation fail with external
libgd. For now, we use the GD format instead, which doesn't allow for such
differences.
Of course, this md5() checking should be replaced by a image diffing feature
in the long run.
2016-08-17 17:59:33 +02:00
Kalle Sommer Nielsen
1e4cae28b2
Seems like I did a bad merge earlier, this should make PHP-7.0 sync with 7.1/master properly now
2016-08-17 16:34:22 +02:00
Kalle Sommer Nielsen
27ceb6ffb5
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix build as done in master in commit 040331c364
Fixed C89 build
2016-08-17 14:15:09 +02:00
Kalle Sommer Nielsen
9b783107e5
Fix build as done in master in commit 040331c364
...
The reason why we cannot use round() here, is that it does not come with the standard C library on Windows, I don't think this affects other systems.
At the same time, also expose _php_math_round()
2016-08-17 14:10:24 +02:00
Kalle Sommer Nielsen
8a1fbdda43
Fixed C89 build
2016-08-17 13:43:50 +02:00
Anatol Belski
f7231acadf
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix char * vs zend_string *
2016-08-17 13:23:31 +02:00
Anatol Belski
06c0540b90
fix char * vs zend_string *
2016-08-17 13:22:02 +02:00
Christoph M. Becker
f7d4733b2e
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-17 12:49:00 +02:00
Christoph M. Becker
356b586ec1
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-17 12:47:06 +02:00
Christoph M. Becker
48198e4c25
Fix #68302 : impossible to compile php with zip support
...
We should not let configure succeed, if SIZEOF_OFF_T == 0, just to let the
compilation fail later. Instead we bail out early, giving a hint regarding
the potential issue, namely misconfigured libraries.
2016-08-17 12:43:29 +02:00
Anatol Belski
526e6bf818
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix tests
2016-08-17 12:41:38 +02:00
Anatol Belski
05c8a0771d
fix tests
...
The 70436 test is just a bonus for the hardening in 72633.
2016-08-17 12:39:35 +02:00
Xinchen Hui
0fd0328933
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Avoid duplicating string
2016-08-17 18:19:59 +08:00
Xinchen Hui
195d7618e7
Avoid duplicating string
2016-08-17 18:19:14 +08:00
Anatol Belski
afa832b5a6
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Revert "fix tests"
2016-08-17 12:07:39 +02:00
Anatol Belski
7d4c5a0dc9
Revert "fix tests"
...
This reverts commit a47df5be19 .
Looks like some environment issue, as some system throws the notice,
some don't. Revert for now.
2016-08-17 12:04:03 +02:00
Anatol Belski
60f1ec1c32
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix leak
2016-08-17 11:53:00 +02:00
Anatol Belski
a5d00fc908
fix leak
2016-08-17 11:51:56 +02:00
Xinchen Hui
30e751fe5b
Update NEWs
2016-08-17 17:14:53 +08:00
Xinchen Hui
ce6ad9bdd9
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0: (48 commits)
Update NEWs
Unused label
Fixed bug #72853 (stream_set_blocking doesn't work)
fix test
Bug #72663 - part 3
Bug #72663 - part 2
Bug #72663 - part 1
Update NEWS
BLock test with memory leak
fix tests
Fix TSRM build
Fix bug #72850 - integer overflow in uuencode
Fixed bug #72849 - integer overflow in urlencode
Fix bug #72848 - integer overflow in quoted_printable_encode caused heap corruption
Fix bug #72838 - Integer overflow lead to heap corruption in sql_regcase
Fix bug #72837 - integer overflow in bzdecompress caused heap corruption
Fix bug #72836 - integer overflow in base64_decode caused heap corruption
Fix for bug #72807 - do not produce strings with negative length
Fix for bug #72790 and bug #72799
Fix bug #72730 - imagegammacorrect allows arbitrary write access
...
Conflicts:
ext/standard/var_unserializer.c
2016-08-17 17:14:30 +08:00
Xinchen Hui
1dab8e07f2
Update NEWs
2016-08-17 16:56:58 +08:00
Xinchen Hui
b172f43caa
Unused label
2016-08-17 16:56:20 +08:00
Xinchen Hui
3956deb1b2
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed bug #72853 (stream_set_blocking doesn't work)
Conflicts:
main/streams/plain_wrapper.c
2016-08-17 16:56:02 +08:00
Xinchen Hui
abe00908af
Fixed bug #72853 (stream_set_blocking doesn't work)
...
Implemented PHP_STREAM_OPTION_META_DATA_API for plain_wrappers
2016-08-17 16:54:21 +08:00
Stanislav Malyshev
ed9d916c28
fix test
2016-08-17 01:12:33 -07:00
Nikita Popov
e0f9fbdfa6
Bug #72663 - part 3
...
When using the php_serialize session serialization handler, do
not use the result of the unserialization if it failed.
2016-08-17 01:01:03 -07:00
Nikita Popov
61f2f5a0f7
Bug #72663 - part 2
...
If a (nested) unserialize() call fails, we remove all the values
that were inserted into var_hash during that call. This prevents
their use in other unserializations in the same context.
2016-08-17 00:47:02 -07:00
Nikita Popov
2135fdef9b
Bug #72663 - part 1
...
Don't call __destruct() on an unserialized object that has a
__wakeup() method if either
a) unserialization of its properties fails or
b) the __wakeup() call fails (e.g. by throwing).
This basically treats __wakeup() as a form of constructor and
aligns us with the usual behavior that if the constructor call
fails the destructor should not be called.
The security aspect here is that people use __wakeup() to prevent
unserialization of objects with dangerous __destruct() methods,
but this is ineffective if __destruct() can still be called while
__wakeup() was skipped.
2016-08-17 00:45:57 -07:00
Stanislav Malyshev
0d13325b66
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6: (24 commits)
Update NEWS
BLock test with memory leak
fix tests
Fix TSRM build
Fix bug #72850 - integer overflow in uuencode
Fixed bug #72849 - integer overflow in urlencode
Fix bug #72848 - integer overflow in quoted_printable_encode caused heap corruption
Fix bug #72838 - Integer overflow lead to heap corruption in sql_regcase
Fix bug #72837 - integer overflow in bzdecompress caused heap corruption
Fix bug #72836 - integer overflow in base64_decode caused heap corruption
Fix for bug #72807 - do not produce strings with negative length
Fix for bug #72790 and bug #72799
Fix bug #72730 - imagegammacorrect allows arbitrary write access
Fix bug#72697 - select_colors write out-of-bounds
Fixed bug #72627 : Memory Leakage In exif_process_IFD_in_TIFF
Fix bug #72750 : wddx_deserialize null dereference
Fix bug #72771 : ftps:// opendir wrapper is vulnerable to protocol downgrade attack
Improve fix for #72663
Fix bug #70436 : Use After Free Vulnerability in unserialize()
Fix bug #72749 : wddx_deserialize allows illegal memory access
...
Conflicts:
Zend/zend_API.h
ext/bz2/bz2.c
ext/curl/interface.c
ext/ereg/ereg.c
ext/exif/exif.c
ext/gd/gd.c
ext/gd/tests/imagetruecolortopalette_error3.phpt
ext/gd/tests/imagetruecolortopalette_error4.phpt
ext/session/session.c
ext/snmp/snmp.c
ext/standard/base64.c
ext/standard/ftp_fopen_wrapper.c
ext/standard/quot_print.c
ext/standard/url.c
ext/standard/uuencode.c
ext/standard/var.c
ext/standard/var_unserializer.c
ext/standard/var_unserializer.re
ext/wddx/tests/bug72790.phpt
ext/wddx/tests/bug72799.phpt
ext/wddx/wddx.c
sapi/cli/generate_mime_type_map.php
2016-08-17 00:43:33 -07:00
Stanislav Malyshev
75d7666968
Merge branch 'PHP-7.0.10' into PHP-7.0
...
* PHP-7.0.10:
Fix bug #72749 : wddx_deserialize allows illegal memory access
Fixed bug #72627 : Memory Leakage In exif_process_IFD_in_TIFF
fix tests
Fix bug#72697 - select_colors write out-of-bounds
Fix bug #72708 - php_snmp_parse_oid integer overflow in memory allocation
Fix bug #72730 - imagegammacorrect allows arbitrary write access
Fix bug #72750 : wddx_deserialize null dereference
Fix bug #72771 : ftps:// opendir wrapper is vulnerable to protocol downgrade attack
fix tests
add missing skipif section
Fix for bug #72790 and bug #72799
Fix bug #72837 - integer overflow in bzdecompress caused heap corruption
Fix bug #72742 - memory allocator fails to realloc small block to large one
Use size_t for path length
Check for string overflow
Fix for bug #72782 : mcrypt accepts only ints, so don't pass anything else
Fix bug #72674 - check both curl_escape and curl_unescape
2016-08-16 23:52:22 -07:00
Stanislav Malyshev
f8a75d4eee
Merge branch 'PHP-7.0' into PHP-7.0.10
...
* PHP-7.0: (34 commits)
Fix URL rewriter partially
Support "git worktree"
Add NEWS
Fix ASSERT logic
Bugfix 72791: fix memory leak in PDO persistent connections
Don't copy mime types in CLI server
Remove obsolete Id tags
Bump version in OCI8 test
Fixed bug #72788 (Invalid memory access when using persistent PDO connection)
Remove typo'd commit
Fix bug 72788: Invalid memory access when database_object_handle is undefined. Also fix memory leak in dbh_free when using persistent PDO connections.
Replace dead branch with ZEND_ASSERT()
Add test for bug #69107 : finfo no longer detects PHP files
Fix bug #55451
Fix stream_socket_enable_crypto() test
Remove old $Id$ tags
Sync with 7.1 branch changes from Nikita & Dimitri to keep OCI8 code identical
Fix bug #72524 (Binding null values triggers ORA-24816 error)
Fix the fix (Nikita), thanks!
Check the return value of dbconvert() in mssql_guid_string(), as it may return -1 in case the conversion failed. In that case false is returned.
...
Conflicts:
ext/standard/ftp_fopen_wrapper.c
2016-08-16 23:50:42 -07:00
Stanislav Malyshev
9e00ad2b09
Update NEWS
2016-08-16 23:44:59 -07:00
Stanislav Malyshev
4bf5c3187f
BLock test with memory leak
2016-08-16 22:55:44 -07:00
Stanislav Malyshev
d8b2de164e
fix tests
2016-08-16 22:55:43 -07:00
Stanislav Malyshev
40bd921cea
Fix TSRM build
2016-08-16 22:55:43 -07:00
Stanislav Malyshev
35a8ed2f62
Fix bug #72850 - integer overflow in uuencode
2016-08-16 22:55:43 -07:00
Stanislav Malyshev
b9e81e5844
Fixed bug #72849 - integer overflow in urlencode
2016-08-16 22:55:42 -07:00
Stanislav Malyshev
24d741d376
Fix bug #72848 - integer overflow in quoted_printable_encode caused heap corruption
2016-08-16 22:55:42 -07:00
Stanislav Malyshev
5f91f692c3
Fix bug #72838 - Integer overflow lead to heap corruption in sql_regcase
2016-08-16 22:55:42 -07:00
Stanislav Malyshev
cfdeedd985
Fix bug #72837 - integer overflow in bzdecompress caused heap corruption
2016-08-16 22:55:41 -07:00
Stanislav Malyshev
d6a43a8562
Fix bug #72836 - integer overflow in base64_decode caused heap corruption
2016-08-16 22:55:41 -07:00
Stanislav Malyshev
1cd6bc6463
Fix for bug #72807 - do not produce strings with negative length
2016-08-16 22:55:41 -07:00
Stanislav Malyshev
5a34bd6d1e
Fix for bug #72790 and bug #72799
2016-08-16 22:55:41 -07:00
Stanislav Malyshev
1bd103df00
Fix bug #72730 - imagegammacorrect allows arbitrary write access
2016-08-16 22:55:40 -07:00
Stanislav Malyshev
a3598dd7c9
Fix bug#72697 - select_colors write out-of-bounds
2016-08-16 22:55:40 -07:00
Stanislav Malyshev
6dbb1ee46b
Fixed bug #72627 : Memory Leakage In exif_process_IFD_in_TIFF
2016-08-16 22:55:40 -07:00
Stanislav Malyshev
698a691724
Fix bug #72750 : wddx_deserialize null dereference
2016-08-16 22:55:39 -07:00
Stanislav Malyshev
e018ff094f
Fix bug #72771 : ftps:// opendir wrapper is vulnerable to protocol downgrade attack
2016-08-16 22:55:39 -07:00
Stanislav Malyshev
639f7fde6a
Improve fix for #72663
2016-08-16 22:55:20 -07:00
Stanislav Malyshev
95d09e4b5e
Fix bug #70436 : Use After Free Vulnerability in unserialize()
2016-08-16 22:55:20 -07:00
Stanislav Malyshev
426aeb2808
Fix bug #72749 : wddx_deserialize allows illegal memory access
2016-08-16 22:55:19 -07:00
Stanislav Malyshev
f1a0b7d690
Update comment
2016-08-16 22:55:19 -07:00
Stanislav Malyshev
da316b50bd
Fix bug #72708 - php_snmp_parse_oid integer overflow in memory allocation
2016-08-16 22:55:19 -07:00
Stanislav Malyshev
8763c6090d
Fix bug #72681 - consume data even if we're not storing them
2016-08-16 22:54:42 -07:00
Stanislav Malyshev
448c9be157
Fix bug #72663 - destroy broken object when unserializing
2016-08-16 22:54:42 -07:00
Xinchen Hui
e47773b626
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Unused var
2016-08-17 11:18:48 +08:00
Xinchen Hui
f3231a7c76
Unused var
2016-08-17 11:16:48 +08:00
Anatol Belski
5a4eab965a
update NEWS
2016-08-17 01:44:29 +02:00
Anatol Belski
0077287688
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
2016-08-17 01:44:04 +02:00
Anatol Belski
0f337e11bc
update NEWS
2016-08-17 01:37:40 +02:00
Christoph M. Becker
1d24ac46ab
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-17 01:23:22 +02:00
Christoph M. Becker
6202b47e63
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-17 01:22:11 +02:00
Anatol Belski
abc7d1f140
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix test
fix blocking pipe stream option value
2016-08-17 00:58:54 +02:00
Anatol Belski
20f76efb78
fix test
2016-08-17 00:56:19 +02:00
Anatol Belski
6de67244d4
fix blocking pipe stream option value
...
As revealed by #72857 , this value conflicts with the xport option.
Wrong code can otherwise cause streams misbehave, fe if local and
network streams APIs are mixed.
2016-08-17 00:53:15 +02:00
Christoph M. Becker
1bb92d5212
#72085 : SEGV on unknown address zif_xml_parse
...
We better make sure that the ZVALs we're accessing as arrays are indeed
arrays.
2016-08-17 00:42:45 +02:00
Stanislav Malyshev
e3829b8869
Fix bug #72749 : wddx_deserialize allows illegal memory access
...
(cherry picked from commit 659a21dc20f0b64dafd8cb16573059d3b45cce6b)
Conflicts:
ext/wddx/wddx.c
2016-08-16 23:36:14 +02:00
Anatol Belski
620bb201c4
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix test cleanup
2016-08-16 22:55:51 +02:00
Anatol Belski
f18f394386
fix test cleanup
2016-08-16 22:54:51 +02:00
Anatol Belski
77ea89cb33
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed #72857 stream_socket_recvfrom read access violation
2016-08-16 22:50:28 +02:00
Anatol Belski
5391bb8be0
Fixed #72857 stream_socket_recvfrom read access violation
2016-08-16 22:47:50 +02:00
Nikita Popov
7384fcff0a
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-16 21:05:57 +02:00
Nikita Popov
e2230c17d3
Fix bug #72854
2016-08-16 21:05:30 +02:00
Aaron Piotrowski
6fcedc96fb
Fix closure tests using ReflectionType::__toString()
2016-08-16 13:05:51 -05:00
Aaron Piotrowski
20fdd47921
Append \ to class name returned from ReflectionType::__toString()
2016-08-16 11:28:33 -05:00
Nikita Popov
ba09a520d2
Cleanup parameter/return type checking code
...
a) Extract all the logic for error message formatting into a separate
function that is reused for everything.
b) Extract the logic for whether a value matches a type into two
functions, one for user types, one for internal ones.
This tries to fight the increasing code duplication in the type
checking code, whether everything was repeated at least four times
and parts of the error message handling were repeated in dozens of
branches.
2016-08-16 15:48:33 +02:00
Stanislav Malyshev
24fb60ffe9
Fixed bug #72627 : Memory Leakage In exif_process_IFD_in_TIFF
...
(cherry picked from commit 620b01337cc39f856ca68c34c35e154f5f0682fc)
Conflicts:
ext/exif/exif.c
2016-08-16 15:04:16 +02:00
Anatol Belski
d926a48fd2
fix tests
2016-08-16 14:41:24 +02:00
Anatol Belski
28022c9b1f
Fix bug#72697 - select_colors write out-of-bounds
...
(cherry picked from commit b6f13a5ef9d6280cf984826a5de012a32c396cd4)
Conflicts:
ext/gd/gd.c
2016-08-16 14:37:39 +02:00
Stanislav Malyshev
b735a4419c
Fix bug #72708 - php_snmp_parse_oid integer overflow in memory allocation
...
(cherry picked from commit c3f6d6da100c6451a540680504de4105b8bed83c)
Conflicts:
ext/snmp/snmp.c
main/php_version.h
2016-08-16 14:22:10 +02:00
Stanislav Malyshev
e70069a62f
Fix bug #72730 - imagegammacorrect allows arbitrary write access
...
(cherry picked from commit 047fe0ed03093a496691d376fcf51a7e2f1d04b0)
Conflicts:
ext/gd/gd.c
2016-08-16 14:14:03 +02:00
Stanislav Malyshev
f1486f0fd6
Fix bug #72750 : wddx_deserialize null dereference
...
(cherry picked from commit 6930a1d12c47aa1d2675837852910d177b0ceb11)
Conflicts:
ext/wddx/wddx.c
2016-08-16 13:13:05 +02:00
Anatol Belski
e5b0952be2
Fix bug #72771 : ftps:// opendir wrapper is vulnerable to protocol downgrade attack
...
(cherry picked from commit f9c2edb4dbc01a817989b70ca7726f177bb1a103)
Conflicts:
ext/standard/ftp_fopen_wrapper.c
2016-08-16 13:08:24 +02:00
Anatol Belski
a47df5be19
fix tests
2016-08-16 13:01:06 +02:00
Anatol Belski
4bccb8e94e
add missing skipif section
2016-08-16 12:53:40 +02:00
Stanislav Malyshev
0c8a2a2cd1
Fix for bug #72790 and bug #72799
...
(cherry picked from commit a14fdb9746262549bbbb96abb87338bacd147e1b)
Conflicts:
ext/wddx/wddx.c
2016-08-16 12:46:29 +02:00
Nikita Popov
1397f754c8
Fix handling of qualified nullable parameter types
...
compile_typename() can't deal with TYPE_NULLABLE flags, drop it
beforehand.
2016-08-16 12:43:17 +02:00
Anatol Belski
67d0fe39ee
Fix bug #72837 - integer overflow in bzdecompress caused heap corruption
...
Conflicts:
ext/bz2/bz2.c
2016-08-16 12:34:25 +02:00
Dmitry Stogov
443da77c35
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed use after free
2016-08-16 11:44:53 +03:00
Dmitry Stogov
ff06588130
Fixed use after free
2016-08-16 11:44:22 +03:00
Christopher Jones
603ed84c13
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-16 16:59:58 +10:00
Christopher Jones
51c1b64fa9
Remove unused OCI8 macros
2016-08-16 16:58:20 +10:00
Matthias Endler
ad8b99c888
Fix some typos in PHP FPM configuration
...
[skip ci]
2016-08-15 22:50:14 +02:00
Nikita Popov
f7caa2bd8e
Hide (un)serialize data from ABI
...
The (UN)SERIALIZE_INIT/DESTROY macros now go through non-inlined
functions, so any changes to them will apply to extensions without
rebuilds.
Additionally, the (un)serialize_data structures are now no longer
exported.
This means that we are allowed to change these structures in patch
releases without breaking the ABI.
2016-08-15 22:42:27 +02:00
Xinchen Hui
c63260c088
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72846 (getConstant for a array constant with constant values returns NULL/NFC/UKNOWN)
2016-08-15 23:25:07 +08:00
Xinchen Hui
60de74ebda
Fixed bug #72846 (getConstant for a array constant with constant values returns NULL/NFC/UKNOWN)
2016-08-15 23:22:55 +08:00
Stanislav Malyshev
c2a13ced42
Fix bug #72742 - memory allocator fails to realloc small block to large one
2016-08-14 19:08:59 -07:00
Anatol Belski
51b0398ffc
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
put missing prototype and fix ts build
2016-08-14 22:40:20 +02:00
Anatol Belski
d6b46901b2
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
put missing prototype and fix ts build
2016-08-14 22:39:01 +02:00
Anatol Belski
4a4422740f
put missing prototype and fix ts build
2016-08-14 22:35:01 +02:00
Jakub Zelenka
427c8c809d
Set DSA or DH key only if pub key supplied
2016-08-14 20:42:56 +01:00
Anatol Belski
b783952cb1
Merge branch 'PHP-7.1' of git.php.net:php-src into PHP-7.1
2016-08-14 21:00:56 +02:00
Anatol Belski
909b62cda2
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
update NEWS
2016-08-14 20:55:41 +02:00
Anatol Belski
32c94deac3
update UPGRADING
2016-08-14 20:55:26 +02:00
Anatol Belski
e910b0a8a5
update NEWS
2016-08-14 20:52:47 +02:00
Anatol Belski
9088ef8052
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
update NEWS
2016-08-14 20:51:44 +02:00
Anatol Belski
5c7f802e7e
update NEWS
2016-08-14 20:50:23 +02:00
Jakub Zelenka
c3c90abb17
Return false if tag is not supplied or cannot be retrieved in AEAD
...
It doesn't make sense to return just encoded string as it cannot be
used anyway (decryption without a tag will not work).
2016-08-14 19:34:03 +01:00
Anatol Belski
e6536b9d6f
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72759 Regression in pgo_pgsql
2016-08-14 20:06:44 +02:00
Anatol Belski
245eaf5187
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fixed bug #72759 Regression in pgo_pgsql
2016-08-14 20:04:49 +02:00
Anatol Belski
977cbc2fff
Fixed bug #72759 Regression in pgo_pgsql
...
This is caused by the fix for #72633 . Namely, lastval() throws an error,
if no nextval() was called earlier in the same session. This is by all
means correct so far, however inside a transaction it leads to an abort.
This is the opposite to MySQL's last_insert_id() which doesn't produce
any error no matter something were autoincremented or not.
To avoid existing scripts breakage in the stable branches, the previous
patch is extended to revert the transaction to the state before the lastval()
call in case of error. It is done only for 5.6 and 7.0 to retain BC. For 7.1+,
the clean behavior should persist. This is already the current behavior, when
the sequence name is explicitly passed. So there's no reason to obfuscate the
errors where this breakage is valid.
2016-08-14 19:33:24 +02:00
Jakub Zelenka
37c12f8f86
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-14 14:01:36 +01:00
Jakub Zelenka
436d50a821
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-14 14:00:35 +01:00
Jakub Zelenka
9f1d962ed6
Fixed bug #72787 (json_decode reads out of bounds)
2016-08-14 13:52:59 +01:00
Nikita Popov
6ab9b531bc
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-13 21:42:51 +02:00
Nikita Popov
98787d9002
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-13 21:41:00 +02:00
Benedict Singer
dfadc5a427
Bug 70195
...
Many FTP-S servers now require FTP clients to re-use the SSL session
from the control connection on the data connection, to prove that the
same entity controls both connections. This patch updates PHP's FTP-S
client code to allow that possibility.
2016-08-13 21:35:03 +02:00
Christoph M. Becker
a927056cad
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-13 16:31:43 +02:00
Christoph M. Becker
33508a3d47
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-13 16:23:15 +02:00
Christoph M. Becker
82df4e2638
Fix #72278 : getimagesize returning FALSE on valid jpg
...
getimagesize() is rather strict about the length of the marker payload data,
and fails if there are extraneous bytes before the next marker. Only a very
special case reported in bug #13213 is catered to.
libjpeg is rather resilient to such corrupted JPEG files, and raises a
recoverable error in this case. Other image processors also accept such
JPEG files, so we adapt getimagesize() to skip (but warn about) such
extraneous bytes.
2016-08-13 16:14:34 +02:00
Christoph M. Becker
f0c77ee7f8
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-13 12:06:11 +02:00
Christoph M. Becker
a93c62aafa
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-13 11:47:20 +02:00
Christoph M. Becker
ae3b2078ea
Fix #72823 : strtr out-of-bound access
...
If php_strtr_array_prepare_repls() reports pattern_len == 0, we return
early to avoid OOB accesses, and because there is nothing to replace anyway.
2016-08-13 11:40:33 +02:00
Christoph M. Becker
02d6e4e517
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-13 01:29:49 +02:00
Christoph M. Becker
175d94b6e5
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-13 01:21:57 +02:00
Christoph M. Becker
7938ebf6c1
Fix #60665 : call to empty() on NULL result using PDO::FETCH_LAZY returns false
...
The has_property handler only checked whether a respective column name
exists, but neither whether the column value is set, nor whether it is
empty, respectively. We fix that to match the behavior of POD:FETCH_OBJ in
particular and PHP in general.
2016-08-13 01:11:13 +02:00
Christoph M. Becker
040e99f566
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-12 12:55:32 +02:00
Christoph M. Becker
92a076a92b
Fix #72793 : xml_parser_free leaks mem when execute xml_set_object
2016-08-12 12:54:21 +02:00
Xinchen Hui
0b58d5eb81
Update NEWs
2016-08-12 16:36:57 +08:00
Xinchen Hui
dd618664a0
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72813 (Segfault with __get returned by ref)
Fix URL rewriter partially
Conflicts:
Zend/zend_object_handlers.c
ext/standard/url_scanner_ex.c
ext/standard/url_scanner_ex.re
2016-08-12 16:35:41 +08:00
Xinchen Hui
fe41f87e46
Merge branch 'PHP-7.0' of git.php.net:/php-src into PHP-7.0
...
* 'PHP-7.0' of git.php.net:/php-src:
Fix URL rewriter partially
Support "git worktree"
2016-08-12 16:25:18 +08:00
Xinchen Hui
e03480bfab
Fixed bug #72813 (Segfault with __get returned by ref)
...
This should be safe change, as we don't dereference value and member
after calling setter/getter.
And compare to adding unref codes, this is much cheaper.
2016-08-12 16:24:46 +08:00
Yasuo Ohgaki
3467526a65
Merge RFC: Session ID without hashing
...
https://wiki.php.net/rfc/session-id-without-hashing
2016-08-12 12:31:02 +09:00
Andrea Faulds
1dab96c1db
Show "or null" in TypeErrors for nullable arg_infos
2016-08-11 18:44:43 +02:00
Davey Shafik
b33e965111
Use non-deprecated %pure-parser
2016-08-11 18:29:55 +02:00
Joey
194ffefb9e
Corrected typo in comment
...
Finger-key interface malfunction.
2016-08-11 18:28:50 +02:00
Levi Morrison
9b6d7f5701
Remove extra pointer in SplFixedArray
2016-08-11 18:25:56 +02:00
Anatol Belski
e5d9d009cf
add missing chunk to support mb path in symlink()
2016-08-11 13:38:28 +02:00
Anatol Belski
53034feda5
pull ps_title behind the logic to support the current codepage
2016-08-11 13:38:28 +02:00
Anatol Belski
525eb35667
fix typo
2016-08-11 13:38:28 +02:00
Anatol Belski
6359c7a2bf
add missing mb path support chunk
2016-08-11 13:38:28 +02:00
Aaron Piotrowski
622d2f41d1
ReflectionType improvements
...
Added ReflectionNamedType and updated ReflectionType::__toString()
2016-08-11 12:19:33 +02:00
Ville Hukkamäki
283b0cc8a5
Fix #72810 . Add check for SKIP_ONLINE_TESTS
2016-08-11 12:01:24 +02:00
Stanislav Malyshev
6304a611cd
Use size_t for path length
2016-08-10 23:46:58 -07:00
Stanislav Malyshev
7bf6d98535
Check for string overflow
2016-08-10 23:46:33 -07:00
Stanislav Malyshev
4f6a97f532
Fix for bug #72782 : mcrypt accepts only ints, so don't pass anything else
2016-08-10 22:39:03 -07:00
Yasuo Ohgaki
ae3782a0db
Fix URL rewriter partially
2016-08-11 09:18:47 +09:00
Yasuo Ohgaki
f19578ad58
Fix URL rewriter partially
2016-08-11 09:18:33 +09:00
Yasuo Ohgaki
a53a6b3fb4
Fix URL rewriter issues
2016-08-11 08:31:48 +09:00
Yasuo Ohgaki
2644943968
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Support "git worktree"
2016-08-11 08:09:37 +09:00
Yasuo Ohgaki
5bf14e4699
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Support "git worktree"
2016-08-11 08:09:05 +09:00
Yasuo Ohgaki
a38bc7b373
Support "git worktree"
2016-08-11 08:08:26 +09:00
Leigh
9a9004318f
Preserve BC for rand() AND mt_rand() where min > max
2016-08-10 23:32:32 +01:00
Christoph M. Becker
24fdffdacb
Update to SQLite 3.14.0
2016-08-10 18:09:38 +02:00
Keyur
40059beed8
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Add NEWS
Fix ASSERT logic
Bugfix 72791: fix memory leak in PDO persistent connections
2016-08-09 17:30:26 +00:00
Keyur
bb955ec937
Add NEWS
2016-08-09 17:29:36 +00:00
Keyur
2b7715b925
Merge branch 'pull-request/2067' into PHP-7.0
2016-08-09 17:27:52 +00:00
Keyur
2ab9a2d4be
Fix ASSERT logic
2016-08-09 14:41:20 +00:00
Keyur
98e4d509f6
Bugfix 72791: fix memory leak in PDO persistent connections
2016-08-09 14:01:25 +00:00
Nikita Popov
2fbfa7f62e
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-09 15:35:04 +02:00
Nikita Popov
842e408c67
Don't copy mime types in CLI server
...
This is both unnecessary and causes leaks in valgrind.
2016-08-09 15:34:03 +02:00
Christoph M. Becker
b50a4a485a
Class constant visibility modifiers are now supported
2016-08-09 11:54:43 +02:00
Christopher Jones
a3fdc5f680
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-09 16:13:27 +10:00
Christopher Jones
3c5e6b29ce
Remove obsolete Id tags
2016-08-09 16:12:58 +10:00
Christopher Jones
3dbeb6118d
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-09 16:00:44 +10:00
Christopher Jones
797f69ef32
Bump version in OCI8 test
2016-08-09 15:59:59 +10:00
Xinchen Hui
ecc4025c71
Update NEWS
2016-08-09 11:32:55 +08:00
Xinchen Hui
3f1e9ed8f8
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72788 (Invalid memory access when using persistent PDO connection)
Remove typo'd commit
Fix bug 72788: Invalid memory access when database_object_handle is undefined. Also fix memory leak in dbh_free when using persistent PDO connections.
2016-08-09 11:32:34 +08:00
Xinchen Hui
e52cb1858d
Fixed bug #72788 (Invalid memory access when using persistent PDO connection)
2016-08-09 11:32:16 +08:00
Xinchen Hui
ebd21de1e4
Merge branch 'bug72788' of https://github.com/keyurdg/php-src into PHP-7.0
...
* 'bug72788' of https://github.com/keyurdg/php-src :
Remove typo'd commit
Fix bug 72788: Invalid memory access when database_object_handle is undefined. Also fix memory leak in dbh_free when using persistent PDO connections.
2016-08-09 11:25:32 +08:00
Keyur
a74c7cb528
Remove typo'd commit
2016-08-09 01:36:15 +00:00
Keyur
3f25c4228a
Fix bug 72788: Invalid memory access when database_object_handle
...
is undefined. Also fix memory leak in dbh_free when using persistent
PDO connections.
2016-08-09 00:16:46 +00:00
Leigh
2ece5decb7
Swap min/max if min > max
2016-08-08 22:31:59 +01:00
Leigh
99e3bb1430
Allow min > max for mt_rand(). Bug #72784
2016-08-08 22:16:27 +01:00
Andrea Faulds
ab45f13a0b
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-08 21:00:49 +01:00
Andrea Faulds
5358c7cf5e
Replace dead branch with ZEND_ASSERT()
2016-08-08 20:56:11 +01:00
Christoph M. Becker
e8d8169fc1
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-08 18:51:34 +02:00
Nikita Popov
cf017ce17f
Fix array_column() packed hash initialization
...
FILL assumes enough space is alredy allocated -- do that. Note that
the used size is an upper bound, albeit a likely one.
2016-08-08 18:47:52 +02:00
Christoph M. Becker
9d03310b23
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-08 18:45:27 +02:00
Christoph M. Becker
243d5fcb1f
Add test for bug #69107 : finfo no longer detects PHP files
2016-08-08 18:43:33 +02:00
Anatol Belski
33a7ad2365
check malloc result
2016-08-08 10:33:07 +02:00
Christoph M. Becker
f706897f33
Implement #38992 : invoke() and invokeArgs() static method calls should match
...
We don't want ReflectionMethod::invoke() to simply ignore its first argument,
if the method to invoke is a static method. Instead we match its ZPP with
that of ReflectionMethod::invokeArgs(). Furthermore, we apply the DRY
principle by factoring out the code to a common helper function to prevent
inadvertent future divergence of the implementations of both methods.
As can be seen from the necessity to adapt some test cases, this causes a
BC break for some pathological cases. Therefore we apply this patch to PHP
7.1 only, which is still in beta phase.
2016-08-08 01:43:03 +02:00
Nikita Popov
e52c1f3ca9
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-07 18:50:27 +02:00
Lauri Kenttä
e616bc8694
Fix bug #55451
...
Make substr_compare ignore the length if it's NULL. This allows to
use the last parameter (case_insensitivity) with the default length.
2016-08-07 18:48:36 +02:00
Nikita Popov
f350e20da6
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-07 18:38:43 +02:00
Nikita Popov
56d7e98ddf
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-07 18:38:28 +02:00
Nikita Popov
40d237df1f
Fix stream_socket_enable_crypto() test
...
The whole test doesn't make any sense at all, but this only fixes
the additional warnings you get when linked against openssl w/o
SSL3.
2016-08-07 18:37:38 +02:00
Nikita Popov
af77c53ee1
Fix PUTC warning
...
Change the macro to not provide a useless return value using a
comma expression, which generates warnings.
2016-08-07 17:43:20 +02:00
Nikita Popov
3823bfc6f2
Avoid use of scratch space in HTTP fopen wrapper
...
Instead directly write into req_buf smart_str.
2016-08-07 17:43:06 +02:00
Lior Kaplan
283ee1f6dc
Recognize TDS versions 7.3 and 7.4
2016-08-07 15:15:59 +03:00
Christopher Jones
40bbf4ec06
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-07 10:25:16 +10:00
Christopher Jones
dd7cdab8e4
Remove old $Id$ tags
2016-08-07 10:24:56 +10:00
Christopher Jones
9acafa16b1
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-07 10:21:14 +10:00
Christopher Jones
944d473eaa
Sync with 7.1 branch changes from Nikita & Dimitri to keep OCI8 code identical
2016-08-07 10:17:06 +10:00
Christopher Jones
fadbb30e66
News for 7.1
2016-08-07 10:06:11 +10:00
Christopher Jones
f16285b35a
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-07 10:02:14 +10:00
Christopher Jones
b601dc5b29
Fix bug #72524 (Binding null values triggers ORA-24816 error)
2016-08-07 09:39:44 +10:00
Leigh
5bf39267ee
mt_rand 32/64-bit consistency
2016-08-06 11:15:26 +01:00
Kalle Sommer Nielsen
3d51b1d544
Fix the fix (Nikita), thanks!
2016-08-06 12:08:13 +02:00
Kalle Sommer Nielsen
5e2b8349b4
Check the return value of dbconvert() in mssql_guid_string(), as it may return -1 in case the conversion failed. In that case false is returned.
...
Also initialize buffer and buffer2 to NULL, which should fix bug #72039 (Use of uninitialised value on mssql_guid_string).
This only applies to 5.6, as we do not have mssql in 7.0 anymore
2016-08-06 10:17:49 +02:00
Nikita Popov
be31515cc6
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-05 23:10:12 +02:00
Nikita Popov
a2a2ea18fe
Merge branch 'PHP-5.6' into PHP-7.0
...
Conflicts:
ext/standard/ftp_fopen_wrapper.c
2016-08-05 23:09:30 +02:00
Ville Hukkamaki
65056e9d6c
Fix #72764
...
Negotiate data channel encryption after NLST command.
This is to prevent issues with IIS and ProFTPD.
2016-08-05 22:56:54 +02:00
Nikita Popov
3859bcd1f8
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-05 19:56:27 +02:00
Nikita Popov
807e81937b
Fix bug #72767
...
The page size calculation did not account for the size of the
stack header (or rather it did account for it, but in the wrong
direction...)
2016-08-05 19:55:10 +02:00
Nikita Popov
1a780e6727
Add assertion to prevent type narrowing
...
Currently type narrowing is always a bug, make sure we know about
it.
2016-08-05 16:30:57 +02:00
Nikita Popov
fc7c81ff54
Fixed bug #72762
2016-08-05 16:27:55 +02:00
ju1ius
03d03243fa
Fix #72711 : mb_ereg does not clear the $regs parameter on failure
...
When `mb_ereg` failed to match, it didn't update the `$regs` argument.
Now it will always set it to the empty array.
2016-08-05 13:22:10 +02:00
Ville Hukkamäki
318d3b3a3f
Implement request #27814
...
Construct HTTP request headers into smart_str and send whole
request in one go.
2016-08-04 14:20:36 +02:00
Xinchen Hui
3800e1cf97
Fixed bug #72743 (Out-of-bound read in php_stream_filter_create)
2016-08-04 19:10:40 +08:00
Christoph M. Becker
5b547af1ad
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-04 12:10:34 +02:00
Christoph M. Becker
62f12a8b86
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-04 12:09:16 +02:00
Christoph M. Becker
a8515a339d
Fix broken skip marker in test case
2016-08-04 12:06:07 +02:00
Matteo Beccati
70698d1566
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Clean up FR #72633
Fixed invalid handle error with Implicit Result Sets and bump OCI8 version.
Conflicts:
ext/oci8/package.xml
2016-08-04 09:37:40 +02:00
Matteo Beccati
4003595d60
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Clean up FR #72633
2016-08-04 09:30:48 +02:00
Matteo Beccati
d3a8e107ac
Clean up FR #72633
2016-08-04 09:28:58 +02:00
Christopher Jones
0781f512c3
Fixed invalid handle error with Implicit Result Sets and bump OCI8 version.
2016-08-04 17:14:19 +10:00
Christopher Jones
2b7a699acd
Fixed invalid handle error with Implicit Result Sets
2016-08-04 17:01:57 +10:00
Christopher Jones
78488a54c8
Fixed invalid handle error with Implicit Result Sets and bump OCI8 version.
2016-08-04 16:55:54 +10:00
Christopher Jones
06be3c659c
Merge branch 'PHP-7.0' of https://git.php.net/repository/php-src into PHP-7.0
2016-08-04 16:45:29 +10:00
Stanislav Malyshev
67264ebc70
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix bug #72716 - initialize buffer before read
2016-08-03 23:03:15 -07:00
Stanislav Malyshev
b57474f23e
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #72716 - initialize buffer before read
Conflicts:
ext/standard/ftp_fopen_wrapper.c
2016-08-03 23:00:32 -07:00
Stanislav Malyshev
4f861b6071
Fix bug #72716 - initialize buffer before read
2016-08-03 22:59:42 -07:00
Ferenc Kovacs
7d4f5e3938
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-04 01:43:27 +02:00
Ferenc Kovacs
db4211a8fe
Merge branch 'PHP-5.6' into PHP-7.0
...
Conflicts:
configure.in
main/php_version.h
2016-08-04 01:42:00 +02:00
Ferenc Kovacs
562c17eb4e
5.6.26 will be next
2016-08-04 01:39:37 +02:00
Nikita Popov
ec6d70db77
Fix leak on self-referencing constants
2016-08-03 23:10:09 +02:00
Davey Shafik
b304ab5c70
Move fix for #72735 to 7.1.0beta3
2016-08-03 12:31:15 -07:00
Anatol Belski
662e5ae951
improve the check, avoid strlen on NULL
2016-08-03 12:29:03 -07:00
Kalle Sommer Nielsen
835ef14979
Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).
...
Before this patch, exif_process_IFD_in_MAKERNOTE() would return false, then causing the rest of the EXIF parsing to be interrupted. This is a regression from earlier which was most likely a part of a security fix for MAKERNOTE.
The new behavior is to instead of stopping to parse, to continue so we can still fetch data like thumbnail and GPS, thrus allowing yet unsupported formats to parse. If EXIF's debugging mode is enabled, a notice will display in case we do not match against a valid MAKERNOTE signature.
This should temporarily fix bug #72682 (exif_read_data() fails to read all data for some images) until I get around to debug it further.
2016-08-03 12:29:03 -07:00
Jakub Zelenka
6822af2e73
Do not add already added object to the internal OpenSSL table
...
This fixes OpenSSL 1.1 where adding object with OID that has been
already added causes an error - preventing of duplication.
2016-08-03 20:01:41 +01:00
Anatol Belski
8f0baa9707
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
improve the check, avoid strlen on NULL
2016-08-03 18:29:42 +02:00
Anatol Belski
138689ffb7
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
improve the check, avoid strlen on NULL
2016-08-03 18:28:48 +02:00
Anatol Belski
9667ee4f72
improve the check, avoid strlen on NULL
2016-08-03 18:26:29 +02:00
Anatol Belski
a60e1bfedf
update NEWS
2016-08-03 17:42:45 +02:00
Anatol Belski
8830b3d020
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
update NEWS
Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).
2016-08-03 17:40:38 +02:00
Anatol Belski
2bdb34fd40
update NEWS
2016-08-03 17:39:55 +02:00
Anatol Belski
0e82eb48cb
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
update NEWS
Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).
2016-08-03 17:39:22 +02:00
Anatol Belski
f15c155363
update NEWS
2016-08-03 17:38:11 +02:00
Kalle Sommer Nielsen
d5796fb298
Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).
...
Before this patch, exif_process_IFD_in_MAKERNOTE() would return false, then causing the rest of the EXIF parsing to be interrupted. This is a regression from earlier which was most likely a part of a security fix for MAKERNOTE.
The new behavior is to instead of stopping to parse, to continue so we can still fetch data like thumbnail and GPS, thrus allowing yet unsupported formats to parse. If EXIF's debugging mode is enabled, a notice will display in case we do not match against a valid MAKERNOTE signature.
This should temporarily fix bug #72682 (exif_read_data() fails to read all data for some images) until I get around to debug it further.
(cherry picked from commit aabcb5481d )
2016-08-03 17:36:00 +02:00
Anatol Belski
c17092fc13
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update libs_versions.txt
update libs_versions.txt
2016-08-03 15:06:39 +02:00
Anatol Belski
e3dabe448d
update libs_versions.txt
2016-08-03 15:06:02 +02:00
Anatol Belski
7922e0f0bf
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
update libs_versions.txt
2016-08-03 15:05:39 +02:00
Anatol Belski
67c2b0a9e8
update libs_versions.txt
2016-08-03 15:03:41 +02:00
Remi Collet
f9ce8aa75b
Minor revert of be3640150c
...
On 32bits this may cause php to hangs forever.
2016-08-03 14:27:46 +02:00
Remi Collet
a70ca97c18
fix paths in tests
2016-08-03 14:24:35 +02:00
Remi Collet
8b7f594a2b
clean removed functions (since they are alias)
2016-08-03 12:59:14 +02:00
Remi Collet
cff668f7a7
Fix 32bits tests
...
Notice: this warning is only raise since rand is an alias to mt_rand
2016-08-03 12:56:07 +02:00
Anatol Belski
39587c4817
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix ts build
2016-08-03 12:20:23 +02:00
Anatol Belski
151c39827a
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix ts build
2016-08-03 12:19:29 +02:00
Anatol Belski
fad3f936ac
fix ts build
2016-08-03 12:16:42 +02:00
Remi Collet
60bb15d8a1
add skipif (needs json)
2016-08-03 11:03:22 +02:00
Stanislav Malyshev
72dbb7f416
Fix bug #72674 - check both curl_escape and curl_unescape
2016-08-03 00:58:55 -07:00
Xinchen Hui
6d1f473247
It's packed array
2016-08-03 12:37:14 +08:00
Xinchen Hui
be00b4ed13
Optmized array_rand
2016-08-03 12:06:04 +08:00
Xinchen Hui
501d24f81b
Optimized array_pad
2016-08-03 11:24:31 +08:00
Davey Shafik
9ecefe72d8
Update NEWS for 7.1.0beta3
2016-08-02 16:40:07 -07:00
Nikita Popov
41e93041f8
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-03 00:35:00 +02:00
Nikita Popov
1bcd439cad
Fix bug #72724
2016-08-03 00:34:36 +02:00
Christoph M. Becker
3d0002ed36
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-02 18:56:35 +02:00
Christoph M. Becker
3a8c027ec3
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-02 18:49:59 +02:00
Christoph M. Becker
f5622f5c87
Fix #72709 : imagesetstyle() causes OOB read for empty $styles
...
Calling imagesetstyle() with an empty $styles array caused gdImageSetStyle()
to be called with `noOfPixels==0`, what could have lead to OOB reads.
Actually, this issue will be fixed in libgd, but to avoid issues when older
libgd is in use, we simply disallow passing an empty $styles array to
imagesetstyle(), what wouldn't serve a useful purpose anyway.
2016-08-02 18:43:37 +02:00
Anatol Belski
02fce3ecea
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
cleanup table after test
- lastInsertId using Postgres Lastval() function
2016-08-02 14:42:55 +02:00
Anatol Belski
072af35b5c
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
update NEWS
cleanup table after test
- lastInsertId using Postgres Lastval() function
2016-08-02 14:40:31 +02:00
Anatol Belski
e95625f47e
update NEWS
2016-08-02 14:36:56 +02:00
Anatol Belski
40b3a031b2
cleanup table after test
2016-08-02 14:35:24 +02:00
Pablo Santiago Sánchez
90c6cbd09b
- lastInsertId using Postgres Lastval() function
2016-08-02 14:34:30 +02:00
Xinchen Hui
82ba5b59d9
Fixed warning: "operation on ‘s’ may be undefined"
2016-08-02 20:28:42 +08:00
Xinchen Hui
81a7d52814
Folder marks
2016-08-02 20:08:15 +08:00
Xinchen Hui
70f79fd8b6
Optimized array_merge and cleanup
2016-08-02 20:02:23 +08:00
Xinchen Hui
87057858a0
Merge branch 'PHP-7.1' of git.php.net:/php-src into PHP-7.1
...
* 'PHP-7.1' of git.php.net:/php-src:
prepare next
fix php_version.h
2016-08-02 17:40:37 +08:00
Xinchen Hui
e730c8fc90
Optimized array_merge
2016-08-02 17:39:53 +08:00
Anatol Belski
45eadced70
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
prepare next
2016-08-02 11:15:07 +02:00
Anatol Belski
5c51433e2a
prepare next
2016-08-02 11:13:20 +02:00
Anatol Belski
ed863e45da
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix php_version.h
2016-08-02 11:08:21 +02:00
Anatol Belski
9f14920725
fix php_version.h
2016-08-02 11:06:33 +02:00
Xinchen Hui
fea2042a47
Optimized array_column (thanks to Benjamin Coutu)
2016-08-02 12:40:46 +08:00
Xinchen Hui
a15902fa71
fixed IS_REFERENCE handling
2016-08-02 11:05:51 +08:00
Xinchen Hui
f93061471b
Make the expression more reasonble (by nikic)
2016-08-01 20:20:01 +08:00
Xinchen Hui
4d9195927a
Optimized array_reverse
2016-08-01 20:11:08 +08:00
Anatol Belski
318102fc60
update NEWS
2016-07-31 15:01:45 +02:00
Anatol Belski
db9baae4fb
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
Revert "upgraded to PCRE 8.39"
2016-07-31 15:00:18 +02:00
Anatol Belski
753e6eacd5
update NEWS
2016-07-31 14:58:46 +02:00
Anatol Belski
5f9df47ea8
Revert "upgraded to PCRE 8.39"
...
This reverts commit 2fba646837 .
PCRE-8.39 throws weird valgrind backtraces on some systems, see
http://news.php.net/php.cvs/93494 . Those could be false positives
due to some changes in JIT, still i couldn't 100% ensure this.
Thus, better we continue to ship 8.38 bundled for now, and apply
patches, if needed.
2016-07-31 14:55:17 +02:00
Nikita Popov
0e52228d60
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-30 18:36:09 +02:00
Nikita Popov
c4d35c3214
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-30 18:36:00 +02:00
Nikita Popov
c9d3ff0c6e
Revert "Fixed bug #71219 "
...
This reverts commit 14d674442e .
I misread the discussion on the bug -- this is not the correct
fix. However the other proposed fix does not work either, so just
reverting for now.
2016-07-30 18:34:34 +02:00
Nikita Popov
510aba6276
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-30 18:24:59 +02:00
Nikita Popov
9fe0398dad
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-30 18:24:14 +02:00
Nikita Popov
14d674442e
Fixed bug #71219
2016-07-30 18:21:19 +02:00
Nikita Popov
7e8c4fcc40
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-30 16:29:33 +02:00
Nikita Popov
dd7bea17bf
Merge branch 'PHP-5.6' into PHP-7.0
...
Conflicts:
ext/wddx/wddx.c
2016-07-30 16:29:10 +02:00
Nikita Popov
99613431b4
Add missing TSRMLS_FETCH()
2016-07-30 16:28:42 +02:00
Nikita Popov
f9be9b1a72
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-30 16:08:30 +02:00
Nikita Popov
029f8e8777
Fix incorrect merge
...
Forgot to amend the merge fixes...
2016-07-30 16:07:54 +02:00
Nikita Popov
be836ea4fb
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-30 15:55:00 +02:00
Nikita Popov
1f67b4c24d
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-30 15:51:23 +02:00
Nikita Popov
e87ac688d5
Fixed bug #72142
2016-07-30 15:13:03 +02:00
Christoph M. Becker
9c2814313d
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-30 12:04:12 +02:00
Christoph M. Becker
e5940aa795
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-30 12:01:29 +02:00
ju1ius
1d32b80903
fixes bad address given to onig_error_code_to_str
...
Closes bug #72710
(cherry picked from commit 0fb7eb6723bcc6fd98053911543e801edb5ab763)
2016-07-30 11:46:34 +02:00
Nikita Popov
ca82574d7c
Fix invalid free on undef const in update_const()
...
Also clean up the control flow a bit -- move all unqualified
constant handling in one branch.
2016-07-30 00:37:01 +02:00
Nikita Popov
11e050920d
Fix memory unsafety in array_walk()
...
Fixes bugs #61967 , #62607 , #69068 , #70713 .
The primary changes are:
a) Use the ht_iterator mechanism to ensure safety not only if the
iterated array itself changes, but also if it is replaced (and
potentially destroyed) entirely. We use the same semantics for
behavior under modification as foreach-by-reference. In
particular, we advance to the next element before processing it.
If the iterated entity is exchanged we iterate the new one from
the start. If it is not an array/object we warn and abort.
b) Always create a reference to the current value. Previously the
code kept the value as a non-reference and updated it to the
reference value produced by the user callback. However this is
unsafe, as the array may have been reallocated in the meantime,
so the previous value pointer is no longer value.
c) Around a recursive walk, incref the reference containing the
array. This ensures that the location where the currently
iterated value is stored cannot be freed.
One problem I was not able to solve is that we cannot decrement
the apply count if the array is exchanged during a recursive walk.
2016-07-30 00:15:32 +02:00
Nikita Popov
261c436d8c
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-29 19:08:15 +02:00
Nikita Popov
8a442a33c3
Fix ref handling in array_merge/replace_recursive()
...
As usual, if the reference has rc=1 it really isn't a reference.
2016-07-29 19:07:04 +02:00
Anatol Belski
5b6f793644
update NEWS
2016-07-29 17:33:40 +02:00
Anatol Belski
9b9aeb66bd
add test for bug #72701
2016-07-29 17:23:39 +02:00
Anatol Belski
8033fb4044
Fixed bug #72701 mysqli_get_host_info() wrong output
2016-07-29 17:00:52 +02:00
Anatol Belski
fe8daf2a28
fix typo
2016-07-29 15:08:55 +02:00
Anatol Belski
d6f7020eaa
add more errno handling
2016-07-29 15:05:41 +02:00
Anatol Belski
d8403aa019
set errno in ioutil access routine
2016-07-29 14:31:06 +02:00
Anatol Belski
6dbfd4287b
move error check to right place
...
this only makes sense when length was passed
2016-07-29 13:33:58 +02:00
Anatol Belski
0596a2561b
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
document file cache fallback ini directive
2016-07-29 13:07:43 +02:00
Anatol Belski
1666e80cb9
document file cache fallback ini directive
2016-07-29 13:04:51 +02:00
Christoph M. Becker
a837b2f6a3
Fix #72320 : iconv_substr returns false for empty strings
...
For consistency with substr() and mb_substr(), iconv_substr() should return
an empty string instead of FALSE, when $offset == iconv_strlen($str).
2016-07-29 11:33:50 +02:00
Anatol Belski
41d172d20f
fix and improve the ioutil cwd routine for nts
...
- move intermediate var to stack
- fix length calculation
- improve error code setting
2016-07-29 02:41:00 +02:00
Christoph M. Becker
09b5a453c1
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-29 01:27:51 +02:00
Christoph M. Becker
293dd3d701
Merge branch 'PHP-5.6' into PHP-7.0
...
# Resolved conflicts:
# ext/calendar/calendar.c
2016-07-29 01:26:15 +02:00
Christoph M. Becker
f67ccd4a7b
Fix #71894 : AddressSanitizer: global-buffer-overflow in zif_cal_from_jd
...
Julian days < 347998 denote invalid Jewish calendar dates, so
cal_from_jd($jd, CAL_JEWISH) and jdmonthname($jd, CAL_MONTH_JEWISH) should
actually fail. For BC we don't yet let them though, but we fix the OOB read
that happens in this case, and we also adjust cal_from_jd()'s return value
to have empty strings for "abbrevdayname" and "dayname" instead of "Sun"/
"Sunday" and NULL for "dow" instead of 0, which doesn't make any sense.
2016-07-29 01:04:21 +02:00
Christoph M. Becker
834919f0a5
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-28 20:09:50 +02:00
Christoph M. Becker
a952aac6a7
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-28 20:00:37 +02:00
Christoph M. Becker
5c458c9b02
Implement FR #65462 : Please add tests for gregorian and jewish overflow fixes
2016-07-28 19:59:14 +02:00
Christoph M. Becker
28ade0e102
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-28 19:25:22 +02:00
Christoph M. Becker
7c412688f4
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-28 19:22:40 +02:00
Christoph M. Becker
7ab39e2fae
Fix #67976 : cal_days_month() fails for final month of the French calendar
...
The French calendar ends on 0014-13-05, so trying to calculate the Julian
day of 0015-01-01 fails. We cater to that by returning the hard-coded value.
2016-07-28 19:13:58 +02:00
Nikita Popov
1315a3dd62
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-28 18:52:04 +02:00
Nikita Popov
3b48c5a36f
Revert "Make call_user_func() on reference args consistent"
...
This reverts commit fafe01b07b .
See bug #72698 , there is code using this behavior. Reverting for
PHP 7.0 *only*. The fix is still in PHP 7.1.
2016-07-28 18:45:44 +02:00
Christoph M. Becker
c61889d44b
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-28 18:25:49 +02:00
Christoph M. Becker
1693eb9d2a
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-28 18:24:37 +02:00
Christoph M. Becker
ced2a80e6f
Bug #69975 had already been fixed as of PHP 5.6.12
...
Also CVE-2015-8879 had been assigned.
2016-07-28 18:22:19 +02:00
Christoph M. Becker
81577235ee
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-28 17:31:13 +02:00
Christoph M. Becker
573568bbce
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-28 17:30:29 +02:00
Christoph M. Becker
c301adbbd1
Fix #72677 : SCM_CREDENTIALS related tests should be skipped on AIX
...
Patch provided by matthieu dot sarter dot external at atos dot net.
2016-07-28 17:19:47 +02:00
Christoph M. Becker
b0558b3004
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-28 17:00:54 +02:00
Christoph M. Becker
95190db84d
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-28 16:54:36 +02:00
Christoph M. Becker
6e886f07a8
Fix #72676 : Test cli_process_title_unix fails on AIX
...
Patch provided by matthieu dot sarter dot external at atos dot net.
2016-07-28 16:51:45 +02:00
Christoph M. Becker
af285634c6
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-28 16:40:37 +02:00
Christoph M. Becker
81c25abd25
Update to SQLite3 3.13.0
2016-07-28 16:39:24 +02:00
Christoph M. Becker
de755310b4
Merge branch 'PHP-7.0' into PHP-7.1
...
# Resolved conflicts:
# ext/mbstring/php_mbregex.c
2016-07-28 15:50:41 +02:00
Christoph M. Becker
805dc0ea47
Merge branch 'PHP-5.6' into PHP-7.0
...
# Resolved conflicts:
# ext/mbstring/php_mbregex.c
2016-07-28 15:26:29 +02:00
Christoph M. Becker
ee6900c3de
Fix #72694 : mb_ereg_search_setpos does not accept a string's last position
...
Setting the search position immediately behind the last character should be
allowed, so we fix this off-by-one error.
2016-07-28 15:21:48 +02:00
Christoph M. Becker
6aaef1ed34
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-28 14:09:29 +02:00
Christoph M. Becker
a621023168
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-28 14:03:40 +02:00
Christoph M. Becker
56cdaecb28
Fix #72693 : mb_ereg_search increments search position when a match zero-width
...
That's caused by an off-by-one error, which we fix.
2016-07-28 13:57:38 +02:00
Christoph M. Becker
db69ea32cb
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-28 13:19:15 +02:00
Christoph M. Becker
18a37eeeec
Merge branch 'PHP-5.6' into PHP-7.0
...
# Resolved conflicts:
# ext/mbstring/php_mbregex.c
2016-07-28 13:12:40 +02:00
Christoph M. Becker
d276e6a838
Fix #72691 : mb_ereg_search raises a warning if a match zero-width
...
That warning doesn't make sense (PCRE doesn't throw such a warning either),
so we remove it.
2016-07-28 13:07:05 +02:00
Christoph M. Becker
2e9b6a0aed
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-28 12:30:02 +02:00
Christoph M. Becker
c7a4e37d97
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-28 12:29:00 +02:00
Christoph M. Becker
0ae8c337a3
Bug #6836 has already been fixed in PHP 5.6.24 and 7.0.9
2016-07-28 12:26:41 +02:00
Pierrick Charron
942d6c14d2
Add new curl functions in UPGRADING
2016-07-27 23:54:45 -04:00
Pierrick Charron
8d44942912
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-27 23:39:34 -04:00
Pierrick Charron
bf37b97d9c
Merge branch 'PHP-5.6' into PHP-7.0
...
Conflicts:
ext/curl/interface.c
2016-07-27 23:36:22 -04:00
Pierrick Charron
30a5ed3a79
Fixed bug #71929 (CURLINFO_CERTINFO data parsing error).
2016-07-27 23:30:20 -04:00
Pierrick Charron
206f9f1337
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-27 18:25:55 -04:00
Pierrick Charron
1b681880c1
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-27 18:17:43 -04:00
Anatol Belski
915d2b9420
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
cleanup the table after the test run
2016-07-27 23:53:19 +02:00
Pierrick Charron
ed16f2fed5
Update NEWS
2016-07-27 17:52:05 -04:00
Anatol Belski
266c62070f
cleanup the table after the test run
2016-07-27 23:50:10 +02:00
Anatol Belski
b28758565d
update NEWS
2016-07-27 23:32:20 +02:00
Anatol Belski
a6a98b29ba
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
2016-07-27 23:31:35 +02:00
Anatol Belski
e0294b39e3
update NEWS
2016-07-27 23:30:23 +02:00
Anatol Belski
fb244637c6
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Implemented FR #72633 Postgres PDO lastInsertId() should work without specifying a sequence
2016-07-27 23:03:23 +02:00
root
12628e9a46
Implemented FR #72633 Postgres PDO lastInsertId() should work without specifying a sequence
2016-07-27 23:00:12 +02:00
Anatol Belski
1d0dc760b7
update NEWS
2016-07-27 20:49:46 +02:00
Anatol Belski
a6713dd783
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72683 getmxrr broken
2016-07-27 20:49:16 +02:00
Anatol Belski
c52322707e
Fixed bug #72683 getmxrr broken
2016-07-27 20:48:45 +02:00
Anatol Belski
064fe37aea
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
2016-07-27 20:42:05 +02:00
Anatol Belski
6e8b2d21d1
update NEWS
2016-07-27 20:41:27 +02:00
Christoph M. Becker
15f94e93e7
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-27 19:06:36 +02:00
Christoph M. Becker
40afd77826
Merge branch 'PHP-5.6' into PHP-7.0
...
# Resolved conflicts:
# ext/pcre/php_pcre.c
2016-07-27 19:00:38 +02:00
Christoph M. Becker
315c0536c2
Fix #72688 : preg_match missing group names in matches
...
We have to multiply with 0x100 to properly scale the high byte.
2016-07-27 18:50:52 +02:00
Bob Weinand
dfb3e270c2
Merge remote-tracking branch 'origin/PHP-7.0' into PHP-7.1
2016-07-27 18:18:47 +02:00
Bob Weinand
5513f00a97
Fixed a potential segfault in zend_objects_store_free_object_storage()
...
Under the special circumstance where a garbage collected objects bucket slot was not reused until the end of the script, we get access into freed memory...
No test added as it usually is valgrind-only, and only sometimes when the memory happens to have changed (i.e. (GC_FLAGS(obj) & IS_OBJ_FREE_CALLED) == 0), it actually *may* segfault
2016-07-27 18:08:43 +02:00
Christoph M. Becker
be11563fa2
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-27 16:54:27 +02:00
Christoph M. Becker
23c359c276
Merge branch 'PHP-5.6' into PHP-7.0
...
# Resolved conflicts:
# ext/sqlite3/sqlite3.c
2016-07-27 16:48:29 +02:00
Christoph M. Becker
cc125f277b
Implement #72653 : SQLite should allow opening with empty filename
...
From the [sqlite3_open](https://www.sqlite.org/c3ref/open.html ) docs:
| If the filename is an empty string, then a private, temporary on-disk
| database will be created. This private database will be automatically
| deleted as soon as the database connection is closed.
We make that facility available to userland.
While we're at it, we also do some minor optimizations, remove the
unnecessary check for NUL characters in filename, which is already catered
to by ZPP(p), and add a missing `return` in case db_obj isn't initialized.
2016-07-27 16:41:03 +02:00
Nikita Popov
fab1815192
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-27 15:59:23 +02:00
Nikita Popov
0d2c4f822c
Merge branch 'PHP-5.6' into PHP-7.0
...
Conflicts:
ext/standard/ftp_fopen_wrapper.c
2016-07-27 15:58:06 +02:00
Ville Hukkamäki
cce457c68c
Fix bug #72667
...
Open data stream after receiving PASV reply, before sending the
main request.
Included test cases for opendir() with ftp:// and ftps:// wrappers.
Test cases re-use ext/ftp/tests/server.inc
Conflicts:
ext/standard/ftp_fopen_wrapper.c
2016-07-27 15:55:47 +02:00
Pierrick Charron
929c1e0cdf
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-27 00:39:47 -04:00
Pierrick Charron
6714f73545
Merge branch 'PHP-5.6' into PHP-7.0
...
Conflicts:
main/streams/streams.c
2016-07-27 00:38:54 -04:00
Pierrick Charron
074b86d845
Fixed bug #72686 (zlib: url support is broken).
...
zlib: support is broken since a really long time.
It never worked on versions >= PHP5.6 so we can just remove
this dead code.
Bug was introduced 2006-05-14 (Before 5.2.0)
2016-07-27 00:33:13 -04:00
Pierrick Charron
a8c4a4262e
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-26 20:37:04 -04:00
Pierrick Charron
2597f5d665
Merge branch 'PHP-5.6' into PHP-7.0
...
Conflicts:
ext/spl/spl_iterators.c
2016-07-26 20:36:34 -04:00
Pierrick Charron
4c2e1a13be
Fixed bug #72684 (AppendIterator segfault with closed generator)
2016-07-26 20:34:16 -04:00
Pierrick Charron
ca493af862
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-26 19:23:08 -04:00
Pierrick Charron
31ed322b06
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-26 19:20:12 -04:00
Pierrick Charron
24d8f6ed7c
Fixed bug #71709
...
When curl_setopt is called with an empty slist as value, we should
not add the empty slist to the list of slist to free.
2016-07-26 18:50:15 -04:00
Anatol Belski
21f80a00a9
fix broken proto doc
2016-07-26 16:29:24 +02:00
Anatol Belski
866e551c0a
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
upgraded to PCRE 8.39
2016-07-26 15:12:03 +02:00
Anatol Belski
2fba646837
upgraded to PCRE 8.39
...
(cherry picked from commit 9d4fe9672a )
2016-07-26 15:07:04 +02:00
Anatol Belski
a35adb8b22
fix missing header and conflicting symbol
2016-07-26 14:00:24 +02:00
Anatol Belski
893e3b06ea
fix compiler warning
2016-07-26 07:53:24 +02:00
Anatol Belski
3958f7af00
fix data type
2016-07-26 07:53:24 +02:00
Nikita Popov
4d2479202a
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-25 23:04:14 +02:00
Nikita Popov
b1d36cb820
Fix GMP unserialization with self-reference
2016-07-25 23:04:00 +02:00
Andrey Hristov
b27ff62ee0
Fix for bug #71863 Segfault when EXPLAIN with "Unknown column" error
...
The reason was that after the big refactoring of mysqlnd at the end of
last year code that is initializing the error_info structure in the
result set was not added. It existed already for connections and PS.
The code that segfaults is hit only with MariaDB because MariaDB sends
full metadata about the EXPLAIN query + EOF packet and only then it sends
an error packet. MySQL doesn't do that but sends directly an error which
is caught (by different code path). As errors during execution (which means
after sending meta) are pretty rare there was no test case of MySQL to
catch it.
2016-07-25 21:59:27 +02:00
Christoph M. Becker
ac0bbea3a8
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-25 17:15:10 +02:00
Christoph M. Becker
ccf39dd552
Merge branch 'PHP-5.6' into PHP-7.0
...
# Resolved conflicts:
# ext/sqlite3/sqlite3.c
# ext/sqlite3/tests/bug72668.phpt
2016-07-25 17:07:41 +02:00
Christoph M. Becker
64e3e932fc
Further fixes wrt. bug #72668
...
Not only SQLite3::querySingle(), but also SQLite3::query() and
SQLite3Stmt::execute() were affected.
2016-07-25 17:03:10 +02:00
Anatol Belski
2334d8335b
use more suitable types here, too
...
and simplify the loop
2016-07-25 14:46:20 +02:00
Anatol Belski
198c2ec5f0
change to more suitable datatypes
2016-07-25 14:46:20 +02:00
Xinchen Hui
2abb56e0bd
Update NEWs
2016-07-25 20:29:26 +08:00
Xinchen Hui
088905bf60
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72668 (Spurious warning when exception is thrown in user defined function)
2016-07-25 20:28:57 +08:00
Xinchen Hui
f5e56cf970
Fixed bug #72668 (Spurious warning when exception is thrown in user defined function)
2016-07-25 20:28:39 +08:00
Anatol Belski
0d5050225d
update NEWS
2016-07-25 12:50:21 +02:00
Anatol Belski
bd9a5b183c
Fixed bug #72658 Locale::lookup() / locale_lookup() hangs if no match found
2016-07-25 12:49:13 +02:00
Christoph M. Becker
ee07e23e8e
Fix SQLite3 header files
...
While sqlite3.c had already been updated to 3.13.0, the header files had
been forgotten.
2016-07-25 10:27:21 +02:00
Anatol Belski
6bb2c7f63f
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
Make phpize use PHP_PREFIX as the default location (windows)
Enable 'nmake test' on building extensions
2016-07-25 10:18:10 +02:00
Anatol Belski
9a4c9348b1
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
update NEWS
Make phpize use PHP_PREFIX as the default location (windows)
Enable 'nmake test' on building extensions
2016-07-25 10:17:41 +02:00
Anatol Belski
0c34d515f1
update NEWS
2016-07-25 10:14:18 +02:00
y-uti
3f842655db
Make phpize use PHP_PREFIX as the default location (windows)
...
The default path to where an extension is installed should be
PHP_PREFIX/ext on windows.
2016-07-25 10:01:34 +02:00
y-uti
72ac8cf5ad
Enable 'nmake test' on building extensions
...
On Windows, Makefile generated by phpize doesn't have the 'test'
target rule. This commit fixes that and enables 'nmake test' on
Windows.
2016-07-25 09:55:07 +02:00
Anatol Belski
30118e33b3
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update NEWS
Enable 'nmake test' on building extensions
Make phpize use PHP_PREFIX as the default location (windows)
2016-07-25 09:52:38 +02:00
Anatol Belski
59de6fb268
update NeWS
2016-07-25 09:52:21 +02:00
Anatol Belski
27dd8048b7
update NEWS
2016-07-25 09:51:13 +02:00
y-uti
0f9bf85ad9
Enable 'nmake test' on building extensions
...
On Windows, Makefile generated by phpize doesn't have the 'test'
target rule. This commit fixes that and enables 'nmake test' on
Windows.
2016-07-25 09:46:06 +02:00
y-uti
6ed7136371
Make phpize use PHP_PREFIX as the default location (windows)
...
The default path to where an extension is installed should be
PHP_PREFIX/ext on windows.
2016-07-25 09:46:00 +02:00
Christoph M. Becker
387847a0b2
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-25 02:03:54 +02:00
Christoph M. Becker
138fea83fe
Merge branch 'PHP-5.6' into PHP-7.0
...
# Resolved conflicts:
# ext/gd/tests/gd_info_variation1.phpt
2016-07-25 02:02:54 +02:00
Christoph M. Becker
305bddb0ed
Fix broken test case
...
d28f1da introduced a test regression, due to potentially additional output
regarding FreeType support. We fix that by making the test more resilient.
2016-07-25 02:00:37 +02:00
Christoph M. Becker
d55a773223
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-25 00:25:11 +02:00
Christoph M. Becker
4db4997ac5
Merge branch 'PHP-5.6' into PHP-7.0
...
# Resolved conflicts:
# ext/gd/tests/gd_info_variation1.phpt
2016-07-25 00:16:21 +02:00
Christoph M. Becker
d28f1dae9d
Fix broken test case
...
The test claims that it would be "checking all the values in returned array",
but due to the use of %a it actually skipped elements. We fix that by using
%s instead.
2016-07-25 00:13:44 +02:00
Xinchen Hui
3d33eb743d
Update NEWS
2016-07-24 23:59:05 +08:00
Xinchen Hui
393d56f1e3
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72660 (NULL Pointer dereference in zend_virtual_cwd)
2016-07-24 23:58:50 +08:00
Xinchen Hui
ad96a052d9
Fixed bug #72660 (NULL Pointer dereference in zend_virtual_cwd)
2016-07-24 23:58:22 +08:00
Anatol Belski
fcc9386578
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
regenerate date parser with re2c 0.15.3
regenerate date parser with re2c 0.15.3
2016-07-24 14:55:15 +02:00
Anatol Belski
da3995852e
regenerate date parser with re2c 0.15.3
2016-07-24 14:53:53 +02:00
Anatol Belski
8eb94b6e32
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
regenerate date parser with re2c 0.15.3
2016-07-24 14:51:59 +02:00
Anatol Belski
9cd23ff84f
regenerate date parser with re2c 0.15.3
2016-07-24 14:50:10 +02:00
Xinchen Hui
9b34f44f41
Merge branch 'PHP-7.1' of git.php.net:/php-src into PHP-7.1
...
* 'PHP-7.1' of git.php.net:/php-src: (32 commits)
fix compiler warning
rework long path normalization stuf
More tolerance in another IntlCalendar test
Ensure session GC is not run during variation6.phpt
add folds
improve typedef and fix the fake function
add missing cast
Fix typos, previous version used reserver/reserverd/reserved
Fixed bug #72625 realpath() fails on non canonical long path
correct comment
don't return long path prefix to script
fix test
fix test
Fix #68712 : suspicious if-else statements
Fix copy&paste errors in gd_interpolation.c
Fix #66555 : Always false condition in ext/gd/libgd/gdkanji.c
Fix ClosedGeneratorException possibly thrown into wrong scope
Fix for bug #54431
Fix build
Make sure TOKEN_PARSE mode is thread safe
...
2016-07-24 11:03:49 +08:00
Xinchen Hui
a3a797dbd5
Fixed bug #72661 (ReflectionType::__toString crashes with iterable)
2016-07-24 11:01:19 +08:00
Anatol Belski
addb2e22b3
fix compiler warning
2016-07-24 03:51:53 +02:00
Anatol Belski
4acde210fd
rework long path normalization stuf
...
Simplify, set error codes, ensure 32-bit is ok as well. The
canonicalization part is still an issue on win7 as the API
is missing there. However a partial improvement is reached
there as well thanks to the slash conversion.
2016-07-24 03:51:47 +02:00
Nikita Popov
ca64223193
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-24 00:18:51 +02:00
Nikita Popov
aecc435482
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-24 00:18:47 +02:00
Nikita Popov
04b42b1e05
More tolerance in another IntlCalendar test
...
Again, off-by-1000 is expected if we're late in the second. Add an
extra 1000 to account for actual delta in call times.
2016-07-24 00:15:14 +02:00
Nikita Popov
42e995e0d3
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-24 00:08:18 +02:00
Nikita Popov
2194690625
Ensure session GC is not run during variation6.phpt
...
The implemented gc() handler simply deletes all sessions, including
the current one. This may cause a subsequent unlink() warning.
Avoid this by preventing GC from running.
2016-07-24 00:07:54 +02:00
Anatol Belski
69ae61af96
add folds
2016-07-23 23:24:32 +02:00
Anatol Belski
88d4f149a6
improve typedef and fix the fake function
2016-07-23 23:24:32 +02:00
Anatol Belski
40557fdc34
add missing cast
2016-07-23 23:24:32 +02:00
Sjon Hortensius
66626cc223
Fix typos, previous version used reserver/reserverd/reserved
2016-07-23 23:14:14 +02:00
Anatol Belski
0f16c56262
Fixed bug #72625 realpath() fails on non canonical long path
2016-07-23 21:11:27 +02:00
Anatol Belski
fc30b8e0f7
correct comment
2016-07-23 21:11:27 +02:00
Anatol Belski
7d83324105
don't return long path prefix to script
2016-07-23 21:11:27 +02:00
Anatol Belski
3d95cc50a7
fix test
2016-07-23 21:06:11 +02:00
Anatol Belski
b238211732
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
fix test
2016-07-23 21:04:52 +02:00
Anatol Belski
958fa34c16
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
fix test
2016-07-23 21:03:45 +02:00
Anatol Belski
80fee637f4
fix test
2016-07-23 20:55:39 +02:00
Christoph M. Becker
8aa9ddb4d2
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-23 19:38:45 +02:00
Christoph M. Becker
2c0a18480d
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-23 19:36:53 +02:00
Christoph M. Becker
88838dd282
Fix #68712 : suspicious if-else statements
2016-07-23 19:29:43 +02:00
Christoph M. Becker
88bc54d3dc
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-23 18:13:29 +02:00
Christoph M. Becker
03ccd42b18
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-23 18:12:14 +02:00
Christoph M. Becker
9fbd0c1ff1
Fix copy&paste errors in gd_interpolation.c
...
According to <https://github.com/libgd/libgd/commit/f101380 >.
2016-07-23 18:09:18 +02:00
Christoph M. Becker
03eeea4aa5
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-23 16:57:12 +02:00
Christoph M. Becker
5056d59f96
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-23 16:55:16 +02:00
Christoph M. Becker
2c16b9cf62
Fix #66555 : Always false condition in ext/gd/libgd/gdkanji.c
...
This issue has already been fixed in libgd[1], so we fix PHP's bundled
libgd accordingly.
[1] <https://github.com/libgd/libgd/commit/aa1d71c >
2016-07-23 16:48:07 +02:00
Bob Weinand
35764e3579
Merge remote-tracking branch 'origin/PHP-7.0' into PHP-7.1
2016-07-23 16:40:02 +02:00
Bob Weinand
6046acf93e
Fix ClosedGeneratorException possibly thrown into wrong scope
2016-07-23 16:39:21 +02:00
Nikita Popov
696d6e7c90
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-23 13:30:55 +02:00
Nikita Popov
f12fd5c2d3
Merge branch 'PHP-5.6' into PHP-7.0
...
Conflicts:
ext/standard/ftp_fopen_wrapper.c
2016-07-23 13:29:57 +02:00
vhuk
65abdb556d
Fix for bug #54431
2016-07-23 13:28:42 +02:00
Nikita Popov
f4d1af7981
Fix build
...
Missed this occurrence...
2016-07-23 00:12:11 +02:00
Nikita Popov
07af6ba898
Make sure TOKEN_PARSE mode is thread safe
...
Introduce an on_event_context passed to the on_event hook. Use this
context to pass along the token array. Previously this was stored
in a non-tls global :/
2016-07-23 00:00:13 +02:00
Nikita Popov
40b312d4c2
Use OPENSSL_RAW_DATA in raw data decryption tests
2016-07-22 18:30:30 +02:00
Nikita Popov
bb51da29dc
Make base64_decode() in non-strict mode binary safe
2016-07-22 18:20:34 +02:00
Nikita Popov
e1216f6fc1
Add NEWS entries
2016-07-22 18:07:45 +02:00
Lauri Kenttä
cab5f6a889
base64_decode: Add tests
2016-07-22 18:03:56 +02:00
Lauri Kenttä
316d5a19a6
base64_decode: Handle all invalid padding equally
2016-07-22 18:03:56 +02:00
Lauri Kenttä
5c62f3f68e
base64_decode: strict: Fail on excessive padding
2016-07-22 18:03:56 +02:00
Lauri Kenttä
586a0761ff
base64_decode: strict: Fail on truncated input
2016-07-22 18:03:56 +02:00
Lauri Kenttä
0981e5de3c
base64_decode: Avoid code duplication in failures
2016-07-22 18:03:55 +02:00
Lauri Kenttä
7a02704c0e
Require strict base64 in data URI
...
As the tests already show, the data URI wrapper is supposed to fail
for corrupt input, but for some reason, one case of invalid input is
still allowed to pass?! Strict base64 makes a lot more sense here.
Also, Chromium and Firefox fail on invalid base64, so it's a logical
choice for PHP as well.
2016-07-22 18:03:55 +02:00
Lauri Kenttä
f775199ac7
Require strict base64 in openssl_decode
...
Using invalid data in a security-related context makes no sense,
and there's even a test which depends on invalid base64 data failing,
even though it currently fails for the wrong reasons by sheer luck.
2016-07-22 18:03:55 +02:00
Lauri Kenttä
76f6f3583c
Fix test: Use valid base64 even for invalid OpenSSL data
2016-07-22 18:03:55 +02:00
Nikita Popov
dc04f2d2db
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-22 17:22:29 +02:00
Nikita Popov
7d77289717
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-22 17:22:13 +02:00
Nikita Popov
4fc1bfa93b
Make IntlCalendar::getNow() test more tolerant
...
Due to the *1000 factor the two values may be off-by-1000 even
without any actual delay, so increase the check to 2000.
2016-07-22 17:20:56 +02:00
Xinchen Hui
eaa8f49708
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72647 (xmlrpc_encode() unexpected output after referencing array elements)
2016-07-22 23:15:24 +08:00
Xinchen Hui
6929121423
Fixed bug #72647 (xmlrpc_encode() unexpected output after referencing array elements)
2016-07-22 23:15:15 +08:00
Xinchen Hui
05dfd1d39f
Update NEWs
2016-07-22 23:14:51 +08:00
Xinchen Hui
df358a1c06
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72647 (xmlrpc_encode() unexpected output after referencing array elements)
2016-07-22 23:14:28 +08:00
Xinchen Hui
516837344e
Fixed bug #72647 (xmlrpc_encode() unexpected output after referencing array elements)
2016-07-22 23:13:42 +08:00
Christoph M. Becker
a6953e70e5
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-22 15:29:18 +02:00
Christoph M. Becker
9a2207c90a
Merge branch 'PHP-5.6' into PHP-7.0
...
# Resolved conflicts:
# ext/spl/spl_directory.c
2016-07-22 15:27:55 +02:00
Christoph M. Becker
6b116932b2
Fix #72646 : SplFileObject::getCsvControl does not return the escape character
...
This has obviously been missed when adding the $escape parameter to
SplFileObject::setCsvControl() in PHP 5.3, so we catch up on this.
2016-07-22 15:24:50 +02:00
Remi Collet
d5ad4b8b14
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
FPM: add test for CVE-2016-5385
2016-07-22 09:37:00 +02:00
Remi Collet
9622f973a5
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
FPM: add test for CVE-2016-5385
2016-07-22 09:36:36 +02:00
Remi Collet
fb4a6dc0f1
FPM: add test for CVE-2016-5385
2016-07-22 09:35:09 +02:00
Christoph M. Becker
9c8b2c8689
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-21 18:53:42 +02:00
Christoph M. Becker
4472f9e822
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-21 18:39:27 +02:00
Christoph M. Becker
f2c2a4be9e
Fix #72330 : CSV fields incorrectly split if escape char followed by UTF chars
...
We must not forget to properly reset the state for multibyte characters
following an escape character.
2016-07-21 18:37:24 +02:00
Christoph M. Becker
4c5aa9ba2c
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-21 16:51:19 +02:00
Christoph M. Becker
7e2c3a77c0
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-21 16:50:37 +02:00
Pieter Hordijk
f813f43855
Removed incorrect (leftover?) sentence in ini
...
about mbstring or iconv output handler
2016-07-21 16:49:14 +02:00
Christoph M. Becker
8950fb42d9
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-21 16:33:06 +02:00
Christoph M. Becker
bee362d5e3
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-21 16:31:16 +02:00
Pieter Hordijk
82bfb090ac
Removed incorrect (leftover?) sentence in ini
...
about mbstring or iconv output handler
2016-07-21 16:28:48 +02:00
Davey Shafik
a10d873cee
Update NEWS for 7.1.0beta1
2016-07-21 01:56:38 -07:00
Remi Collet
a2a122804e
bump zip extension version
2016-07-21 08:44:26 +02:00
Remi Collet
7ac330d63a
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
bump zip extension version
2016-07-21 08:43:49 +02:00
Remi Collet
61ce933d38
bump zip extension version
2016-07-21 08:42:53 +02:00
Xinchen Hui
8ec50677fa
Update NEWS
2016-07-21 14:25:54 +08:00
Xinchen Hui
bdd3f77be0
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #72639 (Segfault when instantiating class that extends IntlCalendar and adds a property)
2016-07-21 14:25:36 +08:00
Xinchen Hui
4a643e5e13
Fixed bug #72639 (Segfault when instantiating class that extends IntlCalendar and adds a property)
2016-07-21 14:25:15 +08:00
Davey Shafik
c9af9c78f1
Prepare NEWS for beta2
2016-07-20 20:07:35 -07:00
Anatol Belski
a8b105b412
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
update libs_version.txt
update libs_versions.txt
2016-07-21 01:56:55 +02:00
Anatol Belski
7e1843fc04
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
update libs_versions.txt
2016-07-21 01:55:42 +02:00
Anatol Belski
e7168519dd
update libs_version.txt
2016-07-21 01:54:53 +02:00
Anatol Belski
8b191921c3
update libs_versions.txt
2016-07-21 01:52:03 +02:00
Ferenc Kovacs
f9ee0040e5
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-21 00:38:11 +02:00
Ferenc Kovacs
027a82e4e6
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-21 00:37:41 +02:00
Ferenc Kovacs
c9f21e8319
update NEWs
2016-07-21 00:36:07 +02:00