Skip to content

Commit 2b7e89e

Browse files
committed
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
2 parents 9b399be + d3fd163 commit 2b7e89e

File tree

13 files changed

+741
-701
lines changed

13 files changed

+741
-701
lines changed

NEWS

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3+
?? ??? 2013, PHP 5.4.23
4+
35
?? ??? 2013, PHP 5.4.22
46

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

21+
- ODBC
22+
. Fixed bug #65950 (Field name truncation if the field name is bigger than
23+
32 characters). (patch submitted by: michael dot y at zend dot com, Yasuo)
24+
1925
- Sockets:
2026
. Fixed bug #65808 (the socket_connect() won't work with IPv6 address).
2127
(Mike)
2228

29+
- Standard:
30+
. Fixed bug #64760 (var_export() does not use full precision for floating-point
31+
numbers) (Yasuo)
32+
2333
- XMLReader:
2434
. Fixed bug #51936 (Crash with clone XMLReader). (Mike)
2535
. Fixed bug #64230 (XMLReader does not suppress errors). (Mike)

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ int zend_sprintf(char *buffer, const char *format, ...);
119119

120120
PHP_MAJOR_VERSION=5
121121
PHP_MINOR_VERSION=4
122-
PHP_RELEASE_VERSION=22
122+
PHP_RELEASE_VERSION=23
123123
PHP_EXTRA_VERSION="-dev"
124124
PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION"
125125
PHP_VERSION_ID=`expr [$]PHP_MAJOR_VERSION \* 10000 + [$]PHP_MINOR_VERSION \* 100 + [$]PHP_RELEASE_VERSION`

ext/date/lib/timezonedb.h

Lines changed: 660 additions & 658 deletions
Large diffs are not rendered by default.

ext/mysqlnd/mysqlnd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ mysqlnd_connect_run_authentication(
527527

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

21632163
if (!auth_plugin) {
21642164
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The server requested authentication method unknown to the client [%s]", requested_protocol);
2165-
SET_CLIENT_ERROR(*conn->error_info, CR_NOT_IMPLEMENTED, UNKNOWN_SQLSTATE, "The server requested authentication method umknown to the client");
2165+
SET_CLIENT_ERROR(*conn->error_info, CR_NOT_IMPLEMENTED, UNKNOWN_SQLSTATE, "The server requested authentication method unknown to the client");
21662166
break;
21672167
}
21682168
}

ext/odbc/php_odbc_includes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ typedef struct odbc_connection {
232232
} odbc_connection;
233233

234234
typedef struct odbc_result_value {
235-
char name[32];
235+
char name[256];
236236
char *value;
237237
SQLLEN vallen;
238238
SQLLEN coltype;

ext/standard/tests/general_functions/var_export-locale.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -784,15 +784,15 @@ string(20) "array (
784784
Iteration 13
785785
array (
786786
0 => 10.5,
787-
1 => 5.6,
787+
1 => 5.5999999999999996,
788788
)
789789
array (
790790
0 => 10.5,
791-
1 => 5.6,
791+
1 => 5.5999999999999996,
792792
)
793-
string(34) "array (
793+
string(49) "array (
794794
0 => 10.5,
795-
1 => 5.6,
795+
1 => 5.5999999999999996,
796796
)"
797797

798798

ext/standard/tests/general_functions/var_export_basic3.phpt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ string(1) "0"
9696

9797

9898
-- Iteration: -0.1 --
99-
-0.1
100-
-0.1
101-
string(4) "-0.1"
99+
-0.10000000000000001
100+
-0.10000000000000001
101+
string(20) "-0.10000000000000001"
102102

103103

104104
-- Iteration: 10.0000000000000000005 --
@@ -120,9 +120,9 @@ string(6) "100000"
120120

121121

122122
-- Iteration: 1e-5 --
123-
1.0E-5
124-
1.0E-5
125-
string(6) "1.0E-5"
123+
1.0000000000000001E-5
124+
1.0000000000000001E-5
125+
string(21) "1.0000000000000001E-5"
126126

127127

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

145145

146146
-- Iteration: 1E-5 --
147-
1.0E-5
148-
1.0E-5
149-
string(6) "1.0E-5"
147+
1.0000000000000001E-5
148+
1.0000000000000001E-5
149+
string(21) "1.0000000000000001E-5"
150150

151151

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

157157

158158
-- Iteration: .6e-19 --
159-
6.0E-20
160-
6.0E-20
161-
string(7) "6.0E-20"
159+
6.0000000000000006E-20
160+
6.0000000000000006E-20
161+
string(22) "6.0000000000000006E-20"
162162

163163

164164
-- Iteration: .05E+44 --
165-
5.0E+42
166-
5.0E+42
167-
string(7) "5.0E+42"
165+
5.0000000000000001E+42
166+
5.0000000000000001E+42
167+
string(22) "5.0000000000000001E+42"
168168

169169

