RE: Problem writing PHP extensions for Windows

Venkat Raman Don <[email protected]>
Newsgroups gmane.comp.php.windows
Message-ID <3FA2AD39E9964240B4E6DD4AE62E031B5DB2C7E0@TK5EX14MBXC118.redmond.corp.microsoft.com>
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:[email protected]] 
Sent: Monday, July 19, 2010 9:10 AM
To: Venkat Raman Don
Cc: [email protected]
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.



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.