Re: Extension in free pascal - OT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Well, depends. If you wanna create build-in extensions ( as far as i know 
those works a bit faster ), you have to use C. In case you wanna make a 
dynamic extension it can work 'Theoretically'. But you need to load the PHP 
shared headers also so the compiler understand the DLLs as far as i know, and 
you dont have them in Pascal. It is also a really BAD idea to writte it in a 
different language then it is orginaly written in my opinion.

on Thursday 21 September 2006 11:32, Bronislav Klucka wrote:
> Extensions are basically dll/so files. There is generally no problem to
> take dll file written in C and use it in program written in FPS and vice
> versa (it's all about rewriting function's headers). So my question is,
> if this is possible generally, can it be done for PHP?
>
> Thomas Munz wrote:
> > PHP is written in C. If you want to write a extension, you have to writte
> > it in C. I dont think its possible, except you tranbslate the PHP C code
> > to Pascal and start from scratch there :)
> >
> > So-> no, not possible
> >
> > on Thursday 21 September 2006 11:22, Bronislav Klucka wrote:
> >> Of course I want to write extension for PHP :)
> >> but I want to write it in FPC...
> >>
> >> Brona
> >>
> >> Thomas Munz wrote:
> >>> Pascal??
> >>>
> >>> this is a PHP list, you are on the wrong place!
> >>>
> >>> on Thursday 21 September 2006 11:12, Bronislav Klucka wrote:
> >>>> Hi,
> >>>> does anybody know how to write extension in FreePascal?
> >>>> Brona

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux