Re: PHP bindings

Patrick Stephan <[email protected]>
Newsgroups gmane.comp.literature.sword.devel
Message-ID <285859c2-f48c-4a10-ae8b-4c0a75abccf9@Spark>
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 <[email protected]>, 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/, @[email protected]
> 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: [email protected]
> http://crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

_______________________________________________
sword-devel mailing list: [email protected]
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.