RE: [PHP-WIN] Problem writing PHP extensions for Windows
| From: | Venkat Raman Don | Date: | Mon, 19 Jul 2010 16:57:26 +0000 |
| Subject: | RE: [PHP-WIN] Problem writing PHP extensions for Windows | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-30246@lists.php.net to get a copy of this message | ||
I meant your PHP build environment should be configured to disable TS. So this means the PHP build
environment should create a NTS build of PHP. If you are making changes to the configuration, it is
very important to re-build configuration.
So run first,
cscript.exe win32\build\buildconf.js
then do
configure.js [all options used to build NTS PHP] --enable-<extension_name>
now say,
nmake
This should produce NTS version of extension as well as PHP.
Thanks,
Don.
-----Original Message-----
From: Bruce M. Axtens [mailto:bruce.axtens@gmail.com]
Sent: Monday, July 19, 2010 9:10 AM
To: Venkat Raman Don
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Problem writing PHP extensions for Windows
Venkat Raman Don wrote:
> This means you have built a Thread safe version of the extension and trying to load it with Non
> Thread Safe version of PHP which is not valid.
Yes, that is true. My question has been from the beginning: how to make the extension Non Thread
Safe?
> Please build non thread safe version of extension.
How?
> I believe --disable-zts is the switch that will do the trick for building the non-thread safe
> extension.
>
This has been tried, twice, without success. I think you will find that --disable-zts has more to do
with building PHP than it has with building extensions.
Kind regards,
Bruce.