Quantcast
Channel: SCN : Discussion List - Scripting Languages
Viewing all articles
Browse latest Browse all 325

PHP 5.2 and saprfc 1.4.1

$
0
0

Hey all,

 

Has anyone tried hooking-up PHP 5.2 and saprfc 1.4.1?

I tried but getting this error message when I restarted my apache 2.0.54 :

<i>"<b>PHP Startup: saprfc: Unable to initialize module

Module compiled with module API=20050922, debug=0, thread-safety=1

PHP compiled with module API=20060613, debug=0, thread-safety=1

These options need to match" </b></i>

 

I thought it's probably caused by the fact the the DLL, php_saprfc.dll binaries provided from the sourceforge download of SAPRFC was compiled with PHP 5.1.1, and not PHP 5.2.  Is that right?

 

So, I tried recompiling the binaries itself by following the instruction provided by the INSTALL instruction of saprfc. However the compilation fails with the following message:

<i><b>"Error     1     fatal error C1083: Cannot open include file: 'zend_config.h': No such file or directory     c:\php-5.2.0\Zend\zend.h     (line)53"</b></i>

 

Although looking at zend.h there's an if statement there that if it's WIN32 then look for zend_config.win32.h.  Check out the codes below:

#ifdef ZEND_WIN32
# include "zend_config.w32.h"
# define ZEND_PATHS_SEPARATOR          ';'
#elif defined(NETWARE)
# include <zend_config.h>
# define ZEND_PATHS_SEPARATOR          ';'
#elif defined(__riscos__)
# include <zend_config.h>
# define ZEND_PATHS_SEPARATOR          ';'
#else
# include <zend_config.h>
# define ZEND_PATHS_SEPARATOR          ':'
#endif

 

Anyone has any luck?  I've been wanted to check this out with my SAP 4.6B but hope you guys can help me out here.

 

Thanks!!

-Ed


Viewing all articles
Browse latest Browse all 325

Trending Articles