Thread Rating:
  • 4 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get simple 3.3.16 support for php 8.0
#43
There might be a special server issue with missing $_SERVER['SERVER_NAME'] and $_SERVER['SERVER_PORT'].

I found the following interesting comment on the PHP Server Variables Documentation.

This is for SERVER_NAME:
Quote:Note: Under Apache 2, you must set UseCanonicalName = On and ServerName. Otherwise, this value reflects the hostname supplied by the client, which can be spoofed. It is not safe to rely on this value in security-dependent contexts.

And this is for SERVER_PORT:
Quote:Note: Under the Apache 2, you must set UseCanonicalName = On, as well as UseCanonicalPhysicalPort = On in order to get the physical (real) port, otherwise, this value can be spoofed and it may or may not return the physical port value. It is not safe to rely on this value in security-dependent contexts.


So, you might ask your hoster to check whether the correct settings for UseCanonicalName, UseCanonicalPhysicalPort and ServerName are applied.

But maybe you are using a nginx server instead which is not fully configured.
Reply


Messages In This Thread
RE: Get simple 3.3.16 support for php 8.0 - by Knobbles - 2022-10-18, 04:30:26



Users browsing this thread: 2 Guest(s)