Skip to content

Commit e788e82

Browse files
committed
Removed "gc_" prefix.
1 parent 2afc837 commit e788e82

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Zend/tests/gc_037.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ gc_collect_cycles();
1313
var_dump(gc_status());
1414
--EXPECT--
1515
array(3) {
16-
["gc_runs"]=>
16+
["runs"]=>
1717
int(0)
1818
["collected"]=>
1919
int(0)
20-
["gc_threshold"]=>
20+
["threshold"]=>
2121
int(10001)
2222
}
2323
array(3) {
24-
["gc_runs"]=>
24+
["runs"]=>
2525
int(1)
2626
["collected"]=>
2727
int(1)
28-
["gc_threshold"]=>
28+
["threshold"]=>
2929
int(10001)
3030
}

Zend/zend_builtin_functions.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,9 @@ ZEND_FUNCTION(gc_status)
398398

399399
array_init_size(return_value, 3);
400400

401-
add_assoc_long_ex(return_value, "gc_runs", sizeof("gc_runs")-1, (long)status.gc_runs);
401+
add_assoc_long_ex(return_value, "runs", sizeof("runs")-1, (long)status.runs);
402402
add_assoc_long_ex(return_value, "collected", sizeof("collected")-1, (long)status.collected);
403-
add_assoc_long_ex(return_value, "gc_threshold", sizeof("gc_threshold")-1, (long)status.gc_threshold);
403+
add_assoc_long_ex(return_value, "threshold", sizeof("threshold")-1, (long)status.threshold);
404404
}
405405

406406
/* {{{ proto int func_num_args(void)

Zend/zend_gc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,9 +1444,9 @@ ZEND_API int zend_gc_collect_cycles(void)
14441444

14451445
ZEND_API void zend_gc_get_status(zend_gc_status *status)
14461446
{
1447-
status->gc_runs = GC_G(gc_runs);
1447+
status->runs = GC_G(gc_runs);
14481448
status->collected = GC_G(collected);
1449-
status->gc_threshold = GC_G(gc_threshold);
1449+
status->threshold = GC_G(gc_threshold);
14501450
}
14511451

14521452
/*

Zend/zend_gc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
BEGIN_EXTERN_C()
2626

2727
typedef struct _zend_gc_status {
28-
uint32_t gc_runs;
28+
uint32_t runs;
2929
uint32_t collected;
30-
uint32_t gc_threshold;
30+
uint32_t threshold;
3131
} zend_gc_status;
3232

3333
ZEND_API extern int (*gc_collect_cycles)(void);

0 commit comments

Comments
 (0)