php / php/php-src

Shared memory descriptors are not closed after PHP program execution is complete.

Open
#17,245 4 comments 0 reactions 1 assignee View on GitHub

@cmb69 is already working on this.

Since Dec 23, 2024.

  • #17273 by @CoderAImen — open
Bug Category: TSRM OS: Windows Status: Verified
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Description

Extension SHMOP.

shm_id = shmop_open($r, "c", 0644,1024000); ?>

When the web server is running for a long time, the number of open descriptors reaches 15 million or more. As a result, the web server complains about the lack of resources.

Shared memory descriptors are not closed after PHP program execution is complete.

Apache 2.4.62 PHP 8.4(php8apache2_4.dll) Windows 11.

PHP Version

PHP 8.4

Operating System

Windows 11

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.