cancel
Showing results for 
Search instead for 
Did you mean: 

ADS Windows PHP Driver 11.1 and PHP Version 5.6 / work only with php 5.4

0 Kudos

Hello,

I'm a windows user and would to use PHP 5.6 with the PHP Driver 11.1.

The Problem is, the currently avaible php driver only work with PHP 5.4

http://devzone.advantagedatabase.com/dz/content.aspx?key=20&Release=19&Product=16&Platform=6

Warning: PHP Startup: advantage: Unable to initialize module

Module compiled with module API=20100525

PHP    compiled with module API=20131226

Maybe anyone can provide me a actually driver version for a windows php driver?

Thanks and best regards

Matthias

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Is there a way to contact the official sybase support to find a solution for my problem?

I need the actually Version for my daily development tasks - with the old php version I missing some important features like debugging...

thanks

Matthias

joachim_drr
Contributor
0 Kudos

IIRC source code is shipped along the driver, so you can recompile it by yourself.

0 Kudos

Hello Joachim,

do you know any good manual or toturial how I can compile it in Windows.

In Ubuntu I have compiled php 5.6 for a ads integration successfully.

(My step by step solution was described in

PHP5 mittels Source Code auf einem frischen Ubuntu installieren | Matthias Staud, IT-Blog

Maybe anyone have a tip for easy beginning to compile the ads driver in php for windows?

Thanks and best regards

Matthias Staud

PS:

- Can I use a ADS 12 Driver to connect to a ADS Server 11.1  ?

joachim_drr
Contributor
0 Kudos

a good introduction might be this one: PHP: internals:windows:stepbystepbuild

ADS clients can only connect to a server equal or newer than the client version. So ADS 12 PHP driver will not work against an ADS 11 server. Another option would be to use an ODBC PHP extension and the ADS 11.1 ODBC driver.

0 Kudos

Hello,

I tried to compile PHP with the Advantage Database extension with the following steps:

  • I follow this introduction on https://wiki.php.net/internals/windows/stepbystepbuild
  • I add the the PHP DEV-Tools to PATH Variable
  • I copy the directory
    c:\Program Files (x86)\Advantage 11.10\PHP\
    into
    c:\php-sdk\phpdev\vc11\x86\php-5.6.23-src\ext\advantage\
  • I start a simple Compile Process to test compiling from the source path with the following commands:
    • buildconf
    • configure --help show me the parameter which I need:
      --with-advantage          Advantage support
    • configure --disable-all --enable-cli --with-advantage
      gives the following output:
    • nmake

the Compiling failed with the following error:


have anyone an idea how I can resolve this problem?


    rc /fo Release_TS\php5ts.dll.res /d FILE_DESCRIPTION="\"PHP Script Inter

preter\""  /d FILE_NAME="\"php5ts.dll\"" /d PRODUCT_NAME="\"PHP Script Interpret

er\""  /IRelease_TS /d MC_INCLUDE="\"Release_TS\wsyslog.rc\""  win32\build\templ

ate.rc

Microsoft (R) Windows (R) Resource Compiler Version 6.2.9200.16384

Copyright (C) Microsoft Corporation.  All rights reserved.

    1 Datei(en) kopiert.

LINK : fatal error LNK1181: Eingabedatei "adsodbc.lib" kann nicht geöffnet werde

n.

NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio 11.0

\VC\BIN\cl.exe"": Rückgabe-Code "0x2"

Stop.

Thanks

Matthias

HakanHaslaman
Product and Topic Expert
Product and Topic Expert
0 Kudos

ADS 11.1 supports only PHP 5.3 and 5.4. PHP 5.5 and 5.6 is available only for ADS 12.