[PHP-BUG] Bug #71166 [NEW]: Wrong output of GC statistics
[email protected] ("y dot uchiyama dot 1015 at gmail dot com")
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <[email protected]> |
From: y dot uchiyama dot 1015 at gmail dot com Operating system: Any PHP version: 7.0.1 Package: Scripting Engine problem Bug Type: Bug Bug description:Wrong output of GC statistics Description: ------------ PHP 7 outputs wrong GC stats when compiled with -DGC_BENCH=1, because root_buf_length is not decreased when cyclic garbages are collected on GC. Test script: --------------- ./sapi/cli/php </tmp/example1.php where example1.php is shown at the following http://www.php.net/manual/en/features.gc.performance-considerations.php Expected result: ---------------- Root buffer length/peak should be <= 10000. Actual result: -------------- GC Statistics ------------- Runs: 10 Collected: 99999 Root buffer length: 100001 Root buffer peak: 100006 -- Edit bug report at https://bugs.php.net/bug.php?id=71166&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71166&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71166&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71166&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71166&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71166&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71166&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71166&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71166&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71166&r=support Expected behavior: https://bugs.php.net/fix.php?id=71166&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71166&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71166&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71166&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71166&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71166&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71166&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71166&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71166&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71166&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71166&r=mysqlcfg