170170
-- Iteration: .0034E-30 --
171-
3.4E-33
172-
3.4E-33
173-
string(7) "3.4E-33"
171+
3.4000000000000001E-33
172+
3.4000000000000001E-33
173+
string(22) "3.4000000000000001E-33"
174174

175175
===DONE===

ext/standard/tests/general_functions/var_export_basic5.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,15 @@ string(20) "array (
233233
--Iteration: array(10.5, 5.6) --
234234
array (
235235
0 => 10.5,
236-
1 => 5.6,
236+
1 => 5.5999999999999996,
237237
)
238238
array (
239239
0 => 10.5,
240-
1 => 5.6,
240+
1 => 5.5999999999999996,
241241
)
242-
string(34) "array (
242+
string(49) "array (
243243
0 => 10.5,
244-
1 => 5.6,
244+
1 => 5.5999999999999996,
245245
)"
246246

247247

@@ -274,4 +274,4 @@ string(41) "array (
274274
1 => 'test',
275275
)"
276276

277-
===DONE===
277+
===DONE===

ext/standard/var.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ PHPAPI void php_var_export_ex(zval **struc, int level, smart_str *buf TSRMLS_DC)
436436
smart_str_append_long(buf, Z_LVAL_PP(struc));
437437
break;
438438
case IS_DOUBLE:
439-
tmp_len = spprintf(&tmp_str, 0,"%.*H", (int) EG(precision), Z_DVAL_PP(struc));
439+
tmp_len = spprintf(&tmp_str, 0,"%.*H", PG(serialize_precision), Z_DVAL_PP(struc));
440440
smart_str_appendl(buf, tmp_str, tmp_len);
441441
efree(tmp_str);
442442
break;

ext/zip/LICENSE_libzip

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (C) 1999-2008 Dieter Baron and Thomas Klausner
2+
The authors can be contacted at <libzip@nih.at>
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions
6+
are met:
7+
1. Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
2. Redistributions in binary form must reproduce the above copyright
10+
notice, this list of conditions and the following disclaimer in
11+
the documentation and/or other materials provided with the
12+
distribution.
13+
3. The names of the authors may not be used to endorse or promote
14+
products derived from this software without specific prior
15+
written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
18+
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20+
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
21+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
23+
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25+
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26+
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27+
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

main/php_version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/* edit configure.in to change version number */
33
#define PHP_MAJOR_VERSION 5
44
#define PHP_MINOR_VERSION 4
5-
#define PHP_RELEASE_VERSION 22
5+
#define PHP_RELEASE_VERSION 23
66
#define PHP_EXTRA_VERSION "-dev"
7-
#define PHP_VERSION "5.4.22-dev"
8-
#define PHP_VERSION_ID 50422
7+
#define PHP_VERSION "5.4.23-dev"
8+
#define PHP_VERSION_ID 50423

sapi/fpm/fpm/fpm_sockets.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ int fpm_socket_unix_test_connect(struct sockaddr_un *sock, size_t socklen) /* {{
487487
}
488488

489489
if (connect(fd, (struct sockaddr *)sock, socklen) == -1) {
490+
close(fd);
490491
return -1;
491492
}
492493

tests/lang/bug24640.phpt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,22 @@ test(1.7e-1000);
3636
===DONE===
3737
<?php exit(0); ?>
3838
--EXPECTF--
39-
1.7E+300
39+
1.7000000000000001E+300
4040
float(1.7E+300)
4141
1.7E+300
4242
1.7E+300
4343
------
44-
1.7E-300
44+
1.7000000000000001E-300
4545
float(1.7E-300)
4646
1.7E-300
4747
1.7E-300
4848
------
49-
1.7E+79
49+
1.7000000000000002E+79
5050
float(1.7E+79)
5151
1.7E+79
5252
1.7E+79
5353
------
54-
1.7E-79
54+
1.6999999999999999E-79
5555
float(1.7E-79)
5656
1.7E-79
5757
1.7E-79
@@ -71,7 +71,7 @@ float(1.7E+81)
7171
1.7E+81
7272
1.7E+81
7373
------
74-
1.7E-81
74+
1.6999999999999999E-81
7575
float(1.7E-81)
7676
1.7E-81
7777
1.7E-81
@@ -81,7 +81,7 @@ float(I%s)
8181
I%s
8282
I%s
8383
------
84-
1.69998107421E-319
84+
1.6999810742105611E-319
8585
float(1.69998107421E-319)
8686
1.69998107421E-319
8787
1.69998107421E-319
@@ -91,7 +91,7 @@ float(I%s)
9191
I%s
9292
I%s
9393
------
94-
1.70007988734E-320
94+
1.7000798873397294E-320
9595
float(1.70007988734E-320)
9696
1.70007988734E-320
9797
1.70007988734E-320
@@ -101,7 +101,7 @@ float(I%s)
101101
I%s
102102
I%s
103103
------
104-
1.69958582169E-321
104+
1.6995858216938881E-321
105105
float(1.69958582169E-321)
106106
1.69958582169E-321
107107
1.69958582169E-321

0 commit comments

Comments
 (0)