Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25866 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6306 invoked by uid 1010); 28 Sep 2006 17:16:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6288 invoked from network); 28 Sep 2006 17:16:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Sep 2006 17:16:01 -0000 Received: from [127.0.0.1] ([127.0.0.1:26336]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id E2/8E-21168-F430C154 for ; Thu, 28 Sep 2006 13:15:59 -0400 Authentication-Results: pb1.pair.com header.from=shire@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=shire@php.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain php.net from 204.15.20.10 cause and error) X-PHP-List-Original-Sender: shire@php.net X-Host-Fingerprint: 204.15.20.10 aggr1.fw.sctm.tfbnw.net Windows 2000 SP4, XP SP1 Received: from [204.15.20.10] ([204.15.20.10:7339] helo=kitt.TheFacebook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/4D-21168-BC10C154 for ; Thu, 28 Sep 2006 13:09:33 -0400 Received: from [10.169.125.138] ([208.54.14.97]) by kitt.TheFacebook.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Thu, 28 Sep 2006 10:09:25 -0700 Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-ID: <15130CCD-4176-41EF-B298-4C5D87FDF663@php.net> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: PHP internals Date: Thu, 28 Sep 2006 10:09:16 -0700 X-Mailer: Apple Mail (2.752.2) X-OriginalArrivalTime: 28 Sep 2006 17:09:29.0215 (UTC) FILETIME=[DBC3F8F0:01C6E320] Subject: Anyone know why this isn't safe? From: shire@php.net (Brian Shire) Ran into a problem with the following APC code change. I'm not seeing the error message on duplicate function definitions in different files when compiled/cached individually then both included in another file. ie: file a.php and file b.php both contain the function foo(). If I request and cache in APC file a.php and b.php individually but then include them both in c.php, I won't get a duplicate function error (as it's commented out in APC). Can someone help fill me in on why this isn't always valid to have this error here? Commit message was.... "This check isn't always valid here" http://cvs.php.net/viewvc.cgi/pecl/apc/apc_main.c?r1=3.65&r2=3.66 --- apc_main.c 2005/12/15 08:20:07 3.65 +++ apc_main.c 2005/12/15 17:22:04 3.66 @@ -28,7 +28,7 @@ */ -/* $Id: apc_main.c,v 3.65 2005/12/15 08:20:07 rasmus Exp $ */ +/* $Id: apc_main.c,v 3.66 2005/12/15 17:22:04 rasmus Exp $ */ #include "apc_php.h" #include "apc_main.h" @@ -79,7 +79,7 @@ NULL); if (status == FAILURE) { - zend_error(E_ERROR, "Cannot redeclare %s()", fn.name); + /* zend_error(E_ERROR, "Cannot redeclare %s()", fn.name); */ } return status; -shire