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


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to