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).

Comments

  1. Excellent and very useful component! Great work!

    ReplyDelete
  2. Thank you so much as this is one of the most useful components i found and used

    ReplyDelete
  3. 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;

    ReplyDelete
  4. Thank Serhiy for your components.

    ReplyDelete
  5. 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

    ReplyDelete
  6. 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}

    ReplyDelete
  7. Thank you Serhiy for your kindness in donating this fine work.
    Tom

    ReplyDelete
  8. I've successfully used php4Delphi in the past but I'm having trouble with it on the latest PHP version. I'd appreciate if you could verify whether it supports PHP 5.3.6 or not.

    More details are in this StackOverflow question.

    ReplyDelete

Post a Comment

Popular posts from this blog

Quricol - QR code generator library

EIDNative Library 2.0 released

Quricol 2.0 - QR Code generator