BuPunkt Posted January 21, 2008 Share Posted January 21, 2008 Hi freaks. I want to write a new php extension with MSVS2005 under windowsxp/sp2. So I followed the excellent article http://devzone.zend.com/node/view/id/1021. To get a worthy debug environment, I tried as recommended to comppile and link the php sources (coming from http://de.php.net/releases/#5.1.2, version required by customer). Finally, I stranded on the libraries iconv und libxml, thus I disabled them via configure. The server (apache 2.2.0) cannot load the new PHP.DLL (.exe per cgi works), perhaps I disabled too mutch. Next try: "Installation" of binaries and adding of sources "devel" by XAMPP from http://sourceforge.net/project/showfiles.php?group_id=61776&package_id=89552&release_id=412975. But some of the neccessary headers are created yet by configure which still fails if iconv und libxml are enabled. Now my question: How can I get (if at all) the headers matching a certain php5ts.dll to compile and link my extension against (without compiling php itself)? Quote Link to comment Share on other sites More sharing options...
madmax Posted January 21, 2008 Share Posted January 21, 2008 Erm... wasn't the question New PHP extension with Apache for Windows XP ??? Why recompile if all you want to do is that? The filetype is configurable from within Apache. I even run dummy PERL (.pl) files thru PHP as a means of harvesting spambot and malcontents into an IP blockfile via honeytraps (win32 server). PHP include files (.inc) are also "protected" by being defined as type PHP. # AddType allows you to add to or override the MIME configuration # file mime.types for specific file types. # For PHP 4 do something like this: #LoadModule php4_module "c:/php/sapi/php4apache2.dll" AddType application/x-httpd-php .inc AddType application/x-httpd-php .php AddType application/x-httpd-php .pl Quote Link to comment Share on other sites More sharing options...
BuPunkt Posted January 23, 2008 Author Share Posted January 23, 2008 The following article did it: Creating a PHP 5 Extension with Visual C++ 2005 Burkhard Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.