Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93659 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87846 invoked from network); 31 May 2016 19:59:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2016 19:59:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.182 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.161.182 mail-yw0-f182.google.com Received: from [209.85.161.182] ([209.85.161.182:33658] helo=mail-yw0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D1/70-19187-92DED475 for ; Tue, 31 May 2016 15:59:37 -0400 Received: by mail-yw0-f182.google.com with SMTP id h19so200228861ywc.0 for ; Tue, 31 May 2016 12:59:37 -0700 (PDT) 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; bh=13LrAXZ2wzAaBwZDcFmCKF0a1S/wWgE3Xg3kv5X9QNo=; b=OaaSvt3TgFRLGrwJPDBejzTCxl4cptP+E4HMoZO29ksQ8VtSfIHLqCpv8Q6lsHoBrs PEHlIvya9iuHXx4cxqPTua+u3cyqI4Dr2g+l9kF1J/lVCV4ub2FfFCjvZtM5TOjm6kZP yureK+S8N+PTsWOZSxKvLtz069Y4CfkWfMqYZCYxIRaEL0qpNbFyzDX9GmihS+dPmNl3 6VOBdbNj2rFKV3eFxpfo0M8NCp9aL+rs9vKxM8b4FzibYblXYzPr0/7jhZBfI5JmYlkb nXd37fM6aygWCcy/jkdmp2CvFrOlWmciUSni2aZe25NQkfSClrGAglocfX/rst5Jvhnd 5Y+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=13LrAXZ2wzAaBwZDcFmCKF0a1S/wWgE3Xg3kv5X9QNo=; b=mEjuXghsQfwGc0zHQ5m0MuTQalL14uWJOl1WbYmT5EJnZ658JZcAZDGJsY9CX5uWBT 37Bedvd/Iga1Q/7HxveG2fteUu6XZ6GpvvVdRIbSzM9P0Yca/NlgF70Ak+DV8sYrHB7R Bg2wNhuHZ0xgUOGkY1A9dp7AYBrKnA3YpT7DpRMOJi5Y5njCJsDVQrA5iGPb5x6IB7ME ADC36ra8ybgYlQS2if6cyfrV7pfuLS3xOMhjnKa99xm3Q73T8O8qmbvmcx4fVJkgFQhx 1uPsO6X8XDaD67rpHo9X68t/rlt1lpqihTzf+QTR+oNZHeUstz4HAaRKrmot1uoA8YcM 0Huw== X-Gm-Message-State: ALyK8tKgiqQnng62rmv8M5fL3xR85SXAJboa2MCfzhObCR4E+dMX3kYsWjRdYt9MOFZ5EKY1eHhq4aqZbWab6Q== MIME-Version: 1.0 X-Received: by 10.13.255.194 with SMTP id p185mr20544883ywf.10.1464724774648; Tue, 31 May 2016 12:59:34 -0700 (PDT) Received: by 10.13.239.3 with HTTP; Tue, 31 May 2016 12:59:34 -0700 (PDT) In-Reply-To: <40598408-3d6a-005b-e73d-ac464b643112@mabe.berlin> References: <40598408-3d6a-005b-e73d-ac464b643112@mabe.berlin> Date: Tue, 31 May 2016 21:59:34 +0200 Message-ID: To: Marc Bennewitz Cc: PHP Internals Content-Type: multipart/alternative; boundary=94eb2c088930e3040d053428cfe0 Subject: Re: [PHP-DEV] Bug or expected behavior? From: nikita.ppv@gmail.com (Nikita Popov) --94eb2c088930e3040d053428cfe0 Content-Type: text/plain; charset=UTF-8 On Tue, May 31, 2016 at 9:54 PM, Marc Bennewitz wrote: > Hi, > > today I was running into an issue with a function lookup over namespace. > > https://3v4l.org/qF7cK fails > https://3v4l.org/evVic works > > For me it looks like the function lookup for "is_null" in this case gets > cached on first use > and on second call no check will be done if this function exists in the > current namespace > before looking in the root namespace. > > Because PHP is a dynamic language this behavior looks wrong (unexpected) > to me > and also HHVM does handle it as I would expect it. > > Thanks, > Marc > This is a known issue: https://bugs.php.net/bug.php?id=64346 Regards, Nikita --94eb2c088930e3040d053428cfe0--