> > > The sourcefile (c) says a bool should be returned and the docs (x) say its > > an int. If anyone would like to have a look ... > > > > But don't trust too must on the protos that are in the sources because many > > are simply wrong! > > What is the `common` way of doing this? Looking trough the source files and then look which Zend macros are used to return data? Would be nice to know how the documention from scratch is done. > > ali
Yep! Thats the way I use. Just look at the Zend macros, like: zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|zsb",.......) its all explained at: php-src/README.PARAMETER_PARSING_API Nuno