Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dseguy/changedBehavior
Museum of change behaviors in PHP
https://github.com/dseguy/changedBehavior
Last synced: 4 days ago
JSON representation
Museum of change behaviors in PHP
- Host: GitHub
- URL: https://github.com/dseguy/changedBehavior
- Owner: dseguy
- License: apache-2.0
- Created: 2023-01-17T21:10:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T21:13:44.000Z (12 days ago)
- Last Synced: 2024-10-30T22:19:20.668Z (12 days ago)
- Language: PHP
- Size: 734 KB
- Stars: 11
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changed.rst
- License: LICENSE
Awesome Lists containing this project
README
# PHP changed behavior database
Sometimes, PHP commands change their behavior. They are mentioned in the migration guides, and they are also collected here, with examples.
You can read them online at `https://php-changed-behaviors.readthedocs.io/en/latest/`_.
## Contribute
To contribute, create a PHP script which illustrates a PHP change of behavior.
Run the code across various PHP versions, such as 7.2 to 8.3, 8.4-dev : at least two different results should appear across those versions.
Add documentation for that code : description, extra blogs and tutorial,
Send it as a PR.The code should always display some result, and the result should change at least once across the current selection of supported PHP versions.
Supported PHP versions : 8.4-dev, 8.3, 8.2, 8.1, 8.0, 7.4, 7.3.
You can also run the test suite on a minor version, though there are not plan to support them all.This project aims at documenting change in behavior, in particular when it is otherwise silent. For example, comparisons between integer and strings (PHP 8.0), or sort() handling of ex-aequos (PHP 7)
Documented changes in behavior are OK, but the edge cases are best.
Avoid reporting behavior changes with :
+ new functions, classes, interfaces, traits, etc.
+ new or removed PHP keywords, as they are usually documented and easy to spot
+ new or removed PHP features