Contributing to APCu
Contributions to APCu are welcome! Whether you're fixing a bug, improving documentation, or proposing a new feature, your help is appreciated.
Reporting Bugs
If you find a bug, please open an issue on the GitHub repository. Please follow the guidelines from the README.md:
- Minimal: Reduce your problem to the smallest amount of code possible.
- Executable: Provide a complete script and all necessary information to run it.
- Reproducing: Ensure the code reliably reproduces the bug. If it's intermittent, describe the conditions and how often it occurs.
Bug reports that do not include reproducing code may be closed.
Development Workflow
- Fork and Clone: Fork the repository and clone it to your local machine.
-
Set up Build Environment: You will need a PHP development environment set up.
git clone https://github.com/your-username/apcu.git cd apcu phpize ./configure --enable-apcu-debug -
Make Changes: Implement your bug fix or feature.
-
Compile: Compile your changes.
make -
Run Tests: Before submitting, run the test suite to ensure your changes haven't introduced any regressions.
make testThe project's CI runs tests with different serializers. It's a good idea to do the same locally:
make test TESTS="--show-diff -d apc.serializer=default tests" make test TESTS="--show-diff -d apc.serializer=php tests" -
Submit a Pull Request: Push your changes to your fork and open a pull request against the
masterbranch of the main APCu repository.