Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 81d580e

Browse files
committed
Merge branch 'PHP-8.3'
2 parents ea0937b + eb46022 commit 81d580e

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

‎Zend/tests/gh15712.phpt‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--TEST--
2+
GH-15712: overflow on real number printing
3+
--FILE--
4+
<?php
5+
ini_set('precision', 1100000000);
6+
echo -1 * (2 ** -10);
7+
?>
8+
--EXPECTF--
9+
%s

‎Zend/zend_strtod.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3609,11 +3609,11 @@ rv_alloc(i) int i;
36093609
rv_alloc(int i)
36103610
#endif
36113611
{
3612-
int j, k, *r;
3612+
int k, *r;
36133613

3614-
j = sizeof(ULong);
3614+
size_tj = sizeof(ULong);
36153615
for(k = 0;
3616-
sizeof(Bigint) - sizeof(ULong) - sizeof(int) + (size_t)j <= (size_t)i;
3616+
sizeof(Bigint) - sizeof(ULong) - sizeof(int) + j <= (size_t)i;
36173617
j <<= 1)
36183618
k++;
36193619
r = (int*)Balloc(k);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /