Skip to content

Commit

Permalink
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Nov 5, 2013
2 parents 9b399be + d3fd163 commit 2b7e89e
Show file tree
Hide file tree
Showing 13 changed files with 741 additions and 701 deletions.
10 changes: 10 additions & 0 deletions NEWS
@@ -1,5 +1,7 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2013, PHP 5.4.23

?? ??? 2013, PHP 5.4.22

- Core:
Expand All @@ -16,10 +18,18 @@ PHP NEWS
- FTP:
. Fixed bug #65667 (ftp_nb_continue produces segfault). (Philip Hofstetter)

- ODBC
. Fixed bug #65950 (Field name truncation if the field name is bigger than
32 characters). (patch submitted by: michael dot y at zend dot com, Yasuo)

- Sockets:
. Fixed bug #65808 (the socket_connect() won't work with IPv6 address).
(Mike)

- Standard:
. Fixed bug #64760 (var_export() does not use full precision for floating-point
numbers) (Yasuo)

- XMLReader:
. Fixed bug #51936 (Crash with clone XMLReader). (Mike)
. Fixed bug #64230 (XMLReader does not suppress errors). (Mike)
Expand Down
2 changes: 1 addition & 1 deletion configure.in
Expand Up @@ -119,7 +119,7 @@ int zend_sprintf(char *buffer, const char *format, ...);

PHP_MAJOR_VERSION=5
PHP_MINOR_VERSION=4
PHP_RELEASE_VERSION=22
PHP_RELEASE_VERSION=23
PHP_EXTRA_VERSION="-dev"
PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION"
PHP_VERSION_ID=`expr [$]PHP_MAJOR_VERSION \* 10000 + [$]PHP_MINOR_VERSION \* 100 + [$]PHP_RELEASE_VERSION`
Expand Down
1,318 changes: 660 additions & 658 deletions ext/date/lib/timezonedb.h

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ext/mysqlnd/mysqlnd.c
Expand Up @@ -527,7 +527,7 @@ mysqlnd_connect_run_authentication(

if (!auth_plugin) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The server requested authentication method unknown to the client [%s]", requested_protocol);
SET_CLIENT_ERROR(*conn->error_info, CR_NOT_IMPLEMENTED, UNKNOWN_SQLSTATE, "The server requested authentication method umknown to the client");
SET_CLIENT_ERROR(*conn->error_info, CR_NOT_IMPLEMENTED, UNKNOWN_SQLSTATE, "The server requested authentication method unknown to the client");
break;
}
}
Expand Down Expand Up @@ -2162,7 +2162,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, change_user)(MYSQLND_CONN_DATA * const conn,

if (!auth_plugin) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The server requested authentication method unknown to the client [%s]", requested_protocol);
SET_CLIENT_ERROR(*conn->error_info, CR_NOT_IMPLEMENTED, UNKNOWN_SQLSTATE, "The server requested authentication method umknown to the client");
SET_CLIENT_ERROR(*conn->error_info, CR_NOT_IMPLEMENTED, UNKNOWN_SQLSTATE, "The server requested authentication method unknown to the client");
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion ext/odbc/php_odbc_includes.h
Expand Up @@ -232,7 +232,7 @@ typedef struct odbc_connection {
} odbc_connection;

typedef struct odbc_result_value {
char name[32];
char name[256];
char *value;
SQLLEN vallen;
SQLLEN coltype;
Expand Down
8 changes: 4 additions & 4 deletions ext/standard/tests/general_functions/var_export-locale.phpt
Expand Up @@ -784,15 +784,15 @@ string(20) "array (
Iteration 13
array (
0 => 10.5,
1 => 5.6,
1 => 5.5999999999999996,
)
array (
0 => 10.5,
1 => 5.6,
1 => 5.5999999999999996,
)
string(34) "array (
string(49) "array (
0 => 10.5,
1 => 5.6,
1 => 5.5999999999999996,
)"


Expand Down
36 changes: 18 additions & 18 deletions ext/standard/tests/general_functions/var_export_basic3.phpt
Expand Up @@ -96,9 +96,9 @@ string(1) "0"


-- Iteration: -0.1 --
-0.1
-0.1
string(4) "-0.1"
-0.10000000000000001
-0.10000000000000001
string(20) "-0.10000000000000001"


-- Iteration: 10.0000000000000000005 --
Expand All @@ -120,9 +120,9 @@ string(6) "100000"


-- Iteration: 1e-5 --
1.0E-5
1.0E-5
string(6) "1.0E-5"
1.0000000000000001E-5
1.0000000000000001E-5
string(21) "1.0000000000000001E-5"


-- Iteration: 1e+5 --
Expand All @@ -144,9 +144,9 @@ string(6) "100000"


-- Iteration: 1E-5 --
1.0E-5
1.0E-5
string(6) "1.0E-5"
1.0000000000000001E-5
1.0000000000000001E-5
string(21) "1.0000000000000001E-5"


-- Iteration: .5e+7 --
Expand All @@ -156,20 +156,20 @@ string(7) "5000000"


-- Iteration: .6e-19 --
6.0E-20
6.0E-20
string(7) "6.0E-20"
6.0000000000000006E-20
6.0000000000000006E-20
string(22) "6.0000000000000006E-20"


-- Iteration: .05E+44 --
5.0E+42
5.0E+42
string(7) "5.0E+42"
5.0000000000000001E+42
5.0000000000000001E+42
string(22) "5.0000000000000001E+42"


-- Iteration: .0034E-30 --
3.4E-33
3.4E-33
string(7) "3.4E-33"
3.4000000000000001E-33
3.4000000000000001E-33
string(22) "3.4000000000000001E-33"

===DONE===
10 changes: 5 additions & 5 deletions ext/standard/tests/general_functions/var_export_basic5.phpt
Expand Up @@ -233,15 +233,15 @@ string(20) "array (
--Iteration: array(10.5, 5.6) --
array (
0 => 10.5,
1 => 5.6,
1 => 5.5999999999999996,
)
array (
0 => 10.5,
1 => 5.6,
1 => 5.5999999999999996,
)
string(34) "array (
string(49) "array (
0 => 10.5,
1 => 5.6,
1 => 5.5999999999999996,
)"


