#22057 [NEW]: fgets function failure

From: Date: Tue, 04 Feb 2003 21:29:19 +0000
Subject: #22057 [NEW]: fgets function failure
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32116@lists.php.net to get a copy of this message
From: elazizli@celiknet.com Operating system: PHP version: 4.3.0 PHP Bug Type: Filesystem function related Bug description: fgets function failure The following code used to return correct headers for the requested page whit PHP 4.2.3.. $host, $port and $path variables are dynamically assigned by the script. Now it doesn't work without any configuration change other than PHP upgrade. It returns a three-character string instead of the requested information. Is this because of the change applied to fgets function in PHP 4.3? Same code stopped working when migrated to 4.3 from 4.2.3, no module or configuration change happened during upgrade, same settings were kept. $fp = fsockopen($host,$port); $request = "GET $path HTTP/1.1 Host: $host$port Accept: */* Accept-Charset: iso-8859-1 Accept-Encoding: identity "; fputs($fp,$request); $answer = fgets($fp,4096); -- Edit bug report at http://bugs.php.net/?id=22057&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22057&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22057&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22057&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22057&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22057&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22057&r=support Expected behavior: http://bugs.php.net/fix.php?id=22057&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22057&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22057&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22057&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22057&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22057&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22057&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22057&r=gnused

« previous php.bugs (#32116) next »