From: "Bruce M. Axtens" on
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.net seems to default to
threadsafe, but I've installed a nonTS PHP (the recommended action
apparently when running under FastCGI on IIS7.)

How do I get nonTS sources, or what do I have to do to what I have to
make them appear nonTS so that Visual Studio 2008 creates nonTS binaries?

Kind regards,
Bruce.
From: "Keith Davis" on
What extensions are you trying to build?


Keith Davis (214) 906-5183

-----Original Message-----
From: Bruce M. Axtens [mailto:bruce.axtens(a)gmail.com]
Sent: Monday, July 19, 2010 9:28 AM
To: php-windows(a)lists.php.net
Subject: [PHP-WIN] Problem writing PHP extensions for Windows

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.net seems to default to
threadsafe, but I've installed a nonTS PHP (the recommended action
apparently when running under FastCGI on IIS7.)

How do I get nonTS sources, or what do I have to do to what I have to
make them appear nonTS so that Visual Studio 2008 creates nonTS
binaries?

Kind regards,
Bruce.

--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php



This message (including any attachments) may contain confidential or otherwise privileged information and is intended only for the individual(s) to which it is addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message or that arise as a result of e-mail transmission. If verification is required please request a hard-copy version from the sender.

www.pridedallas.com

From: "Bruce M. Axtens" on
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?do=article&articleid=49&title=creating-custom-php-extensions
<http://www.talkphp.com/vbarticles.php?do=article&articleid=49&title=creating-custom-php-extensions>
(again with the nonTS in mind).

I'm heading toward big and better things, but at the moment am just
trying to get a proof of concept working.

Bruce.

From: "Keith Davis" on
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 instructions I'm pointing you
to, I've got an extension (pdo_informix) that won't compile correctly.



Keith Davis (214) 906-5183

-----Original Message-----
From: Bruce M. Axtens [mailto:bruce.axtens(a)gmail.com]
Sent: Monday, July 19, 2010 9:37 AM
To: Keith Davis
Cc: php-windows(a)lists.php.net
Subject: Re: [PHP-WIN] Problem writing PHP extensions for Windows

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-p
hp-extension.aspx
(modified slightly from the original to compensate for the nonTS
situation) and
http://www.talkphp.com/vbarticles.php?do=article&articleid=49&title=crea
ting-custom-php-extensions
<http://www.talkphp.com/vbarticles.php?do=article&articleid=49&title=cre
ating-custom-php-extensions>
(again with the nonTS in mind).

I'm heading toward big and better things, but at the moment am just
trying to get a proof of concept working.

Bruce.



This message (including any attachments) may contain confidential or otherwise privileged information and is intended only for the individual(s) to which it is addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message or that arise as a result of e-mail transmission. If verification is required please request a hard-copy version from the sender.

www.pridedallas.com

From: Richard Quadling on
On 19 July 2010 15:28, Bruce M. Axtens <bruce.axtens(a)gmail.com> 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.net seems to default to
> threadsafe, but I've installed a nonTS PHP (the recommended action
> apparently when running under FastCGI on IIS7.)
>
> How do I get nonTS sources, or what do I have to do to what I have to make
> them appear nonTS so that Visual Studio 2008 creates nonTS binaries?
>
> Kind regards,
> Bruce.


What is your configure line?

Make sure you have --disable-zts in it to produce NonThreadSafe (nts) versions.

Richard.