Skip to content

Commit 24e0b99

Browse files
committed
Merge remote-tracking branch 'upstream/PHP-5.6' into use-function
* upstream/PHP-5.6: (399 commits) Fixed issue php#115 (path issue when using phar). Fixed issue php#149 (Phar mount points not working with OPcache enabled). Added tests for PHAR/OPCahce incompatibilities Update NEWS Fixed bug #65947 (basename is no more working after fgetcsv in certain situation) Update NEWS Fixed Bug #66043 (Segfault calling bind_param() on mysqli) NEWS entry NEWS entry Fix bug #65946 - pdo_sql_parser.c permanently converts values bound to strings bump API versions Add a couple more test cases to parse_url() tests fix missing change from 'tcp_socket' to the more common 'server' fix many parallel test issues Cleanup temp test file Revert "Fixed issue php#115 (path issue when using phar)." Update LiteSpeed SAPI code to V6.4 Fixed typo in Makefile.frag updated NEWS Remove outdate codes, make it clearer, although just a bit.. Update NEWS ... Conflicts: Zend/zend_compile.h
2 parents 602fef0 + 0e5c507 commit 24e0b99

File tree

698 files changed

+28595
-16866
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

698 files changed

+28595
-16866
lines changed

.travis.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ notifications:
88
email: false
99

1010
env:
11-
- REPORT_EXIT_STATUS=1
11+
global:
12+
- MYSQL_TEST_HOST=127.0.0.1
13+
- MYSQL_TEST_USER=travis
14+
- PDO_MYSQL_TEST_DSN="mysql:host=127.0.0.1;dbname=test"
15+
- PDO_MYSQL_TEST_USER=travis
16+
- PDO_MYSQL_TEST_PASS=
17+
- PDO_MYSQL_TEST_HOST=127.0.0.1
18+
matrix:
19+
- REPORT_EXIT_STATUS=1
1220

1321
before_script:
1422
# Compile PHP
@@ -21,4 +29,4 @@ before_script:
2129
- . ./travis/ext/pdo_pgsql/setup.sh
2230

2331
# Run PHPs run-tests.php
24-
script: ./sapi/cli/php run-tests.php -p `pwd`/sapi/cli/php -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --show-diff
32+
script: ./sapi/cli/php run-tests.php -p `pwd`/sapi/cli/php -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --show-diff --set-timeout 120

CODING_STANDARDS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Naming Conventions
151151

152152
7. Classes should be given descriptive names. Avoid using abbreviations where
153153
possible. Each word in the class name should start with a capital letter,
154-
without underscore delimiters (CampelCaps starting with a capital letter).
154+
without underscore delimiters (CamelCaps starting with a capital letter).
155155
The class name should be prefixed with the name of the 'parent set' (e.g.
156156
the name of the extension)::
157157

NEWS

Lines changed: 54 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3-
?? ??? 201?, PHP 5.6.0
3+
?? ??? 20??, PHP 5.6.0
44

