PHP_METHOD(slightphp, setDebug) { int _debug; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &_debug) == FAILURE) { RETURN_FALSE; } zend_update_static_property_long(slightphp_ce_ptr, "_debug", sizeof("_debug")-1, _debug TSRMLS_CC); RETURN_TRUE; }
/** * Resets the internal route id generator */ PHP_METHOD(Phalcon_Mvc_Router_Route, reset){ zend_update_static_property_long(phalcon_mvc_router_route_ce, SL("_uniqueId"), 0 TSRMLS_CC); }