[php-src] Issue #11771: I found one in the comments

From: Date: Sat, 22 Jul 2023 23:03:29 +0000
Subject: [php-src] Issue #11771: I found one in the comments
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245016@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/11771
Author: remco-pc

### Description

In the comments of https://www.php.net/manual/en/ref.shmop.php



Why not implement a $_SHARED or $_MUTUAL SuperGlobal in which we can create variables at will, and
that is shared by all connections?

This would greatly improve performance of many PHP applications, and could save a lot of burden on
server memory. Especially if those variables could be classes containing functions.

You could implement that it is up to the programmer to guard atomicity.

Such superglobal would be feasible on windows servers as well.
---
My question: or is there an easy way of injecting those in the $_SERVER global, default functions,
classes and traits read straight from the memory. Which reduces disk reads.


Thread (1 message)

  • remco-pc
« previous php.bugs (#245016) next »