Re: [PHP] Custom PHP extension: Invalid library (maybe not a PHP library)

2012-02-29 Thread Sławomir Zborowski
Yes, you are right. But that was not the case. Actually, the problem was that I had two PHP packages installed. $PATH modification worked fine for me. Kind Regards, Sławomir W dniu 29 lutego 2012 14:51 użytkownik Matijn Woudt napisał: >> >> The code compiles well with these commands: >> $ ./conf

Re: [PHP] Custom PHP extension: Invalid library (maybe not a PHP library)

2012-02-29 Thread Matijn Woudt
> > The code compiles well with these commands: > $ ./configure --enable-hello2 > $ make -j5 > # make install > It's a long time since I built PHP extensions, but aren't you supposed to run phpize before configure? > But after I execute the command: > $ php5 -d"extension=hello2.so" -v > I get the

[PHP] Custom PHP extension - Invalid library (maybe not a PHP library)

2012-02-29 Thread Sławomir Zborowski
Hi all! I'm interested in creating a custom PHP extension. I have found several so called tutorials, but the code examples they contain do not work for me. Let's stick to this site: http://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend/ Basing on it I have following so

[PHP] Custom PHP extension: Invalid library (maybe not a PHP library)

2012-02-29 Thread Sławomir Zborowski
Hi all! I'm interested in creating a custom PHP extension. I have found several so called tutorials, but the code examples they contain do not work for me. Let's stick to this site: http://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend/ Basing on it I have following so