Using php5ts.lib in 5.3.0beta2-dev snapshot

Using php5ts.lib in 5.3.0beta2-dev snapshot

am 16.03.2009 21:34:47 von Jeff McKenna

Hello,

I am using the 'php5ts.lib' file included in the "VC9 x64 Thread Safe"
5.3.0beta2-dev snapshot (from http://windows.php.net/snapshots/),
downloaded 2009-Mar-15, to build a module...but when I try to load the
module using those same PHP binaries I get the following error:

>php -v
PHP Warning: PHP Startup: MapScript: Unable to initialize module
Module compiled with build ID=API20090115,TS
PHP compiled with build ID=API20090115,TS,VC9
These options need to match

Is it possible that the 'php5ts.lib' file included in that snapshot was
not used to make those binaries? Or, does someone see my mistake?
(where is this mysterious "VC9" ID coming from?)

thanks for any advice.

-jeff


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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

Re: Using php5ts.lib in 5.3.0beta2-dev snapshot

am 17.03.2009 02:00:38 von Jeff McKenna

Keisial wrote:
> Jeff McKenna wrote:
>> Hello,
>>
>> I am using the 'php5ts.lib' file included in the "VC9 x64 Thread Safe"
>> 5.3.0beta2-dev snapshot (from http://windows.php.net/snapshots/),
>> downloaded 2009-Mar-15, to build a module...but when I try to load the
>> module using those same PHP binaries I get the following error:
>>
>> >php -v
>> PHP Warning: PHP Startup: MapScript: Unable to initialize module
>> Module compiled with build ID=API20090115,TS
>> PHP compiled with build ID=API20090115,TS,VC9
>> These options need to match
>>
>> Is it possible that the 'php5ts.lib' file included in that snapshot
>> was not used to make those binaries? Or, does someone see my mistake?
>> (where is this mysterious "VC9" ID coming from?)
>>
>> thanks for any advice.
>>
>> -jeff
> Did you use Visual C++ 9 to build that module?
> VC9 means that it was made with Visual C++ 9, and thus use a different C
> library.
>
>

Yes I built the module with VC9 also. My question is: how is this extra
parameter "VC9" set on the build ID?

-jeff


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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

Re: Using php5ts.lib in 5.3.0beta2-dev snapshot

am 17.03.2009 04:29:10 von Jeff McKenna

Jeff McKenna wrote:
> Hello,
>
> I am using the 'php5ts.lib' file included in the "VC9 x64 Thread Safe"
> 5.3.0beta2-dev snapshot (from http://windows.php.net/snapshots/),
> downloaded 2009-Mar-15, to build a module...but when I try to load the
> module using those same PHP binaries I get the following error:
>
> >php -v
> PHP Warning: PHP Startup: MapScript: Unable to initialize module
> Module compiled with build ID=API20090115,TS
> PHP compiled with build ID=API20090115,TS,VC9
> These options need to match
>
> Is it possible that the 'php5ts.lib' file included in that snapshot was
> not used to make those binaries? Or, does someone see my mistake?
> (where is this mysterious "VC9" ID coming from?)
>
> thanks for any advice.
>
> -jeff
>
>

For the record, this build_id value is set in the /main/config.w32.h
file, such as:

/* Compiler compatibility ID */
#define PHP_COMPILER_ID "VC9"

That magic did the trick for me :)

-jeff


--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/



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