Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40121 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22874 invoked from network); 28 Aug 2008 15:06:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Aug 2008 15:06:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:59759] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DD/B5-28891-BDEB6B84 for ; Thu, 28 Aug 2008 11:06:07 -0400 Received: (qmail 8852 invoked by uid 507); 28 Aug 2008 15:05:59 -0000 Received: from ppp-82-135-80-187.dynamic.mnet-online.de (HELO ?192.168.1.101?) (postmaster%schlueters.de@82.135.80.187) by mail4.netbeat.de with ESMTPA; 28 Aug 2008 15:05:59 -0000 To: KishoreKumar Bairi Cc: PHP Internals In-Reply-To: References: Content-Type: text/plain Date: Thu, 28 Aug 2008 17:05:52 +0200 Message-ID: <1219935952.4448.41.camel@goldfinger.johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Unable to find bug in these few lines of code. Please help. From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Thu, 2008-08-28 at 16:09 +0530, KishoreKumar Bairi wrote: > PHP_FUNCTION(test_func) > > *{* These additional asterisks (*) make the code hard to read. > but when I hit http://localhost/test.php Instead of showing the string, my > browser is offering *test.php* for download. If I click save, its saving a > zero byte test.php to my disk. Take a look at your server's error log, it will tell you that the apache child segfaulted. Use a debugger on the apache process or avoid complexity and use PHP CLI with a debugger to find the cause. johannes