Install `*.stub.php` for use with the `phpize` build environment
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 40.4k
- Forks
- 8.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 96
Description
Description
I'm trying to use gen_stub.php to define an attribute class in an extension. gen_stub.php requires the zend_attributes.stub.php to be available to resolve the \Attribute::TARGET_X constants. For that purpose gen_stub.php has support for including other files as a dependency, which is already used for zend_test:
However this is not usable for external extensions, since the stub files are not part of a PHP installation / the phpize build environment. Only gen_stub.php itself and the generated arginfo.h headers are.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading gen_stub.php and the zend_test test.stub.php dependency example, then trace how phpize exposes gen_stub.php and generated arginfo.h. Identify the installation rules that omit *.stub.php and make the stubs available in a PHP installation or phpize environment for external extensions. Verify that an external extension can resolve zend_attributes.stub.php and the Attribute::TARGET_X constants.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100