Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to build extension as static #342

Open
bsidhu009 opened this issue Jul 28, 2017 · 1 comment
Open

how to build extension as static #342

bsidhu009 opened this issue Jul 28, 2017 · 1 comment

Comments

@bsidhu009
Copy link

I usually place extension souce in ext direcory and then run ./buildconf
I'm not How to do same for extension developed using PHP-CPP

please guide, how can i do this

@mario-deluna
Copy link

Have a look in the documentation: http://www.php-cpp.com/documentation/your-first-extension

After building the yourextension.so there are two ways to include it in your php installation.

1. Load from php.ini

If you don't know where your ini file is:

$ php -i | grep php.ini

Then simply at the bottom at:

[myextension]
extension=/path/to/yourextension.so

2. Custom ini

Or create a custom .ini file something like yourextension.ini and link the extension there.

By running:

$ php --ini

You will find out what folder php is scanning for ini files.

Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants