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

Fix issue with old libgit2 API calls causing the PHP extension to not load on compilation #45

Merged
merged 1 commit into from Nov 7, 2013

Conversation

ghost
Copy link

@ghost ghost commented Feb 22, 2013

Upon attempting to compile and utilise the PHP module, we were getting repeated:

PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib/php/modules/git2.so' - /usr/lib/php/modules/git2.so: undefined
symbol: git_index_get in Unknown on line 0

Errors on Apache restart, seems the index.c file for the extension was attempting to utilise API calls that have been renamed in the libgit2 library.

This change fixes this and loads the extension, and through our usage scenarios so far works as intended.

This commit fixes issues #44 and #28

@chobie
Copy link
Member

chobie commented Jun 2, 2013

I'm sorry for late response. i'll check this later.

@Igorshp
Copy link

Igorshp commented Nov 6, 2013

Hello, Just tested this change. It solved the problem for me.
Is it possible to get this merged?
Thanks

chobie added a commit that referenced this pull request Nov 7, 2013
Fix issue with old libgit2 API calls causing the PHP extension to not load on compilation
@chobie chobie merged commit ace0257 into libgit2:develop Nov 7, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants