$_POST problem with phpLsapi

Discussion in 'Bug Reports' started by IO, Oct 29, 2005.

  1. IO

    IO New Member

    Hi,

    I have big problems with phpLsapi when the post data is big (between 4 and 16 Ko) : It randomly truncate the end of the post vars.

    I switch to phpFcgi the time to find a solution.
  2. mistwang

    mistwang LiteSpeed Staff

    That's a serious issue, can it be reliably reproduced? What is the PHP version? Your OS?

    It will be very helpful if you can provide us a sample script to reproduce the bug.

    Thanks!
    George
  3. IO

    IO New Member

    System : RHEL4 Kernel 2.6.9-11.ELsmp
    lsws 2.1.4, php 4.4.0 with litespeed patch 1.6

    In a form with 7 inputs, and a textarea in the middle, lsphp truncate the textarea vars (often when there is more text) in the middle and drop the next inputs vars.

    I will see for a script.
  4. IO

    IO New Member

    If you can use phpLsapi and lsws 2.1.4 on this board, you can check for this bug by previewing/posting a medium/big message.
  5. mistwang

    mistwang LiteSpeed Staff

  6. xing

    xing LiteSpeed Staff

    IO, if you can post a reproducible script, that would do wonders.

    I will keep a watch on this to see if this happens to me, though I do not have reports of such cases, on a site with php 5.0.5 + lsws 2.1.4 and lsapi and lots and lots of POST operations.
  7. IO

    IO New Member

    It is OK with lsws 2.1.5 and php 4.4.1... thank you ;)
  8. vdl

    vdl New Member

    i got the same problem with lsws 2.1.9 and php 4.4.1.

    os freebsd

    data sent to xmlrpc is truncated at almost random places. mostly at 8192. only sometimes php gets past 16kb.
  9. mistwang

    mistwang LiteSpeed Staff

    Can you please create a testing script for us to reproduce the bug in our lab.

    Thanks! :)
  10. vdl

    vdl New Member

    test script, poster source, win32 and freebsd executables in there http://3priedez.net/files/poster.zip

    put test.php somewhere on server
    compile yourself or use precompiled binaries
    and use it like

    poster.exe http://3priedez.net/test.php

    sometimes it returns right lenght sometimes it crashes php or smth - 503 Service Unavailable

    also strange behavior when posting to url that doesnt exist

    when posting to http://3priedez.net/log/test
    folder log exists but file test doesnt
    when posting to nonexisting folder it gives normal 404

    update:
    tested on Apache/1.3.34 (Win32) PHP/4.4.1
    works as should be every time - test script returns correct lenght
  11. mistwang

    mistwang LiteSpeed Staff

  12. vdl

    vdl New Member

    tnx. fixed with this update

Share This Page