Skip to content

Commit 4d19b0f

Browse files
committed
More fixes
1 parent ef6522e commit 4d19b0f

File tree

4 files changed

+8
-30
lines changed

4 files changed

+8
-30
lines changed

ext/standard/html.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ PHP_FUNCTION(populate_post_data)
15901590
content_type_c = ZSTR_VAL(content_type);
15911591
} else {
15921592
content_type_c = SG(request_info).content_type;
1593-
if (!content_type) {
1593+
if (!content_type_c) {
15941594
zend_throw_error(NULL, "Request does not provide a content type");
15951595
RETURN_THROWS();
15961596
}

sapi/fpm/tests/put_urlencoded.phpt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ $tester->terminate();
4444
$tester->expectLogTerminatingNotices();
4545
$tester->close();
4646

47+
?>
48+
--CLEAN--
49+
<?php
50+
require_once "tester.inc";
51+
FPM\Tester::clean();
52+
$file_path = __DIR__ . '/put_multipart_uploaded_file.txt';
53+
@unlink($file_path);
4754
?>
4855
--EXPECTF--
4956
{
@@ -56,10 +63,3 @@ $tester->close();
5663
},
5764
"files": []
5865
}
59-
--CLEAN--
60-
<?php
61-
require_once "tester.inc";
62-
FPM\Tester::clean();
63-
$file_path = __DIR__ . '/put_multipart_uploaded_file.txt';
64-
@unlink($file_path);
65-
?>

test.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

test_put.php

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)