PHP 4.0 Bug #6651: fgets remove text between < & > even non HTML

From: Date: Sun, 10 Sep 2000 20:31:00 +0000
Subject: PHP 4.0 Bug #6651: fgets remove text between < & > even non HTML
Groups: php.dev 
Request: Send a blank email to php-dev+get-32834@lists.php.net to get a copy of this message
From: llevier@argosnet.com Operating system: Linux RH 6.2 PHP version: 4.0.2 PHP Bug Type: *General Issues Bug description: fgets remove text between &lt; & &gt; even non HTML Whatever you do (file, fgets, fgetss, ...) reading a line looking like a tag (eg VirtualHost, Directory, ... in Apache) <VirtualHost name> will make fgets mask the "tag". So all between < & > will be lost... Looks more like a bug than a feature... To reproduce ? $fd=fopen("Apache httpd.conf file","r"); while (!feof($fd)) { $line=fgets($fd,1000); print("Line=\"$line\"<BR>\n"); } fclose($fd); print("Where are the <text> fields ? :)\n");

« previous php.dev (#32834) next »