Skip to content

Commit 64583f6

Browse files
committed
Rename function to parse_post_data() instead
1 parent 4d19b0f commit 64583f6

8 files changed

+13
-13
lines changed

Zend/Optimizer/zend_func_infos.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ static const func_info_t func_infos[] = {
536536
F1("htmlspecialchars", MAY_BE_STRING),
537537
F1("htmlentities", MAY_BE_STRING),
538538
F1("get_html_translation_table", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_STRING|MAY_BE_ARRAY_OF_STRING),
539-
F1("populate_post_data", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_ARRAY),
539+
F1("parse_post_data", MAY_BE_ARRAY|MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_OF_ARRAY),
540540
F1("bin2hex", MAY_BE_STRING),
541541
F1("hex2bin", MAY_BE_STRING|MAY_BE_FALSE),
542542
#if defined(HAVE_NL_LANGINFO)

Zend/tests/populate_post_data_multipart_stream.phpt renamed to Zend/tests/parse_post_data_multipart_stream.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
populate_post_data() with multipart stream
2+
parse_post_data() with multipart stream
33
--FILE--
44
<?php
55

@@ -18,7 +18,7 @@ file data
1818
BODY);
1919
rewind($stream);
2020

21-
[$_POST, $_FILES] = populate_post_data($stream, 'multipart/form-data; boundary=---------------------------84000087610663814162942123332');
21+
[$_POST, $_FILES] = parse_post_data($stream, 'multipart/form-data; boundary=---------------------------84000087610663814162942123332');
2222

2323
var_dump($_POST, $_FILES);
2424

Zend/tests/populate_post_data_urlencoded_stream.phpt renamed to Zend/tests/parse_post_data_urlencoded_stream.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
--TEST--
2-
populate_post_data() with urlencoded stream
2+
parse_post_data() with urlencoded stream
33
--FILE--
44
<?php
55

66
$stream = fopen('php://memory','r+');
77
fwrite($stream, 'foo=foo&bar[]=1&bar[]=2');
88
rewind($stream);
99

10-
[$_POST, $_FILES] = populate_post_data($stream, 'application/x-www-form-urlencoded');
10+
[$_POST, $_FILES] = parse_post_data($stream, 'application/x-www-form-urlencoded');
1111

1212
var_dump($_POST, $_FILES);
1313

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@ function get_html_translation_table(int $table = HTML_SPECIALCHARS, int $flags =
22682268
* @return array<int, array>
22692269
* @refcount 1
22702270
*/
2271-
function populate_post_data($input_stream = null, ?string $content_type = null): array {}
2271+
function parse_post_data($input_stream = null, ?string $content_type = null): array {}
22722272

22732273
/* }}} */
22742274

ext/standard/basic_functions_arginfo.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/standard/html.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,7 @@ PHP_FUNCTION(get_html_translation_table)
15601560
}
15611561
/* }}} */
15621562

1563-
PHP_FUNCTION(populate_post_data)
1563+
PHP_FUNCTION(parse_post_data)
15641564
{
15651565
zval *input_stream_zv = NULL;
15661566
zend_string *content_type = NULL;

sapi/fpm/tests/put_multipart.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ EOT;
2323

2424
$code = <<<'EOT'
2525
<?php
26-
[$_POST, $_FILES] = populate_post_data();
26+
[$_POST, $_FILES] = parse_post_data();
2727
$file_path = __DIR__ . '/put_multipart_uploaded_file.txt';
2828
move_uploaded_file($_FILES[0]['tmp_name'], $file_path);
2929
$file_content = file_get_contents($file_path);

sapi/fpm/tests/put_urlencoded.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ EOT;
2323

2424
$code = <<<'EOT'
2525
<?php
26-
[$_POST, $_FILES] = populate_post_data();
26+
[$_POST, $_FILES] = parse_post_data();
2727
echo json_encode([
2828
'post' => $_POST,
2929
'files' => $_FILES,

0 commit comments

Comments
 (0)