[PR #559] [MERGED] Fix bug in PHP 8.1 when require lib/request.php due to $GLOBALS modif… #891

Closed
opened 2026-02-25 21:36:33 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/cypht-org/cypht/pull/559
Author: @xorti
Created: 3/9/2022
Status: Merged
Merged: 3/9/2022
Merged by: @jasonmunro

Base: masterHead: fix-globals-php81


📝 Commits (1)

  • 3189f30 Fix bug in PHP 8.1 when require lib/request.php due to $GLOBALS modification changes

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 lib/request.php (+4 -1)

📄 Description

…ication changes

Pullrequest

This pull request fixes an issue in PHP 8.1 that was failing with Fatal Error when requiring the file lib/request.php due to $GLOBALS modification.

Fatal error: $GLOBALS can only be modified using the $GLOBALS[$name] = $value syntax in /var/www/html/vendor/jason-munro/cypht/lib/request.php on line 153

Issues

  • None

Checklist

  • None

How2Test

  • Run the following code with PHP8.1 to see the issue: php -r "require 'lib/request.php';"

Todo

  • None

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cypht-org/cypht/pull/559 **Author:** [@xorti](https://github.com/xorti) **Created:** 3/9/2022 **Status:** ✅ Merged **Merged:** 3/9/2022 **Merged by:** [@jasonmunro](https://github.com/jasonmunro) **Base:** `master` ← **Head:** `fix-globals-php81` --- ### 📝 Commits (1) - [`3189f30`](https://github.com/cypht-org/cypht/commit/3189f30077001ce1b9abcf4628e7aaa12931972d) Fix bug in PHP 8.1 when require lib/request.php due to $GLOBALS modification changes ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lib/request.php` (+4 -1) </details> ### 📄 Description …ication changes ## Pullrequest This pull request fixes an issue in PHP 8.1 that was failing with **Fatal Error** when requiring the file `lib/request.php` due to `$GLOBALS` modification. ``` Fatal error: $GLOBALS can only be modified using the $GLOBALS[$name] = $value syntax in /var/www/html/vendor/jason-munro/cypht/lib/request.php on line 153 ``` ### Issues <!-- Which Issues does this fix, which are related? - fixes #XXX - relates #XXX --> - [X] None ### Checklist <!-- Anything important to be thought of when deploying? - [ ] Config Update - [ ] Breaking/critical change --> - [X] None ### How2Test <!-- Give a detailed description how to test your PR and confirm it is working as expected. --> <!-- Maintainers will check the Tests - [ ] Test1 - [ ] Test2 --> - [X] Run the following code with PHP8.1 to see the issue: `php -r "require 'lib/request.php';"` ### Todo <!-- In case some parts are still missing, list them here. - [ ] Changelog --> - [X] None --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 21:36:33 +03:00
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#891
No description provided.