[GH-ISSUE #405] Cypht not compatible with PHP Version 7.3 and 7.4 #339

Closed
opened 2026-02-25 21:34:47 +03:00 by kerem · 23 comments
Owner

Originally created by @Master0ne on GitHub (Jun 10, 2020).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/405

Originally assigned to: @jasonmunro on GitHub.

🐛 Bugreport

As it turned out, Cypht is not compatible with PHP Version 7.3 and 7.4, resulting in getting stuck at the login page, which just gets reloaded after entering correct credentials.

Version

Rev: master

Steps to reproduce

I have tried several different PHP versions between 5.6 and 7.4, and the conclusion is that the current version of Cypht (fresh git pull) is:

  • working with PHP Version 7.2.31
  • not working with PHP Version 7.3.18
  • not working with PHP Version 7.4.6
Originally created by @Master0ne on GitHub (Jun 10, 2020). Original GitHub issue: https://github.com/cypht-org/cypht/issues/405 Originally assigned to: @jasonmunro on GitHub. ## 🐛 Bugreport As it turned out, Cypht is not compatible with PHP Version 7.3 and 7.4, resulting in getting stuck at the login page, which just gets reloaded after entering correct credentials. ### Version Rev: master ### Steps to reproduce I have tried several different PHP versions between 5.6 and 7.4, and the conclusion is that the current version of Cypht (fresh git pull) is: - working with PHP Version 7.2.31 - not working with PHP Version 7.3.18 - not working with PHP Version 7.4.6
kerem 2026-02-25 21:34:47 +03:00
Author
Owner

@jasonmunro commented on GitHub (Jun 10, 2020):

Cypht (current master branch) works fine with PHP 7.3 and 7.4 for me (and Travis CI as seen here: https://travis-ci.org/github/jasonmunro/cypht/builds/683660242) so I'm not sure why it's failing for you. Looking at the debug output you sent me via E-mail I noticed this:

LOGGED OUT: invalid method

which is odd and likely related. This message is logged if an HTTP request is made to cypht that is NOT either a GET or POST request. If that happens, the code logs you out.

<!-- gh-comment-id:642135824 --> @jasonmunro commented on GitHub (Jun 10, 2020): Cypht (current master branch) works fine with PHP 7.3 and 7.4 for me (and Travis CI as seen here: https://travis-ci.org/github/jasonmunro/cypht/builds/683660242) so I'm not sure why it's failing for you. Looking at the debug output you sent me via E-mail I noticed this: ```LOGGED OUT: invalid method ``` which is odd and likely related. This message is logged if an HTTP request is made to cypht that is NOT either a GET or POST request. If that happens, the code logs you out.
Author
Owner

@jasonmunro commented on GitHub (Jun 10, 2020):

https://gist.github.com/jasonmunro/f758e4a071b390881bbdc2d91f85d450 <- this patch will log the HTTP method being used that appears to be related to your issues with PHP > 7.2. You need to be running cypht in debug mode but it should log whatever unacceptable method type is being sent to cypht. Once we determine the offending method type, the next question is what is sending it, and why is it only happening in PHP > 7.2 if that is indeed the case.

<!-- gh-comment-id:642144799 --> @jasonmunro commented on GitHub (Jun 10, 2020): https://gist.github.com/jasonmunro/f758e4a071b390881bbdc2d91f85d450 <- this patch will log the HTTP method being used that appears to be related to your issues with PHP > 7.2. You need to be running cypht in debug mode but it should log whatever unacceptable method type is being sent to cypht. Once we determine the offending method type, the next question is what is sending it, and why is it only happening in PHP > 7.2 if that is indeed the case.
Author
Owner

@Master0ne commented on GitHub (Jun 10, 2020):

@jasonmunro thanks a lot for getting back to me, this really is very odd, because all I did during my tests with the different PHP versions is to switch between them by using the following .htaccess entries as per instructions from Hetzner shared hosting support, and nothing else has been changed during these tests:

FcgidWrapper "/home/httpd/cgi-bin/php72-fcgi-starter.fcgi" .php
Action application/x-httpd-php72 /cgi-sys/php72-fcgi-starter.fcgi
AddType application/x-httpd-php72 .php

So the webhost is configured to run the latest available PHP version 7.4.6, and that one just did not work with Cypht right from the beginning, and I tried with several fresh installations.

Just today in the morning it came to my mind that it may have to do with the PHP version, so I tried switching between the available versions on that webhost with the .htaccess entries shown above, and starting with version 5.6 I was suddenly able to log in as suppsed to, however it stopped again when reaching version 7.3.18 with the same problem (stuck at login page, which just reloads after providing the proper credentials).

The PHP error log did not reveal anything else in debug mode, so I will try your patch tomorrow morning (it's already evening here) and report back then.

<!-- gh-comment-id:642159375 --> @Master0ne commented on GitHub (Jun 10, 2020): @jasonmunro thanks a lot for getting back to me, this really is very odd, because all I did during my tests with the different PHP versions is to switch between them by using the following `.htaccess` entries as per instructions from Hetzner shared hosting support, and nothing else has been changed during these tests: ```` FcgidWrapper "/home/httpd/cgi-bin/php72-fcgi-starter.fcgi" .php Action application/x-httpd-php72 /cgi-sys/php72-fcgi-starter.fcgi AddType application/x-httpd-php72 .php ```` So the webhost is configured to run the latest available PHP version 7.4.6, and that one just did not work with Cypht right from the beginning, and I tried with several fresh installations. Just today in the morning it came to my mind that it may have to do with the PHP version, so I tried switching between the available versions on that webhost with the `.htaccess` entries shown above, and starting with version 5.6 I was suddenly able to log in as suppsed to, however it stopped again when reaching version 7.3.18 with the same problem (stuck at login page, which just reloads after providing the proper credentials). The PHP error log did not reveal anything else in debug mode, so I will try your patch tomorrow morning (it's already evening here) and report back then.
Author
Owner

@Master0ne commented on GitHub (Jun 11, 2020):

I have applied your patch and this is the output from the PHP errors log:

With PHP 7.4.6

[11-Jun-2020 05:09:27 UTC] boolean: 
[11-Jun-2020 05:09:27 UTC] Array
(
    [0] => Using Hm_PHP_Session with Hm_Auth_IMAP
    [1] => Using DB user configuration
    [2] => Using sapi: cgi-fcgi
    [3] => Request type: HTTP
    [4] => Request path: 
    [5] => TLS request: 0
    [6] => Mobile request: 0
    [7] => Page ID: home
    [8] => CACHE backend using: noop
    [9] => Setting cookie: name: hm_id, lifetime: 0, path: , domain: , secure: , html_only 1
    [10] => LOGGED IN
    [11] => ELOG called in /path/to/lib/module.php at line 198
    [12] => Deleting cookie: name: hm_session, lifetime: 1591848567, path: , domain: , secure: , html_only 1
    [13] => Deleting cookie: name: hm_id, lifetime: 1591848567, path: , domain: , secure: , html_only 1
    [14] => Deleting cookie: name: hm_reload_folders, lifetime: 1591848567, path: , domain: , secure: , html_only 
    [15] => Deleting cookie: name: hm_msgs, lifetime: 1591848567, path: , domain: , secure: , html_only 1
    [16] => LOGGED OUT: invalid method 
    [17] => PHP version 7.4.6
    [18] => Zend version 3.4.0
    [19] => Peak Memory: 2048
    [20] => PID: 5250
    [21] => Included files: 75
)

With PHP 7.2.31

[11-Jun-2020 05:13:20 UTC] string: POST
[11-Jun-2020 05:13:20 UTC] Array
(
    [0] => Using Hm_PHP_Session with Hm_Auth_IMAP
    [1] => Using DB user configuration
    [2] => Using sapi: cgi-fcgi
    [3] => Request type: HTTP
    [4] => Request path: /
    [5] => TLS request: 1
    [6] => Mobile request: 0
    [7] => Page ID: home
    [8] => CACHE backend using: noop
    [9] => Setting cookie: name: hm_id, lifetime: 0, path: /, domain: {domain}, secure: 1, html_only 1
    [10] => LOGGED IN
    [11] => ELOG called in /path/to/lib/module.php at line 198
    [12] => Connecting to dsn: mysql:host={MySQL host};dbname={database name}
    [13] => Default SMTP server added
    [14] => CACHE: miss for "feed_read_uids" using noop
    [15] => CACHE: saving "nux_dev_news" using noop
    [16] => Redirecting to /
    [17] => PHP version 7.2.31
    [18] => Zend version 3.2.0
    [19] => Peak Memory: 2048
    [20] => PID: 8807
    [21] => Included files: 74
)

Nothing else than switching between the two PHP versions by using the shown .htaccess method has been changed between the two runs.

P.S. Sensible information in that output from the PHP errors log ({domain}, {MySQL host}, {database name} and /path/to/lib/module.php) has been modified.

<!-- gh-comment-id:642417359 --> @Master0ne commented on GitHub (Jun 11, 2020): I have applied [your patch](https://gist.github.com/jasonmunro/f758e4a071b390881bbdc2d91f85d450) and this is the output from the PHP errors log: **With PHP 7.4.6** ```` [11-Jun-2020 05:09:27 UTC] boolean: [11-Jun-2020 05:09:27 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_IMAP [1] => Using DB user configuration [2] => Using sapi: cgi-fcgi [3] => Request type: HTTP [4] => Request path: [5] => TLS request: 0 [6] => Mobile request: 0 [7] => Page ID: home [8] => CACHE backend using: noop [9] => Setting cookie: name: hm_id, lifetime: 0, path: , domain: , secure: , html_only 1 [10] => LOGGED IN [11] => ELOG called in /path/to/lib/module.php at line 198 [12] => Deleting cookie: name: hm_session, lifetime: 1591848567, path: , domain: , secure: , html_only 1 [13] => Deleting cookie: name: hm_id, lifetime: 1591848567, path: , domain: , secure: , html_only 1 [14] => Deleting cookie: name: hm_reload_folders, lifetime: 1591848567, path: , domain: , secure: , html_only [15] => Deleting cookie: name: hm_msgs, lifetime: 1591848567, path: , domain: , secure: , html_only 1 [16] => LOGGED OUT: invalid method [17] => PHP version 7.4.6 [18] => Zend version 3.4.0 [19] => Peak Memory: 2048 [20] => PID: 5250 [21] => Included files: 75 ) ```` **With PHP 7.2.31** ```` [11-Jun-2020 05:13:20 UTC] string: POST [11-Jun-2020 05:13:20 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_IMAP [1] => Using DB user configuration [2] => Using sapi: cgi-fcgi [3] => Request type: HTTP [4] => Request path: / [5] => TLS request: 1 [6] => Mobile request: 0 [7] => Page ID: home [8] => CACHE backend using: noop [9] => Setting cookie: name: hm_id, lifetime: 0, path: /, domain: {domain}, secure: 1, html_only 1 [10] => LOGGED IN [11] => ELOG called in /path/to/lib/module.php at line 198 [12] => Connecting to dsn: mysql:host={MySQL host};dbname={database name} [13] => Default SMTP server added [14] => CACHE: miss for "feed_read_uids" using noop [15] => CACHE: saving "nux_dev_news" using noop [16] => Redirecting to / [17] => PHP version 7.2.31 [18] => Zend version 3.2.0 [19] => Peak Memory: 2048 [20] => PID: 8807 [21] => Included files: 74 ) ```` Nothing else than switching between the two PHP versions by using the shown `.htaccess` method has been changed between the two runs. P.S. Sensible information in that output from the PHP errors log (`{domain}`, `{MySQL host}`, `{database name}` and `/path/to/lib/module.php`) has been modified.
Author
Owner

@dumblob commented on GitHub (Jun 11, 2020):

That's interesting, your request in the former case is NOT done over SSL (TLS), but in the latter it is. It should be done over SSL (TLS) in both cases.

Did you try to run sudo php ./scripts/config_gen.php always after switching to a different PHP version?

<!-- gh-comment-id:642466466 --> @dumblob commented on GitHub (Jun 11, 2020): That's interesting, your request in the former case is NOT done over SSL (TLS), but in the latter it is. It should be done over SSL (TLS) in both cases. Did you try to run `sudo php ./scripts/config_gen.php` always after switching to a different PHP version?
Author
Owner

@Master0ne commented on GitHub (Jun 11, 2020):

@dumblob I have not rerun php ./scripts/config_gen.php before when switching between PHP versions (and I see no relevance for this), but I tried just now and it did not change anything.

Browser access to that Cypht installation is done over HTTPS only and the webhost is configured to redirect any HTTP to HTTPS automatically.

BTW for what it's worth, the webhost setup at Hetzner is running on Debian 10 with only official Debian packages / modules installed:

$ uname -a
Linux {webhost} 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux
<!-- gh-comment-id:642481181 --> @Master0ne commented on GitHub (Jun 11, 2020): @dumblob I have not rerun `php ./scripts/config_gen.php` before when switching between PHP versions (and I see no relevance for this), but I tried just now and it did not change anything. Browser access to that Cypht installation is done over HTTPS only and the webhost is configured to redirect any HTTP to HTTPS automatically. BTW for what it's worth, the webhost setup at Hetzner is running on Debian 10 with only official Debian packages / modules installed: ```` $ uname -a Linux {webhost} 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux ````
Author
Owner

@dumblob commented on GitHub (Jun 11, 2020):

and I see no relevance for this

I also don't, but I didn't look at the source recently so I'm not sure whether it does something relevant (and there is plenty of space for that, believe me).

BTW for what it's worth, the webhost setup at Hetzner is running on Debian 10 with only official Debian packages / modules installed: ...

Hm, how does the switching between PHP versions actually work? Do all Cypht dependencies also get switched to versions compatible with the chosen PHP version? Or just PHP with some core modules gets switched? Google suggests issues with incompatible SSL libraries, but it'd be premature to say that's probably the reason 😉.

@jasonmunro thinking about deployment issues - could we somehow check beforehand whether installation is correct?

<!-- gh-comment-id:642487439 --> @dumblob commented on GitHub (Jun 11, 2020): >and I see no relevance for this I also don't, but I didn't look at the source recently so I'm not sure whether it does something relevant (and there is plenty of space for that, believe me). >BTW for what it's worth, the webhost setup at Hetzner is running on Debian 10 with only official Debian packages / modules installed: ... Hm, how does the switching between PHP versions actually work? Do all Cypht dependencies also get switched to versions compatible with the chosen PHP version? Or just PHP with some core modules gets switched? Google suggests issues with incompatible SSL libraries, but it'd be premature to say that's probably the reason :wink:. @jasonmunro thinking about deployment issues - could we somehow check beforehand whether installation is correct?
Author
Owner

@Master0ne commented on GitHub (Jun 11, 2020):

@dumblob Please see above here where I've explained how switching between PHP versions works with .htaccess on such a webhost at Hetzner.

Would it help to give you access to my Cypht installation by ftp/sftp so that you can take a look for yourself?

Unfortunately I can not give you shell access as there is only one ssh account for the whole webhost.

<!-- gh-comment-id:642576510 --> @Master0ne commented on GitHub (Jun 11, 2020): @dumblob Please see above [here](https://github.com/jasonmunro/cypht/issues/405#issuecomment-642159375) where I've explained how switching between PHP versions works with `.htaccess` on such a webhost at Hetzner. Would it help to give you access to my Cypht installation by ftp/sftp so that you can take a look for yourself? Unfortunately I can not give you shell access as there is only one ssh account for the whole webhost.
Author
Owner

@dumblob commented on GitHub (Jun 11, 2020):

@Master0ne sorry for not being clear. With how does the switching between PHP versions actually work? and the subsequent questions I was mainly interested in what the *-fcgi-starter.fcgi binaries do. If it's not known, then we have to look elsewhere for the culprit 😢.

Would it help to give you access to my Cypht installation by ftp/sftp so that you can take a look for yourself?

This I'd leave to @jasonmunro as he's the main architect and dev, so he'd be much more efficient when looking around.

I still have a feeling from the log, that the chosen PHP version doesn't somehow load all modules correctly (maybe even the SSL lib is not loaded as expected). Or maybe in addition to .php files open .html files by the given PHP handler as well?

In any case, Hetzner writes You can set up the standard PHP version. All files ending in «.php» are automatically parsed with this PHP version. In addition the following attributions are standard:...(the list of .htaccess directives) on https://wiki.hetzner.de/index.php/KonsoleH:PHP-Konfiguration/en which I understand as there is yet another way of switching PHP versions than just by using .htaccess (wouldn't .htaccess be needed in all directories including all Cypht subdirectories recursively)?

Could you try to switch PHP version using this different method (i.e. by removing anything PHP-related from all .htaccess files or better by removing all .htaccess files recursively?

<!-- gh-comment-id:642652509 --> @dumblob commented on GitHub (Jun 11, 2020): @Master0ne sorry for not being clear. With `how does the switching between PHP versions actually work?` and the subsequent questions I was mainly interested in what the `*-fcgi-starter.fcgi` binaries do. If it's not known, then we have to look elsewhere for the culprit :cry:. >Would it help to give you access to my Cypht installation by ftp/sftp so that you can take a look for yourself? This I'd leave to @jasonmunro as he's the main architect and dev, so he'd be much more efficient when looking around. I still have a feeling from the log, that the chosen PHP version doesn't somehow load all modules correctly (maybe even the SSL lib is not loaded as expected). Or maybe in addition to `.php` files open `.html` files by the given PHP handler as well? In any case, Hetzner writes `You can set up the standard PHP version. All files ending in «.php» are automatically parsed with this PHP version. In addition the following attributions are standard:...(the list of .htaccess directives)` on https://wiki.hetzner.de/index.php/KonsoleH:PHP-Konfiguration/en which I understand as there is yet another way of switching PHP versions than just by using `.htaccess` (wouldn't `.htaccess` be needed in all directories including all Cypht subdirectories recursively)? Could you try to switch PHP version using this different method (i.e. by removing anything PHP-related from all `.htaccess` files or better by removing all `.htaccess` files recursively?
Author
Owner

@Master0ne commented on GitHub (Jun 11, 2020):

@dumblob I don't know how the actual switching between PHP versions works and this definitely is of no concern, because I've configured the whole webhost (which is running multiple websites) to use the latest available PHP version (7.4.6).

I've used the PHP version switching feature by .htaccess only for downgrading particular websites from PHP version 7.4.6, so for testing if Cypht is working with an older PHP version, and I'm using that feature for two other older websites on that webhost, which do not work with anything newer than PHP version 5.6.

So the default is to have no .htaccess file at all for Cypht, then it's running on PHP 7.4.6 and not working with the shown problem of being stuck at the login page.

As said, there are multiple websites on that webhost, even things like Nextcloud and Matamo, all running the same PHP version 7.4.6 and every other website works without any problems, only Cypht is not working.

You may be on the right path with the differences shown in the PHP error logs, so why it shows a TLS request on PHP v7.2.31 but none on PHP v.7.4.6, and why it shows / as request path on PHP v7.2.31 but an empty request path on PHP v.7.4.6.

My (unqualified) guess is, that there is a bug in the Crypt code that manifests itself only in PHP versions >= 7.3, has something to do with TLS and obviously does not occur in other setups.

Is it possible, that there is anything hard-coded (in lack of a better wording) to use HTTP instead of HTTPS during the login process in a way that works differently between PHP versions <= 7.2 and >= 7.3?

All websites on that webhost are configured to use server side HTTPS redirect ("With this function, you can automatically redirect all request and create a secure connection for all visitors to your site."), so there is no need to take care of this using the RewriteEngine in .htaccess.

<!-- gh-comment-id:642696650 --> @Master0ne commented on GitHub (Jun 11, 2020): @dumblob I don't know how the actual switching between PHP versions works and this definitely is of no concern, because I've configured the whole webhost (which is running multiple websites) to use the latest available PHP version (7.4.6). I've used the PHP version switching feature by `.htaccess` only for downgrading particular websites from PHP version 7.4.6, so for testing if Cypht is working with an older PHP version, and I'm using that feature for two other older websites on that webhost, which do not work with anything newer than PHP version 5.6. So the default is to have no `.htaccess` file at all for Cypht, then it's running on PHP 7.4.6 and not working with the shown problem of being stuck at the login page. As said, there are multiple websites on that webhost, even things like Nextcloud and Matamo, all running the same PHP version 7.4.6 and every other website works without any problems, only Cypht is not working. You may be on the right path with the differences shown in the PHP error logs, so why it shows a TLS request on PHP v7.2.31 but none on PHP v.7.4.6, and why it shows `/` as request path on PHP v7.2.31 but an empty request path on PHP v.7.4.6. My (unqualified) guess is, that there is a bug in the Crypt code that manifests itself only in PHP versions >= 7.3, has something to do with TLS and obviously does not occur in other setups. Is it possible, that there is anything hard-coded (in lack of a better wording) to use HTTP instead of HTTPS during the login process in a way that works differently between PHP versions <= 7.2 and >= 7.3? All websites on that webhost are configured to use server side **HTTPS redirect** ("With this function, you can automatically redirect all request and create a secure connection for all visitors to your site."), so there is no need to take care of this using the *RewriteEngine* in `.htaccess`.
Author
Owner

@jasonmunro commented on GitHub (Jun 11, 2020):

The problem is very clearly the lack of HTTP method value with PHP 7.4 which is present with PHP 7.2.

From your 7.4 log:
[11-Jun-2020 05:09:27 UTC] boolean:

7.2 log
[11-Jun-2020 05:13:20 UTC] string: POST

We pull this from the REQUEST_METHOD value in the $_SERVER array. If it's not set to either POST or GET we log the user out which is what is happening here. This is odd and very much NOT the case with my PHP 7.4 installation on Debian. @Master0ne can you capture the output of this patch: https://gist.github.com/jasonmunro/bb58729e546ee9258865213450c37acc so we can see what is in the $_SERVER array?

<!-- gh-comment-id:642816608 --> @jasonmunro commented on GitHub (Jun 11, 2020): The problem is very clearly the lack of HTTP method value with PHP 7.4 which is present with PHP 7.2. From your 7.4 log: ```[11-Jun-2020 05:09:27 UTC] boolean: ``` 7.2 log ```[11-Jun-2020 05:13:20 UTC] string: POST``` We pull this from the REQUEST_METHOD value in the $_SERVER array. If it's not set to either POST or GET we log the user out which is what is happening here. This is odd and very much NOT the case with my PHP 7.4 installation on Debian. @Master0ne can you capture the output of this patch: https://gist.github.com/jasonmunro/bb58729e546ee9258865213450c37acc so we can see what is in the $_SERVER array?
Author
Owner

@Master0ne commented on GitHub (Jun 11, 2020):

Output with patch applied:

With PHP 7.4.6

[11-Jun-2020 17:31:41 UTC] Array
(
    [PHP_SELF] => /index.php
)

[11-Jun-2020 17:31:41 UTC] boolean: 
[11-Jun-2020 17:31:41 UTC] Array
(
    [0] => Using Hm_PHP_Session with Hm_Auth_IMAP
    [1] => Using DB user configuration
    [2] => ELOG called in /path/to/lib/request.php at line 115
    [3] => Using sapi: cgi-fcgi
    [4] => Request type: HTTP
    [5] => Request path: 
    [6] => TLS request: 0
    [7] => Mobile request: 0
    [8] => Page ID: home
    [9] => CACHE backend using: noop
    [10] => Setting cookie: name: hm_id, lifetime: 0, path: , domain: , secure: , html_only 1
    [11] => LOGGED IN
    [12] => ELOG called in /path/to/lib/module.php at line 198
    [13] => Deleting cookie: name: hm_session, lifetime: 1591893101, path: , domain: , secure: , html_only 1
    [14] => Deleting cookie: name: hm_id, lifetime: 1591893101, path: , domain: , secure: , html_only 1
    [15] => Deleting cookie: name: hm_reload_folders, lifetime: 1591893101, path: , domain: , secure: , html_only 
    [16] => Deleting cookie: name: hm_msgs, lifetime: 1591893101, path: , domain: , secure: , html_only 1
    [17] => LOGGED OUT: invalid method 
    [18] => PHP version 7.4.6
    [19] => Zend version 3.4.0
    [20] => Peak Memory: 2048
    [21] => PID: 19276
    [22] => Included files: 75
)

With PHP 7.2.31

[11-Jun-2020 17:29:57 UTC] Array
(
    [REQUEST_URI] => /
    [REQUEST_METHOD] => POST
    [SERVER_ADDR] => xxx.xxx.xxx.xxx
    [REMOTE_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_PORT] => 443
    [SERVER_PROTOCOL] => HTTP/2.0
    [PHP_SELF] => /index.php
    [REQUEST_SCHEME] => https
    [HTTP_HOST] => {domain}
    [HTTP_ORIGIN] => https://{domain}
    [HTTP_REFERER] => https://{domain}/
    [HTTP_ACCEPT_LANGUAGE] => en
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, br
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
    [HTTPS] => on
    [SERVER_NAME] => {domain}
)

[11-Jun-2020 17:29:57 UTC] string: POST
[11-Jun-2020 17:29:58 UTC] Array
(
    [0] => Using Hm_PHP_Session with Hm_Auth_IMAP
    [1] => Using DB user configuration
    [2] => ELOG called in /path/to/lib/request.php at line 115
    [3] => Using sapi: cgi-fcgi
    [4] => Request type: HTTP
    [5] => Request path: /
    [6] => TLS request: 1
    [7] => Mobile request: 0
    [8] => Page ID: home
    [9] => CACHE backend using: noop
    [10] => Setting cookie: name: hm_id, lifetime: 0, path: /, domain: {domain}, secure: 1, html_only 1
    [11] => LOGGED IN
    [12] => ELOG called in /path/to/lib/module.php at line 198
    [13] => Connecting to dsn: mysql:{MySQL host};dbname={database name}
    [14] => Default SMTP server added
    [15] => CACHE: miss for "feed_read_uids" using noop
    [16] => CACHE: saving "nux_dev_news" using noop
    [17] => Redirecting to /
    [18] => PHP version 7.2.31
    [19] => Zend version 3.2.0
    [20] => Peak Memory: 2048
    [21] => PID: 18614
    [22] => Included files: 74
)

[11-Jun-2020 17:29:58 UTC] Array
(
    [REQUEST_URI] => /
    [REQUEST_METHOD] => GET
    [SERVER_ADDR] => xxx.xxx.xxx.xxx
    [REMOTE_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_PORT] => 443
    [SERVER_PROTOCOL] => HTTP/2.0
    [PHP_SELF] => /index.php
    [REQUEST_SCHEME] => https
    [HTTP_HOST] => {domain}
    [HTTP_REFERER] => https://{domain}/
    [HTTP_ACCEPT_LANGUAGE] => en
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, br
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
    [HTTPS] => on
    [SERVER_NAME] => {domain}
)

[11-Jun-2020 17:29:58 UTC] string: GET
[11-Jun-2020 17:29:59 UTC] Array
(
    [0] => Using Hm_PHP_Session with Hm_Auth_IMAP
    [1] => Using DB user configuration
    [2] => ELOG called in /path/to/lib/request.php at line 115
    [3] => Using sapi: cgi-fcgi
    [4] => Request type: HTTP
    [5] => Request path: /
    [6] => TLS request: 1
    [7] => Mobile request: 0
    [8] => Page ID: home
    [9] => CACHE backend using: noop
    [10] => LOGGED IN
    [11] => ELOG called in /path/to/lib/module.php at line 198
    [12] => CACHE: miss for "feed_read_uids" using noop
    [13] => CACHE: saving "nux_dev_news" using noop
    [14] => PHP version 7.2.31
    [15] => Zend version 3.2.0
    [16] => Peak Memory: 2048
    [17] => PID: 18614
    [18] => Included files: 75
)

[11-Jun-2020 17:29:59 UTC] Array
(
    [REQUEST_URI] => /
    [REQUEST_METHOD] => POST
    [SERVER_ADDR] => xxx.xxx.xxx.xxx
    [REMOTE_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_PORT] => 443
    [SERVER_PROTOCOL] => HTTP/2.0
    [PHP_SELF] => /index.php
    [REQUEST_SCHEME] => https
    [HTTP_HOST] => {domain}
    [HTTP_ORIGIN] => https://{domain}
    [HTTP_ACCEPT_LANGUAGE] => en
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, br
    [HTTP_ACCEPT] => */*
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
    [HTTPS] => on
    [SERVER_NAME] => {domain}
    [HTTP_X_REQUESTED_WITH] => xmlhttprequest
)

[11-Jun-2020 17:29:59 UTC] string: POST
[11-Jun-2020 17:29:59 UTC] Array
(
    [0] => Using Hm_PHP_Session with Hm_Auth_IMAP
    [1] => Using DB user configuration
    [2] => ELOG called in /path/to/lib/request.php at line 115
    [3] => Using sapi: cgi-fcgi
    [4] => Request type: AJAX
    [5] => Request path: /
    [6] => TLS request: 1
    [7] => Mobile request: 0
    [8] => Page ID: ajax_hm_folders
    [9] => CACHE backend using: noop
    [10] => LOGGED IN
    [11] => ELOG called in /path/to/lib/module.php at line 198
    [12] => CACHE: miss for "feed_read_uids" using noop
    [13] => TRANSLATION NOT FOUND :Hide folders:
    [14] => PHP version 7.2.31
    [15] => Zend version 3.2.0
    [16] => Peak Memory: 4096
    [17] => PID: 18614
    [18] => Included files: 83
)

[11-Jun-2020 17:29:59 UTC] Array
(
    [REQUEST_URI] => /
    [REQUEST_METHOD] => POST
    [SERVER_ADDR] => xxx.xxx.xxx.xxx
    [REMOTE_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_PORT] => 443
    [SERVER_PROTOCOL] => HTTP/2.0
    [PHP_SELF] => /index.php
    [REQUEST_SCHEME] => https
    [HTTP_HOST] => {domain}
    [HTTP_ORIGIN] => https://{domain}
    [HTTP_ACCEPT_LANGUAGE] => en
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, br
    [HTTP_ACCEPT] => */*
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
    [HTTPS] => on
    [SERVER_NAME] => {domain}
    [HTTP_X_REQUESTED_WITH] => xmlhttprequest
)

[11-Jun-2020 17:29:59 UTC] string: POST
[11-Jun-2020 17:29:59 UTC] Array
(
    [0] => Using Hm_PHP_Session with Hm_Auth_IMAP
    [1] => Using DB user configuration
    [2] => ELOG called in /path/to/lib/request.php at line 115
    [3] => Using sapi: cgi-fcgi
    [4] => Request type: AJAX
    [5] => Request path: /
    [6] => TLS request: 1
    [7] => Mobile request: 0
    [8] => Page ID: ajax_imap_folder_expand
    [9] => CACHE backend using: noop
    [10] => LOGGED IN
    [11] => ELOG called in /path/to/lib/module.php at line 198
    [12] => CACHE: saving "imap_folders_imap_1_" using noop
    [13] => CACHE: saving "imap1" using noop
    [14] => PHP version 7.2.31
    [15] => Zend version 3.2.0
    [16] => Peak Memory: 2048
    [17] => PID: 18614
    [18] => Included files: 65
)

P.S. Sensible information (IP addresses, {domain}, {MySQL host}, {database name} and /path/to) anonymized.

<!-- gh-comment-id:642862536 --> @Master0ne commented on GitHub (Jun 11, 2020): Output with [patch](https://gist.github.com/jasonmunro/bb58729e546ee9258865213450c37acc) applied: **With PHP 7.4.6** ```` [11-Jun-2020 17:31:41 UTC] Array ( [PHP_SELF] => /index.php ) [11-Jun-2020 17:31:41 UTC] boolean: [11-Jun-2020 17:31:41 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_IMAP [1] => Using DB user configuration [2] => ELOG called in /path/to/lib/request.php at line 115 [3] => Using sapi: cgi-fcgi [4] => Request type: HTTP [5] => Request path: [6] => TLS request: 0 [7] => Mobile request: 0 [8] => Page ID: home [9] => CACHE backend using: noop [10] => Setting cookie: name: hm_id, lifetime: 0, path: , domain: , secure: , html_only 1 [11] => LOGGED IN [12] => ELOG called in /path/to/lib/module.php at line 198 [13] => Deleting cookie: name: hm_session, lifetime: 1591893101, path: , domain: , secure: , html_only 1 [14] => Deleting cookie: name: hm_id, lifetime: 1591893101, path: , domain: , secure: , html_only 1 [15] => Deleting cookie: name: hm_reload_folders, lifetime: 1591893101, path: , domain: , secure: , html_only [16] => Deleting cookie: name: hm_msgs, lifetime: 1591893101, path: , domain: , secure: , html_only 1 [17] => LOGGED OUT: invalid method [18] => PHP version 7.4.6 [19] => Zend version 3.4.0 [20] => Peak Memory: 2048 [21] => PID: 19276 [22] => Included files: 75 ) ```` **With PHP 7.2.31** ```` [11-Jun-2020 17:29:57 UTC] Array ( [REQUEST_URI] => / [REQUEST_METHOD] => POST [SERVER_ADDR] => xxx.xxx.xxx.xxx [REMOTE_ADDR] => xxx.xxx.xxx.xxx [SERVER_PORT] => 443 [SERVER_PROTOCOL] => HTTP/2.0 [PHP_SELF] => /index.php [REQUEST_SCHEME] => https [HTTP_HOST] => {domain} [HTTP_ORIGIN] => https://{domain} [HTTP_REFERER] => https://{domain}/ [HTTP_ACCEPT_LANGUAGE] => en [HTTP_ACCEPT_ENCODING] => gzip, deflate, br [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0 [HTTPS] => on [SERVER_NAME] => {domain} ) [11-Jun-2020 17:29:57 UTC] string: POST [11-Jun-2020 17:29:58 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_IMAP [1] => Using DB user configuration [2] => ELOG called in /path/to/lib/request.php at line 115 [3] => Using sapi: cgi-fcgi [4] => Request type: HTTP [5] => Request path: / [6] => TLS request: 1 [7] => Mobile request: 0 [8] => Page ID: home [9] => CACHE backend using: noop [10] => Setting cookie: name: hm_id, lifetime: 0, path: /, domain: {domain}, secure: 1, html_only 1 [11] => LOGGED IN [12] => ELOG called in /path/to/lib/module.php at line 198 [13] => Connecting to dsn: mysql:{MySQL host};dbname={database name} [14] => Default SMTP server added [15] => CACHE: miss for "feed_read_uids" using noop [16] => CACHE: saving "nux_dev_news" using noop [17] => Redirecting to / [18] => PHP version 7.2.31 [19] => Zend version 3.2.0 [20] => Peak Memory: 2048 [21] => PID: 18614 [22] => Included files: 74 ) [11-Jun-2020 17:29:58 UTC] Array ( [REQUEST_URI] => / [REQUEST_METHOD] => GET [SERVER_ADDR] => xxx.xxx.xxx.xxx [REMOTE_ADDR] => xxx.xxx.xxx.xxx [SERVER_PORT] => 443 [SERVER_PROTOCOL] => HTTP/2.0 [PHP_SELF] => /index.php [REQUEST_SCHEME] => https [HTTP_HOST] => {domain} [HTTP_REFERER] => https://{domain}/ [HTTP_ACCEPT_LANGUAGE] => en [HTTP_ACCEPT_ENCODING] => gzip, deflate, br [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0 [HTTPS] => on [SERVER_NAME] => {domain} ) [11-Jun-2020 17:29:58 UTC] string: GET [11-Jun-2020 17:29:59 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_IMAP [1] => Using DB user configuration [2] => ELOG called in /path/to/lib/request.php at line 115 [3] => Using sapi: cgi-fcgi [4] => Request type: HTTP [5] => Request path: / [6] => TLS request: 1 [7] => Mobile request: 0 [8] => Page ID: home [9] => CACHE backend using: noop [10] => LOGGED IN [11] => ELOG called in /path/to/lib/module.php at line 198 [12] => CACHE: miss for "feed_read_uids" using noop [13] => CACHE: saving "nux_dev_news" using noop [14] => PHP version 7.2.31 [15] => Zend version 3.2.0 [16] => Peak Memory: 2048 [17] => PID: 18614 [18] => Included files: 75 ) [11-Jun-2020 17:29:59 UTC] Array ( [REQUEST_URI] => / [REQUEST_METHOD] => POST [SERVER_ADDR] => xxx.xxx.xxx.xxx [REMOTE_ADDR] => xxx.xxx.xxx.xxx [SERVER_PORT] => 443 [SERVER_PROTOCOL] => HTTP/2.0 [PHP_SELF] => /index.php [REQUEST_SCHEME] => https [HTTP_HOST] => {domain} [HTTP_ORIGIN] => https://{domain} [HTTP_ACCEPT_LANGUAGE] => en [HTTP_ACCEPT_ENCODING] => gzip, deflate, br [HTTP_ACCEPT] => */* [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0 [HTTPS] => on [SERVER_NAME] => {domain} [HTTP_X_REQUESTED_WITH] => xmlhttprequest ) [11-Jun-2020 17:29:59 UTC] string: POST [11-Jun-2020 17:29:59 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_IMAP [1] => Using DB user configuration [2] => ELOG called in /path/to/lib/request.php at line 115 [3] => Using sapi: cgi-fcgi [4] => Request type: AJAX [5] => Request path: / [6] => TLS request: 1 [7] => Mobile request: 0 [8] => Page ID: ajax_hm_folders [9] => CACHE backend using: noop [10] => LOGGED IN [11] => ELOG called in /path/to/lib/module.php at line 198 [12] => CACHE: miss for "feed_read_uids" using noop [13] => TRANSLATION NOT FOUND :Hide folders: [14] => PHP version 7.2.31 [15] => Zend version 3.2.0 [16] => Peak Memory: 4096 [17] => PID: 18614 [18] => Included files: 83 ) [11-Jun-2020 17:29:59 UTC] Array ( [REQUEST_URI] => / [REQUEST_METHOD] => POST [SERVER_ADDR] => xxx.xxx.xxx.xxx [REMOTE_ADDR] => xxx.xxx.xxx.xxx [SERVER_PORT] => 443 [SERVER_PROTOCOL] => HTTP/2.0 [PHP_SELF] => /index.php [REQUEST_SCHEME] => https [HTTP_HOST] => {domain} [HTTP_ORIGIN] => https://{domain} [HTTP_ACCEPT_LANGUAGE] => en [HTTP_ACCEPT_ENCODING] => gzip, deflate, br [HTTP_ACCEPT] => */* [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0 [HTTPS] => on [SERVER_NAME] => {domain} [HTTP_X_REQUESTED_WITH] => xmlhttprequest ) [11-Jun-2020 17:29:59 UTC] string: POST [11-Jun-2020 17:29:59 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_IMAP [1] => Using DB user configuration [2] => ELOG called in /path/to/lib/request.php at line 115 [3] => Using sapi: cgi-fcgi [4] => Request type: AJAX [5] => Request path: / [6] => TLS request: 1 [7] => Mobile request: 0 [8] => Page ID: ajax_imap_folder_expand [9] => CACHE backend using: noop [10] => LOGGED IN [11] => ELOG called in /path/to/lib/module.php at line 198 [12] => CACHE: saving "imap_folders_imap_1_" using noop [13] => CACHE: saving "imap1" using noop [14] => PHP version 7.2.31 [15] => Zend version 3.2.0 [16] => Peak Memory: 2048 [17] => PID: 18614 [18] => Included files: 65 ) ```` P.S. Sensible information (`IP addresses`, `{domain}`, `{MySQL host}`, `{database name}` and `/path/to`) anonymized.
Author
Owner

@jasonmunro commented on GitHub (Jun 11, 2020):

(
    [PHP_SELF] => /index.php
)

The above is the problem. Cypht uses a handful of values that are almost always present in $_SERVER and they are all missing from your setup for some reason. For comparison, here is the same output on my Debian PHP 7.4.5 setup:

(
    [REQUEST_URI] => /cypht/
    [REQUEST_METHOD] => GET
    [SERVER_ADDR] => ::1
    [REMOTE_ADDR] => ::1
    [SERVER_PORT] => 80
    [SERVER_PROTOCOL] => HTTP/1.1
    [PHP_SELF] => /cypht/index.php
    [REQUEST_SCHEME] => http
    [HTTP_HOST] => localhost
    [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.9
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, br
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36
    [SERVER_NAME] => _
)

This appears to be the same issue we ran into here: https://github.com/jasonmunro/cypht/issues/370 I'm not sure exactly how to resolve this as we need those values in a couple of key bits of code.

If you replace the debug in the patch that is currently:

elog($this->server);

with

elog($_ENV)

what does it produce in the log for PHP 7.4? Maybe we can fallback to using $_ENV if $_SERVER does not have what we need.

<!-- gh-comment-id:642873499 --> @jasonmunro commented on GitHub (Jun 11, 2020): ``` ( [PHP_SELF] => /index.php ) ``` The above is the problem. Cypht uses a handful of values that are almost always present in $_SERVER and they are all missing from your setup for some reason. For comparison, here is the same output on my Debian PHP 7.4.5 setup: ``` ( [REQUEST_URI] => /cypht/ [REQUEST_METHOD] => GET [SERVER_ADDR] => ::1 [REMOTE_ADDR] => ::1 [SERVER_PORT] => 80 [SERVER_PROTOCOL] => HTTP/1.1 [PHP_SELF] => /cypht/index.php [REQUEST_SCHEME] => http [HTTP_HOST] => localhost [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.9 [HTTP_ACCEPT_ENCODING] => gzip, deflate, br [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36 [SERVER_NAME] => _ ) ``` This appears to be the same issue we ran into here: https://github.com/jasonmunro/cypht/issues/370 I'm not sure exactly how to resolve this as we need those values in a couple of key bits of code. If you replace the debug in the patch that is currently: ```elog($this->server);``` with ```elog($_ENV)``` what does it produce in the log for PHP 7.4? Maybe we can fallback to using $_ENV if $_SERVER does not have what we need.
Author
Owner

@Master0ne commented on GitHub (Jun 12, 2020):

@jasonmunro I have sent you an email with the link to phpinfo() if that is of any help.

Output with elog($_ENV):

With PHP 7.4.6

[12-Jun-2020 02:49:46 UTC] Array
(
    [PHP_FCGI_MAX_REQUESTS] => 100000
    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    [PHPRC] => /home/httpd/php74-ini/{username}
    [PWD] => /home/httpd/cgi-bin
    [HTTP_CONNECTION] => close
    [SCRIPT_NAME] => /index.php
    [REQUEST_URI] => /
    [QUERY_STRING] => 
    [REQUEST_METHOD] => POST
    [SERVER_PROTOCOL] => HTTP/2.0
    [GATEWAY_INTERFACE] => CGI/1.1
    [REMOTE_PORT] => 15324
    [SCRIPT_FILENAME] => /path/to/index.php
    [SERVER_ADMIN] => webmaster@{domain}
    [CONTEXT_DOCUMENT_ROOT] => /path/to/{cypht}
    [CONTEXT_PREFIX] => 
    [REQUEST_SCHEME] => https
    [DOCUMENT_ROOT] => /path/to/{cypht}
    [REMOTE_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_PORT] => 443
    [SERVER_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_NAME] => {domain}
    [SERVER_SOFTWARE] => Apache
    [SERVER_SIGNATURE] => <address>Apache Server at {domain} Port 443</address>

    [HTTP_HOST] => {domain}
    [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
    [HTTP_COOKIE] => hm_id=f%2ByzMOBiuj6E%2BPsJQ%2Foc9pF3eZdWrBMWdBIpQItgGRtlsfU9j9iWLKJTYm6cparlUq7z7joyFX7L5NFcDZeRJiNm4hYphmYtxxXrpgs3eyhj9uS5KQjLj7aLN9bGMF0OAW%2FpLE4GDjMLj6vITsiVp9Crb1vjcZHDhqKhRD8UNQs%3D; hm_session=4c5323dac76a7485ddd597bff26eb1c5
    [HTTP_ORIGIN] => https://{domain}
    [CONTENT_LENGTH] => 134
    [CONTENT_TYPE] => application/x-www-form-urlencoded
    [HTTP_REFERER] => https://{domain}/
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, br
    [HTTP_ACCEPT_LANGUAGE] => en
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
    [SSL_TLS_SNI] => {domain}
    [HTTPS] => on
    [H2_STREAM_TAG] => 272-55
    [H2_STREAM_ID] => 55
    [H2_PUSHED_ON] => 
    [H2_PUSHED] => 
    [H2_PUSH] => on
    [H2PUSH] => on
    [HTTP2] => on
    [FCGI_ROLE] => RESPONDER
)

[12-Jun-2020 02:49:46 UTC] boolean: 
[12-Jun-2020 02:49:46 UTC] Array
(
    [0] => Using Hm_PHP_Session with Hm_Auth_IMAP
    [1] => Using DB user configuration
    [2] => ELOG called in /path/to/lib/request.php at line 115
    [3] => Using sapi: cgi-fcgi
    [4] => Request type: HTTP
    [5] => Request path: 
    [6] => TLS request: 0
    [7] => Mobile request: 0
    [8] => Page ID: home
    [9] => CACHE backend using: noop
    [10] => Setting cookie: name: hm_id, lifetime: 0, path: , domain: , secure: , html_only 1
    [11] => LOGGED IN
    [12] => ELOG called in /path/to/lib/module.php at line 198
    [13] => Deleting cookie: name: hm_session, lifetime: 1591926586, path: , domain: , secure: , html_only 1
    [14] => Deleting cookie: name: hm_id, lifetime: 1591926586, path: , domain: , secure: , html_only 1
    [15] => Deleting cookie: name: hm_reload_folders, lifetime: 1591926586, path: , domain: , secure: , html_only 
    [16] => Deleting cookie: name: hm_msgs, lifetime: 1591926586, path: , domain: , secure: , html_only 1
    [17] => LOGGED OUT: invalid method 
    [18] => PHP version 7.4.6
    [19] => Zend version 3.4.0
    [20] => Peak Memory: 2048
    [21] => PID: 29502
    [22] => Included files: 75
)

With PHP 7.2.31

[12-Jun-2020 03:00:07 UTC] Array
(
    [PHP_FCGI_MAX_REQUESTS] => 100000
    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    [PHPRC] => /home/httpd/php72-ini/{username}
    [PWD] => /home/httpd/cgi-bin
    [HTTP_CONNECTION] => close
    [SCRIPT_NAME] => /index.php
    [REQUEST_URI] => /
    [QUERY_STRING] => 
    [REQUEST_METHOD] => POST
    [SERVER_PROTOCOL] => HTTP/2.0
    [GATEWAY_INTERFACE] => CGI/1.1
    [REMOTE_PORT] => 57822
    [SCRIPT_FILENAME] => /path/to/index.php
    [SERVER_ADMIN] => webmaster@{domain}
    [CONTEXT_DOCUMENT_ROOT] => /path/to/{cypht}
    [CONTEXT_PREFIX] => 
    [REQUEST_SCHEME] => https
    [DOCUMENT_ROOT] => /path/to/{cypht}
    [REMOTE_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_PORT] => 443
    [SERVER_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_NAME] => {domain}
    [SERVER_SOFTWARE] => Apache
    [SERVER_SIGNATURE] => <address>Apache Server at {domain} Port 443</address>

    [HTTP_HOST] => {domain}
    [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
    [HTTP_ORIGIN] => https://{domain}
    [CONTENT_LENGTH] => 134
    [CONTENT_TYPE] => application/x-www-form-urlencoded
    [HTTP_REFERER] => https://{domain}/
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, br
    [HTTP_ACCEPT_LANGUAGE] => en
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
    [SSL_TLS_SNI] => {domain}
    [HTTPS] => on
    [H2_STREAM_TAG] => 67-109
    [H2_STREAM_ID] => 109
    [H2_PUSHED_ON] => 
    [H2_PUSHED] => 
    [H2_PUSH] => on
    [H2PUSH] => on
    [HTTP2] => on
    [FCGI_ROLE] => RESPONDER
    [PHP_SELF] => /index.php
    [REQUEST_TIME_FLOAT] => 1591930807.249
    [REQUEST_TIME] => 1591930807
    [argv] => Array
        (
        )

    [argc] => 0
)

[12-Jun-2020 03:00:07 UTC] string: POST
[12-Jun-2020 03:00:07 UTC] Array
(
    [0] => Using Hm_PHP_Session with Hm_Auth_IMAP
    [1] => Using DB user configuration
    [2] => ELOG called in /path/to/lib/request.php at line 115
    [3] => Using sapi: cgi-fcgi
    [4] => Request type: HTTP
    [5] => Request path: /
    [6] => TLS request: 1
    [7] => Mobile request: 0
    [8] => Page ID: home
    [9] => CACHE backend using: noop
    [10] => Setting cookie: name: hm_id, lifetime: 0, path: /, domain: {domain}, secure: 1, html_only 1
    [11] => LOGGED IN
    [12] => ELOG called in /path/to/lib/module.php at line 198
    [13] => Connecting to dsn: mysql:host={MySQL host};dbname={database name}
    [14] => Default SMTP server added
    [15] => CACHE: miss for "feed_read_uids" using noop
    [16] => CACHE: saving "nux_dev_news" using noop
    [17] => Redirecting to /
    [18] => PHP version 7.2.31
    [19] => Zend version 3.2.0
    [20] => Peak Memory: 2048
    [21] => PID: 862
    [22] => Included files: 74
)

[12-Jun-2020 03:00:07 UTC] Array
(
    [PHP_FCGI_MAX_REQUESTS] => 100000
    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    [PHPRC] => /home/httpd/php72-ini/{username}
    [PWD] => /home/httpd/cgi-bin
    [CONTENT_LENGTH] => 0
    [HTTP_CONNECTION] => close
    [SCRIPT_NAME] => /index.php
    [REQUEST_URI] => /
    [QUERY_STRING] => 
    [REQUEST_METHOD] => GET
    [SERVER_PROTOCOL] => HTTP/2.0
    [GATEWAY_INTERFACE] => CGI/1.1
    [REMOTE_PORT] => 57822
    [SCRIPT_FILENAME] => /path/to/index.php
    [SERVER_ADMIN] => webmaster@{domain}
    [CONTEXT_DOCUMENT_ROOT] => /path/to/{cypht}
    [CONTEXT_PREFIX] => 
    [REQUEST_SCHEME] => https
    [DOCUMENT_ROOT] => /path/to/{cypht}
    [REMOTE_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_PORT] => 443
    [SERVER_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_NAME] => {domain}
    [SERVER_SOFTWARE] => Apache
    [SERVER_SIGNATURE] => <address>Apache Server at {domain} Port 443</address>

    [HTTP_HOST] => {domain}
    [HTTP_UPGRADE_INSECURE_REQUESTS] => 1
    [HTTP_COOKIE] => hm_id=wf2maVr9mjRuiFmiHMvBqZv8A8PLnjfh11TWxf5dcCZZ5%2BiFFSRRiznWK8pUj0yy7TxrHB6ceL2ye4QmxMlMIUUogmlVq1%2BrcgQ1LaGMJaOEZCcm%2BOksB6WwtVDJdluCG00gijzitAChxe8oH2RYup70Cfiiti%2BTaBNC6onbEMQ%3D; hm_session=5b3e17f762a550e989fe7464a2e22343
    [HTTP_REFERER] => https://{domain}/
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, br
    [HTTP_ACCEPT_LANGUAGE] => en
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
    [SSL_TLS_SNI] => {domain}
    [HTTPS] => on
    [H2_STREAM_TAG] => 67-111
    [H2_STREAM_ID] => 111
    [H2_PUSHED_ON] => 
    [H2_PUSHED] => 
    [H2_PUSH] => on
    [H2PUSH] => on
    [HTTP2] => on
    [FCGI_ROLE] => RESPONDER
    [PHP_SELF] => /index.php
    [REQUEST_TIME_FLOAT] => 1591930807.9303
    [REQUEST_TIME] => 1591930807
    [argv] => Array
        (
        )

    [argc] => 0
)

[12-Jun-2020 03:00:07 UTC] string: GET
[12-Jun-2020 03:00:08 UTC] Array
(
    [0] => Using Hm_PHP_Session with Hm_Auth_IMAP
    [1] => Using DB user configuration
    [2] => ELOG called in /path/to/lib/request.php at line 115
    [3] => Using sapi: cgi-fcgi
    [4] => Request type: HTTP
    [5] => Request path: /
    [6] => TLS request: 1
    [7] => Mobile request: 0
    [8] => Page ID: home
    [9] => CACHE backend using: noop
    [10] => LOGGED IN
    [11] => ELOG called in /path/to/lib/module.php at line 198
    [12] => CACHE: miss for "feed_read_uids" using noop
    [13] => CACHE: saving "nux_dev_news" using noop
    [14] => PHP version 7.2.31
    [15] => Zend version 3.2.0
    [16] => Peak Memory: 2048
    [17] => PID: 862
    [18] => Included files: 75
)

[12-Jun-2020 03:00:08 UTC] Array
(
    [PHP_FCGI_MAX_REQUESTS] => 100000
    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    [PHPRC] => /home/httpd/php72-ini/{username}
    [PWD] => /home/httpd/cgi-bin
    [HTTP_CONNECTION] => close
    [SCRIPT_NAME] => /index.php
    [REQUEST_URI] => /
    [QUERY_STRING] => 
    [REQUEST_METHOD] => POST
    [SERVER_PROTOCOL] => HTTP/2.0
    [GATEWAY_INTERFACE] => CGI/1.1
    [REMOTE_PORT] => 57822
    [SCRIPT_FILENAME] => /path/to/index.php
    [SERVER_ADMIN] => webmaster@{domain}
    [CONTEXT_DOCUMENT_ROOT] => /path/to/{cypht}
    [CONTEXT_PREFIX] => 
    [REQUEST_SCHEME] => https
    [DOCUMENT_ROOT] => /path/to/{cypht}
    [REMOTE_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_PORT] => 443
    [SERVER_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_NAME] => {domain}
    [SERVER_SOFTWARE] => Apache
    [SERVER_SIGNATURE] => <address>Apache Server at {domain} Port 443</address>

    [HTTP_HOST] => {domain}
    [HTTP_COOKIE] => hm_id=wf2maVr9mjRuiFmiHMvBqZv8A8PLnjfh11TWxf5dcCZZ5%2BiFFSRRiznWK8pUj0yy7TxrHB6ceL2ye4QmxMlMIUUogmlVq1%2BrcgQ1LaGMJaOEZCcm%2BOksB6WwtVDJdluCG00gijzitAChxe8oH2RYup70Cfiiti%2BTaBNC6onbEMQ%3D; hm_session=5b3e17f762a550e989fe7464a2e22343
    [HTTP_ORIGIN] => https://{domain}
    [CONTENT_LENGTH] => 105
    [HTTP_X_REQUESTED_WITH] => xmlhttprequest
    [CONTENT_TYPE] => application/x-www-form-urlencoded
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, br
    [HTTP_ACCEPT_LANGUAGE] => en
    [HTTP_ACCEPT] => */*
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
    [SSL_TLS_SNI] => {domain}
    [HTTPS] => on
    [H2_STREAM_TAG] => 67-149
    [H2_STREAM_ID] => 149
    [H2_PUSHED_ON] => 
    [H2_PUSHED] => 
    [H2_PUSH] => on
    [H2PUSH] => on
    [HTTP2] => on
    [FCGI_ROLE] => RESPONDER
    [PHP_SELF] => /index.php
    [REQUEST_TIME_FLOAT] => 1591930808.7965
    [REQUEST_TIME] => 1591930808
    [argv] => Array
        (
        )

    [argc] => 0
)

[12-Jun-2020 03:00:08 UTC] string: POST
[12-Jun-2020 03:00:08 UTC] Array
(
    [0] => Using Hm_PHP_Session with Hm_Auth_IMAP
    [1] => Using DB user configuration
    [2] => ELOG called in /path/to/lib/request.php at line 115
    [3] => Using sapi: cgi-fcgi
    [4] => Request type: AJAX
    [5] => Request path: /
    [6] => TLS request: 1
    [7] => Mobile request: 0
    [8] => Page ID: ajax_hm_folders
    [9] => CACHE backend using: noop
    [10] => LOGGED IN
    [11] => ELOG called in /path/to/lib/module.php at line 198
    [12] => CACHE: miss for "feed_read_uids" using noop
    [13] => TRANSLATION NOT FOUND :Hide folders:
    [14] => PHP version 7.2.31
    [15] => Zend version 3.2.0
    [16] => Peak Memory: 4096
    [17] => PID: 862
    [18] => Included files: 83
)

[12-Jun-2020 03:00:08 UTC] Array
(
    [PHP_FCGI_MAX_REQUESTS] => 100000
    [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    [PHPRC] => /home/httpd/php72-ini/{username}
    [PWD] => /home/httpd/cgi-bin
    [HTTP_CONNECTION] => close
    [SCRIPT_NAME] => /index.php
    [REQUEST_URI] => /
    [QUERY_STRING] => 
    [REQUEST_METHOD] => POST
    [SERVER_PROTOCOL] => HTTP/2.0
    [GATEWAY_INTERFACE] => CGI/1.1
    [REMOTE_PORT] => 57822
    [SCRIPT_FILENAME] => /path/to/index.php
    [SERVER_ADMIN] => webmaster@{domain}
    [CONTEXT_DOCUMENT_ROOT] => /path/to/{cypht}
    [CONTEXT_PREFIX] => 
    [REQUEST_SCHEME] => https
    [DOCUMENT_ROOT] => /path/to/{cypht}
    [REMOTE_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_PORT] => 443
    [SERVER_ADDR] => xxx.xxx.xxx.xxx
    [SERVER_NAME] => {domain}
    [SERVER_SOFTWARE] => Apache
    [SERVER_SIGNATURE] => <address>Apache Server at {domain} Port 443</address>

    [HTTP_HOST] => {domain}
    [HTTP_COOKIE] => hm_id=wf2maVr9mjRuiFmiHMvBqZv8A8PLnjfh11TWxf5dcCZZ5%2BiFFSRRiznWK8pUj0yy7TxrHB6ceL2ye4QmxMlMIUUogmlVq1%2BrcgQ1LaGMJaOEZCcm%2BOksB6WwtVDJdluCG00gijzitAChxe8oH2RYup70Cfiiti%2BTaBNC6onbEMQ%3D; hm_session=5b3e17f762a550e989fe7464a2e22343
    [HTTP_ORIGIN] => https://{domain}
    [CONTENT_LENGTH] => 157
    [HTTP_X_REQUESTED_WITH] => xmlhttprequest
    [CONTENT_TYPE] => application/x-www-form-urlencoded
    [HTTP_ACCEPT_ENCODING] => gzip, deflate, br
    [HTTP_ACCEPT_LANGUAGE] => en
    [HTTP_ACCEPT] => */*
    [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0
    [SSL_TLS_SNI] => {domain}
    [HTTPS] => on
    [H2_STREAM_TAG] => 67-151
    [H2_STREAM_ID] => 151
    [H2_PUSHED_ON] => 
    [H2_PUSHED] => 
    [H2_PUSH] => on
    [H2PUSH] => on
    [HTTP2] => on
    [FCGI_ROLE] => RESPONDER
    [PHP_SELF] => /index.php
    [REQUEST_TIME_FLOAT] => 1591930808.8278
    [REQUEST_TIME] => 1591930808
    [argv] => Array
        (
        )

    [argc] => 0
)

[12-Jun-2020 03:00:08 UTC] string: POST
[12-Jun-2020 03:00:08 UTC] Array
(
    [0] => Using Hm_PHP_Session with Hm_Auth_IMAP
    [1] => Using DB user configuration
    [2] => ELOG called in /path/to/lib/request.php at line 115
    [3] => Using sapi: cgi-fcgi
    [4] => Request type: AJAX
    [5] => Request path: /
    [6] => TLS request: 1
    [7] => Mobile request: 0
    [8] => Page ID: ajax_imap_folder_expand
    [9] => CACHE backend using: noop
    [10] => LOGGED IN
    [11] => ELOG called in /path/to/lib/module.php at line 198
    [12] => CACHE: saving "imap_folders_imap_1_" using noop
    [13] => CACHE: saving "imap1" using noop
    [14] => PHP version 7.2.31
    [15] => Zend version 3.2.0
    [16] => Peak Memory: 2048
    [17] => PID: 862
    [18] => Included files: 65
)
<!-- gh-comment-id:643041601 --> @Master0ne commented on GitHub (Jun 12, 2020): @jasonmunro I have sent you an email with the link to `phpinfo()` if that is of any help. Output with `elog($_ENV)`: **With PHP 7.4.6** ```` [12-Jun-2020 02:49:46 UTC] Array ( [PHP_FCGI_MAX_REQUESTS] => 100000 [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin [PHPRC] => /home/httpd/php74-ini/{username} [PWD] => /home/httpd/cgi-bin [HTTP_CONNECTION] => close [SCRIPT_NAME] => /index.php [REQUEST_URI] => / [QUERY_STRING] => [REQUEST_METHOD] => POST [SERVER_PROTOCOL] => HTTP/2.0 [GATEWAY_INTERFACE] => CGI/1.1 [REMOTE_PORT] => 15324 [SCRIPT_FILENAME] => /path/to/index.php [SERVER_ADMIN] => webmaster@{domain} [CONTEXT_DOCUMENT_ROOT] => /path/to/{cypht} [CONTEXT_PREFIX] => [REQUEST_SCHEME] => https [DOCUMENT_ROOT] => /path/to/{cypht} [REMOTE_ADDR] => xxx.xxx.xxx.xxx [SERVER_PORT] => 443 [SERVER_ADDR] => xxx.xxx.xxx.xxx [SERVER_NAME] => {domain} [SERVER_SOFTWARE] => Apache [SERVER_SIGNATURE] => <address>Apache Server at {domain} Port 443</address> [HTTP_HOST] => {domain} [HTTP_UPGRADE_INSECURE_REQUESTS] => 1 [HTTP_COOKIE] => hm_id=f%2ByzMOBiuj6E%2BPsJQ%2Foc9pF3eZdWrBMWdBIpQItgGRtlsfU9j9iWLKJTYm6cparlUq7z7joyFX7L5NFcDZeRJiNm4hYphmYtxxXrpgs3eyhj9uS5KQjLj7aLN9bGMF0OAW%2FpLE4GDjMLj6vITsiVp9Crb1vjcZHDhqKhRD8UNQs%3D; hm_session=4c5323dac76a7485ddd597bff26eb1c5 [HTTP_ORIGIN] => https://{domain} [CONTENT_LENGTH] => 134 [CONTENT_TYPE] => application/x-www-form-urlencoded [HTTP_REFERER] => https://{domain}/ [HTTP_ACCEPT_ENCODING] => gzip, deflate, br [HTTP_ACCEPT_LANGUAGE] => en [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0 [SSL_TLS_SNI] => {domain} [HTTPS] => on [H2_STREAM_TAG] => 272-55 [H2_STREAM_ID] => 55 [H2_PUSHED_ON] => [H2_PUSHED] => [H2_PUSH] => on [H2PUSH] => on [HTTP2] => on [FCGI_ROLE] => RESPONDER ) [12-Jun-2020 02:49:46 UTC] boolean: [12-Jun-2020 02:49:46 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_IMAP [1] => Using DB user configuration [2] => ELOG called in /path/to/lib/request.php at line 115 [3] => Using sapi: cgi-fcgi [4] => Request type: HTTP [5] => Request path: [6] => TLS request: 0 [7] => Mobile request: 0 [8] => Page ID: home [9] => CACHE backend using: noop [10] => Setting cookie: name: hm_id, lifetime: 0, path: , domain: , secure: , html_only 1 [11] => LOGGED IN [12] => ELOG called in /path/to/lib/module.php at line 198 [13] => Deleting cookie: name: hm_session, lifetime: 1591926586, path: , domain: , secure: , html_only 1 [14] => Deleting cookie: name: hm_id, lifetime: 1591926586, path: , domain: , secure: , html_only 1 [15] => Deleting cookie: name: hm_reload_folders, lifetime: 1591926586, path: , domain: , secure: , html_only [16] => Deleting cookie: name: hm_msgs, lifetime: 1591926586, path: , domain: , secure: , html_only 1 [17] => LOGGED OUT: invalid method [18] => PHP version 7.4.6 [19] => Zend version 3.4.0 [20] => Peak Memory: 2048 [21] => PID: 29502 [22] => Included files: 75 ) ```` **With PHP 7.2.31** ```` [12-Jun-2020 03:00:07 UTC] Array ( [PHP_FCGI_MAX_REQUESTS] => 100000 [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin [PHPRC] => /home/httpd/php72-ini/{username} [PWD] => /home/httpd/cgi-bin [HTTP_CONNECTION] => close [SCRIPT_NAME] => /index.php [REQUEST_URI] => / [QUERY_STRING] => [REQUEST_METHOD] => POST [SERVER_PROTOCOL] => HTTP/2.0 [GATEWAY_INTERFACE] => CGI/1.1 [REMOTE_PORT] => 57822 [SCRIPT_FILENAME] => /path/to/index.php [SERVER_ADMIN] => webmaster@{domain} [CONTEXT_DOCUMENT_ROOT] => /path/to/{cypht} [CONTEXT_PREFIX] => [REQUEST_SCHEME] => https [DOCUMENT_ROOT] => /path/to/{cypht} [REMOTE_ADDR] => xxx.xxx.xxx.xxx [SERVER_PORT] => 443 [SERVER_ADDR] => xxx.xxx.xxx.xxx [SERVER_NAME] => {domain} [SERVER_SOFTWARE] => Apache [SERVER_SIGNATURE] => <address>Apache Server at {domain} Port 443</address> [HTTP_HOST] => {domain} [HTTP_UPGRADE_INSECURE_REQUESTS] => 1 [HTTP_ORIGIN] => https://{domain} [CONTENT_LENGTH] => 134 [CONTENT_TYPE] => application/x-www-form-urlencoded [HTTP_REFERER] => https://{domain}/ [HTTP_ACCEPT_ENCODING] => gzip, deflate, br [HTTP_ACCEPT_LANGUAGE] => en [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0 [SSL_TLS_SNI] => {domain} [HTTPS] => on [H2_STREAM_TAG] => 67-109 [H2_STREAM_ID] => 109 [H2_PUSHED_ON] => [H2_PUSHED] => [H2_PUSH] => on [H2PUSH] => on [HTTP2] => on [FCGI_ROLE] => RESPONDER [PHP_SELF] => /index.php [REQUEST_TIME_FLOAT] => 1591930807.249 [REQUEST_TIME] => 1591930807 [argv] => Array ( ) [argc] => 0 ) [12-Jun-2020 03:00:07 UTC] string: POST [12-Jun-2020 03:00:07 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_IMAP [1] => Using DB user configuration [2] => ELOG called in /path/to/lib/request.php at line 115 [3] => Using sapi: cgi-fcgi [4] => Request type: HTTP [5] => Request path: / [6] => TLS request: 1 [7] => Mobile request: 0 [8] => Page ID: home [9] => CACHE backend using: noop [10] => Setting cookie: name: hm_id, lifetime: 0, path: /, domain: {domain}, secure: 1, html_only 1 [11] => LOGGED IN [12] => ELOG called in /path/to/lib/module.php at line 198 [13] => Connecting to dsn: mysql:host={MySQL host};dbname={database name} [14] => Default SMTP server added [15] => CACHE: miss for "feed_read_uids" using noop [16] => CACHE: saving "nux_dev_news" using noop [17] => Redirecting to / [18] => PHP version 7.2.31 [19] => Zend version 3.2.0 [20] => Peak Memory: 2048 [21] => PID: 862 [22] => Included files: 74 ) [12-Jun-2020 03:00:07 UTC] Array ( [PHP_FCGI_MAX_REQUESTS] => 100000 [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin [PHPRC] => /home/httpd/php72-ini/{username} [PWD] => /home/httpd/cgi-bin [CONTENT_LENGTH] => 0 [HTTP_CONNECTION] => close [SCRIPT_NAME] => /index.php [REQUEST_URI] => / [QUERY_STRING] => [REQUEST_METHOD] => GET [SERVER_PROTOCOL] => HTTP/2.0 [GATEWAY_INTERFACE] => CGI/1.1 [REMOTE_PORT] => 57822 [SCRIPT_FILENAME] => /path/to/index.php [SERVER_ADMIN] => webmaster@{domain} [CONTEXT_DOCUMENT_ROOT] => /path/to/{cypht} [CONTEXT_PREFIX] => [REQUEST_SCHEME] => https [DOCUMENT_ROOT] => /path/to/{cypht} [REMOTE_ADDR] => xxx.xxx.xxx.xxx [SERVER_PORT] => 443 [SERVER_ADDR] => xxx.xxx.xxx.xxx [SERVER_NAME] => {domain} [SERVER_SOFTWARE] => Apache [SERVER_SIGNATURE] => <address>Apache Server at {domain} Port 443</address> [HTTP_HOST] => {domain} [HTTP_UPGRADE_INSECURE_REQUESTS] => 1 [HTTP_COOKIE] => hm_id=wf2maVr9mjRuiFmiHMvBqZv8A8PLnjfh11TWxf5dcCZZ5%2BiFFSRRiznWK8pUj0yy7TxrHB6ceL2ye4QmxMlMIUUogmlVq1%2BrcgQ1LaGMJaOEZCcm%2BOksB6WwtVDJdluCG00gijzitAChxe8oH2RYup70Cfiiti%2BTaBNC6onbEMQ%3D; hm_session=5b3e17f762a550e989fe7464a2e22343 [HTTP_REFERER] => https://{domain}/ [HTTP_ACCEPT_ENCODING] => gzip, deflate, br [HTTP_ACCEPT_LANGUAGE] => en [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0 [SSL_TLS_SNI] => {domain} [HTTPS] => on [H2_STREAM_TAG] => 67-111 [H2_STREAM_ID] => 111 [H2_PUSHED_ON] => [H2_PUSHED] => [H2_PUSH] => on [H2PUSH] => on [HTTP2] => on [FCGI_ROLE] => RESPONDER [PHP_SELF] => /index.php [REQUEST_TIME_FLOAT] => 1591930807.9303 [REQUEST_TIME] => 1591930807 [argv] => Array ( ) [argc] => 0 ) [12-Jun-2020 03:00:07 UTC] string: GET [12-Jun-2020 03:00:08 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_IMAP [1] => Using DB user configuration [2] => ELOG called in /path/to/lib/request.php at line 115 [3] => Using sapi: cgi-fcgi [4] => Request type: HTTP [5] => Request path: / [6] => TLS request: 1 [7] => Mobile request: 0 [8] => Page ID: home [9] => CACHE backend using: noop [10] => LOGGED IN [11] => ELOG called in /path/to/lib/module.php at line 198 [12] => CACHE: miss for "feed_read_uids" using noop [13] => CACHE: saving "nux_dev_news" using noop [14] => PHP version 7.2.31 [15] => Zend version 3.2.0 [16] => Peak Memory: 2048 [17] => PID: 862 [18] => Included files: 75 ) [12-Jun-2020 03:00:08 UTC] Array ( [PHP_FCGI_MAX_REQUESTS] => 100000 [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin [PHPRC] => /home/httpd/php72-ini/{username} [PWD] => /home/httpd/cgi-bin [HTTP_CONNECTION] => close [SCRIPT_NAME] => /index.php [REQUEST_URI] => / [QUERY_STRING] => [REQUEST_METHOD] => POST [SERVER_PROTOCOL] => HTTP/2.0 [GATEWAY_INTERFACE] => CGI/1.1 [REMOTE_PORT] => 57822 [SCRIPT_FILENAME] => /path/to/index.php [SERVER_ADMIN] => webmaster@{domain} [CONTEXT_DOCUMENT_ROOT] => /path/to/{cypht} [CONTEXT_PREFIX] => [REQUEST_SCHEME] => https [DOCUMENT_ROOT] => /path/to/{cypht} [REMOTE_ADDR] => xxx.xxx.xxx.xxx [SERVER_PORT] => 443 [SERVER_ADDR] => xxx.xxx.xxx.xxx [SERVER_NAME] => {domain} [SERVER_SOFTWARE] => Apache [SERVER_SIGNATURE] => <address>Apache Server at {domain} Port 443</address> [HTTP_HOST] => {domain} [HTTP_COOKIE] => hm_id=wf2maVr9mjRuiFmiHMvBqZv8A8PLnjfh11TWxf5dcCZZ5%2BiFFSRRiznWK8pUj0yy7TxrHB6ceL2ye4QmxMlMIUUogmlVq1%2BrcgQ1LaGMJaOEZCcm%2BOksB6WwtVDJdluCG00gijzitAChxe8oH2RYup70Cfiiti%2BTaBNC6onbEMQ%3D; hm_session=5b3e17f762a550e989fe7464a2e22343 [HTTP_ORIGIN] => https://{domain} [CONTENT_LENGTH] => 105 [HTTP_X_REQUESTED_WITH] => xmlhttprequest [CONTENT_TYPE] => application/x-www-form-urlencoded [HTTP_ACCEPT_ENCODING] => gzip, deflate, br [HTTP_ACCEPT_LANGUAGE] => en [HTTP_ACCEPT] => */* [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0 [SSL_TLS_SNI] => {domain} [HTTPS] => on [H2_STREAM_TAG] => 67-149 [H2_STREAM_ID] => 149 [H2_PUSHED_ON] => [H2_PUSHED] => [H2_PUSH] => on [H2PUSH] => on [HTTP2] => on [FCGI_ROLE] => RESPONDER [PHP_SELF] => /index.php [REQUEST_TIME_FLOAT] => 1591930808.7965 [REQUEST_TIME] => 1591930808 [argv] => Array ( ) [argc] => 0 ) [12-Jun-2020 03:00:08 UTC] string: POST [12-Jun-2020 03:00:08 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_IMAP [1] => Using DB user configuration [2] => ELOG called in /path/to/lib/request.php at line 115 [3] => Using sapi: cgi-fcgi [4] => Request type: AJAX [5] => Request path: / [6] => TLS request: 1 [7] => Mobile request: 0 [8] => Page ID: ajax_hm_folders [9] => CACHE backend using: noop [10] => LOGGED IN [11] => ELOG called in /path/to/lib/module.php at line 198 [12] => CACHE: miss for "feed_read_uids" using noop [13] => TRANSLATION NOT FOUND :Hide folders: [14] => PHP version 7.2.31 [15] => Zend version 3.2.0 [16] => Peak Memory: 4096 [17] => PID: 862 [18] => Included files: 83 ) [12-Jun-2020 03:00:08 UTC] Array ( [PHP_FCGI_MAX_REQUESTS] => 100000 [PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin [PHPRC] => /home/httpd/php72-ini/{username} [PWD] => /home/httpd/cgi-bin [HTTP_CONNECTION] => close [SCRIPT_NAME] => /index.php [REQUEST_URI] => / [QUERY_STRING] => [REQUEST_METHOD] => POST [SERVER_PROTOCOL] => HTTP/2.0 [GATEWAY_INTERFACE] => CGI/1.1 [REMOTE_PORT] => 57822 [SCRIPT_FILENAME] => /path/to/index.php [SERVER_ADMIN] => webmaster@{domain} [CONTEXT_DOCUMENT_ROOT] => /path/to/{cypht} [CONTEXT_PREFIX] => [REQUEST_SCHEME] => https [DOCUMENT_ROOT] => /path/to/{cypht} [REMOTE_ADDR] => xxx.xxx.xxx.xxx [SERVER_PORT] => 443 [SERVER_ADDR] => xxx.xxx.xxx.xxx [SERVER_NAME] => {domain} [SERVER_SOFTWARE] => Apache [SERVER_SIGNATURE] => <address>Apache Server at {domain} Port 443</address> [HTTP_HOST] => {domain} [HTTP_COOKIE] => hm_id=wf2maVr9mjRuiFmiHMvBqZv8A8PLnjfh11TWxf5dcCZZ5%2BiFFSRRiznWK8pUj0yy7TxrHB6ceL2ye4QmxMlMIUUogmlVq1%2BrcgQ1LaGMJaOEZCcm%2BOksB6WwtVDJdluCG00gijzitAChxe8oH2RYup70Cfiiti%2BTaBNC6onbEMQ%3D; hm_session=5b3e17f762a550e989fe7464a2e22343 [HTTP_ORIGIN] => https://{domain} [CONTENT_LENGTH] => 157 [HTTP_X_REQUESTED_WITH] => xmlhttprequest [CONTENT_TYPE] => application/x-www-form-urlencoded [HTTP_ACCEPT_ENCODING] => gzip, deflate, br [HTTP_ACCEPT_LANGUAGE] => en [HTTP_ACCEPT] => */* [HTTP_USER_AGENT] => Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0 [SSL_TLS_SNI] => {domain} [HTTPS] => on [H2_STREAM_TAG] => 67-151 [H2_STREAM_ID] => 151 [H2_PUSHED_ON] => [H2_PUSHED] => [H2_PUSH] => on [H2PUSH] => on [HTTP2] => on [FCGI_ROLE] => RESPONDER [PHP_SELF] => /index.php [REQUEST_TIME_FLOAT] => 1591930808.8278 [REQUEST_TIME] => 1591930808 [argv] => Array ( ) [argc] => 0 ) [12-Jun-2020 03:00:08 UTC] string: POST [12-Jun-2020 03:00:08 UTC] Array ( [0] => Using Hm_PHP_Session with Hm_Auth_IMAP [1] => Using DB user configuration [2] => ELOG called in /path/to/lib/request.php at line 115 [3] => Using sapi: cgi-fcgi [4] => Request type: AJAX [5] => Request path: / [6] => TLS request: 1 [7] => Mobile request: 0 [8] => Page ID: ajax_imap_folder_expand [9] => CACHE backend using: noop [10] => LOGGED IN [11] => ELOG called in /path/to/lib/module.php at line 198 [12] => CACHE: saving "imap_folders_imap_1_" using noop [13] => CACHE: saving "imap1" using noop [14] => PHP version 7.2.31 [15] => Zend version 3.2.0 [16] => Peak Memory: 2048 [17] => PID: 862 [18] => Included files: 65 ) ````
Author
Owner

@Master0ne commented on GitHub (Jun 12, 2020):

I don't know the relevance, but I have just taken a look at PHP :: Bug #49184 | INPUT_SERVER returns NULL for set variables (CLI) and testing on CLI gives the following results, which are the same with all available PHP versions:

INPUT_SERVER

<?php

var_dump(
        filter_input(INPUT_SERVER,'ENV_NAME',FILTER_SANITIZE_STRING),
        $_SERVER['ENV_NAME'],
        $_ENV['ENV_NAME']
);

?>

$ ENV_NAME=SERVER_NAME php test.php 
NULL
string(11) "SERVER_NAME"
string(11) "SERVER_NAME"

INPUT_ENV

<?php

var_dump(
        filter_input(INPUT_ENV,'ENV_NAME',FILTER_SANITIZE_STRING),
        $_SERVER['ENV_NAME'],
        $_ENV['ENV_NAME']
);

?>

$ ENV_NAME=SERVER_NAME php test.php 
string(11) "SERVER_NAME"
string(11) "SERVER_NAME"
string(11) "SERVER_NAME"
<!-- gh-comment-id:643048862 --> @Master0ne commented on GitHub (Jun 12, 2020): I don't know the relevance, but I have just taken a look at [PHP :: Bug #49184 | INPUT_SERVER returns NULL for set variables (CLI)](https://bugs.php.net/bug.php?id=49184) and testing on CLI gives the following results, which are the same with all available PHP versions: **INPUT_SERVER** ```` <?php var_dump( filter_input(INPUT_SERVER,'ENV_NAME',FILTER_SANITIZE_STRING), $_SERVER['ENV_NAME'], $_ENV['ENV_NAME'] ); ?> $ ENV_NAME=SERVER_NAME php test.php NULL string(11) "SERVER_NAME" string(11) "SERVER_NAME" ```` **INPUT_ENV** ```` <?php var_dump( filter_input(INPUT_ENV,'ENV_NAME',FILTER_SANITIZE_STRING), $_SERVER['ENV_NAME'], $_ENV['ENV_NAME'] ); ?> $ ENV_NAME=SERVER_NAME php test.php string(11) "SERVER_NAME" string(11) "SERVER_NAME" string(11) "SERVER_NAME" ````
Author
Owner

@jasonmunro commented on GitHub (Jun 18, 2020):

@Master0ne sorry for the delay, working on a fix now that will try to use $_ENV if $_SERVER is missing the bits we need. Should resolve your issue. I will let you know when it's ready to test. Thanks for your patience!

<!-- gh-comment-id:646323398 --> @jasonmunro commented on GitHub (Jun 18, 2020): @Master0ne sorry for the delay, working on a fix now that will try to use $_ENV if $_SERVER is missing the bits we need. Should resolve your issue. I will let you know when it's ready to test. Thanks for your patience!
Author
Owner

@Master0ne commented on GitHub (Jun 19, 2020):

@jasonmunro super, thanks a lot for taking care of this.

<!-- gh-comment-id:646394848 --> @Master0ne commented on GitHub (Jun 19, 2020): @jasonmunro super, thanks a lot for taking care of this.
Author
Owner

@jasonmunro commented on GitHub (Jun 19, 2020):

@Master0ne thank you for working with me to get it resolved! Could you try the latest master branch? I pushed a change that enables a fallback that I hope will resolve this issue (github.com/jasonmunro/cypht@0ab3184560)

<!-- gh-comment-id:646487994 --> @jasonmunro commented on GitHub (Jun 19, 2020): @Master0ne thank you for working with me to get it resolved! Could you try the latest master branch? I pushed a change that enables a fallback that I hope will resolve this issue (https://github.com/jasonmunro/cypht/commit/0ab318456023c7ab8bfb809c0ad045a6f867c558)
Author
Owner

@Master0ne commented on GitHub (Jun 23, 2020):

@jasonmunro you did it, it's finally working!

<!-- gh-comment-id:647876039 --> @Master0ne commented on GitHub (Jun 23, 2020): @jasonmunro you did it, it's finally working!
Author
Owner

@jasonmunro commented on GitHub (Jun 25, 2020):

@Master0ne thanks for the confirmation. Closing this as it should be resolved. Please re-open or submit a new issue if you have further problems. Thanks again!

<!-- gh-comment-id:649764131 --> @jasonmunro commented on GitHub (Jun 25, 2020): @Master0ne thanks for the confirmation. Closing this as it should be resolved. Please re-open or submit a new issue if you have further problems. Thanks again!
Author
Owner

@marclaporte commented on GitHub (Sep 17, 2020):

@Master0ne please join us at https://gitter.im/cypht-org/community

<!-- gh-comment-id:694452653 --> @marclaporte commented on GitHub (Sep 17, 2020): @Master0ne please join us at https://gitter.im/cypht-org/community
Author
Owner

@mijofa commented on GitHub (Nov 20, 2023):

Sorry for some thread necromancy, but I'm running into what looks like this same issue with PHP 8.2.
Both $this->server and $this->env are coming up completely empty for me with v1.4.1 on PHP 8.2.

I'm working around this myself by setting $this->server = $_SERVER & $this->env = $_ENV filter_request_input, but I'm not sure if this is suitable long-term.
I'm not fluent with PHP, but I think this would likely have issues with type conversions, although I haven't run into any with initial testing.

<!-- gh-comment-id:1818119396 --> @mijofa commented on GitHub (Nov 20, 2023): Sorry for some thread necromancy, but I'm running into what looks like this same issue with PHP 8.2. Both `$this->server` and `$this->env` are coming up completely empty for me with v1.4.1 on PHP 8.2. I'm working around this myself by setting `$this->server = $_SERVER` & `$this->env = $_ENV` filter_request_input, but I'm not sure if this is suitable long-term. I'm not fluent with PHP, but I think this would likely have issues with type conversions, although I haven't run into any with initial testing.
Author
Owner

@marclaporte commented on GitHub (Nov 20, 2023):

"thread necromancy": I am quite OK with this as I think it's relevant info.

But the bigger topic deserves its own task:
https://github.com/cypht-org/cypht/issues/829

<!-- gh-comment-id:1818171138 --> @marclaporte commented on GitHub (Nov 20, 2023): "thread necromancy": I am quite OK with this as I think it's relevant info. But the bigger topic deserves its own task: https://github.com/cypht-org/cypht/issues/829
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#339
No description provided.