LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > $_POST problem with phpLsapi

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2005, 03:07 AM
IO IO is offline
Member
 
Join Date: Sep 2005
Posts: 26
Default $_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.
Reply With Quote
  #2  
Old 10-29-2005, 06:14 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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
Reply With Quote
  #3  
Old 10-29-2005, 08:24 PM
IO IO is offline
Member
 
Join Date: Sep 2005
Posts: 26
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.
Reply With Quote
  #4  
Old 10-30-2005, 02:10 PM
IO IO is offline
Member
 
Join Date: Sep 2005
Posts: 26
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.
Reply With Quote
  #5  
Old 10-31-2005, 12:05 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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/package...6-linux.tar.gz

Thanks!
Reply With Quote
  #6  
Old 10-31-2005, 05:51 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
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.
Reply With Quote
  #7  
Old 11-03-2005, 05:22 PM
IO IO is offline
Member
 
Join Date: Sep 2005
Posts: 26
It is OK with lsws 2.1.5 and php 4.4.1... thank you
Reply With Quote
  #8  
Old 01-02-2006, 12:20 PM
vdl vdl is offline
New Member
 
Join Date: Jan 2006
Posts: 3
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.
Reply With Quote
  #9  
Old 01-02-2006, 05:56 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Can you please create a testing script for us to reproduce the bug in our lab.

Thanks! :-)
Reply With Quote
  #10  
Old 01-03-2006, 12:56 AM
vdl vdl is offline
New Member
 
Join Date: Jan 2006
Posts: 3
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

Quote:
<html>
<head><title> 302 Found
</title></head>
<body><h1> 302 Found
</h1>
The docuemnt has been temporarily moved to here.<hr />
Powered By LiteSpeed Web Server

<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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Timeout Problem bkonia Install/Configuration 2 12-20-2008 12:00 PM
problem with php4 as fcgi both remote/local ts77 Install/Configuration 6 10-02-2006 04:46 PM
Problem running Gallery under LiteSpeed kchrist PHP 4 10-01-2006 02:53 PM
.htaccess problem xinn Install/Configuration 1 12-07-2005 12:01 PM
problem with XML Pawelek Bug Reports 1 12-11-2004 07:46 PM


All times are GMT -7. The time now is 02:53 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.