-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Supeglobals does not fully support actions #9392
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
@paulbalandan @samsonasik Has a policeman appeared? 😄 |
@paulbalandan it seems due to mergeable PR: @neznaika0 let's reopen |
From what I see, the We can ask @kenjis if there was a reason we didn't pursue this further. He is definitely the best-oriented person in this area (as the author) so his opinion can save us some time. |
@neznaika0 What exactly are the problems with accessing the forum? |
@kenjis has been very busy for a long time. We could first describe the interface and then implement the methods. It seems to me that it would be possible to extend ArrayObject or Iterable... The task is to hide the array in an object I opened a topic in the Lounge on the forum. Cloudflare Encrypted Client Hello (ECH) was banned in my country. I'm 50/50% open to a forum or a long wait. Sometimes it opens normally |
PHP Version
8.3
CodeIgniter4 Version
4.6
CodeIgniter4 Installation Method
Git
Which operating systems have you tested for this bug?
Linux
Which server did you use?
cli-server (PHP built-in webserver)
What happened?
At the moment, Superglobals looks like a stub. There are no necessary actions:
There is no getting all the values as an array. For example, to replace it in the
Router
:$this->globals['server'] = $_SERVER;
CodeIgniter4/system/Commands/Utilities/Routes.php
Lines 89 to 94 in e475fd8
The server() method can return not only a
string
, but alsostring|int|float|array
. Array for argv, float for REQUEST_TIMECodeIgniter4/system/Superglobals.php
Line 33 in e475fd8
Keys cannot be deleted as
unset($_SERVER['HTTP_HOST'], $_SERVER['REQUEST_URI'])
CodeIgniter4/system/Commands/Utilities/Environment.php
Line 121 in e475fd8
Something important is in the process..
To upgrade to Superglobals, you need to check the all code. Because in many places, $_SERVER is overwritten. I'll try to get started.
I could send a PR, but I need to understand what to do. Is the function that I described enough for this?
I'm really sorry, this is more of a feature request. But I have problems accessing the forum.
The text was updated successfully, but these errors were encountered: