Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76227 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64097 invoked from network); 28 Jul 2014 11:21:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jul 2014 11:21:14 -0000 X-Host-Fingerprint: 178.235.226.57 178235226057.olsztyn.vectranet.pl Received: from [178.235.226.57] ([178.235.226.57:24205] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D4/28-26001-A2236D35 for ; Mon, 28 Jul 2014 07:21:14 -0400 Message-ID: To: internals@lists.php.net Date: Mon, 28 Jul 2014 13:21:23 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 140727-2, 2014-07-27), Outbound message X-Antivirus-Status: Clean X-Posted-By: 178.235.226.57 Subject: Is fgetss() useless? From: msobaczewski@gmail.com (Maciej Sobaczewski) Hello guys, so... fgetss(). We have such a beautiful function in PHP. As it's described in the manual: "Get line from file pointer and strip HTML tags". I'm wondering if it has any differences/advantages over using just strip_tags(fgets($stream)). I'm going to write an RFC proposing deprecation and then removal of it, but first I want to ensure that this function is as useless (IMHO) as I think. Best regards, Maciej.