Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81446 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3817 invoked from network); 30 Jan 2015 19:09:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2015 19:09:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.178 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.212.178 mail-wi0-f178.google.com Received: from [209.85.212.178] ([209.85.212.178:63862] helo=mail-wi0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/C0-34022-DE6DBC45 for ; Fri, 30 Jan 2015 14:09:34 -0500 Received: by mail-wi0-f178.google.com with SMTP id bs8so4518782wib.5 for ; Fri, 30 Jan 2015 11:09:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=hmjAE3rhLFiVtrRfFvtCHEzK/OLXHM/agn08R3u8HXE=; b=jrftP8JtUmEtOBtaLOpYLXin4flgJI5KeKhH02v2wq7mhlvnWU0cyPblgCw6oVB4pS uh0cbv1PDzhDLQvHOeulCxtNURwOAtAwX7kqrZvhFh5dAs5ZpRCrdQgy3llcuiTsqEcD 9Cd+08Fr+U9bODY8FH/DtvaDfQQ6JEwFMg9bD7vYurdOTLCC+XsMaFoUcDlWeH0tPlri JYit61sl0WdmpQgVtL4M90RaL/ywABO0Qd+dKO7F1WdBTGrWY31yAud+uiQSjdIKWCZ/ zyWeProWWUBN6J9O62r9hr3Y1MdIOIdItKIOs5Hyt5Y5JfX5UBEfk5UNghkSDNqsY6Cs rkLA== MIME-Version: 1.0 X-Received: by 10.194.239.72 with SMTP id vq8mr4823356wjc.110.1422644970639; Fri, 30 Jan 2015 11:09:30 -0800 (PST) Received: by 10.216.50.139 with HTTP; Fri, 30 Jan 2015 11:09:30 -0800 (PST) In-Reply-To: References: <1C66727D-D166-4831-87E4-35F11F398FFE@thesba.com> Date: Fri, 30 Jan 2015 19:09:30 +0000 Message-ID: To: Patrick Schaaf Cc: Robert Williams , internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] How does the PHP Ghost one-liner work? From: leight@gmail.com (Leigh) On 30 January 2015 at 19:05, Patrick Schaaf wrote: > Am 30.01.2015 19:43 schrieb "Robert Williams" : >> >> % php -r '$e=3D"0";for($i=3D0;$i<2500;$i++){$e=3D"0$e";} gethostbyname($= e);=E2=80=99 > > What a funny way to say gethostbyname(str_repeat("0", 2501)); > >> does this indicate any problems with PHP? > > No. > > best regards > Patrick Well, I guess in theory we should be limiting the size of input to gethostbyname to 255 characters. http://tools.ietf.org/html/rfc1035#section-2.3.4