Skip to content

Commit 355cd5c

Browse files
committed
adapt GHSA-9pqp-7h25-4f32 test for 7.x
(cherry picked from commit 29065f3) (cherry picked from commit 87ed942) (cherry picked from commit d97de82) (cherry picked from commit 64a9dfd) (cherry picked from commit fb9688a)
1 parent fb90cb1 commit 355cd5c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/basic/GHSA-9pqp-7h25-4f32.phpt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ function test($boundaryLen) {
2121
getenv('TEST_PHP_CGI_EXECUTABLE'),
2222
'-C',
2323
'-n',
24+
'-dlog_errors=1',
2425
__DIR__ . '/GHSA-9pqp-7h25-4f32.inc',
2526
];
27+
$cmd = implode(' ', $cmd);
2628

2729
$boundary = str_repeat('A', $boundaryLen);
2830
$body = ""
@@ -92,11 +94,10 @@ array(1) {
9294

9395
Boundary len: 5117
9496
Starting...
97+
PHP Warning: Boundary too large in multipart/form-data POST data in Unknown on line 0
9598
X-Powered-By: %s
9699
Content-type: text/html; charset=UTF-8
97100

98-
<br />
99-
<b>Warning</b>: Boundary too large in multipart/form-data POST data in <b>Unknown</b> on line <b>0</b><br />
100101
Hello world
101102
array(0) {
102103
}

0 commit comments

Comments
 (0)