libgit2 / php-git

PHP bindings for libgit2
http://libgit2.github.com
MIT License
565 stars 118 forks source link

Fix for unknown symbol convert_to_bool #61

Closed ghost closed 10 years ago

ghost commented 10 years ago

PHP 5.4.9-4ubuntu2.4 Running on 64-bit Ubuntu Raring

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

Modified the one call for convert_to_bool to convert_to_boolean and everything works. Checking the PHP source I don't see convert_to_bool in the 5.4 sourcecode

chobie commented 10 years ago

thanks, maybe i've just missed that.

ghost commented 10 years ago

No problem. Thanks for maintaining this wonderful api - I'm writing some composer scripts to add some of my own workflow and being able to code the git stuff in PHP makes it so much easier to work on. These were simple one-liners, just had to run find on the source to locate the reference and then modify it.