Anyone familar with PHP Extensions?

View: New views
3 Messages — Rating Filter:   Alert me  

Anyone familar with PHP Extensions?

by Eric A. Boney :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Anyone on this list have any experience developing PHP Extensions? I have been working on an off on developing a Web Interface as many might know. I have the extension compiling and building just fine without any errors or warnings. When I include the header file for mymoneydatabasemgr class the extension will still compile and build without errors, but the "so" file will not register when Apache2 is restarted. If however, I remove or comment out the header file everything is fine and it registers like it should.


So without the header file I obviously can't get access to the class, so anyone have any ideas or any experience with developing extensions? I know this doesn't directly relate to KMM, but I was hoping maybe someone here may have some additional experience.


Thanks,


-Eric


------------------------------------------------------------------------------

_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

Parent Message unknown Re: Anyone familar with PHP Extensions?

by Eric A. Boney :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
On Sunday 05 July 2009 16:39:02 Cristian Oneţ wrote:
> În data de Duminică 05 Iulie 2009 23:26:18 Eric A. Boney a scris:
> > Anyone on this list have any experience developing PHP Extensions? I have
> > been working on an off on developing a Web Interface as many might know.
> > I have the extension compiling and building just fine without any errors
> > or warnings. When I include the header file for mymoneydatabasemgr class
> > the extension will still compile and build without errors, but the "so"
> > file will not register when Apache2 is restarted. If however, I remove or
> > comment out the header file everything is fine and it registers like it
> > should.
>
> Well I know nothing about developing php extensions but if the so will not
> load could mean that it has a missing runtime dependency. If you run 'ldd
> your.so' (the one compiled with mymoneydatabasemgr) do you get any not
> found dependencies. Maybe the qt sqlite plugin is not found in the Apache2
> environment.
>
> > So without the header file I obviously can't get access to the class, so
> > anyone have any ideas or any experience with developing extensions? I
> > know this doesn't directly relate to KMM, but I was hoping maybe someone
> > here may have some additional experience.
>
> I hope the above suggestion helps :).


Hey Christian:


Thanks for the suggestion. I don't get any not found dependencies. Here is the output of the command:


linux-gate.so.1=> (0xb7f11000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7da9000)
/lib/ld-linux.so.2 (0xbf12000)


Thanks for the suggestion, maybe I am not including something that is needed still in the extension?


-Eric



------------------------------------------------------------------------------

_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

Re: Anyone familar with PHP Extensions?

by Bugzilla from onet.cristian@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

În data de Luni 06 Iulie 2009 00:01:27 Eric A. Boney a scris:

> Hey Christian:
>
> Thanks for the suggestion. I don't get any not found dependencies. Here is
> the output of the command:
>
> linux-gate.so.1=> (0xb7f11000)
> libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7da9000)
> /lib/ld-linux.so.2 (0xbf12000)
>
> Thanks for the suggestion, maybe I am not including something that is
> needed still in the extension?
I don't quite know how is the extension built. Is it depending on
libkmm_mymoney.so or you just build another lib of your own from the kmymoney
sources? A small description of this php extension would help. The way I see
it if I would want to write something in C++ using the kmymoney engine objects
I would link the program with libkmm_mymoney.so. Doesn't the php extension
imply doing something like this? Using an existing C++ lib and instantiating
object from it somehow wrapped in php code? If it does than the
libkmm_mymoney.so installed on your system contains all classes needed by you
and it also has all the dependencies. If it's a somehow different case that I
don't have ideas :).

--
Regards,

Cristian Oneţ


------------------------------------------------------------------------------

_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer

signature.asc (205 bytes) Download Attachment