RE: [PHP-WIN] Problem writing PHP extensions for Windows

2010-07-19 Thread Venkat Raman Don
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 th

Re: [PHP-WIN] Problem writing PHP extensions for Windows

2010-07-19 Thread Bruce M. Axtens
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 threa

RE: [PHP-WIN] Problem writing PHP extensions for Windows

2010-07-19 Thread Venkat Raman Don
Hi Bruce, 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. Please build non thread safe version of extension. I believe --disable-zts is the switch that will do the trick for building the non-thread sa

Re: [PHP-WIN] Problem writing PHP extensions for Windows

2010-07-19 Thread Richard Quadling
On 19 July 2010 15:28, Bruce M. Axtens wrote: > I'm trying to build PHP extensions on Windows > > When I run my DLLs I get errors like this: >  Module compiled with build ID=API20090626,TS,VC9 >  PHP    compiled with build ID=API20090626,NTS,VC9 > > The source package that I downloaded from php.ne

RE: [PHP-WIN] Problem writing PHP extensions for Windows

2010-07-19 Thread Keith Davis
Are writing your own extension? If you just want compile someone else's source, like from PEAR/PECL, you can just follow this: http://wiki.php.net/internals/windows/stepbystepbuild I believe you can do it the way you are trying, and I'm about to find out, because, although I've followed those in

Re: [PHP-WIN] Problem writing PHP extensions for Windows

2010-07-19 Thread Bruce M. Axtens
Keith Davis wrote: What extensions are you trying to build? The one listed here http://netindonesia.net/blogs/risman/archive/2008/06/15/part-2-writing-php-extension.aspx (modified slightly from the original to compensate for the nonTS situation) and http://www.talkphp.com/vbarticles.php?d

RE: [PHP-WIN] Problem writing PHP extensions for Windows

2010-07-19 Thread Keith Davis
What extensions are you trying to build? Keith Davis (214) 906-5183 -Original Message- From: Bruce M. Axtens [mailto:bruce.axt...@gmail.com] Sent: Monday, July 19, 2010 9:28 AM To: php-windows@lists.php.net Subject: [PHP-WIN] Problem writing PHP extensions for Windows I'm trying to buil

[PHP-WIN] Problem writing PHP extensions for Windows

2010-07-19 Thread Bruce M. Axtens
I'm trying to build PHP extensions on Windows When I run my DLLs I get errors like this: Module compiled with build ID=API20090626,TS,VC9 PHPcompiled with build ID=API20090626,NTS,VC9 The source package that I downloaded from php.net seems to default to threadsafe, but I've installed a n