Ignore:
Timestamp:
2013-11-23T02:46:42+01:00 (20 months ago)
Author:
Xuefer
Message:

adds reflection info for APIs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_coverager/xc_coverager.c

    r1321 r1477  
    485485 * decode specified data which is saved by auto dumper to array
    486486 */
     487#ifdef ZEND_BEGIN_ARG_INFO_EX
     488ZEND_BEGIN_ARG_INFO_EX(arginfo_xcache_coverager_decode, 0, 0, 1)
     489    ZEND_ARG_INFO(0, data)
     490ZEND_END_ARG_INFO()
     491#else
     492static unsigned char arginfo_xcache_coverager_decode[] = { 1, BYREF_NONE };
     493#endif
     494
    487495PHP_FUNCTION(xcache_coverager_decode)
    488496{
     
    515523 * starts coverager data collecting
    516524 */
     525#ifdef ZEND_BEGIN_ARG_INFO_EX
     526ZEND_BEGIN_ARG_INFO_EX(arginfo_xcache_coverager_start, 0, 0, 0)
     527    ZEND_ARG_INFO(0, clean)
     528ZEND_END_ARG_INFO()
     529#else
     530static unsigned char arginfo_xcache_coverager_start[] = { 1, BYREF_NONE };
     531#endif
     532
    517533PHP_FUNCTION(xcache_coverager_start)
    518534{
     
    538554 * stop coverager data collecting
    539555 */
     556#ifdef ZEND_BEGIN_ARG_INFO_EX
     557ZEND_BEGIN_ARG_INFO_EX(arginfo_xcache_coverager_stop, 0, 0, 0)
     558    ZEND_ARG_INFO(0, clean)
     559ZEND_END_ARG_INFO()
     560#else
     561static unsigned char arginfo_xcache_coverager_stop[] = { 1, BYREF_NONE };
     562#endif
     563
    540564PHP_FUNCTION(xcache_coverager_stop)
    541565{
     
    555579 * get coverager data collected
    556580 */
     581#ifdef ZEND_BEGIN_ARG_INFO_EX
     582ZEND_BEGIN_ARG_INFO_EX(arginfo_xcache_coverager_get, 0, 0, 0)
     583    ZEND_ARG_INFO(0, clean)
     584ZEND_END_ARG_INFO()
     585#else
     586static unsigned char arginfo_xcache_coverager_get[] = { 1, BYREF_NONE };
     587#endif
    557588PHP_FUNCTION(xcache_coverager_get)
    558589{
     
    570601static zend_function_entry xcache_coverager_functions[] = /* {{{ */
    571602{
    572     PHP_FE(xcache_coverager_decode,  NULL)
    573     PHP_FE(xcache_coverager_start,   NULL)
    574     PHP_FE(xcache_coverager_stop,    NULL)
    575     PHP_FE(xcache_coverager_get,     NULL)
     603    PHP_FE(xcache_coverager_decode,  arginfo_xcache_coverager_decode)
     604    PHP_FE(xcache_coverager_start,   arginfo_xcache_coverager_start)
     605    PHP_FE(xcache_coverager_stop,    arginfo_xcache_coverager_stop)
     606    PHP_FE(xcache_coverager_get,     arginfo_xcache_coverager_get)
    576607    PHP_FE_END
    577608};
Note: See TracChangeset for help on using the changeset viewer.