phalcon/zephir — pull request #39 by Cinderella-Man (2013-11-23 18:17:29+00:00)
Title: fwrite fix

Hi,

As far as I understand the code, fwrite function should be used with TSRMLS_CC as it's defined with TSRMLS_DC:

zephir/ext/kernel/file.c:void zephir_fwrite(zval *return_value, zval *stream_zval, zval *data TSRMLS_DC)

This PR fixes the generation of C code but it causes segmentation fault? Any help? I believe that's one of issues in Travis' build for Phalcon 2.0:

/home/travis/build/phalcon/cphalcon/ext/phalcon/logger/adapter/file.c:202:2: error: too few arguments to function ‘zephir_fwrite’
./kernel/file.h:38:6: note: declared here

Thanks in advance,

Kamil