[sword-devel] PHP bindings

Patrick Stephan pstephan1187 at gmail.com
Tue Jan 30 15:46:39 EST 2024


I attempted to compile the bindings for PHP as well a while ago, but, if I remember correctly, these bindings were made for PHP 4 and are not compatible with modern PHP.

So I started messing around and built a mostly working PHP extension for PHP 8.x. I am not very knowledgeable about C, C++, or PHP internals, but the extension works for my use case. If you’d like, I’d be happy to send you the code and you can do whatever you want with it.

- Patrick
On Jan 30, 2024 at 2:41 PM -0600, Matěj Cepl <mcepl at cepl.eu>, wrote:
> On Tue Jan 30, 2024 at 10:33 AM CET, Aim for NaN wrote:
> > This errors out, saying that std_list.i cannot be found for templates.i
>
> Yes, it seems to be missing in swig templates for
> PHP (if that’s the problem … I am one of few happy
> programmers who know absolutely nothing about PHP), but
> how difficult it would be to port those 23 LOC from Python
> https://github.com/swig/swig/blob/master/Lib/python/std_list.i to
> PHP?
>
> If you do so, please, do not forget to send it upstream.
>
> Best,
>
> Matěj
> --
> http://matej.ceplovi.cz/blog/, @mcepl at floss.social
> GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8
>
> Experience is what you get when you don’t get what you want.
> -- Dan Stanford
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20240130/5e24de94/attachment.htm>


More information about the sword-devel mailing list