Page 1 of 1

undefined function: 'version_compare'.

PostPosted: June 13th, 2013, 9:57 am
by Stan92
I've just installed Phalanger on my Windows 2008 R2 and I m trying to run myPhpadmin Under IIS7.
But I get this error :
Error: Call to undefined function: 'version_compare'.
32bit app is enable in my appPool.

And my web.config contains these assemblies :
Code: Select all
<add assembly="PhpNetMySql, Version=, Culture=neutral, PublicKeyToken=2771987119c16a03" section="mysql"/>
<add assembly="PhpNetPDOMySql, Version=, Culture=neutral, PublicKeyToken=2771987119c16a03" section="pdomysql"/>
<add assembly="php_image.mng, Version=, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="image" />
<add assembly="php_gd2.mng, Version=, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="gd2" />
<add assembly="php_mbstring.mng, Version=, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="mbstring" />
<add assembly="php_iconv.mng, Version=, Culture=neutral, PublicKeyToken=4ef6ed87c53048a3" section="iconv" />

Any help?


Re: undefined function: 'version_compare'.

PostPosted: June 17th, 2013, 10:10 am
by weirdan
I suspect you need to add PhpNetClassLibrary assembly, see for version/token/section details.

Re: undefined function: 'version_compare'.

PostPosted: June 18th, 2013, 10:21 am
by Jakub Misek
weirdan wrote:I suspect you need to add PhpNetClassLibrary assembly
This is correct. If you are running Phalanger app without installing Phalanger, you have to add PhpNetClassLibrary and PhpNetXmlDOM, which contains basic PHP functions and classes.