Skip to content

Commit 53c6619

Browse files
committed
Restore memory_reset_peak_usage() declaration
Cf. <https://github.com/php/php-src/pull/8151/files#r819605725>.
1 parent 703763f commit 53c6619

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,6 +2057,8 @@ function memory_get_usage(bool $real_usage = false): int {}
20572057

20582058
function memory_get_peak_usage(bool $real_usage = false): int {}
20592059

2060+
function memory_reset_peak_usage(): void {}
2061+
20602062
/* versioning.c */
20612063

20622064
/** @compile-time-eval */

ext/standard/basic_functions_arginfo.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: e53bcb20eb22fd198019ca24ebbf10a0decde13a */
2+
* Stub hash: bbcebdb57572133d5f442f220f1e98a1320ed0f6 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
55
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
@@ -2175,6 +2175,8 @@ ZEND_END_ARG_INFO()
21752175

21762176
#define arginfo_memory_get_peak_usage arginfo_memory_get_usage
21772177

2178+
#define arginfo_memory_reset_peak_usage arginfo_flush
2179+
21782180
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_version_compare, 0, 2, MAY_BE_LONG|MAY_BE_BOOL)
21792181
ZEND_ARG_TYPE_INFO(0, version1, IS_STRING, 0)
21802182
ZEND_ARG_TYPE_INFO(0, version2, IS_STRING, 0)
@@ -2824,6 +2826,7 @@ ZEND_FUNCTION(serialize);
28242826
ZEND_FUNCTION(unserialize);
28252827
ZEND_FUNCTION(memory_get_usage);
28262828
ZEND_FUNCTION(memory_get_peak_usage);
2829+
ZEND_FUNCTION(memory_reset_peak_usage);
28272830
ZEND_FUNCTION(version_compare);
28282831
#if defined(PHP_WIN32)
28292832
ZEND_FUNCTION(sapi_windows_cp_set);
@@ -3479,6 +3482,7 @@ static const zend_function_entry ext_functions[] = {
34793482
ZEND_FE(unserialize, arginfo_unserialize)
34803483
ZEND_FE(memory_get_usage, arginfo_memory_get_usage)
34813484
ZEND_FE(memory_get_peak_usage, arginfo_memory_get_peak_usage)
3485+
ZEND_FE(memory_reset_peak_usage, arginfo_memory_reset_peak_usage)
34823486
ZEND_SUPPORTS_COMPILE_TIME_EVAL_FE(version_compare, arginfo_version_compare)
34833487
#if defined(PHP_WIN32)
34843488
ZEND_FE(sapi_windows_cp_set, arginfo_sapi_windows_cp_set)

0 commit comments

Comments
 (0)