Expand Down Expand Up @@ -274,4 +274,4 @@ string(41) "array (
1 => 'test',
)"

===DONE===
===DONE===
2 changes: 1 addition & 1 deletion ext/standard/var.c
Expand Up @@ -436,7 +436,7 @@ PHPAPI void php_var_export_ex(zval **struc, int level, smart_str *buf TSRMLS_DC)
smart_str_append_long(buf, Z_LVAL_PP(struc));
break;
case IS_DOUBLE:
tmp_len = spprintf(&tmp_str, 0,"%.*H", (int) EG(precision), Z_DVAL_PP(struc));
tmp_len = spprintf(&tmp_str, 0,"%.*H", PG(serialize_precision), Z_DVAL_PP(struc));
smart_str_appendl(buf, tmp_str, tmp_len);
efree(tmp_str);
break;
Expand Down
27 changes: 27 additions & 0 deletions ext/zip/LICENSE_libzip
@@ -0,0 +1,27 @@
Copyright (C) 1999-2008 Dieter Baron and Thomas Klausner
The authors can be contacted at <libzip@nih.at>

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
3. The names of the authors may not be used to endorse or promote
products derived from this software without specific prior
written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 3 additions & 3 deletions main/php_version.h
Expand Up @@ -2,7 +2,7 @@
/* edit configure.in to change version number */
#define PHP_MAJOR_VERSION 5
#define PHP_MINOR_VERSION 4
#define PHP_RELEASE_VERSION 22
#define PHP_RELEASE_VERSION 23
#define PHP_EXTRA_VERSION "-dev"
#define PHP_VERSION "5.4.22-dev"
#define PHP_VERSION_ID 50422
#define PHP_VERSION "5.4.23-dev"
#define PHP_VERSION_ID 50423
1 change: 1 addition & 0 deletions sapi/fpm/fpm/fpm_sockets.c
Expand Up @@ -487,6 +487,7 @@ int fpm_socket_unix_test_connect(struct sockaddr_un *sock, size_t socklen) /* {{
}

if (connect(fd, (struct sockaddr *)sock, socklen) == -1) {
close(fd);
return -1;
}

Expand Down
16 changes: 8 additions & 8 deletions tests/lang/bug24640.phpt
Expand Up @@ -36,22 +36,22 @@ test(1.7e-1000);
===DONE===
<?php exit(0); ?>
--EXPECTF--
1.7E+300
1.7000000000000001E+300
float(1.7E+300)
1.7E+300
1.7E+300
------
1.7E-300
1.7000000000000001E-300
float(1.7E-300)
1.7E-300
1.7E-300
------
1.7E+79
1.7000000000000002E+79
float(1.7E+79)
1.7E+79
1.7E+79
------
1.7E-79
1.6999999999999999E-79
float(1.7E-79)
1.7E-79
1.7E-79
Expand All @@ -71,7 +71,7 @@ float(1.7E+81)
1.7E+81
1.7E+81
------
1.7E-81
1.6999999999999999E-81
float(1.7E-81)
1.7E-81
1.7E-81
Expand All @@ -81,7 +81,7 @@ float(I%s)
I%s
I%s
------
1.69998107421E-319
1.6999810742105611E-319
float(1.69998107421E-319)
1.69998107421E-319
1.69998107421E-319
Expand All @@ -91,7 +91,7 @@ float(I%s)
I%s
I%s
------
1.70007988734E-320
1.7000798873397294E-320
float(1.70007988734E-320)
1.70007988734E-320
1.70007988734E-320
Expand All @@ -101,7 +101,7 @@ float(I%s)
I%s
I%s
------
1.69958582169E-321
1.6995858216938881E-321
float(1.69958582169E-321)
1.69958582169E-321
1.69958582169E-321
Expand Down

0 comments on commit 2b7e89e

Please sign in to comment.