Project

Profile

Help

Support #1960

PHP Windows builds required for the different compiler versions

Added by O'Neil Delpratt over 2 years ago. Updated almost 2 years ago.

Status:
In Progress
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
2013-12-16
Due date:
% Done:

0%

Spent time:
-
Found in version:
0.1

Description

Bug reported by Vasil Rangelov,

I've tried all of the combos with this DDL, and sadly, it's only
useful for PHP 5.4.* TS VC9 x86 builds, and nothing else (that is,
other combos don't even register at phpinfo()).

The necessary binaries for addressing all common Windows PHP setups would be:
PHP 5.4 TS VC9
PHP 5.4 NTS VC9
PHP 5.5 TS VC11
PHP 5.5 NTS VC11
(all x86)

I also tested PHP 5.3 (N)TS VC9 x86, and that too doesn't work. While
I see no reason not to also make PHP 5.3 VC9 (N)TS binaries, the PHP
5.3 is now in "security fixes only" mode, soon to be completely
EOL-ed, so IMHO, it's OK to not have it... it would hopefully
encourage more people to upgrade.

History

#1 Updated by O'Neil Delpratt about 2 years ago

  • Status changed from New to In Progress

We now have a build for PHP 5.5 on Windows. Currently testing.

#2 Updated by O'Neil Delpratt almost 2 years ago

Asked on PHP internals on the best way to build Saxon-C on windows:

recommended not to use VS but for debugging.

See https://wiki.php.net/internals/windows/stepbystepbuild

copy it to the ../pecl/ directory, run buildconf etc.

You can use phpize too if your exts do not have dependencies against
other extension.

The process is also described in the wiki

Also:

I also try currently to port over this extension to windows:
https://github.com/piersharding/php-sapnwrfc/issues/6
My progress is not bad...i think there are some incompabilities left between the versions.....but there are no error messages left at compile ...so its hard to figure out:-/

my resources:
https://wiki.php.net/internals/windows/stepbystepbuild
http://www.php.net/manual/en/internals2.buildsys.configwin.php
http://www.dreamincode.net/forums/topic/244215-introduction-to-creating-a-php-extension-for-windows/

the bad things
- there is no real documentation about config.w32 (i've gone through pecl packages and ported my code from there
- at least i didnt found one...
- what are the parameters for functions like EXTENSION CHECK_LIB() CHECK_HEADER_ADD_INCLUDE().....??
- i guess them currently with the usage in the different pecl packages....
- what kind of functions are available in config.w32?
- the binarys-tools are from 2011...no vc11 folder is created. http://windows.php.net/downloads/php-sdk/
- in the package i have some lib dependencies -> they must be in the deps/bin folder
- how can i change the source path? only with "--with-extra-libs" ?
- there is the CHECK_LIB() function -> but why the lib is not taken from there, instead of the deps/bin folder?

Also available in: Atom PDF