Compiling & including PHP Pecl::runkit into Xampp 1.8.1

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Compiling & including PHP Pecl::runkit into Xampp 1.8.1

Postby habichtsberg » 21. July 2013 22:19

Hello together,

I'm already using xampp since a lot of years and never hat to big problems with xampp.
Today I encountered a problem what I was unable to solve so far.

I tried to include the php-pecl extension "runkit" into the current version 1.8.1 of xampp.
Because there seems to be no compiled *.dll file for the php-version on the web, I tried to compile it for myself ...
Without success so far. Nearly 6-8 years or so ago, that I last tried to compile C-librarys under windows.
Furthermore I'm missing the phpize.bat file which seems to be required for compiling runkit?!?

Can someone help me with how to do this?
Would be very happy if I could that working.

Kind regards,

Posts: 1
Joined: 21. July 2013 22:09
Operating System: Windows 7 Ultimate, 64-bit

Re: Compiling & including PHP Pecl::runkit into Xampp 1.8.1

Postby ysuhaila » 08. August 2014 04:41

Hi, i have been trying to compile runkit from Xampp shell. I am using Xampp 1.7.3 because i wanted to use the Mutagenesis tool that is compatible with PHP version 5.3.
I am running on Windows 7.

As my Xampp don't have phpize in it, i copied the related phpize files (phpize, config.js) from the php 5.3 source file and pasted them into the xampp's php folder.

Upon compiling, i get the following message:

# configure --enable-runkit
Saving configure options to config.nice.bat
Checking for cl.exe ... <in default path>
Detected compiler MSVC12 (Visual C++ 2013)
Detected 32-bit compiler
Checking for link.exe ... C:\Program Files (x86)\Microsoft Visual Studio 12.0\V
Checking for nmake.exe ... <in default path>
Checking for lib.exe ... <in default path>
Checking for bison.exe ... <in default path>
Checking for re2c.exe ... <in default path>
Detected re2c version 0.13.5
Checking for zip.exe ... <in default path>
Checking for lemon.exe ... <in default path>
Checking for mc.exe ... C:\Program Files (x86)\Microsoft Visual Studio 12.0\Com
Checking for mt.exe ... C:\Program Files (x86)\Microsoft Visual Studio 12.0\Com

Build dir: Release
PHP Core: php5.dll and php5.lib

Enabling extension C:\xampp\runkit [shared]
C:\xampp\runkit\configure.js(1285, 3) Microsoft JScript runtime error: 'PHP_PGI'
is undefined

Notice that the runkit is compiled using Visual C++ 2013.
Am i using the wrong compiler for this?
Can anyone help me on this? I am quite new at compiling php extensions.

Thanks in advance.
Posts: 1
Joined: 08. August 2014 04:24
Operating System: Windows 7

Re: Compiling & including PHP Pecl::runkit into Xampp 1.8.1

Postby Nobbie » 08. August 2014 11:25

If you want to compile extensions into Xampp, you need the Xampp Development Package for your Xampp Version. You cannot simply copy PHP 5.3 from somewhere else.

I dont know if this Development Package is (still) available for Xampp 1.7.3, you must look for it on Sourceforge. If there is no package, you cannot extend Xampp.

Usually it is easier to run Linux with a Server Installation (Apache, MySQL, PHP etc.), but NOT Xampp, and extend this Linux Version.
Posts: 11776
Joined: 09. March 2008 13:04

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 90 guests