Re: compiling an extension

From: Date: Mon, 05 Nov 2007 16:52:10 +0000
Subject: Re: compiling an extension
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-4001@lists.php.net to get a copy of this message
Hi Pablo, I think the clue's in that tutorial: <quote> Enter the following in the dialog box (the second directive has to match the name of your extension. it still works if it doesn't, you can compile and load the dll in php, but the functions defined by the extension won't be usable) ZEND_DEBUG=0 COMPILE_DL_BCOMPILER ZTS=1 ZEND_WIN32 PHP_WIN32 </quote> thread-safety == ZTS - Steph ----- Original Message ----- From: "Pablo Dall'Oglio" <pablo@dalloglio.net> To: "PHP-GTK dev" <php-gtk-dev@lists.php.net> Sent: Monday, November 05, 2007 4:34 PM Subject: [PHP-GTK-DEV] compiling an extension
Hello people, I know this list is not the right place to post this... But there'are people here that should know the answer. I wrote a simple php extension and I'm trying to compile it under windows (under linux is ok). To do that, I followed this tutorial http://deluxe-design.at/win-php-extensions/ adapting some parts to php5... I'm Using Visual C++ 2005 Express and the module compiles fine, but when I try to load through a php script using dl(), I got this error: Warning: dl(): studio: Unable to initialize module Module compiled with module API=20060613, debug=0, thread-safety=1
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match I compiled the project linking against php5.lib and not php5ts.lib, does anyone know how to compile a module turning thread-safety OFF ? bests Pablo -- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.gtk.dev (#4001) next »