View Full Version : $_POST problem with phpLsapi
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.
mistwang
10-29-2005, 07:14 PM
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
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.
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.
mistwang
10-31-2005, 01:05 PM
I cannot repoduce this bug in our lab, please try 2.1.5 with PHP 4.4.1 see if the problem is still there. http://www.litespeedtech.com/packages/2.1/lsws-2.1.5-std-i386-linux.tar.gz
Thanks!
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.
It is OK with lsws 2.1.5 and php 4.4.1... thank you ;)
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.
mistwang
01-02-2006, 06:56 PM
Can you please create a testing script for us to reproduce the bug in our lab.
Thanks! :-)
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
<html>
<head><title> 302 Found
</title></head>
<body><h1> 302 Found
</h1>
The docuemnt has been temporarily moved to here (%s).<hr />
Powered By LiteSpeed Web Server ('http://www.litespeedtech.com')
<font face="Verdana, Arial, Helvetica" size=-1>Lite Speed Technologies is not responsible for administration and contents of thi
s web site!</font></body></html>
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
mistwang
01-03-2006, 05:19 PM
Thank you for the testing tool and script.
The bug is fixed, please download http://www.litespeedtech.com/lsapi/litespeed-1.7.tgz
and rebuild your own lsphp binary.
tnx. fixed with this update