From: [EMAIL PROTECTED] Operating system: Windows 2000 AS PHP version: 4.1.1 PHP Bug Type: Sockets related Bug description: fputs doesn't send all data
A few months ago, I was doing transfers using socket functions, it all worked fine(php 4.0.4 or php 4.0.5). I code something like this: $p = fsockopen( $url, $port ); if (!$p) die('Cannot connect'); $l = fputs( $p, $data ); fclose( $p ); With this I sent up to 5MBs to a server. Now, the web server's administrator has upgrade to 4.1.1. The php.ini file has: post_max_size=10M upload_max_filesize=5M The fact is that it works but doesn't sending large streams. I make a test with a string of 100Kb of text, and the server received only 8Kb(and sometimes less). I inserted a dead loop before fclose and still the server got the client disconnection before de php_max_execution_time elapsed. The same thing happens in php 4.0.6. Manu. -- Edit bug report at http://bugs.php.net/?id=16114&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16114&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16114&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16114&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16114&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16114&r=support Expected behavior: http://bugs.php.net/fix.php?id=16114&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16114&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16114&r=submittedtwice