Changeset 26414


Ignore:
Timestamp:
06/21/10 13:52:30 (7 years ago)
Author:
piotras
Message:

Work around midgard_collector count being not implemented. Fix #1547

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ragnaroek/midgard/apis/php5/php_midgard_collector.c

    r24639 r26414  
    458458       
    459459        RETURN_BOOL(midgard_collector_execute(collector));             
     460}
     461
     462static PHP_METHOD(midgard_collector, count)
     463{
     464        RETVAL_FALSE;
     465        CHECK_MGD;
     466
     467        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") != SUCCESS)
     468                return;
     469
     470        php_error (E_WARNING, "midgard_collector count() not implemented");
     471
     472        RETURN_LONG (0);
    460473}
    461474
     
    480493                PHP_ME(midgard_collector,       set_lang,               NULL, ZEND_ACC_PUBLIC)
    481494                PHP_ME(midgard_collector,       execute,                NULL, ZEND_ACC_PUBLIC)
     495                PHP_ME(midgard_collector,       count,                  NULL, ZEND_ACC_PUBLIC)
    482496                {NULL, NULL, NULL}
    483497        };
Note: See TracChangeset for help on using the changeset viewer.