Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30398 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1668 invoked by uid 1010); 2 Jul 2007 05:42:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 1653 invoked from network); 2 Jul 2007 05:42:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2007 05:42:19 -0000 Authentication-Results: pb1.pair.com header.from=tokul@users.sourceforge.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=tokul@users.sourceforge.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain users.sourceforge.net from 213.197.162.99 cause and error) X-PHP-List-Original-Sender: tokul@users.sourceforge.net X-Host-Fingerprint: 213.197.162.99 avilys.eik.lt Linux 2.6 Received: from [213.197.162.99] ([213.197.162.99:45773] helo=avilys.eik.lt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E5/11-18984-73098864 for ; Mon, 02 Jul 2007 01:42:18 -0400 Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id 9B6EC2488E2 for ; Mon, 2 Jul 2007 08:40:22 +0300 (EEST) Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id 75D662488E1 for ; Mon, 2 Jul 2007 08:40:22 +0300 (EEST) Received: from 78.61.224.253 (NaSMail authenticated user tomas@topolis.lt) by avilys.eik.lt with HTTP; Mon, 2 Jul 2007 08:40:22 +0300 (EEST) Message-ID: <44455.78.61.224.253.1183354822.squirrel@avilys.eik.lt> Date: Mon, 2 Jul 2007 08:40:22 +0300 (EEST) To: internals@lists.php.net User-Agent: NaSMail/1.0 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: ClamAV using ClamSMTP Subject: Profiling include vs include_once From: tokul@users.sourceforge.net ("Tomas Kuliavas") Hi, I've tried to profile scripts with Zend Profiler (Zend Studio 5.5 Linux trial on local host + Zend Platform 3.0.2 Linux trial on remote vmware host) and noticed that script with include() call has higher load time. I have't found explanation of performance differences between include and include_once in PHP manual. Maybe somebody could explain it. sample files --- test.php ---