Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74924 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94058 invoked from network); 16 Jun 2014 15:20:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jun 2014 15:20:06 -0000 Authentication-Results: pb1.pair.com header.from=devosc@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=devosc@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.43 as permitted sender) X-PHP-List-Original-Sender: devosc@gmail.com X-Host-Fingerprint: 209.85.219.43 mail-oa0-f43.google.com Received: from [209.85.219.43] ([209.85.219.43:42609] helo=mail-oa0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 35/2C-12705-52B0F935 for ; Mon, 16 Jun 2014 11:20:05 -0400 Received: by mail-oa0-f43.google.com with SMTP id o6so6059177oag.2 for ; Mon, 16 Jun 2014 08:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/UYZJttyfF/bTC2wPxLDMsOE+eMsH+rF+Tn+u/r1VQw=; b=Kswbg7TrtRXMrSeveqFZ01iHKcRVEUUCfPVAFHEIhRA5FPw6sSzEaFzQkNjIKwyJ5H /0gG7luPmRorphsH9PPj0cbD/8X4UlyKnTdMxfNmkSwVKdZIHVfSYDmtjFoPs+8y2zSr +P4/udxjzNeYZHZWW1pP6pFk0Jpa4t2S1f8aav1f29MvCrVeHGMyymTVPuaqvqHMgFd1 /FbH97AQcCrfHbhZDqJQlYBjEfeC2elUNF+EflisgEHB6tY9g5QJTbTxcNCSkQeULNy2 XKRn47NIxoXOdvoIXNayED1ZQHY4eOxHe7i6yOYZIMVrqIbeXppwVU0l5yykyTKxS+Uj nyVw== MIME-Version: 1.0 X-Received: by 10.60.179.138 with SMTP id dg10mr20638579oec.13.1402932003113; Mon, 16 Jun 2014 08:20:03 -0700 (PDT) Received: by 10.202.196.8 with HTTP; Mon, 16 Jun 2014 08:20:03 -0700 (PDT) Date: Mon, 16 Jun 2014 10:20:03 -0500 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: class names with and without opcache From: devosc@gmail.com (Greg) On a default Ubuntu setup when writing 5.5 code I noticed an improvement with the resolution of class names such that an alias could be used even though a similar name already exists in the same namespace (B below). Namespace != Directory ? namespace B; use A\Test; But when 5.5 opcache is disabled, the code completely falls apart, stating that a class already exists with the same name even though that class is not actually used or referred to by the current script/file/class. There is a bug report https://bugs.php.net/bug.php?id=66773, but from the number of votes, I'm confused as to who and what is wrong - the conflicts occur when autoloading the two independent classes. The problem as I see it, even if I correct the aliases currently being used, if later on a class is created with the same name as an existing alias - then this new class will break code it has nothing to do with? I'm at the point of believing that all classes used within a script file should have a corresponding use statement to remove any ambiguity? Is this a bug? How severe is this? If I'm missing the point, please let me know.