Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:129706 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id F3FBD1A00BC for ; Sat, 27 Dec 2025 23:44:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1766879063; bh=c9PrK+CrhHaxyL/canlCTZ4Pq9Aa/Z6g7NC+xNndkOg=; h=Date:From:Subject:To:References:In-Reply-To:From; b=F1obwTdp+ChN9Uyy4yH06QpWiz7nzqiZ2KpanVrMVhG4SGg2JIDC5GeKYd2/nzozZ aYfcVh+oeX7HIYN08fJDYZigRCtyrezZIfRSW2lKOQxldlp+vTWkj0XDy7iB1yYvoq MglAqSDr/8Zd9igG8pmLcbpBOEcmaKiYOO2hfGuCJEmc8OFRECt/27zLJw/A32wRT/ +hoX4g3Sr0tAgqBVNcrlwBIKVRF+qxxsqw2D9aDKyHNrZGu9jrRk2VBdz/g9isHaZq ELflu0HwmW2G7Es0C5eO1T1jzPc7Mq8ywi79KGPFhPG4Jk+lnJAz4XPVAR6GQVAm6O S6kj1Nl7kLA9Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4526D1801D5 for ; Sat, 27 Dec 2025 23:44:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DMARC_MISSING, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from gavin.smtp.mailx.hosts.net.nz (gavin.smtp.mailx.hosts.net.nz [43.245.52.167]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 27 Dec 2025 23:44:11 +0000 (UTC) Received: from 122-57-27-239-adsl.sparkbb.co.nz ([122.57.27.239] helo=[192.168.1.67]) by gavin.smtp.mailx.hosts.net.nz with esmtpsa authed as varteg.nz (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim 4.96) (envelope-from ) id 1vZdx5-002xrz-1c for internals@lists.php.net; Sun, 28 Dec 2025 12:44:03 +1300 Message-ID: <2b3f0b69-a36d-4f85-9186-5660441e8a40@varteg.nz> Date: Sun, 28 Dec 2025 12:43:56 +1300 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] Add form feed as a whitespace character in trim, ltrim and rtrim To: internals@lists.php.net References: <701b7ec.277f.19b5f634c4d.Coremail.lamentxu@163.com> <2e22df2a-bf06-40c2-8097-8f94b82d2e62@varteg.nz> Content-Language: en-GB In-Reply-To: <2e22df2a-bf06-40c2-8097-8f94b82d2e62@varteg.nz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Hosts-DKIM-Check: none From: Weedpacket@varteg.nz (Morgan) On 2025-12-28 11:53, Morgan wrote: > > Also in PHP, where ctype_space() recognises \f as whitespace as well as > all of those that trim() removes. (As the name implies, of course, this > is because \f is recognised as whitespace in C.) Uh, except of course for NUL, which trim() removes.