PHP4Delphi comeback: version 7.2 released

Today I made a new release of PHP4Delphi. Download version 7.2:
http://sourceforge.net/projects/psvlib/files/PHP4Delphi/PHP4Delphi%207.2/php4delphi.7.2.zip/download

 Some time ago the development of PHP4Delphi was frozen, but meanwhile I received a lot of questions related to compatibility with latest versions of Delphi and PHP. Finally I decided to make a new release with support of Delphi starting from Delphi 5 till Delphi 2010 and PHP 5.3.0 (both releases for Visual Studio 9 and Visual Studio 6).

Advertisements

8 thoughts on “PHP4Delphi comeback: version 7.2 released

  1. Excelent work, congratulations

    I having problem with this peace of code.
    If I call one time, works well.
    Ex.:
    $x = myfunction(1);
    If I call two times on diferent var, works well.
    Ex.:
    $x = myfunction(1);
    $y = myfunction(2);
    But if i call two times on same var, nothing happens, exit with no errors.
    Ex.:
    $x = myfunction(1);
    $x = myfunction(2);

    Could you help me?

    if _array_init(pval, nil, 0) = FAILURE then
    begin
    php_error_docref(nil , TSRMLS_DC, E_ERROR, 'Unable to initialize array');
    ZVAL_FALSE(pval);
    Exit;
    end;
    for i := VarArrayLowBound(lRes,1) to VarArrayHighBound(lRes,1)-1 do
    begin
    pvalNew := MAKE_STD_ZVAL;
    _object_init(pvalNew, TSRMLS_DC );
    lProp[0] := 'assql';
    lProp[1] := 'value';
    lVal[0] := PAnsiChar ( ansistring( lRes[i,0] ));
    lVal[1] := PAnsiChar ( ansistring( lRes[i,1] ));
    add_property_string_ex(
    pvalNew,
    lProp[0],
    StrLen(lProp[0]) + 1, lVal[0], 1, TSRMLS_DC);
    add_property_string_ex(
    pvalNew,
    lProp[1],
    StrLen(lProp[1]) + 1, lVal[1], 1, TSRMLS_DC);
    add_next_index_zval(pval, pvalNew);
    end;

    Like

  2. Thanks Serhiy,
    I'm sad, i've compiled the skeleton demo for PHP 5.3.2 with DEFINE PHP5.30, on IIS6, W2003Srv.

    But without any trouble, the message FastCGI error appears :
    FastCGI Error
    The FastCGI Handler was unable to process the request.

    Error Details:

    * The FastCGI process exited unexpectedly
    * Error Number: -2147467259 (0x80004005).
    * Error Description: Erreur non spécifiée

    HTTP Error 500 – Server Error.
    Internet Information Services (IIS)

    I can't do anything to understand…
    Can you tell me the path ? Thanks

    Like

  3. Hello,

    Check your PHP.INI file how DEFINE COMPILER (VC9 or VC6) directive is defined. You must select one of the C++ compilers. Look at the version of PHP you have installed.
    When you are building PHP extensions, you have to define the right compiler, otherwise you would have incompatibility problems.

    {$IFDEF PHP_COMPILER_ID}
    {$DEFINE COMPILER_VC6}
    {.$DEFINE COMPILER_VC9}
    {$ENDIF}

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s