php-git icon indicating copy to clipboard operation
php-git copied to clipboard

undefined symbol git_reference_write found.

Open guoxiaod opened this issue 14 years ago • 3 comments

I get the libgit2 v0.10.0 and php-git v0.2.1 compile, then install, restart apache, get this error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/git.so' - /usr/lib64/php/modules/git.so: undefined symbol: git_reference_write in Unknown on line 0

guoxiaod avatar Apr 13 '11 02:04 guoxiaod

Hi Anders,

oops sorry, Git\Commit::write can't work now.

would you use Git\Reference\Manager::create instead of that?

http://php-git.chobie.co/classes/manager/create.html

i would like to fix this problem in this weekend. please wait updating.

chobie avatar Apr 13 '11 04:04 chobie

Ok, thanks for your reply.

I just found this problem makes the git.so cann't be loaded, and everything in the extension cann't be used.

I have commented all the undefined symbols to make the extension work.

It's not urgent.

  • Anders

guoxiaod avatar Apr 13 '11 05:04 guoxiaod

hey, i've fixed this issue on https://github.com/libgit2/php-git/commit/afab298a2153b12ff2c95344abcf799eaecbc7f4

but also i found backend freeing issue (sometimes can't call free method). so i'll bump up to v0.2.2 when i fix that probrem.

and, i wrote missunderstanding sentence. X: GitCommit::write can't work now. O: Git\Reference::write can't work now.

btw, i have 1 week vaction on early May holiday season in Japan. i would like to improve php-git. please wait updating :D

chobie avatar Apr 17 '11 16:04 chobie