[PHP-DEV] Unable to find bug in these few lines of code. Please help.

2008-08-28 Thread KishoreKumar Bairi
Hey guys.. This is the code of a string test_func(resource $handle) which is supposed to return the size of resource as a string. PHP_FUNCTION(test_func) *{* zval *arg1; php_stream_statbuf stat_ssb; *char* *input_stream_len_str; php_stream *input_stream;

Re: [PHP-DEV] Unable to find bug in these few lines of code. Please help.

2008-08-28 Thread Johannes Schlüter
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