Many functions in the PHP API that used to take/return a char* (and length) now expect/return zend_string instead.
It'll become very messy very fast to work around this inline.
I think a phongo_char macro defining zend_string/char might work, with couple of helpers like phongo_char_free() and phongo_str() macros.