Re: Unable to find bug in these few lines of code. Please help.
| From: | Johannes Schlüter | Date: | Thu, 28 Aug 2008 15:05:52 +0000 |
| Subject: | Re: Unable to find bug in these few lines of code. Please help. | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-40121@lists.php.net to get a copy of this message | ||
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