55
- Core:
66
. Improved IS_VAR operands fetching. (Laruence, Dmitry)
77
. Implemented internal operator overloading
88
(RFC: https://wiki.php.net/rfc/operator_overloading_gmp). (Nikita)
9+
. Made calls from incompatible context issue an E_DEPRECATED warning instead
10+
of E_STRICT (phase 1 of RFC: https://wiki.php.net/rfc/incompat_ctx).
11+
(Gustavo)
12+
. Uploads equal or greater than 2GB in size are now accepted.
13+
(Ralf Lang, Mike)
14+
. Reduced POST data memory usage by 200-300%. Removed INI setting
15+
always_populate_raw_post_data and the $HTTP_RAW_POST_DATA global
16+
variable. (Mike)
17+
. Implemented dedicated syntax for variadic functions
18+
(RFC: https://wiki.php.net/rfc/variadics). (Nikita)
19+
. Fixed bug #50333 Improving multi-threaded scalability by using
20+
emalloc/efree/estrdup (Anatol, Dmitry)
921

10-
- Session:
11-
. Fixed Bug #65315 (session.hash_function silently fallback to default md5)
12-
(Yasuo)
13-
. Implemented Request #54649 (Create session_serializer_name()). (Yasuo)
14-
. Implemented Request #17860 (Session write short circuit). (Yasuo)
15-
. Implemented Request #20421 (session_abort() and session_reset() function).
16-
(Yasuo)
17-
. Implemented Request #11100 (session_gc() function). (Yasuo)
22+
- cURL:
23+
. Implemented FR #65646 (re-enable CURLOPT_FOLLOWLOCATION with open_basedir
24+
or safe_mode). (Adam)
25+
26+
- GMP:
27+
. Moved GMP to use object as the underlying structure and implemented various
28+
improvements based on this.
29+
(RFC: https://wiki.php.net/rfc/operator_overloading_gmp). (Nikita)
30+
31+
- Hash:
32+
. Added gost-crypto (CryptoPro S-box) GOST hash algo. (Manuel Mausz)
1833

1934
- mysqlnd:
2035
. Disabled flag for SP OUT variables for 5.5+ servers as they are not natively
@@ -27,14 +42,40 @@ PHP NEWS
2742
cache_slots) in op_array->literals table. (Laruence, Dmitry)
2843
. Added script level constant replacement optimization pass. (Dmitry)
2944

45+
- Openssl:
46+
. Added crypto_method option for the ssl stream context. (Martin Jansen)
47+
. Added certificate fingerprint support. (Tjerk Meesters)
48+
. Added explicit TLSv1.1 and TLSv1.2 stream transports. (Daniel Lowrey)
49+
. Fixed bug #65729 (CN_match gives false positive). (Tjerk Meesters)
50+
3051
- PDO_pgsql:
3152
. Fixed Bug #42614 (PDO_pgsql: add pg_get_notify support). (Matteo)
3253
. Fixed Bug #63657 (pgsqlCopyFromFile, pgsqlCopyToArray use Postgres < 7.3
3354
syntax). (Matteo)
3455

35-
- GMP:
36-
. Moved GMP to use object as the underlying structure and implemented various
37-
improvements based on this.
38-
(RFC: https://wiki.php.net/rfc/operator_overloading_gmp). (Nikita)
56+
- Session:
57+
. Fixed Bug #65315 (session.hash_function silently fallback to default md5)
58+
(Yasuo)
59+
. Implemented Request #54649 (Create session_serializer_name()). (Yasuo)
60+
. Implemented Request #17860 (Session write short circuit). (Yasuo)
61+
. Implemented Request #20421 (session_abort() and session_reset() function).
62+
(Yasuo)
63+
. Implemented Request #11100 (session_gc() function). (Yasuo)
64+
65+
- Standard:
66+
. Implemented FR #65634 (HTTP wrapper is very slow with protocol_version
67+
1.1). (Adam)
68+
. Implemented Change crypt() behavior w/o salt RFC. (Yasuo)
69+
https://wiki.php.net/rfc/crypt_function_salt
70+
71+
- XMLReader:
72+
. Fixed bug #55285 (XMLReader::getAttribute/No/Ns methods inconsistency).
73+
(Mike)
74+
75+
- Zip:
76+
. update libzip to version 1.11.1.
77+
PHP don't use any ilibzip private symbol anymore. (Pierre, Remi)
78+
. new method ZipArchive::setPassword($password). (Pierre)
79+
. add --with-libzip option to build with system libzip. (Remi)
3980

4081
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>

README.EXT_SKEL

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ HOW TO USE IT
3131

3232
./buildconf; ./configure --enable-module_name; make
3333

34+
The definition of PHP_MODULE_NAME_VERSION will be present in the
35+
php_module_name.h and injected into the zend_module_entry definition. This
36+
is required by the PECL website for the version string conformity checks
37+
against package.xml
38+
3439
But if you already have planned the overall scheme of your module, what
3540
functions it will contain, their return types and the arguments they take
3641
(a very good idea) and don't want to bother yourself with creating function

README.SELF-CONTAINED-EXTENSIONS

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,18 @@ ADDING SHARED MODULE SUPPORT TO A MODULE
153153
#ifdef COMPILE_DL_FOO
154154
ZEND_GET_MODULE(foo)
155155
#endif
156+
157+
PECL SITE CONFORMITY
158+
159+
If you plan to release an extension to the PECL website, there are several
160+
points to be regarded.
161+
162+
1. Add LICENSE or COPYING to the package.xml
163+
164+
2. The following should be defined in one of the extension header files
165+
166+
#define PHP_FOO_VERSION "1.2.3"
167+
168+
This macros has to be used within your foo_module_entry to indicate the
169+
extension version.
170+

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ See https://wiki.php.net/rfc and https://wiki.php.net/rfc/voting for more
1717
information on the process.
1818

1919
Bug fixes **do not** require an RFC, but require a bugtracker ticket. Always
20-
open a ticket at http://bugs.php.net and reference the bug id using #NNNNNN.
20+
open a ticket at https://bugs.php.net and reference the bug id using #NNNNNN.
2121

2222
Fix #55371: get_magic_quotes_gpc() throws deprecation warning
2323

@@ -28,3 +28,12 @@ open a ticket at http://bugs.php.net and reference the bug id using #NNNNNN.
2828

2929
We do not merge pull requests directly on github. All PRs will be
3030
pulled and pushed through http://git.php.net.
31+
32+
33+
Guidelines for contributors
34+
===========================
35+
- [CODING_STANDARDS](/CODING_STANDARDS)
36+
- [README.GIT-RULES](/README.GIT-RULES)
37+
- [README.MAILINGLIST_RULES](/README.MAILINGLIST_RULES)
38+
- [README.RELEASE_PROCESS](/README.RELEASE_PROCESS)
39+

TSRM/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## process this file with automake to produce Makefile.am
22
AUTOMAKE_OPTIONS=foreign
33
noinst_LTLIBRARIES=libtsrm.la
4-
libtsrm_la_SOURCES = TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c
4+
libtsrm_la_SOURCES = TSRM.c tsrm_strtok_r.c
55

66
depend:

TSRM/TSRM.dsp

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TSRM/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// vim:ft=javascript
22
// $Id$
33

4-
ADD_SOURCES("TSRM", "TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c tsrm_win32.c");
4+
ADD_SOURCES("TSRM", "TSRM.c tsrm_strtok_r.c tsrm_win32.c");
55

TSRM/tsrm_win32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#ifdef TSRM_WIN32
3333
#include <Sddl.h>
3434
#include "tsrm_win32.h"
35-
#include "tsrm_virtual_cwd.h"
35+
#include "zend_virtual_cwd.h"
3636

3737
#ifdef ZTS
3838
static ts_rsrc_id win32_globals_id;

0 commit comments

Comments
 (0)