#17 php 4.3.11 mssql_nextresult segfaults freetds 0.63

closed-fixed
nobody
dblib (11)
5
2005-08-14
2005-05-26
Edward Rudd
No

I'm running freetds 0.63 on x86_64 (FC3) with php
4.3.11. When running the mssql_nextresult function in
PH, php/apache segfaults in the dblastrow function of
dblib. due to a null dbproc->tds_socket->resinfo.

Here is the reference to the PHP bug with a backtrace

http://bugs.php.net/bug.php?id=33153

Discussion

  • Logged In: YES
    user_id=75766

    Fixed in CVS (0.63). 0.64 have a different implementation.

     
    • status: open --> closed-fixed
     
  • Edward Rudd
    Edward Rudd
    2005-05-31

    Logged In: YES
    user_id=8488

    I applied the patch to dblib.c (the one liner change) and
    php & apache no longer segfault, however they no longer
    advance to the next result set. Do the other changes patched
    in that commit set relate to this issue as well?

     
  • Edward Rudd
    Edward Rudd
    2005-05-31

    • status: closed-fixed --> open-fixed
     
  • Edward Rudd
    Edward Rudd
    2005-06-14

    Logged In: YES
    user_id=8488

    I just pulled down the latest full 0_63 branch and
    recompiled. for multi-result sets I now receive only the
    first result set in PHP..

     
  • Logged In: YES
    user_id=75766

    I double checked this bug. The reason you do not get another
    result set is due to PHP. See
    http://bugs.php.net/bug.php?id=33153

    bye
    freddy77

     
    • status: open-fixed --> closed-fixed
     
  • Edward Rudd
    Edward Rudd
    2005-08-14

    Logged In: YES
    user_id=8488

    Any ETA on a 0.63.1 official release with this patch included?

    I am working on fixing the PHP bug per you latest comment to
    that bug