Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ PHP 8.3 UPGRADE NOTES
3. Changes in SAPI modules
========================================

- $_SERVER['SERVER_SOFTWARE'] value from the built-in CLI server changed
to make it compliant with RFC3875.

========================================
4. Deprecated Functionality
========================================
Expand Down
2 changes: 1 addition & 1 deletion sapi/cli/php_cli_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ static void sapi_cli_server_register_variables(zval *track_vars_array) /* {{{ */
}
}
{
zend_string *tmp = strpprintf(0, "PHP %s Development Server", PHP_VERSION);
zend_string *tmp = strpprintf(0, "PHP/%s (Development Server)", PHP_VERSION);
sapi_cli_server_register_known_var_str(track_vars_array, "SERVER_SOFTWARE", strlen("SERVER_SOFTWARE"), tmp);
zend_string_release_ex(tmp, /* persistent */ false);
}
Expand Down
2 changes: 1 addition & 1 deletion sapi/cli/tests/php_cli_server_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var_dump(file_get_contents("http://" . PHP_CLI_SERVER_ADDRESS));
?>
--EXPECTF--
string(%d) "string(%d) "%sphp_cli_server_002"
string(%d) "PHP %s Development Server"
string(%d) "PHP/%s (Development Server)"
string(%d) "localhost"
string(%d) "%s"
"