Test\Router is the standard framework router. Routing is the + *
Stub\Router is the standard framework router. Routing is the * process of taking a URI endpoint (that part of the URI which comes after the base URL) and * decomposing it into parameters to determine which module, controller, and * action of that controller should receive the request
* *
*
- * $router = new Test\Router();
+ * $router = new Stub\Router();
*
* $router->add(
* "/documentation/{chapter}/{name}.{type:[a-z]+}",
@@ -48,60 +48,60 @@
*
*
*/
-ZEPHIR_INIT_CLASS(Test_Router) {
+ZEPHIR_INIT_CLASS(Stub_Router) {
- ZEPHIR_REGISTER_CLASS(Test, Router, test, router, test_router_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS(Stub, Router, stub, router, stub_router_method_entry, 0);
- zend_declare_property_null(test_router_ce, SL("_dependencyInjector"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_dependencyInjector"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_uriSource"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_uriSource"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_namespace"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_namespace"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_module"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_module"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_controller"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_controller"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_action"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_action"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_params"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_params"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_routes"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_routes"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_matchedRoute"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_matchedRoute"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_matches"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_matches"), ZEND_ACC_PROTECTED);
- zend_declare_property_bool(test_router_ce, SL("_wasMatched"), 0, ZEND_ACC_PROTECTED);
+ zend_declare_property_bool(stub_router_ce, SL("_wasMatched"), 0, ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_defaultNamespace"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_defaultNamespace"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_defaultModule"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_defaultModule"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_defaultController"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_defaultController"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_defaultAction"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_defaultAction"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_defaultParams"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_defaultParams"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_removeExtraSlashes"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_removeExtraSlashes"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_ce, SL("_notFoundPaths"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_ce, SL("_notFoundPaths"), ZEND_ACC_PROTECTED);
- zephir_declare_class_constant_long(test_router_ce, SL("URI_SOURCE_GET_URL"), 0);
+ zephir_declare_class_constant_long(stub_router_ce, SL("URI_SOURCE_GET_URL"), 0);
- zephir_declare_class_constant_long(test_router_ce, SL("URI_SOURCE_SERVER_REQUEST_URI"), 1);
+ zephir_declare_class_constant_long(stub_router_ce, SL("URI_SOURCE_SERVER_REQUEST_URI"), 1);
return SUCCESS;
}
/**
- * Test\Router constructor
+ * Stub\Router constructor
*
* @param boolean defaultRoutes
*/
-PHP_METHOD(Test_Router, __construct) {
+PHP_METHOD(Stub_Router, __construct) {
zval _1$$3, _4$$3;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -133,7 +133,7 @@ PHP_METHOD(Test_Router, __construct) {
array_init(&routes);
if (defaultRoutes == 1) {
ZEPHIR_INIT_VAR(&_0$$3);
- object_init_ex(&_0$$3, test_router_route_ce);
+ object_init_ex(&_0$$3, stub_router_route_ce);
ZEPHIR_INIT_VAR(&_1$$3);
zephir_create_array(&_1$$3, 1, 0);
add_assoc_long_ex(&_1$$3, SL("controller"), 1);
@@ -141,9 +141,9 @@ PHP_METHOD(Test_Router, __construct) {
ZVAL_STRING(&_2$$3, "#^/([a-zA-Z0-9\\_\\-]+)[/]{0,1}$#");
ZEPHIR_CALL_METHOD(NULL, &_0$$3, "__construct", &_3, 83, &_2$$3, &_1$$3);
zephir_check_call_status();
- zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "test/router.zep", 89);
+ zephir_array_append(&routes, &_0$$3, PH_SEPARATE, "stub/router.zep", 89);
ZEPHIR_INIT_NVAR(&_2$$3);
- object_init_ex(&_2$$3, test_router_route_ce);
+ object_init_ex(&_2$$3, stub_router_route_ce);
ZEPHIR_INIT_VAR(&_4$$3);
zephir_create_array(&_4$$3, 3, 0);
add_assoc_long_ex(&_4$$3, SL("controller"), 1);
@@ -153,7 +153,7 @@ PHP_METHOD(Test_Router, __construct) {
ZVAL_STRING(&_5$$3, "#^/([a-zA-Z0-9\\_\\-]+)/([a-zA-Z0-9\\.\\_]+)(/.*)*$#");
ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", &_3, 83, &_5$$3, &_4$$3);
zephir_check_call_status();
- zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "test/router.zep", 95);
+ zephir_array_append(&routes, &_2$$3, PH_SEPARATE, "stub/router.zep", 95);
}
ZEPHIR_INIT_VAR(&_6);
array_init(&_6);
@@ -166,9 +166,9 @@ PHP_METHOD(Test_Router, __construct) {
/**
* Sets the dependency injector
*
- * @param Test\DiInterface dependencyInjector
+ * @param Stub\DiInterface dependencyInjector
*/
-PHP_METHOD(Test_Router, setDI) {
+PHP_METHOD(Stub_Router, setDI) {
zval *dependencyInjector, dependencyInjector_sub;
zval *this_ptr = getThis();
@@ -186,9 +186,9 @@ PHP_METHOD(Test_Router, setDI) {
/**
* Returns the internal dependency injector
*
- * @return Test\DiInterface
+ * @return Stub\DiInterface
*/
-PHP_METHOD(Test_Router, getDI) {
+PHP_METHOD(Stub_Router, getDI) {
zval *this_ptr = getThis();
@@ -202,7 +202,7 @@ PHP_METHOD(Test_Router, getDI) {
*
* @return string
*/
-PHP_METHOD(Test_Router, getRewriteUri) {
+PHP_METHOD(Stub_Router, getRewriteUri) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zval _GET, _SERVER, url, urlParts, realUri, _0;
@@ -219,7 +219,7 @@ PHP_METHOD(Test_Router, getRewriteUri) {
zephir_get_global(&_SERVER, SL("_SERVER"));
zephir_get_global(&_GET, SL("_GET"));
- zephir_read_property(&_0, this_ptr, SL("_uriSource"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_0, this_ptr, ZEND_STRL("_uriSource"), PH_NOISY_CC | PH_READONLY);
if (!(zephir_is_true(&_0))) {
ZEPHIR_OBS_VAR(&url);
if (zephir_array_isset_string_fetch(&url, &_GET, SL("_url"), 0)) {
@@ -232,7 +232,7 @@ PHP_METHOD(Test_Router, getRewriteUri) {
if (zephir_array_isset_string_fetch(&url, &_SERVER, SL("REQUEST_URI"), 0)) {
ZEPHIR_INIT_VAR(&urlParts);
zephir_fast_explode_str(&urlParts, SL("?"), &url, LONG_MAX);
- zephir_array_fetch_long(&realUri, &urlParts, 0, PH_NOISY | PH_READONLY, "test/router.zep", 142);
+ zephir_array_fetch_long(&realUri, &urlParts, 0, PH_NOISY | PH_READONLY, "stub/router.zep", 142);
if (!(zephir_is_true(&realUri))) {
RETURN_CTOR(&realUri);
}
@@ -250,9 +250,9 @@ PHP_METHOD(Test_Router, getRewriteUri) {
*
*
* @param string uriSource
- * @return Test\Router
+ * @return Stub\Router
*/
-PHP_METHOD(Test_Router, setUriSource) {
+PHP_METHOD(Stub_Router, setUriSource) {
zval *uriSource, uriSource_sub;
zval *this_ptr = getThis();
@@ -272,9 +272,9 @@ PHP_METHOD(Test_Router, setUriSource) {
* Set whether router must remove the extra slashes in the handled routes
*
* @param boolean remove
- * @return Test\Router
+ * @return Stub\Router
*/
-PHP_METHOD(Test_Router, removeExtraSlashes) {
+PHP_METHOD(Stub_Router, removeExtraSlashes) {
zval *remove, remove_sub;
zval *this_ptr = getThis();
@@ -294,9 +294,9 @@ PHP_METHOD(Test_Router, removeExtraSlashes) {
* Sets the name of the default namespace
*
* @param string namespaceName
- * @return Test\Router
+ * @return Stub\Router
*/
-PHP_METHOD(Test_Router, setDefaultNamespace) {
+PHP_METHOD(Stub_Router, setDefaultNamespace) {
zval *namespaceName, namespaceName_sub;
zval *this_ptr = getThis();
@@ -316,9 +316,9 @@ PHP_METHOD(Test_Router, setDefaultNamespace) {
* Sets the name of the default module
*
* @param string moduleName
- * @return Test\Router
+ * @return Stub\Router
*/
-PHP_METHOD(Test_Router, setDefaultModule) {
+PHP_METHOD(Stub_Router, setDefaultModule) {
zval *moduleName, moduleName_sub;
zval *this_ptr = getThis();
@@ -338,9 +338,9 @@ PHP_METHOD(Test_Router, setDefaultModule) {
* Sets the default controller name
*
* @param string controllerName
- * @return Test\Router
+ * @return Stub\Router
*/
-PHP_METHOD(Test_Router, setDefaultController) {
+PHP_METHOD(Stub_Router, setDefaultController) {
zval *controllerName, controllerName_sub;
zval *this_ptr = getThis();
@@ -360,9 +360,9 @@ PHP_METHOD(Test_Router, setDefaultController) {
* Sets the default action name
*
* @param string actionName
- * @return Test\Router
+ * @return Stub\Router
*/
-PHP_METHOD(Test_Router, setDefaultAction) {
+PHP_METHOD(Stub_Router, setDefaultAction) {
zval *actionName, actionName_sub;
zval *this_ptr = getThis();
@@ -390,9 +390,9 @@ PHP_METHOD(Test_Router, setDefaultAction) {
*
*
* @param array defaults
- * @return Test\Router
+ * @return Stub\Router
*/
-PHP_METHOD(Test_Router, setDefaults) {
+PHP_METHOD(Stub_Router, setDefaults) {
zval *defaults, defaults_sub, namespaceName, module, controller, action, params;
zval *this_ptr = getThis();
@@ -409,7 +409,7 @@ PHP_METHOD(Test_Router, setDefaults) {
if (Z_TYPE_P(defaults) != IS_ARRAY) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(test_router_exception_ce, "Defaults must be an array", "test/router.zep", 246);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(stub_router_exception_ce, "Defaults must be an array", "stub/router.zep", 246);
return;
}
if (zephir_array_isset_string_fetch(&namespaceName, defaults, SL("namespace"), 1)) {
@@ -434,7 +434,7 @@ PHP_METHOD(Test_Router, setDefaults) {
/**
* x
*/
-PHP_METHOD(Test_Router, doRemoveExtraSlashes) {
+PHP_METHOD(Stub_Router, doRemoveExtraSlashes) {
zval *route, route_sub;
zval *this_ptr = getThis();
@@ -463,7 +463,7 @@ PHP_METHOD(Test_Router, doRemoveExtraSlashes) {
*
* @param string uri
*/
-PHP_METHOD(Test_Router, handle) {
+PHP_METHOD(Stub_Router, handle) {
zend_string *_12$$28, *_21$$62;
zend_ulong _11$$28, _20$$62;
@@ -546,7 +546,7 @@ PHP_METHOD(Test_Router, handle) {
} else {
ZEPHIR_CPY_WRT(&realUri, uri);
}
- zephir_read_property(&_0, this_ptr, SL("_removeExtraSlashes"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_0, this_ptr, ZEND_STRL("_removeExtraSlashes"), PH_NOISY_CC | PH_READONLY);
if (zephir_is_true(&_0)) {
ZEPHIR_CALL_METHOD(&handledUri, this_ptr, "doremoveextraslashes", NULL, 0, &realUri);
zephir_check_call_status();
@@ -571,8 +571,8 @@ PHP_METHOD(Test_Router, handle) {
zephir_update_property_zval(this_ptr, ZEND_STRL("_wasMatched"), &__$false);
}
zephir_update_property_zval(this_ptr, ZEND_STRL("_matchedRoute"), &__$null);
- zephir_read_property(&_1, this_ptr, SL("_routes"), PH_NOISY_CC | PH_READONLY);
- zephir_is_iterable(&_1, 0, "test/router.zep", 474);
+ zephir_read_property(&_1, this_ptr, ZEND_STRL("_routes"), PH_NOISY_CC | PH_READONLY);
+ zephir_is_iterable(&_1, 0, "stub/router.zep", 474);
if (Z_TYPE_P(&_1) == IS_ARRAY) {
ZEND_HASH_REVERSE_FOREACH_VAL(Z_ARRVAL_P(&_1), _2)
{
@@ -582,10 +582,10 @@ PHP_METHOD(Test_Router, handle) {
zephir_check_call_status();
if (Z_TYPE_P(&methods) != IS_NULL) {
if (Z_TYPE_P(&request) == IS_NULL) {
- zephir_read_property(&_4$$9, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_4$$9, this_ptr, ZEND_STRL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_CPY_WRT(&dependencyInjector, &_4$$9);
if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "A dependency injection container is required to access the 'request' service", "test/router.zep", 342);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "A dependency injection container is required to access the 'request' service", "stub/router.zep", 342);
return;
}
ZEPHIR_INIT_NVAR(&_5$$9);
@@ -604,9 +604,9 @@ PHP_METHOD(Test_Router, handle) {
if (Z_TYPE_P(&hostname) != IS_NULL) {
if (Z_TYPE_P(&request) == IS_NULL) {
ZEPHIR_OBS_NVAR(&dependencyInjector);
- zephir_read_property(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC);
+ zephir_read_property(&dependencyInjector, this_ptr, ZEND_STRL("_dependencyInjector"), PH_NOISY_CC);
if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "A dependency injection container is required to access the 'request' service", "test/router.zep", 363);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "A dependency injection container is required to access the 'request' service", "stub/router.zep", 363);
return;
}
ZEPHIR_INIT_NVAR(&_7$$13);
@@ -621,8 +621,8 @@ PHP_METHOD(Test_Router, handle) {
if (Z_TYPE_P(¤tHostName) != IS_NULL) {
continue;
}
- if (zephir_memnstr_str(&hostname, SL("("), "test/router.zep", 380)) {
- if (zephir_memnstr_str(&hostname, SL("#"), "test/router.zep", 381)) {
+ if (zephir_memnstr_str(&hostname, SL("("), "stub/router.zep", 380)) {
+ if (zephir_memnstr_str(&hostname, SL("#"), "stub/router.zep", 381)) {
ZEPHIR_INIT_NVAR(®exHostName);
ZEPHIR_CONCAT_SVS(®exHostName, "#^", &hostname, "$#");
} else {
@@ -641,7 +641,7 @@ PHP_METHOD(Test_Router, handle) {
}
ZEPHIR_CALL_METHOD(&pattern, &route, "getcompiledpattern", NULL, 0);
zephir_check_call_status();
- if (zephir_memnstr_str(&pattern, SL("^"), "test/router.zep", 399)) {
+ if (zephir_memnstr_str(&pattern, SL("^"), "stub/router.zep", 399)) {
ZEPHIR_INIT_NVAR(&routeFound);
zephir_preg_match(&routeFound, &pattern, &handledUri, &matches, 0, 0 , 0 );
} else {
@@ -653,7 +653,7 @@ PHP_METHOD(Test_Router, handle) {
zephir_check_call_status();
if (Z_TYPE_P(&beforeMatch) != IS_NULL) {
if (zephir_is_callable(&beforeMatch)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "Before-Match callback is not callable in matched route", "test/router.zep", 413);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "Before-Match callback is not callable in matched route", "stub/router.zep", 413);
return;
}
}
@@ -665,7 +665,7 @@ PHP_METHOD(Test_Router, handle) {
if (Z_TYPE_P(&matches) == IS_ARRAY) {
ZEPHIR_CALL_METHOD(&converters, &route, "getconverters", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&paths, 0, "test/router.zep", 465);
+ zephir_is_iterable(&paths, 0, "stub/router.zep", 465);
if (Z_TYPE_P(&paths) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _11$$28, _12$$28, _9$$28)
{
@@ -746,10 +746,10 @@ PHP_METHOD(Test_Router, handle) {
zephir_check_call_status();
if (Z_TYPE_P(&methods) != IS_NULL) {
if (Z_TYPE_P(&request) == IS_NULL) {
- zephir_read_property(&_13$$43, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_13$$43, this_ptr, ZEND_STRL("_dependencyInjector"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_CPY_WRT(&dependencyInjector, &_13$$43);
if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "A dependency injection container is required to access the 'request' service", "test/router.zep", 342);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "A dependency injection container is required to access the 'request' service", "stub/router.zep", 342);
return;
}
ZEPHIR_INIT_NVAR(&_14$$43);
@@ -768,9 +768,9 @@ PHP_METHOD(Test_Router, handle) {
if (Z_TYPE_P(&hostname) != IS_NULL) {
if (Z_TYPE_P(&request) == IS_NULL) {
ZEPHIR_OBS_NVAR(&dependencyInjector);
- zephir_read_property(&dependencyInjector, this_ptr, SL("_dependencyInjector"), PH_NOISY_CC);
+ zephir_read_property(&dependencyInjector, this_ptr, ZEND_STRL("_dependencyInjector"), PH_NOISY_CC);
if (Z_TYPE_P(&dependencyInjector) != IS_OBJECT) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "A dependency injection container is required to access the 'request' service", "test/router.zep", 363);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "A dependency injection container is required to access the 'request' service", "stub/router.zep", 363);
return;
}
ZEPHIR_INIT_NVAR(&_16$$47);
@@ -785,8 +785,8 @@ PHP_METHOD(Test_Router, handle) {
if (Z_TYPE_P(¤tHostName) != IS_NULL) {
continue;
}
- if (zephir_memnstr_str(&hostname, SL("("), "test/router.zep", 380)) {
- if (zephir_memnstr_str(&hostname, SL("#"), "test/router.zep", 381)) {
+ if (zephir_memnstr_str(&hostname, SL("("), "stub/router.zep", 380)) {
+ if (zephir_memnstr_str(&hostname, SL("#"), "stub/router.zep", 381)) {
ZEPHIR_INIT_NVAR(®exHostName);
ZEPHIR_CONCAT_SVS(®exHostName, "#^", &hostname, "$#");
} else {
@@ -805,7 +805,7 @@ PHP_METHOD(Test_Router, handle) {
}
ZEPHIR_CALL_METHOD(&pattern, &route, "getcompiledpattern", NULL, 0);
zephir_check_call_status();
- if (zephir_memnstr_str(&pattern, SL("^"), "test/router.zep", 399)) {
+ if (zephir_memnstr_str(&pattern, SL("^"), "stub/router.zep", 399)) {
ZEPHIR_INIT_NVAR(&routeFound);
zephir_preg_match(&routeFound, &pattern, &handledUri, &matches, 0, 0 , 0 );
} else {
@@ -817,7 +817,7 @@ PHP_METHOD(Test_Router, handle) {
zephir_check_call_status();
if (Z_TYPE_P(&beforeMatch) != IS_NULL) {
if (zephir_is_callable(&beforeMatch)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "Before-Match callback is not callable in matched route", "test/router.zep", 413);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "Before-Match callback is not callable in matched route", "stub/router.zep", 413);
return;
}
}
@@ -829,7 +829,7 @@ PHP_METHOD(Test_Router, handle) {
if (Z_TYPE_P(&matches) == IS_ARRAY) {
ZEPHIR_CALL_METHOD(&converters, &route, "getconverters", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&paths, 0, "test/router.zep", 465);
+ zephir_is_iterable(&paths, 0, "stub/router.zep", 465);
if (Z_TYPE_P(&paths) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&paths), _20$$62, _21$$62, _18$$62)
{
@@ -914,7 +914,7 @@ PHP_METHOD(Test_Router, handle) {
}
if (!(zephir_is_true(&routeFound))) {
ZEPHIR_OBS_VAR(¬FoundPaths);
- zephir_read_property(¬FoundPaths, this_ptr, SL("_notFoundPaths"), PH_NOISY_CC);
+ zephir_read_property(¬FoundPaths, this_ptr, ZEND_STRL("_notFoundPaths"), PH_NOISY_CC);
if (Z_TYPE_P(¬FoundPaths) != IS_NULL) {
ZEPHIR_CPY_WRT(&parts, ¬FoundPaths);
ZEPHIR_INIT_NVAR(&routeFound);
@@ -929,7 +929,7 @@ PHP_METHOD(Test_Router, handle) {
}
zephir_array_unset_string(&parts, SL("namespace"), PH_SEPARATE);
} else {
- zephir_read_property(&_22$$82, this_ptr, SL("_defaultNamespace"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_22$$82, this_ptr, ZEND_STRL("_defaultNamespace"), PH_NOISY_CC | PH_READONLY);
zephir_update_property_zval(this_ptr, ZEND_STRL("_namespace"), &_22$$82);
}
ZEPHIR_OBS_VAR(&module);
@@ -939,7 +939,7 @@ PHP_METHOD(Test_Router, handle) {
}
zephir_array_unset_string(&parts, SL("module"), PH_SEPARATE);
} else {
- zephir_read_property(&_23$$85, this_ptr, SL("_defaultModule"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_23$$85, this_ptr, ZEND_STRL("_defaultModule"), PH_NOISY_CC | PH_READONLY);
zephir_update_property_zval(this_ptr, ZEND_STRL("_module"), &_23$$85);
}
ZEPHIR_OBS_VAR(&controller);
@@ -949,7 +949,7 @@ PHP_METHOD(Test_Router, handle) {
}
zephir_array_unset_string(&parts, SL("controller"), PH_SEPARATE);
} else {
- zephir_read_property(&_24$$88, this_ptr, SL("_defaultController"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_24$$88, this_ptr, ZEND_STRL("_defaultController"), PH_NOISY_CC | PH_READONLY);
zephir_update_property_zval(this_ptr, ZEND_STRL("_controller"), &_24$$88);
}
ZEPHIR_OBS_VAR(&action);
@@ -959,7 +959,7 @@ PHP_METHOD(Test_Router, handle) {
}
zephir_array_unset_string(&parts, SL("action"), PH_SEPARATE);
} else {
- zephir_read_property(&_25$$91, this_ptr, SL("_defaultAction"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_25$$91, this_ptr, ZEND_STRL("_defaultAction"), PH_NOISY_CC | PH_READONLY);
zephir_update_property_zval(this_ptr, ZEND_STRL("_action"), &_25$$91);
}
ZEPHIR_OBS_VAR(¶msStr);
@@ -981,15 +981,15 @@ PHP_METHOD(Test_Router, handle) {
}
zephir_update_property_zval(this_ptr, ZEND_STRL("_params"), ¶msMerge);
} else {
- zephir_read_property(&_27$$96, this_ptr, SL("_defaultNamespace"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_27$$96, this_ptr, ZEND_STRL("_defaultNamespace"), PH_NOISY_CC | PH_READONLY);
zephir_update_property_zval(this_ptr, ZEND_STRL("_namespace"), &_27$$96);
- zephir_read_property(&_28$$96, this_ptr, SL("_defaultModule"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_28$$96, this_ptr, ZEND_STRL("_defaultModule"), PH_NOISY_CC | PH_READONLY);
zephir_update_property_zval(this_ptr, ZEND_STRL("_module"), &_28$$96);
- zephir_read_property(&_29$$96, this_ptr, SL("_defaultController"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_29$$96, this_ptr, ZEND_STRL("_defaultController"), PH_NOISY_CC | PH_READONLY);
zephir_update_property_zval(this_ptr, ZEND_STRL("_controller"), &_29$$96);
- zephir_read_property(&_30$$96, this_ptr, SL("_defaultAction"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_30$$96, this_ptr, ZEND_STRL("_defaultAction"), PH_NOISY_CC | PH_READONLY);
zephir_update_property_zval(this_ptr, ZEND_STRL("_action"), &_30$$96);
- zephir_read_property(&_31$$96, this_ptr, SL("_defaultParams"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_31$$96, this_ptr, ZEND_STRL("_defaultParams"), PH_NOISY_CC | PH_READONLY);
zephir_update_property_zval(this_ptr, ZEND_STRL("_params"), &_31$$96);
}
ZEPHIR_MM_RESTORE();
@@ -1006,9 +1006,9 @@ PHP_METHOD(Test_Router, handle) {
* @param string pattern
* @param string/array paths
* @param string httpMethods
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router, add) {
+PHP_METHOD(Stub_Router, add) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -1035,7 +1035,7 @@ PHP_METHOD(Test_Router, add) {
ZEPHIR_INIT_VAR(&route);
- object_init_ex(&route, test_router_route_ce);
+ object_init_ex(&route, stub_router_route_ce);
ZEPHIR_CALL_METHOD(NULL, &route, "__construct", NULL, 83, pattern, paths, httpMethods);
zephir_check_call_status();
zephir_update_property_array_append(this_ptr, SL("_routes"), &route);
@@ -1048,9 +1048,9 @@ PHP_METHOD(Test_Router, add) {
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router, addGet) {
+PHP_METHOD(Stub_Router, addGet) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -1084,9 +1084,9 @@ PHP_METHOD(Test_Router, addGet) {
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router, addPost) {
+PHP_METHOD(Stub_Router, addPost) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -1120,9 +1120,9 @@ PHP_METHOD(Test_Router, addPost) {
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router, addPut) {
+PHP_METHOD(Stub_Router, addPut) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -1156,9 +1156,9 @@ PHP_METHOD(Test_Router, addPut) {
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router, addPatch) {
+PHP_METHOD(Stub_Router, addPatch) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -1192,9 +1192,9 @@ PHP_METHOD(Test_Router, addPatch) {
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router, addDelete) {
+PHP_METHOD(Stub_Router, addDelete) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -1228,9 +1228,9 @@ PHP_METHOD(Test_Router, addDelete) {
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router, addOptions) {
+PHP_METHOD(Stub_Router, addOptions) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -1264,9 +1264,9 @@ PHP_METHOD(Test_Router, addOptions) {
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router, addHead) {
+PHP_METHOD(Stub_Router, addHead) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -1298,10 +1298,10 @@ PHP_METHOD(Test_Router, addHead) {
/**
* Mounts a group of routes in the router
*
- * @param Test\Router\Group route
- * @return Test\Router
+ * @param Stub\Router\Group route
+ * @return Stub\Router
*/
-PHP_METHOD(Test_Router, mount) {
+PHP_METHOD(Stub_Router, mount) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -1324,19 +1324,19 @@ PHP_METHOD(Test_Router, mount) {
if (Z_TYPE_P(group) != IS_OBJECT) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "The group of routes is not valid", "test/router.zep", 677);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "The group of routes is not valid", "stub/router.zep", 677);
return;
}
ZEPHIR_CALL_METHOD(&groupRoutes, group, "getroutes", NULL, 0);
zephir_check_call_status();
if (!(zephir_fast_count_int(&groupRoutes))) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "The group of routes does not contain any routes", "test/router.zep", 682);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "The group of routes does not contain any routes", "stub/router.zep", 682);
return;
}
ZEPHIR_CALL_METHOD(&beforeMatch, group, "getbeforematch", NULL, 0);
zephir_check_call_status();
if (Z_TYPE_P(&beforeMatch) != IS_NULL) {
- zephir_is_iterable(&groupRoutes, 0, "test/router.zep", 692);
+ zephir_is_iterable(&groupRoutes, 0, "stub/router.zep", 692);
if (Z_TYPE_P(&groupRoutes) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&groupRoutes), _0$$5)
{
@@ -1367,7 +1367,7 @@ PHP_METHOD(Test_Router, mount) {
ZEPHIR_CALL_METHOD(&hostname, group, "gethostname", NULL, 0);
zephir_check_call_status();
if (Z_TYPE_P(&hostname) != IS_NULL) {
- zephir_is_iterable(&groupRoutes, 0, "test/router.zep", 701);
+ zephir_is_iterable(&groupRoutes, 0, "stub/router.zep", 701);
if (Z_TYPE_P(&groupRoutes) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&groupRoutes), _2$$8)
{
@@ -1396,7 +1396,7 @@ PHP_METHOD(Test_Router, mount) {
ZEPHIR_INIT_NVAR(&route);
}
ZEPHIR_OBS_VAR(&routes);
- zephir_read_property(&routes, this_ptr, SL("_routes"), PH_NOISY_CC);
+ zephir_read_property(&routes, this_ptr, ZEND_STRL("_routes"), PH_NOISY_CC);
if (Z_TYPE_P(&routes) == IS_ARRAY) {
ZEPHIR_INIT_VAR(&_4$$11);
zephir_fast_array_merge(&_4$$11, &routes, &groupRoutes);
@@ -1412,9 +1412,9 @@ PHP_METHOD(Test_Router, mount) {
* Set a group of paths to be returned when none of the defined routes are matched
*
* @param array paths
- * @return Test\Router
+ * @return Stub\Router
*/
-PHP_METHOD(Test_Router, notFound) {
+PHP_METHOD(Stub_Router, notFound) {
zval *paths, paths_sub;
zval *this_ptr = getThis();
@@ -1427,7 +1427,7 @@ PHP_METHOD(Test_Router, notFound) {
if (Z_TYPE_P(paths) != IS_ARRAY) {
if (Z_TYPE_P(paths) != IS_STRING) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(test_router_exception_ce, "The not-found paths must be an array or string", "test/router.zep", 724);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(stub_router_exception_ce, "The not-found paths must be an array or string", "stub/router.zep", 724);
return;
}
}
@@ -1439,7 +1439,7 @@ PHP_METHOD(Test_Router, notFound) {
/**
* Removes all the pre-defined routes
*/
-PHP_METHOD(Test_Router, clear) {
+PHP_METHOD(Stub_Router, clear) {
zval _0;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -1461,7 +1461,7 @@ PHP_METHOD(Test_Router, clear) {
*
* @return string
*/
-PHP_METHOD(Test_Router, getNamespaceName) {
+PHP_METHOD(Stub_Router, getNamespaceName) {
zval *this_ptr = getThis();
@@ -1475,7 +1475,7 @@ PHP_METHOD(Test_Router, getNamespaceName) {
*
* @return string
*/
-PHP_METHOD(Test_Router, getModuleName) {
+PHP_METHOD(Stub_Router, getModuleName) {
zval *this_ptr = getThis();
@@ -1489,7 +1489,7 @@ PHP_METHOD(Test_Router, getModuleName) {
*
* @return string
*/
-PHP_METHOD(Test_Router, getControllerName) {
+PHP_METHOD(Stub_Router, getControllerName) {
zval *this_ptr = getThis();
@@ -1503,7 +1503,7 @@ PHP_METHOD(Test_Router, getControllerName) {
*
* @return string
*/
-PHP_METHOD(Test_Router, getActionName) {
+PHP_METHOD(Stub_Router, getActionName) {
zval *this_ptr = getThis();
@@ -1517,7 +1517,7 @@ PHP_METHOD(Test_Router, getActionName) {
*
* @return array
*/
-PHP_METHOD(Test_Router, getParams) {
+PHP_METHOD(Stub_Router, getParams) {
zval *this_ptr = getThis();
@@ -1529,9 +1529,9 @@ PHP_METHOD(Test_Router, getParams) {
/**
* Returns the route that matchs the handled URI
*
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router, getMatchedRoute) {
+PHP_METHOD(Stub_Router, getMatchedRoute) {
zval *this_ptr = getThis();
@@ -1545,7 +1545,7 @@ PHP_METHOD(Test_Router, getMatchedRoute) {
*
* @return array
*/
-PHP_METHOD(Test_Router, getMatches) {
+PHP_METHOD(Stub_Router, getMatches) {
zval *this_ptr = getThis();
@@ -1559,7 +1559,7 @@ PHP_METHOD(Test_Router, getMatches) {
*
* @return bool
*/
-PHP_METHOD(Test_Router, wasMatched) {
+PHP_METHOD(Stub_Router, wasMatched) {
zval *this_ptr = getThis();
@@ -1571,9 +1571,9 @@ PHP_METHOD(Test_Router, wasMatched) {
/**
* Returns all the routes defined in the router
*
- * @return Test\Router\Route[]
+ * @return Stub\Router\Route[]
*/
-PHP_METHOD(Test_Router, getRoutes) {
+PHP_METHOD(Stub_Router, getRoutes) {
zval *this_ptr = getThis();
@@ -1586,9 +1586,9 @@ PHP_METHOD(Test_Router, getRoutes) {
* Returns a route object by its id
*
* @param string id
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router, getRouteById) {
+PHP_METHOD(Stub_Router, getRouteById) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -1607,8 +1607,8 @@ PHP_METHOD(Test_Router, getRouteById) {
- zephir_read_property(&_0, this_ptr, SL("_routes"), PH_NOISY_CC | PH_READONLY);
- zephir_is_iterable(&_0, 0, "test/router.zep", 844);
+ zephir_read_property(&_0, this_ptr, ZEND_STRL("_routes"), PH_NOISY_CC | PH_READONLY);
+ zephir_is_iterable(&_0, 0, "stub/router.zep", 844);
if (Z_TYPE_P(&_0) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1)
{
@@ -1649,9 +1649,9 @@ PHP_METHOD(Test_Router, getRouteById) {
* Returns a route object by its name
*
* @param string name
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router, getRouteByName) {
+PHP_METHOD(Stub_Router, getRouteByName) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -1670,8 +1670,8 @@ PHP_METHOD(Test_Router, getRouteByName) {
- zephir_read_property(&_0, this_ptr, SL("_routes"), PH_NOISY_CC | PH_READONLY);
- zephir_is_iterable(&_0, 0, "test/router.zep", 862);
+ zephir_read_property(&_0, this_ptr, ZEND_STRL("_routes"), PH_NOISY_CC | PH_READONLY);
+ zephir_is_iterable(&_0, 0, "stub/router.zep", 862);
if (Z_TYPE_P(&_0) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1)
{
diff --git a/ext/stub/router.zep.h b/ext/stub/router.zep.h
new file mode 100644
index 0000000000..77b26493d8
--- /dev/null
+++ b/ext/stub/router.zep.h
@@ -0,0 +1,184 @@
+
+extern zend_class_entry *stub_router_ce;
+
+ZEPHIR_INIT_CLASS(Stub_Router);
+
+PHP_METHOD(Stub_Router, __construct);
+PHP_METHOD(Stub_Router, setDI);
+PHP_METHOD(Stub_Router, getDI);
+PHP_METHOD(Stub_Router, getRewriteUri);
+PHP_METHOD(Stub_Router, setUriSource);
+PHP_METHOD(Stub_Router, removeExtraSlashes);
+PHP_METHOD(Stub_Router, setDefaultNamespace);
+PHP_METHOD(Stub_Router, setDefaultModule);
+PHP_METHOD(Stub_Router, setDefaultController);
+PHP_METHOD(Stub_Router, setDefaultAction);
+PHP_METHOD(Stub_Router, setDefaults);
+PHP_METHOD(Stub_Router, doRemoveExtraSlashes);
+PHP_METHOD(Stub_Router, handle);
+PHP_METHOD(Stub_Router, add);
+PHP_METHOD(Stub_Router, addGet);
+PHP_METHOD(Stub_Router, addPost);
+PHP_METHOD(Stub_Router, addPut);
+PHP_METHOD(Stub_Router, addPatch);
+PHP_METHOD(Stub_Router, addDelete);
+PHP_METHOD(Stub_Router, addOptions);
+PHP_METHOD(Stub_Router, addHead);
+PHP_METHOD(Stub_Router, mount);
+PHP_METHOD(Stub_Router, notFound);
+PHP_METHOD(Stub_Router, clear);
+PHP_METHOD(Stub_Router, getNamespaceName);
+PHP_METHOD(Stub_Router, getModuleName);
+PHP_METHOD(Stub_Router, getControllerName);
+PHP_METHOD(Stub_Router, getActionName);
+PHP_METHOD(Stub_Router, getParams);
+PHP_METHOD(Stub_Router, getMatchedRoute);
+PHP_METHOD(Stub_Router, getMatches);
+PHP_METHOD(Stub_Router, wasMatched);
+PHP_METHOD(Stub_Router, getRoutes);
+PHP_METHOD(Stub_Router, getRouteById);
+PHP_METHOD(Stub_Router, getRouteByName);
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router___construct, 0, 0, 0)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, defaultRoutes, _IS_BOOL, 0)
+#else
+ ZEND_ARG_INFO(0, defaultRoutes)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_setdi, 0, 0, 1)
+ ZEND_ARG_OBJ_INFO(0, dependencyInjector, Stub\\DiInterface, 0)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_seturisource, 0, 0, 1)
+ ZEND_ARG_INFO(0, uriSource)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_removeextraslashes, 0, 0, 1)
+ ZEND_ARG_INFO(0, remove)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_setdefaultnamespace, 0, 0, 1)
+ ZEND_ARG_INFO(0, namespaceName)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_setdefaultmodule, 0, 0, 1)
+ ZEND_ARG_INFO(0, moduleName)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_setdefaultcontroller, 0, 0, 1)
+ ZEND_ARG_INFO(0, controllerName)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_setdefaultaction, 0, 0, 1)
+ ZEND_ARG_INFO(0, actionName)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_setdefaults, 0, 0, 1)
+ ZEND_ARG_INFO(0, defaults)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_doremoveextraslashes, 0, 0, 1)
+ ZEND_ARG_INFO(0, route)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_handle, 0, 0, 0)
+ ZEND_ARG_INFO(0, uri)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_add, 0, 0, 1)
+ ZEND_ARG_INFO(0, pattern)
+ ZEND_ARG_INFO(0, paths)
+ ZEND_ARG_INFO(0, httpMethods)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_addget, 0, 0, 1)
+ ZEND_ARG_INFO(0, pattern)
+ ZEND_ARG_INFO(0, paths)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_addpost, 0, 0, 1)
+ ZEND_ARG_INFO(0, pattern)
+ ZEND_ARG_INFO(0, paths)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_addput, 0, 0, 1)
+ ZEND_ARG_INFO(0, pattern)
+ ZEND_ARG_INFO(0, paths)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_addpatch, 0, 0, 1)
+ ZEND_ARG_INFO(0, pattern)
+ ZEND_ARG_INFO(0, paths)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_adddelete, 0, 0, 1)
+ ZEND_ARG_INFO(0, pattern)
+ ZEND_ARG_INFO(0, paths)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_addoptions, 0, 0, 1)
+ ZEND_ARG_INFO(0, pattern)
+ ZEND_ARG_INFO(0, paths)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_addhead, 0, 0, 1)
+ ZEND_ARG_INFO(0, pattern)
+ ZEND_ARG_INFO(0, paths)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_mount, 0, 0, 1)
+ ZEND_ARG_INFO(0, group)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_notfound, 0, 0, 1)
+ ZEND_ARG_INFO(0, paths)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_getroutebyid, 0, 0, 1)
+ ZEND_ARG_INFO(0, id)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_getroutebyname, 0, 0, 1)
+ ZEND_ARG_INFO(0, name)
+ZEND_END_ARG_INFO()
+
+ZEPHIR_INIT_FUNCS(stub_router_method_entry) {
+ PHP_ME(Stub_Router, __construct, arginfo_stub_router___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
+ PHP_ME(Stub_Router, setDI, arginfo_stub_router_setdi, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, getDI, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, getRewriteUri, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, setUriSource, arginfo_stub_router_seturisource, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, removeExtraSlashes, arginfo_stub_router_removeextraslashes, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, setDefaultNamespace, arginfo_stub_router_setdefaultnamespace, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, setDefaultModule, arginfo_stub_router_setdefaultmodule, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, setDefaultController, arginfo_stub_router_setdefaultcontroller, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, setDefaultAction, arginfo_stub_router_setdefaultaction, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, setDefaults, arginfo_stub_router_setdefaults, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, doRemoveExtraSlashes, arginfo_stub_router_doremoveextraslashes, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, handle, arginfo_stub_router_handle, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, add, arginfo_stub_router_add, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, addGet, arginfo_stub_router_addget, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, addPost, arginfo_stub_router_addpost, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, addPut, arginfo_stub_router_addput, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, addPatch, arginfo_stub_router_addpatch, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, addDelete, arginfo_stub_router_adddelete, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, addOptions, arginfo_stub_router_addoptions, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, addHead, arginfo_stub_router_addhead, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, mount, arginfo_stub_router_mount, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, notFound, arginfo_stub_router_notfound, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, clear, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, getNamespaceName, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, getModuleName, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, getControllerName, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, getActionName, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, getParams, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, getMatchedRoute, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, getMatches, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, wasMatched, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, getRoutes, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, getRouteById, arginfo_stub_router_getroutebyid, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router, getRouteByName, arginfo_stub_router_getroutebyname, ZEND_ACC_PUBLIC)
+ PHP_FE_END
+};
diff --git a/ext/test/router/exception.zep.c b/ext/stub/router/exception.zep.c
similarity index 74%
rename from ext/test/router/exception.zep.c
rename to ext/stub/router/exception.zep.c
index 9650a754bd..01511feda0 100644
--- a/ext/test/router/exception.zep.c
+++ b/ext/stub/router/exception.zep.c
@@ -15,13 +15,13 @@
/**
- * Test\Router\Exception
+ * Stub\Router\Exception
*
* Exceptions generated by the router
*/
-ZEPHIR_INIT_CLASS(Test_Router_Exception) {
+ZEPHIR_INIT_CLASS(Stub_Router_Exception) {
- ZEPHIR_REGISTER_CLASS_EX(Test\\Router, Exception, test, router_exception, zend_exception_get_default(TSRMLS_C), NULL, 0);
+ ZEPHIR_REGISTER_CLASS_EX(Stub\\Router, Exception, stub, router_exception, zend_exception_get_default(TSRMLS_C), NULL, 0);
return SUCCESS;
diff --git a/ext/stub/router/exception.zep.h b/ext/stub/router/exception.zep.h
new file mode 100644
index 0000000000..9372192aed
--- /dev/null
+++ b/ext/stub/router/exception.zep.h
@@ -0,0 +1,5 @@
+
+extern zend_class_entry *stub_router_exception_ce;
+
+ZEPHIR_INIT_CLASS(Stub_Router_Exception);
+
diff --git a/ext/test/router/route.zep.c b/ext/stub/router/route.zep.c
similarity index 86%
rename from ext/test/router/route.zep.c
rename to ext/stub/router/route.zep.c
index 30432614db..c91809d651 100644
--- a/ext/test/router/route.zep.c
+++ b/ext/stub/router/route.zep.c
@@ -23,44 +23,44 @@
/**
- * Test\Router\Route
+ * Stub\Router\Route
*
* This class represents every route added to the router
*/
-ZEPHIR_INIT_CLASS(Test_Router_Route) {
+ZEPHIR_INIT_CLASS(Stub_Router_Route) {
- ZEPHIR_REGISTER_CLASS(Test\\Router, Route, test, router_route, test_router_route_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS(Stub\\Router, Route, stub, router_route, stub_router_route_method_entry, 0);
- zend_declare_property_null(test_router_route_ce, SL("_pattern"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_route_ce, SL("_pattern"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_route_ce, SL("_compiledPattern"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_route_ce, SL("_compiledPattern"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_route_ce, SL("_paths"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_route_ce, SL("_paths"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_route_ce, SL("_methods"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_route_ce, SL("_methods"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_route_ce, SL("_hostname"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_route_ce, SL("_hostname"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_route_ce, SL("_converters"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_route_ce, SL("_converters"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_route_ce, SL("_id"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_route_ce, SL("_id"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_route_ce, SL("_name"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_route_ce, SL("_name"), ZEND_ACC_PROTECTED);
- zend_declare_property_null(test_router_route_ce, SL("_beforeMatch"), ZEND_ACC_PROTECTED);
+ zend_declare_property_null(stub_router_route_ce, SL("_beforeMatch"), ZEND_ACC_PROTECTED);
return SUCCESS;
}
/**
- * Test\Router\Route constructor
+ * Stub\Router\Route constructor
*
* @param string pattern
* @param array paths
* @param array|string httpMethods
*/
-PHP_METHOD(Test_Router_Route, __construct) {
+PHP_METHOD(Stub_Router_Route, __construct) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -98,7 +98,7 @@ PHP_METHOD(Test_Router_Route, __construct) {
* @param string pattern
* @return string
*/
-PHP_METHOD(Test_Router_Route, compilePattern) {
+PHP_METHOD(Stub_Router_Route, compilePattern) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zval *pattern = NULL, pattern_sub, idPattern, _0$$4, _1$$4, _2$$5, _3$$5, _4$$6, _5$$6, _6$$7, _7$$7, _8$$8, _9$$8, _10$$8, _11$$9, _12$$9, _13$$9;
@@ -127,38 +127,38 @@ PHP_METHOD(Test_Router_Route, compilePattern) {
ZEPHIR_SEPARATE_PARAM(pattern);
- if (zephir_memnstr_str(pattern, SL(":"), "test/router/route.zep", 56)) {
+ if (zephir_memnstr_str(pattern, SL(":"), "stub/router/route.zep", 56)) {
ZEPHIR_INIT_VAR(&idPattern);
ZVAL_STRING(&idPattern, "/([a-zA-Z0-9\\_\\-]+)");
- if (zephir_memnstr_str(pattern, SL("/:module"), "test/router/route.zep", 62)) {
+ if (zephir_memnstr_str(pattern, SL("/:module"), "stub/router/route.zep", 62)) {
ZEPHIR_INIT_VAR(&_0$$4);
ZEPHIR_INIT_VAR(&_1$$4);
ZVAL_STRING(&_1$$4, "/:module");
zephir_fast_str_replace(&_0$$4, &_1$$4, &idPattern, pattern);
ZEPHIR_CPY_WRT(pattern, &_0$$4);
}
- if (zephir_memnstr_str(pattern, SL("/:controller"), "test/router/route.zep", 67)) {
+ if (zephir_memnstr_str(pattern, SL("/:controller"), "stub/router/route.zep", 67)) {
ZEPHIR_INIT_VAR(&_2$$5);
ZEPHIR_INIT_VAR(&_3$$5);
ZVAL_STRING(&_3$$5, "/:controller");
zephir_fast_str_replace(&_2$$5, &_3$$5, &idPattern, pattern);
ZEPHIR_CPY_WRT(pattern, &_2$$5);
}
- if (zephir_memnstr_str(pattern, SL("/:namespace"), "test/router/route.zep", 72)) {
+ if (zephir_memnstr_str(pattern, SL("/:namespace"), "stub/router/route.zep", 72)) {
ZEPHIR_INIT_VAR(&_4$$6);
ZEPHIR_INIT_VAR(&_5$$6);
ZVAL_STRING(&_5$$6, "/:namespace");
zephir_fast_str_replace(&_4$$6, &_5$$6, &idPattern, pattern);
ZEPHIR_CPY_WRT(pattern, &_4$$6);
}
- if (zephir_memnstr_str(pattern, SL("/:action"), "test/router/route.zep", 77)) {
+ if (zephir_memnstr_str(pattern, SL("/:action"), "stub/router/route.zep", 77)) {
ZEPHIR_INIT_VAR(&_6$$7);
ZEPHIR_INIT_VAR(&_7$$7);
ZVAL_STRING(&_7$$7, "/:action");
zephir_fast_str_replace(&_6$$7, &_7$$7, &idPattern, pattern);
ZEPHIR_CPY_WRT(pattern, &_6$$7);
}
- if (zephir_memnstr_str(pattern, SL("/:params"), "test/router/route.zep", 82)) {
+ if (zephir_memnstr_str(pattern, SL("/:params"), "stub/router/route.zep", 82)) {
ZEPHIR_INIT_VAR(&_8$$8);
ZEPHIR_INIT_VAR(&_9$$8);
ZVAL_STRING(&_9$$8, "/:params");
@@ -167,7 +167,7 @@ PHP_METHOD(Test_Router_Route, compilePattern) {
zephir_fast_str_replace(&_8$$8, &_9$$8, &_10$$8, pattern);
ZEPHIR_CPY_WRT(pattern, &_8$$8);
}
- if (zephir_memnstr_str(pattern, SL("/:int"), "test/router/route.zep", 87)) {
+ if (zephir_memnstr_str(pattern, SL("/:int"), "stub/router/route.zep", 87)) {
ZEPHIR_INIT_VAR(&_11$$9);
ZEPHIR_INIT_VAR(&_12$$9);
ZVAL_STRING(&_12$$9, "/:int");
@@ -177,11 +177,11 @@ PHP_METHOD(Test_Router_Route, compilePattern) {
ZEPHIR_CPY_WRT(pattern, &_11$$9);
}
}
- if (zephir_memnstr_str(pattern, SL("("), "test/router/route.zep", 93)) {
+ if (zephir_memnstr_str(pattern, SL("("), "stub/router/route.zep", 93)) {
ZEPHIR_CONCAT_SVS(return_value, "#^", pattern, "$#");
RETURN_MM();
}
- if (zephir_memnstr_str(pattern, SL("["), "test/router/route.zep", 98)) {
+ if (zephir_memnstr_str(pattern, SL("["), "stub/router/route.zep", 98)) {
ZEPHIR_CONCAT_SVS(return_value, "#^", pattern, "$#");
RETURN_MM();
}
@@ -199,9 +199,9 @@ PHP_METHOD(Test_Router_Route, compilePattern) {
*
*
* @param string|array httpMethods
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router_Route, via) {
+PHP_METHOD(Stub_Router_Route, via) {
zval *httpMethods, httpMethods_sub;
zval *this_ptr = getThis();
@@ -222,7 +222,7 @@ PHP_METHOD(Test_Router_Route, via) {
*
* @param string pattern
*/
-PHP_METHOD(Test_Router_Route, extractNamedParams) {
+PHP_METHOD(Stub_Router_Route, extractNamedParams) {
long _0, _5$$11, _26$$19;
zend_bool notValid, _6$$12, _7$$12, _8$$12, _9$$12, _10$$12, _11$$12, _12$$12, _13$$12, _14$$12, _15$$12, _16$$12, _17$$12, _25$$18;
@@ -460,7 +460,7 @@ PHP_METHOD(Test_Router_Route, extractNamedParams) {
* @param string pattern
* @param array paths
*/
-PHP_METHOD(Test_Router_Route, reConfigure) {
+PHP_METHOD(Stub_Router_Route, reConfigure) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS, _0$$5;
@@ -494,7 +494,7 @@ PHP_METHOD(Test_Router_Route, reConfigure) {
if (Z_TYPE_P(pattern) != IS_STRING) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "The pattern must be string", "test/router/route.zep", 270);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "The pattern must be string", "stub/router/route.zep", 270);
return;
}
if (Z_TYPE_P(paths) != IS_NULL) {
@@ -511,23 +511,23 @@ PHP_METHOD(Test_Router_Route, reConfigure) {
_0$$5 = zephir_fast_count_int(&parts);
if (_0$$5 == 3) {
ZEPHIR_OBS_NVAR(&moduleName);
- zephir_array_fetch_long(&moduleName, &parts, 0, PH_NOISY, "test/router/route.zep", 286);
+ zephir_array_fetch_long(&moduleName, &parts, 0, PH_NOISY, "stub/router/route.zep", 286);
ZEPHIR_OBS_NVAR(&controllerName);
- zephir_array_fetch_long(&controllerName, &parts, 1, PH_NOISY, "test/router/route.zep", 287);
+ zephir_array_fetch_long(&controllerName, &parts, 1, PH_NOISY, "stub/router/route.zep", 287);
ZEPHIR_OBS_NVAR(&actionName);
- zephir_array_fetch_long(&actionName, &parts, 2, PH_NOISY, "test/router/route.zep", 288);
+ zephir_array_fetch_long(&actionName, &parts, 2, PH_NOISY, "stub/router/route.zep", 288);
break;
}
if (_0$$5 == 2) {
ZEPHIR_OBS_NVAR(&controllerName);
- zephir_array_fetch_long(&controllerName, &parts, 0, PH_NOISY, "test/router/route.zep", 291);
+ zephir_array_fetch_long(&controllerName, &parts, 0, PH_NOISY, "stub/router/route.zep", 291);
ZEPHIR_OBS_NVAR(&actionName);
- zephir_array_fetch_long(&actionName, &parts, 1, PH_NOISY, "test/router/route.zep", 292);
+ zephir_array_fetch_long(&actionName, &parts, 1, PH_NOISY, "stub/router/route.zep", 292);
break;
}
if (_0$$5 == 1) {
ZEPHIR_OBS_NVAR(&controllerName);
- zephir_array_fetch_long(&controllerName, &parts, 0, PH_NOISY, "test/router/route.zep", 295);
+ zephir_array_fetch_long(&controllerName, &parts, 0, PH_NOISY, "stub/router/route.zep", 295);
break;
}
} while(0);
@@ -538,7 +538,7 @@ PHP_METHOD(Test_Router_Route, reConfigure) {
zephir_array_update_string(&routePaths, SL("module"), &moduleName, PH_COPY | PH_SEPARATE);
}
if (Z_TYPE_P(&controllerName) != IS_NULL) {
- if (zephir_memnstr_str(&controllerName, SL("\\"), "test/router/route.zep", 310)) {
+ if (zephir_memnstr_str(&controllerName, SL("\\"), "stub/router/route.zep", 310)) {
ZEPHIR_INIT_VAR(&realClassName);
zephir_get_class_ns(&realClassName, &controllerName, 0);
ZEPHIR_INIT_VAR(&namespaceName);
@@ -564,17 +564,17 @@ PHP_METHOD(Test_Router_Route, reConfigure) {
array_init(&routePaths);
}
if (Z_TYPE_P(&routePaths) != IS_ARRAY) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(test_router_exception_ce, "The route contains invalid paths", "test/router/route.zep", 342);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(stub_router_exception_ce, "The route contains invalid paths", "stub/router/route.zep", 342);
return;
}
if (!(zephir_start_with_str(pattern, SL("#")))) {
- if (zephir_memnstr_str(pattern, SL("{"), "test/router/route.zep", 348)) {
+ if (zephir_memnstr_str(pattern, SL("{"), "stub/router/route.zep", 348)) {
ZEPHIR_CALL_METHOD(&extracted, this_ptr, "extractnamedparams", NULL, 0, pattern);
zephir_check_call_status();
ZEPHIR_OBS_VAR(&pcrePattern);
- zephir_array_fetch_long(&pcrePattern, &extracted, 0, PH_NOISY, "test/router/route.zep", 351);
+ zephir_array_fetch_long(&pcrePattern, &extracted, 0, PH_NOISY, "stub/router/route.zep", 351);
ZEPHIR_INIT_VAR(&_2$$19);
- zephir_array_fetch_long(&_3$$19, &extracted, 1, PH_NOISY | PH_READONLY, "test/router/route.zep", 352);
+ zephir_array_fetch_long(&_3$$19, &extracted, 1, PH_NOISY | PH_READONLY, "stub/router/route.zep", 352);
zephir_fast_array_merge(&_2$$19, &routePaths, &_3$$19);
ZEPHIR_CPY_WRT(&routePaths, &_2$$19);
} else {
@@ -597,7 +597,7 @@ PHP_METHOD(Test_Router_Route, reConfigure) {
*
* @return string
*/
-PHP_METHOD(Test_Router_Route, getName) {
+PHP_METHOD(Stub_Router_Route, getName) {
zval *this_ptr = getThis();
@@ -618,7 +618,7 @@ PHP_METHOD(Test_Router_Route, getName) {
* @param string name
* @return Route
*/
-PHP_METHOD(Test_Router_Route, setName) {
+PHP_METHOD(Stub_Router_Route, setName) {
zval *name, name_sub;
zval *this_ptr = getThis();
@@ -640,9 +640,9 @@ PHP_METHOD(Test_Router_Route, setName) {
* If the callback returns false the route is treaded as not matched
*
* @param callback callback
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router_Route, beforeMatch) {
+PHP_METHOD(Stub_Router_Route, beforeMatch) {
zval *callback, callback_sub;
zval *this_ptr = getThis();
@@ -663,7 +663,7 @@ PHP_METHOD(Test_Router_Route, beforeMatch) {
*
* @return mixed
*/
-PHP_METHOD(Test_Router_Route, getBeforeMatch) {
+PHP_METHOD(Stub_Router_Route, getBeforeMatch) {
zval *this_ptr = getThis();
@@ -677,7 +677,7 @@ PHP_METHOD(Test_Router_Route, getBeforeMatch) {
*
* @return string
*/
-PHP_METHOD(Test_Router_Route, getRouteId) {
+PHP_METHOD(Stub_Router_Route, getRouteId) {
zval *this_ptr = getThis();
@@ -691,7 +691,7 @@ PHP_METHOD(Test_Router_Route, getRouteId) {
*
* @return string
*/
-PHP_METHOD(Test_Router_Route, getPattern) {
+PHP_METHOD(Stub_Router_Route, getPattern) {
zval *this_ptr = getThis();
@@ -705,7 +705,7 @@ PHP_METHOD(Test_Router_Route, getPattern) {
*
* @return string
*/
-PHP_METHOD(Test_Router_Route, getCompiledPattern) {
+PHP_METHOD(Stub_Router_Route, getCompiledPattern) {
zval *this_ptr = getThis();
@@ -719,7 +719,7 @@ PHP_METHOD(Test_Router_Route, getCompiledPattern) {
*
* @return array
*/
-PHP_METHOD(Test_Router_Route, getPaths) {
+PHP_METHOD(Stub_Router_Route, getPaths) {
zval *this_ptr = getThis();
@@ -733,7 +733,7 @@ PHP_METHOD(Test_Router_Route, getPaths) {
*
* @return array
*/
-PHP_METHOD(Test_Router_Route, getReversedPaths) {
+PHP_METHOD(Stub_Router_Route, getReversedPaths) {
zend_string *_4;
zend_ulong _3;
@@ -752,8 +752,8 @@ PHP_METHOD(Test_Router_Route, getReversedPaths) {
ZEPHIR_INIT_VAR(&reversed);
array_init(&reversed);
- zephir_read_property(&_0, this_ptr, SL("_paths"), PH_NOISY_CC | PH_READONLY);
- zephir_is_iterable(&_0, 0, "test/router/route.zep", 478);
+ zephir_read_property(&_0, this_ptr, ZEND_STRL("_paths"), PH_NOISY_CC | PH_READONLY);
+ zephir_is_iterable(&_0, 0, "stub/router/route.zep", 478);
if (Z_TYPE_P(&_0) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&_0), _3, _4, _1)
{
@@ -800,9 +800,9 @@ PHP_METHOD(Test_Router_Route, getReversedPaths) {
*
*
* @param string|array httpMethods
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router_Route, setHttpMethods) {
+PHP_METHOD(Stub_Router_Route, setHttpMethods) {
zval *httpMethods, httpMethods_sub;
zval *this_ptr = getThis();
@@ -823,7 +823,7 @@ PHP_METHOD(Test_Router_Route, setHttpMethods) {
*
* @return string|array
*/
-PHP_METHOD(Test_Router_Route, getHttpMethods) {
+PHP_METHOD(Stub_Router_Route, getHttpMethods) {
zval *this_ptr = getThis();
@@ -840,9 +840,9 @@ PHP_METHOD(Test_Router_Route, getHttpMethods) {
*
*
* @param string|array httpMethods
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router_Route, setHostname) {
+PHP_METHOD(Stub_Router_Route, setHostname) {
zval *hostname, hostname_sub;
zval *this_ptr = getThis();
@@ -863,7 +863,7 @@ PHP_METHOD(Test_Router_Route, setHostname) {
*
* @return string
*/
-PHP_METHOD(Test_Router_Route, getHostname) {
+PHP_METHOD(Stub_Router_Route, getHostname) {
zval *this_ptr = getThis();
@@ -877,9 +877,9 @@ PHP_METHOD(Test_Router_Route, getHostname) {
*
* @param string name
* @param callable converter
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
-PHP_METHOD(Test_Router_Route, convert) {
+PHP_METHOD(Stub_Router_Route, convert) {
zval *name, name_sub, *converter, converter_sub;
zval *this_ptr = getThis();
@@ -901,7 +901,7 @@ PHP_METHOD(Test_Router_Route, convert) {
*
* @return array
*/
-PHP_METHOD(Test_Router_Route, getConverters) {
+PHP_METHOD(Stub_Router_Route, getConverters) {
zval *this_ptr = getThis();
diff --git a/ext/stub/router/route.zep.h b/ext/stub/router/route.zep.h
new file mode 100644
index 0000000000..35a2ddc3cb
--- /dev/null
+++ b/ext/stub/router/route.zep.h
@@ -0,0 +1,97 @@
+
+extern zend_class_entry *stub_router_route_ce;
+
+ZEPHIR_INIT_CLASS(Stub_Router_Route);
+
+PHP_METHOD(Stub_Router_Route, __construct);
+PHP_METHOD(Stub_Router_Route, compilePattern);
+PHP_METHOD(Stub_Router_Route, via);
+PHP_METHOD(Stub_Router_Route, extractNamedParams);
+PHP_METHOD(Stub_Router_Route, reConfigure);
+PHP_METHOD(Stub_Router_Route, getName);
+PHP_METHOD(Stub_Router_Route, setName);
+PHP_METHOD(Stub_Router_Route, beforeMatch);
+PHP_METHOD(Stub_Router_Route, getBeforeMatch);
+PHP_METHOD(Stub_Router_Route, getRouteId);
+PHP_METHOD(Stub_Router_Route, getPattern);
+PHP_METHOD(Stub_Router_Route, getCompiledPattern);
+PHP_METHOD(Stub_Router_Route, getPaths);
+PHP_METHOD(Stub_Router_Route, getReversedPaths);
+PHP_METHOD(Stub_Router_Route, setHttpMethods);
+PHP_METHOD(Stub_Router_Route, getHttpMethods);
+PHP_METHOD(Stub_Router_Route, setHostname);
+PHP_METHOD(Stub_Router_Route, getHostname);
+PHP_METHOD(Stub_Router_Route, convert);
+PHP_METHOD(Stub_Router_Route, getConverters);
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route___construct, 0, 0, 1)
+ ZEND_ARG_INFO(0, pattern)
+ ZEND_ARG_INFO(0, paths)
+ ZEND_ARG_INFO(0, httpMethods)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_compilepattern, 0, 0, 1)
+ ZEND_ARG_INFO(0, pattern)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_via, 0, 0, 1)
+ ZEND_ARG_INFO(0, httpMethods)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_extractnamedparams, 0, 0, 1)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
+#else
+ ZEND_ARG_INFO(0, pattern)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_reconfigure, 0, 0, 1)
+ ZEND_ARG_INFO(0, pattern)
+ ZEND_ARG_INFO(0, paths)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_setname, 0, 0, 1)
+ ZEND_ARG_INFO(0, name)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_beforematch, 0, 0, 1)
+ ZEND_ARG_INFO(0, callback)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_sethttpmethods, 0, 0, 1)
+ ZEND_ARG_INFO(0, httpMethods)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_sethostname, 0, 0, 1)
+ ZEND_ARG_INFO(0, hostname)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_router_route_convert, 0, 0, 2)
+ ZEND_ARG_INFO(0, name)
+ ZEND_ARG_INFO(0, converter)
+ZEND_END_ARG_INFO()
+
+ZEPHIR_INIT_FUNCS(stub_router_route_method_entry) {
+ PHP_ME(Stub_Router_Route, __construct, arginfo_stub_router_route___construct, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
+ PHP_ME(Stub_Router_Route, compilePattern, arginfo_stub_router_route_compilepattern, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, via, arginfo_stub_router_route_via, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, extractNamedParams, arginfo_stub_router_route_extractnamedparams, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, reConfigure, arginfo_stub_router_route_reconfigure, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, getName, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, setName, arginfo_stub_router_route_setname, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, beforeMatch, arginfo_stub_router_route_beforematch, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, getBeforeMatch, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, getRouteId, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, getPattern, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, getCompiledPattern, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, getPaths, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, getReversedPaths, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, setHttpMethods, arginfo_stub_router_route_sethttpmethods, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, getHttpMethods, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, setHostname, arginfo_stub_router_route_sethostname, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, getHostname, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, convert, arginfo_stub_router_route_convert, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Router_Route, getConverters, NULL, ZEND_ACC_PUBLIC)
+ PHP_FE_END
+};
diff --git a/ext/test/scall.zep.c b/ext/stub/scall.zep.c
similarity index 85%
rename from ext/test/scall.zep.c
rename to ext/stub/scall.zep.c
index eddb19625a..88cd5d73fc 100644
--- a/ext/test/scall.zep.c
+++ b/ext/stub/scall.zep.c
@@ -21,15 +21,15 @@
/**
* Static Function calls
*/
-ZEPHIR_INIT_CLASS(Test_Scall) {
+ZEPHIR_INIT_CLASS(Stub_Scall) {
- ZEPHIR_REGISTER_CLASS_EX(Test, Scall, test, scall, test_scallparent_ce, test_scall_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS_EX(Stub, Scall, stub, scall, stub_scallparent_ce, stub_scall_method_entry, 0);
return SUCCESS;
}
-PHP_METHOD(Test_Scall, testMethod1) {
+PHP_METHOD(Stub_Scall, testMethod1) {
zval *this_ptr = getThis();
@@ -38,7 +38,7 @@ PHP_METHOD(Test_Scall, testMethod1) {
}
-PHP_METHOD(Test_Scall, testMethod2) {
+PHP_METHOD(Stub_Scall, testMethod2) {
zval *this_ptr = getThis();
@@ -47,7 +47,7 @@ PHP_METHOD(Test_Scall, testMethod2) {
}
-PHP_METHOD(Test_Scall, testMethod3) {
+PHP_METHOD(Stub_Scall, testMethod3) {
zval *this_ptr = getThis();
@@ -56,7 +56,7 @@ PHP_METHOD(Test_Scall, testMethod3) {
}
-PHP_METHOD(Test_Scall, testMethod4) {
+PHP_METHOD(Stub_Scall, testMethod4) {
zval *a, a_sub, *b, b_sub;
zval *this_ptr = getThis();
@@ -73,7 +73,7 @@ PHP_METHOD(Test_Scall, testMethod4) {
}
-PHP_METHOD(Test_Scall, testMethod5) {
+PHP_METHOD(Stub_Scall, testMethod5) {
zval *a, a_sub, *b, b_sub;
zval *this_ptr = getThis();
@@ -90,7 +90,7 @@ PHP_METHOD(Test_Scall, testMethod5) {
}
-PHP_METHOD(Test_Scall, testMethod6) {
+PHP_METHOD(Stub_Scall, testMethod6) {
zval *a, a_sub, *b, b_sub;
zval *this_ptr = getThis();
@@ -107,7 +107,7 @@ PHP_METHOD(Test_Scall, testMethod6) {
}
-PHP_METHOD(Test_Scall, testMethod7) {
+PHP_METHOD(Stub_Scall, testMethod7) {
zval *this_ptr = getThis();
@@ -117,7 +117,7 @@ PHP_METHOD(Test_Scall, testMethod7) {
}
-PHP_METHOD(Test_Scall, testCall1) {
+PHP_METHOD(Stub_Scall, testCall1) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -132,7 +132,7 @@ PHP_METHOD(Test_Scall, testCall1) {
}
-PHP_METHOD(Test_Scall, testCall2) {
+PHP_METHOD(Stub_Scall, testCall2) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -147,7 +147,7 @@ PHP_METHOD(Test_Scall, testCall2) {
}
-PHP_METHOD(Test_Scall, testCall3) {
+PHP_METHOD(Stub_Scall, testCall3) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -163,7 +163,7 @@ PHP_METHOD(Test_Scall, testCall3) {
}
-PHP_METHOD(Test_Scall, testCall4) {
+PHP_METHOD(Stub_Scall, testCall4) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -184,7 +184,7 @@ PHP_METHOD(Test_Scall, testCall4) {
}
-PHP_METHOD(Test_Scall, testCall5) {
+PHP_METHOD(Stub_Scall, testCall5) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -205,7 +205,7 @@ PHP_METHOD(Test_Scall, testCall5) {
}
-PHP_METHOD(Test_Scall, testCall6) {
+PHP_METHOD(Stub_Scall, testCall6) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -227,7 +227,7 @@ PHP_METHOD(Test_Scall, testCall6) {
}
-PHP_METHOD(Test_Scall, testCall7) {
+PHP_METHOD(Stub_Scall, testCall7) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -242,7 +242,7 @@ PHP_METHOD(Test_Scall, testCall7) {
}
-PHP_METHOD(Test_Scall, testCall8) {
+PHP_METHOD(Stub_Scall, testCall8) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -257,7 +257,7 @@ PHP_METHOD(Test_Scall, testCall8) {
}
-PHP_METHOD(Test_Scall, testCall9) {
+PHP_METHOD(Stub_Scall, testCall9) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -273,7 +273,7 @@ PHP_METHOD(Test_Scall, testCall9) {
}
-PHP_METHOD(Test_Scall, testCall10) {
+PHP_METHOD(Stub_Scall, testCall10) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -294,7 +294,7 @@ PHP_METHOD(Test_Scall, testCall10) {
}
-PHP_METHOD(Test_Scall, testCall11) {
+PHP_METHOD(Stub_Scall, testCall11) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -315,7 +315,7 @@ PHP_METHOD(Test_Scall, testCall11) {
}
-PHP_METHOD(Test_Scall, testCall12) {
+PHP_METHOD(Stub_Scall, testCall12) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -337,7 +337,7 @@ PHP_METHOD(Test_Scall, testCall12) {
}
-PHP_METHOD(Test_Scall, testCall13) {
+PHP_METHOD(Stub_Scall, testCall13) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -347,13 +347,13 @@ PHP_METHOD(Test_Scall, testCall13) {
ZEPHIR_MM_GROW();
- ZEPHIR_RETURN_CALL_PARENT(test_scall_ce, getThis(), "testmethod1", &_0, 0);
+ ZEPHIR_RETURN_CALL_PARENT(stub_scall_ce, getThis(), "testmethod1", &_0, 0);
zephir_check_call_status();
RETURN_MM();
}
-PHP_METHOD(Test_Scall, testCall14) {
+PHP_METHOD(Stub_Scall, testCall14) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -363,13 +363,13 @@ PHP_METHOD(Test_Scall, testCall14) {
ZEPHIR_MM_GROW();
- ZEPHIR_RETURN_CALL_PARENT(test_scall_ce, getThis(), "testmethod2", &_0, 0);
+ ZEPHIR_RETURN_CALL_PARENT(stub_scall_ce, getThis(), "testmethod2", &_0, 0);
zephir_check_call_status();
RETURN_MM();
}
-PHP_METHOD(Test_Scall, testCall15) {
+PHP_METHOD(Stub_Scall, testCall15) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -384,7 +384,7 @@ PHP_METHOD(Test_Scall, testCall15) {
}
-PHP_METHOD(Test_Scall, testMethod16) {
+PHP_METHOD(Stub_Scall, testMethod16) {
zval *a_param = NULL, *b_param = NULL;
long a, b;
@@ -401,7 +401,7 @@ PHP_METHOD(Test_Scall, testMethod16) {
}
-PHP_METHOD(Test_Scall, testCall17) {
+PHP_METHOD(Stub_Scall, testCall17) {
zend_bool _0;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -435,7 +435,7 @@ PHP_METHOD(Test_Scall, testCall17) {
_0 = 1;
}
i = _1;
- ZEPHIR_CALL_CE_STATIC(&_3$$3, test_scallexternal_ce, "testmethod3", &_4, 0, p, p);
+ ZEPHIR_CALL_CE_STATIC(&_3$$3, stub_scallexternal_ce, "testmethod3", &_4, 0, p, p);
zephir_check_call_status();
j += zephir_get_numberval(&_3$$3);
}
@@ -444,7 +444,7 @@ PHP_METHOD(Test_Scall, testCall17) {
}
-PHP_METHOD(Test_Scall, testCall18) {
+PHP_METHOD(Stub_Scall, testCall18) {
zend_bool _0;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -487,7 +487,7 @@ PHP_METHOD(Test_Scall, testCall18) {
}
-PHP_METHOD(Test_Scall, testMethodStatic) {
+PHP_METHOD(Stub_Scall, testMethodStatic) {
zval *this_ptr = getThis();
@@ -496,7 +496,7 @@ PHP_METHOD(Test_Scall, testMethodStatic) {
}
-PHP_METHOD(Test_Scall, interpolatedStaticReturn) {
+PHP_METHOD(Stub_Scall, interpolatedStaticReturn) {
zend_class_entry *_0;
zval className, methodName;
@@ -510,7 +510,7 @@ PHP_METHOD(Test_Scall, interpolatedStaticReturn) {
ZEPHIR_MM_GROW();
ZEPHIR_INIT_VAR(&className);
- ZVAL_STRING(&className, "Test\\Scall");
+ ZVAL_STRING(&className, "Stub\\Scall");
ZEPHIR_INIT_VAR(&methodName);
ZVAL_STRING(&methodName, "testMethodStatic");
_0 = zephir_fetch_class(&className);
@@ -520,7 +520,7 @@ PHP_METHOD(Test_Scall, interpolatedStaticReturn) {
}
-PHP_METHOD(Test_Scall, interpolatedStaticEcho) {
+PHP_METHOD(Stub_Scall, interpolatedStaticEcho) {
zend_class_entry *_1;
zval _0;
@@ -536,7 +536,7 @@ PHP_METHOD(Test_Scall, interpolatedStaticEcho) {
ZEPHIR_MM_GROW();
ZEPHIR_INIT_VAR(&className);
- ZVAL_STRING(&className, "Test\\Scall");
+ ZVAL_STRING(&className, "Stub\\Scall");
ZEPHIR_INIT_VAR(&methodName);
ZVAL_STRING(&methodName, "testMethodStatic");
_1 = zephir_fetch_class(&className);
diff --git a/ext/stub/scall.zep.h b/ext/stub/scall.zep.h
new file mode 100644
index 0000000000..23460eaf02
--- /dev/null
+++ b/ext/stub/scall.zep.h
@@ -0,0 +1,198 @@
+
+extern zend_class_entry *stub_scall_ce;
+
+ZEPHIR_INIT_CLASS(Stub_Scall);
+
+PHP_METHOD(Stub_Scall, testMethod1);
+PHP_METHOD(Stub_Scall, testMethod2);
+PHP_METHOD(Stub_Scall, testMethod3);
+PHP_METHOD(Stub_Scall, testMethod4);
+PHP_METHOD(Stub_Scall, testMethod5);
+PHP_METHOD(Stub_Scall, testMethod6);
+PHP_METHOD(Stub_Scall, testMethod7);
+PHP_METHOD(Stub_Scall, testCall1);
+PHP_METHOD(Stub_Scall, testCall2);
+PHP_METHOD(Stub_Scall, testCall3);
+PHP_METHOD(Stub_Scall, testCall4);
+PHP_METHOD(Stub_Scall, testCall5);
+PHP_METHOD(Stub_Scall, testCall6);
+PHP_METHOD(Stub_Scall, testCall7);
+PHP_METHOD(Stub_Scall, testCall8);
+PHP_METHOD(Stub_Scall, testCall9);
+PHP_METHOD(Stub_Scall, testCall10);
+PHP_METHOD(Stub_Scall, testCall11);
+PHP_METHOD(Stub_Scall, testCall12);
+PHP_METHOD(Stub_Scall, testCall13);
+PHP_METHOD(Stub_Scall, testCall14);
+PHP_METHOD(Stub_Scall, testCall15);
+PHP_METHOD(Stub_Scall, testMethod16);
+PHP_METHOD(Stub_Scall, testCall17);
+PHP_METHOD(Stub_Scall, testCall18);
+PHP_METHOD(Stub_Scall, testMethodStatic);
+PHP_METHOD(Stub_Scall, interpolatedStaticReturn);
+PHP_METHOD(Stub_Scall, interpolatedStaticEcho);
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod1, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod1, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod2, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod2, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod3, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod3, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testmethod4, 0, 0, 2)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, b)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testmethod5, 0, 0, 2)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, b)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testmethod6, 0, 0, 2)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, b)
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_stub_scall_testmethod7, 0, 0, stdClass, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod7, 0, 0, IS_OBJECT, "stdClass", 0)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall4, 0, 0, 2)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, b)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall5, 0, 0, 2)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, b)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall6, 0, 0, 2)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, b)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall10, 0, 0, 2)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, b)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall11, 0, 0, 2)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, b)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall12, 0, 0, 2)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, b)
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod16, 0, 2, IS_LONG, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethod16, 0, 2, IS_LONG, NULL, 0)
+#endif
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, a)
+#endif
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, b)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall17, 0, 0, 2)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, k, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, k)
+#endif
+ ZEND_ARG_INFO(0, p)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scall_testcall18, 0, 0, 2)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, k, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, k)
+#endif
+ ZEND_ARG_INFO(0, p)
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethodstatic, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_testmethodstatic, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_interpolatedstaticreturn, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_interpolatedstaticreturn, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70100
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_interpolatedstaticecho, 0, 0, IS_VOID, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scall_interpolatedstaticecho, 0, 0, IS_VOID, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+#else
+#define arginfo_stub_scall_interpolatedstaticecho NULL
+#endif
+
+ZEPHIR_INIT_FUNCS(stub_scall_method_entry) {
+ PHP_ME(Stub_Scall, testMethod1, arginfo_stub_scall_testmethod1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testMethod2, arginfo_stub_scall_testmethod2, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED)
+ PHP_ME(Stub_Scall, testMethod3, arginfo_stub_scall_testmethod3, ZEND_ACC_STATIC|ZEND_ACC_PRIVATE)
+ PHP_ME(Stub_Scall, testMethod4, arginfo_stub_scall_testmethod4, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testMethod5, arginfo_stub_scall_testmethod5, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED)
+ PHP_ME(Stub_Scall, testMethod6, arginfo_stub_scall_testmethod6, ZEND_ACC_STATIC|ZEND_ACC_PRIVATE)
+ PHP_ME(Stub_Scall, testMethod7, arginfo_stub_scall_testmethod7, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall1, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall2, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall3, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall4, arginfo_stub_scall_testcall4, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall5, arginfo_stub_scall_testcall5, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall6, arginfo_stub_scall_testcall6, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall7, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall8, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall9, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall10, arginfo_stub_scall_testcall10, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall11, arginfo_stub_scall_testcall11, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall12, arginfo_stub_scall_testcall12, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall13, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall14, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testCall15, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, testMethod16, arginfo_stub_scall_testmethod16, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+ PHP_ME(Stub_Scall, testCall17, arginfo_stub_scall_testcall17, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+ PHP_ME(Stub_Scall, testCall18, arginfo_stub_scall_testcall18, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+ PHP_ME(Stub_Scall, testMethodStatic, arginfo_stub_scall_testmethodstatic, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED)
+ PHP_ME(Stub_Scall, interpolatedStaticReturn, arginfo_stub_scall_interpolatedstaticreturn, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Scall, interpolatedStaticEcho, arginfo_stub_scall_interpolatedstaticecho, ZEND_ACC_PUBLIC)
+ PHP_FE_END
+};
diff --git a/ext/test/scalldynamic.zep.c b/ext/stub/scalldynamic.zep.c
similarity index 69%
rename from ext/test/scalldynamic.zep.c
rename to ext/stub/scalldynamic.zep.c
index 33d78d36f4..09dc5c255b 100644
--- a/ext/test/scalldynamic.zep.c
+++ b/ext/stub/scalldynamic.zep.c
@@ -20,15 +20,15 @@
/**
* Static Function calls
*/
-ZEPHIR_INIT_CLASS(Test_ScallDynamic) {
+ZEPHIR_INIT_CLASS(Stub_ScallDynamic) {
- ZEPHIR_REGISTER_CLASS_EX(Test, ScallDynamic, test, scalldynamic, test_scallparent_ce, test_scalldynamic_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS_EX(Stub, ScallDynamic, stub, scalldynamic, stub_scallparent_ce, stub_scalldynamic_method_entry, 0);
return SUCCESS;
}
-PHP_METHOD(Test_ScallDynamic, testMethod1) {
+PHP_METHOD(Stub_ScallDynamic, testMethod1) {
zval *this_ptr = getThis();
@@ -37,7 +37,7 @@ PHP_METHOD(Test_ScallDynamic, testMethod1) {
}
-PHP_METHOD(Test_ScallDynamic, testMethod2) {
+PHP_METHOD(Stub_ScallDynamic, testMethod2) {
zval *this_ptr = getThis();
@@ -46,7 +46,7 @@ PHP_METHOD(Test_ScallDynamic, testMethod2) {
}
-PHP_METHOD(Test_ScallDynamic, testMethod3) {
+PHP_METHOD(Stub_ScallDynamic, testMethod3) {
zval *this_ptr = getThis();
@@ -55,7 +55,7 @@ PHP_METHOD(Test_ScallDynamic, testMethod3) {
}
-PHP_METHOD(Test_ScallDynamic, selfDynamicCall1) {
+PHP_METHOD(Stub_ScallDynamic, selfDynamicCall1) {
zend_long ZEPHIR_LAST_CALL_STATUS;
zval *methodName, methodName_sub;
diff --git a/ext/stub/scalldynamic.zep.h b/ext/stub/scalldynamic.zep.h
new file mode 100644
index 0000000000..0ae9d47dbe
--- /dev/null
+++ b/ext/stub/scalldynamic.zep.h
@@ -0,0 +1,46 @@
+
+extern zend_class_entry *stub_scalldynamic_ce;
+
+ZEPHIR_INIT_CLASS(Stub_ScallDynamic);
+
+PHP_METHOD(Stub_ScallDynamic, testMethod1);
+PHP_METHOD(Stub_ScallDynamic, testMethod2);
+PHP_METHOD(Stub_ScallDynamic, testMethod3);
+PHP_METHOD(Stub_ScallDynamic, selfDynamicCall1);
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_testmethod1, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_testmethod1, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_testmethod2, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_testmethod2, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_testmethod3, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_testmethod3, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_selfdynamiccall1, 0, 1, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scalldynamic_selfdynamiccall1, 0, 1, IS_STRING, NULL, 0)
+#endif
+ ZEND_ARG_INFO(0, methodName)
+ZEND_END_ARG_INFO()
+
+ZEPHIR_INIT_FUNCS(stub_scalldynamic_method_entry) {
+ PHP_ME(Stub_ScallDynamic, testMethod1, arginfo_stub_scalldynamic_testmethod1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_ScallDynamic, testMethod2, arginfo_stub_scalldynamic_testmethod2, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED)
+ PHP_ME(Stub_ScallDynamic, testMethod3, arginfo_stub_scalldynamic_testmethod3, ZEND_ACC_STATIC|ZEND_ACC_PRIVATE)
+ PHP_ME(Stub_ScallDynamic, selfDynamicCall1, arginfo_stub_scalldynamic_selfdynamiccall1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
+ PHP_FE_END
+};
diff --git a/ext/test/scallexternal.zep.c b/ext/stub/scallexternal.zep.c
similarity index 73%
rename from ext/test/scallexternal.zep.c
rename to ext/stub/scallexternal.zep.c
index c29c523777..a439ae1dbb 100644
--- a/ext/test/scallexternal.zep.c
+++ b/ext/stub/scallexternal.zep.c
@@ -21,17 +21,17 @@
/**
* Call external static functions
*/
-ZEPHIR_INIT_CLASS(Test_ScallExternal) {
+ZEPHIR_INIT_CLASS(Stub_ScallExternal) {
- ZEPHIR_REGISTER_CLASS(Test, ScallExternal, test, scallexternal, test_scallexternal_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS(Stub, ScallExternal, stub, scallexternal, stub_scallexternal_method_entry, 0);
- zend_declare_property_null(test_scallexternal_ce, SL("sproperty"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC);
+ zend_declare_property_null(stub_scallexternal_ce, SL("sproperty"), ZEND_ACC_PUBLIC|ZEND_ACC_STATIC);
return SUCCESS;
}
-PHP_METHOD(Test_ScallExternal, testCall1) {
+PHP_METHOD(Stub_ScallExternal, testCall1) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -41,13 +41,13 @@ PHP_METHOD(Test_ScallExternal, testCall1) {
ZEPHIR_MM_GROW();
- ZEPHIR_RETURN_CALL_CE_STATIC(test_scall_ce, "testmethod1", &_0, 0);
+ ZEPHIR_RETURN_CALL_CE_STATIC(stub_scall_ce, "testmethod1", &_0, 0);
zephir_check_call_status();
RETURN_MM();
}
-PHP_METHOD(Test_ScallExternal, testCall2) {
+PHP_METHOD(Stub_ScallExternal, testCall2) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -63,13 +63,13 @@ PHP_METHOD(Test_ScallExternal, testCall2) {
- ZEPHIR_RETURN_CALL_CE_STATIC(test_scall_ce, "testmethod4", &_0, 0, a, b);
+ ZEPHIR_RETURN_CALL_CE_STATIC(stub_scall_ce, "testmethod4", &_0, 0, a, b);
zephir_check_call_status();
RETURN_MM();
}
-PHP_METHOD(Test_ScallExternal, testMethod3) {
+PHP_METHOD(Stub_ScallExternal, testMethod3) {
zval *a_param = NULL, *b_param = NULL;
long a, b;
diff --git a/ext/stub/scallexternal.zep.h b/ext/stub/scallexternal.zep.h
new file mode 100644
index 0000000000..a65bdaf9c1
--- /dev/null
+++ b/ext/stub/scallexternal.zep.h
@@ -0,0 +1,33 @@
+
+extern zend_class_entry *stub_scallexternal_ce;
+
+ZEPHIR_INIT_CLASS(Stub_ScallExternal);
+
+PHP_METHOD(Stub_ScallExternal, testCall1);
+PHP_METHOD(Stub_ScallExternal, testCall2);
+PHP_METHOD(Stub_ScallExternal, testMethod3);
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scallexternal_testcall2, 0, 0, 2)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, b)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scallexternal_testmethod3, 0, 0, 2)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, a, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, a)
+#endif
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, b, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, b)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEPHIR_INIT_FUNCS(stub_scallexternal_method_entry) {
+ PHP_ME(Stub_ScallExternal, testCall1, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_ScallExternal, testCall2, arginfo_stub_scallexternal_testcall2, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_ScallExternal, testMethod3, arginfo_stub_scallexternal_testmethod3, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+ PHP_FE_END
+};
diff --git a/ext/test/scallparent.zep.c b/ext/stub/scallparent.zep.c
similarity index 73%
rename from ext/test/scallparent.zep.c
rename to ext/stub/scallparent.zep.c
index 6c756f2104..b5177bc091 100644
--- a/ext/test/scallparent.zep.c
+++ b/ext/stub/scallparent.zep.c
@@ -20,15 +20,15 @@
/**
* Static Function calls
*/
-ZEPHIR_INIT_CLASS(Test_ScallParent) {
+ZEPHIR_INIT_CLASS(Stub_ScallParent) {
- ZEPHIR_REGISTER_CLASS(Test, ScallParent, test, scallparent, test_scallparent_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS(Stub, ScallParent, stub, scallparent, stub_scallparent_method_entry, 0);
return SUCCESS;
}
-PHP_METHOD(Test_ScallParent, testMethod1) {
+PHP_METHOD(Stub_ScallParent, testMethod1) {
zval *this_ptr = getThis();
@@ -37,7 +37,7 @@ PHP_METHOD(Test_ScallParent, testMethod1) {
}
-PHP_METHOD(Test_ScallParent, testMethod2) {
+PHP_METHOD(Stub_ScallParent, testMethod2) {
zval *this_ptr = getThis();
@@ -46,7 +46,7 @@ PHP_METHOD(Test_ScallParent, testMethod2) {
}
-PHP_METHOD(Test_ScallParent, testCallStatic) {
+PHP_METHOD(Stub_ScallParent, testCallStatic) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -61,7 +61,7 @@ PHP_METHOD(Test_ScallParent, testCallStatic) {
}
-PHP_METHOD(Test_ScallParent, testMethodStatic) {
+PHP_METHOD(Stub_ScallParent, testMethodStatic) {
zval *this_ptr = getThis();
diff --git a/ext/stub/scallparent.zep.h b/ext/stub/scallparent.zep.h
new file mode 100644
index 0000000000..719c55249f
--- /dev/null
+++ b/ext/stub/scallparent.zep.h
@@ -0,0 +1,45 @@
+
+extern zend_class_entry *stub_scallparent_ce;
+
+ZEPHIR_INIT_CLASS(Stub_ScallParent);
+
+PHP_METHOD(Stub_ScallParent, testMethod1);
+PHP_METHOD(Stub_ScallParent, testMethod2);
+PHP_METHOD(Stub_ScallParent, testCallStatic);
+PHP_METHOD(Stub_ScallParent, testMethodStatic);
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testmethod1, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testmethod1, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testmethod2, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testmethod2, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testcallstatic, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testcallstatic, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testmethodstatic, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_scallparent_testmethodstatic, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEPHIR_INIT_FUNCS(stub_scallparent_method_entry) {
+ PHP_ME(Stub_ScallParent, testMethod1, arginfo_stub_scallparent_testmethod1, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_ScallParent, testMethod2, arginfo_stub_scallparent_testmethod2, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED)
+ PHP_ME(Stub_ScallParent, testCallStatic, arginfo_stub_scallparent_testcallstatic, ZEND_ACC_STATIC|ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_ScallParent, testMethodStatic, arginfo_stub_scallparent_testmethodstatic, ZEND_ACC_STATIC|ZEND_ACC_PROTECTED)
+ PHP_FE_END
+};
diff --git a/ext/test/scope.zep.c b/ext/stub/scope.zep.c
similarity index 92%
rename from ext/test/scope.zep.c
rename to ext/stub/scope.zep.c
index 3624001319..e3ea7977db 100644
--- a/ext/test/scope.zep.c
+++ b/ext/stub/scope.zep.c
@@ -20,15 +20,15 @@
#include "kernel/array.h"
-ZEPHIR_INIT_CLASS(Test_Scope) {
+ZEPHIR_INIT_CLASS(Stub_Scope) {
- ZEPHIR_REGISTER_CLASS(Test, Scope, test, scope, test_scope_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS(Stub, Scope, stub, scope, stub_scope_method_entry, 0);
return SUCCESS;
}
-PHP_METHOD(Test_Scope, getStr) {
+PHP_METHOD(Stub_Scope, getStr) {
zval *this_ptr = getThis();
@@ -37,7 +37,7 @@ PHP_METHOD(Test_Scope, getStr) {
}
-PHP_METHOD(Test_Scope, getDyStr) {
+PHP_METHOD(Stub_Scope, getDyStr) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zval *g_param = NULL, _0;
@@ -59,7 +59,7 @@ PHP_METHOD(Test_Scope, getDyStr) {
}
-PHP_METHOD(Test_Scope, test1) {
+PHP_METHOD(Stub_Scope, test1) {
zval ret, k, k$$3;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -88,7 +88,7 @@ PHP_METHOD(Test_Scope, test1) {
}
-PHP_METHOD(Test_Scope, test2) {
+PHP_METHOD(Stub_Scope, test2) {
zend_bool _0;
zval k, c, _5, _3$$3, _4$$3;
@@ -139,7 +139,7 @@ PHP_METHOD(Test_Scope, test2) {
}
-PHP_METHOD(Test_Scope, test3) {
+PHP_METHOD(Stub_Scope, test3) {
zend_bool _0;
zval k, c, str$$3;
diff --git a/ext/stub/scope.zep.h b/ext/stub/scope.zep.h
new file mode 100644
index 0000000000..8e57edbfaa
--- /dev/null
+++ b/ext/stub/scope.zep.h
@@ -0,0 +1,27 @@
+
+extern zend_class_entry *stub_scope_ce;
+
+ZEPHIR_INIT_CLASS(Stub_Scope);
+
+PHP_METHOD(Stub_Scope, getStr);
+PHP_METHOD(Stub_Scope, getDyStr);
+PHP_METHOD(Stub_Scope, test1);
+PHP_METHOD(Stub_Scope, test2);
+PHP_METHOD(Stub_Scope, test3);
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_scope_getdystr, 0, 0, 1)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, g, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, g)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEPHIR_INIT_FUNCS(stub_scope_method_entry) {
+ PHP_ME(Stub_Scope, getStr, NULL, ZEND_ACC_PRIVATE|ZEND_ACC_STATIC)
+ PHP_ME(Stub_Scope, getDyStr, arginfo_stub_scope_getdystr, ZEND_ACC_PRIVATE|ZEND_ACC_STATIC)
+ PHP_ME(Stub_Scope, test1, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+ PHP_ME(Stub_Scope, test2, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+ PHP_ME(Stub_Scope, test3, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+ PHP_FE_END
+};
diff --git a/ext/test/sort.zep.c b/ext/stub/sort.zep.c
similarity index 85%
rename from ext/test/sort.zep.c
rename to ext/stub/sort.zep.c
index 37f84ff89b..6b57bc847d 100644
--- a/ext/test/sort.zep.c
+++ b/ext/stub/sort.zep.c
@@ -19,15 +19,15 @@
#include "kernel/object.h"
-ZEPHIR_INIT_CLASS(Test_Sort) {
+ZEPHIR_INIT_CLASS(Stub_Sort) {
- ZEPHIR_REGISTER_CLASS(Test, Sort, test, sort, test_sort_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS(Stub, Sort, stub, sort, stub_sort_method_entry, 0);
return SUCCESS;
}
-PHP_METHOD(Test_Sort, quick) {
+PHP_METHOD(Stub_Sort, quick) {
zend_bool _1;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -60,7 +60,7 @@ PHP_METHOD(Test_Sort, quick) {
RETURN_CTOR(&arr);
}
ZEPHIR_OBS_VAR(&_0);
- zephir_array_fetch_long(&_0, &arr, 0, PH_NOISY, "test/sort.zep", 18);
+ zephir_array_fetch_long(&_0, &arr, 0, PH_NOISY, "stub/sort.zep", 18);
pivot = zephir_get_intval(&_0);
ZEPHIR_INIT_VAR(&left);
array_init(&left);
@@ -81,16 +81,16 @@ PHP_METHOD(Test_Sort, quick) {
}
i = _2;
ZEPHIR_OBS_NVAR(&_4$$4);
- zephir_array_fetch_long(&_4$$4, &arr, i, PH_NOISY, "test/sort.zep", 23);
+ zephir_array_fetch_long(&_4$$4, &arr, i, PH_NOISY, "stub/sort.zep", 23);
item = zephir_get_intval(&_4$$4);
if (item < pivot) {
ZEPHIR_INIT_NVAR(&_5$$5);
ZVAL_LONG(&_5$$5, item);
- zephir_array_append(&left, &_5$$5, PH_SEPARATE, "test/sort.zep", 25);
+ zephir_array_append(&left, &_5$$5, PH_SEPARATE, "stub/sort.zep", 25);
} else {
ZEPHIR_INIT_NVAR(&_6$$6);
ZVAL_LONG(&_6$$6, item);
- zephir_array_append(&right, &_6$$6, PH_SEPARATE, "test/sort.zep", 27);
+ zephir_array_append(&right, &_6$$6, PH_SEPARATE, "stub/sort.zep", 27);
}
}
}
diff --git a/ext/stub/sort.zep.h b/ext/stub/sort.zep.h
new file mode 100644
index 0000000000..30d2b943bd
--- /dev/null
+++ b/ext/stub/sort.zep.h
@@ -0,0 +1,15 @@
+
+extern zend_class_entry *stub_sort_ce;
+
+ZEPHIR_INIT_CLASS(Stub_Sort);
+
+PHP_METHOD(Stub_Sort, quick);
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_sort_quick, 0, 0, 1)
+ ZEND_ARG_ARRAY_INFO(0, arr, 0)
+ZEND_END_ARG_INFO()
+
+ZEPHIR_INIT_FUNCS(stub_sort_method_entry) {
+ PHP_ME(Stub_Sort, quick, arginfo_stub_sort_quick, ZEND_ACC_PUBLIC)
+ PHP_FE_END
+};
diff --git a/ext/test/spectralnorm.zep.c b/ext/stub/spectralnorm.zep.c
similarity index 96%
rename from ext/test/spectralnorm.zep.c
rename to ext/stub/spectralnorm.zep.c
index 14e9dea336..4f87fabd47 100644
--- a/ext/test/spectralnorm.zep.c
+++ b/ext/stub/spectralnorm.zep.c
@@ -25,15 +25,15 @@
*
* @see http://mathworld.wolfram.com/SpectralNorm.html
*/
-ZEPHIR_INIT_CLASS(Test_SpectralNorm) {
+ZEPHIR_INIT_CLASS(Stub_SpectralNorm) {
- ZEPHIR_REGISTER_CLASS(Test, SpectralNorm, test, spectralnorm, test_spectralnorm_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS(Stub, SpectralNorm, stub, spectralnorm, stub_spectralnorm_method_entry, 0);
return SUCCESS;
}
-PHP_METHOD(Test_SpectralNorm, Ax) {
+PHP_METHOD(Stub_SpectralNorm, Ax) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zval *i, i_sub, *j, j_sub, _0, _1;
@@ -57,7 +57,7 @@ PHP_METHOD(Test_SpectralNorm, Ax) {
}
-PHP_METHOD(Test_SpectralNorm, Au) {
+PHP_METHOD(Stub_SpectralNorm, Au) {
zend_bool _0, _3$$3;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -133,7 +133,7 @@ PHP_METHOD(Test_SpectralNorm, Au) {
}
-PHP_METHOD(Test_SpectralNorm, Atu) {
+PHP_METHOD(Stub_SpectralNorm, Atu) {
zend_bool _0, _3$$3;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -209,7 +209,7 @@ PHP_METHOD(Test_SpectralNorm, Atu) {
}
-PHP_METHOD(Test_SpectralNorm, AtAu) {
+PHP_METHOD(Stub_SpectralNorm, AtAu) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -234,7 +234,7 @@ PHP_METHOD(Test_SpectralNorm, AtAu) {
}
-PHP_METHOD(Test_SpectralNorm, process) {
+PHP_METHOD(Stub_SpectralNorm, process) {
zend_bool _1, _7, _12;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
diff --git a/ext/stub/spectralnorm.zep.h b/ext/stub/spectralnorm.zep.h
new file mode 100644
index 0000000000..20ac2135c7
--- /dev/null
+++ b/ext/stub/spectralnorm.zep.h
@@ -0,0 +1,59 @@
+
+extern zend_class_entry *stub_spectralnorm_ce;
+
+ZEPHIR_INIT_CLASS(Stub_SpectralNorm);
+
+PHP_METHOD(Stub_SpectralNorm, Ax);
+PHP_METHOD(Stub_SpectralNorm, Au);
+PHP_METHOD(Stub_SpectralNorm, Atu);
+PHP_METHOD(Stub_SpectralNorm, AtAu);
+PHP_METHOD(Stub_SpectralNorm, process);
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spectralnorm_ax, 0, 0, 2)
+ ZEND_ARG_INFO(0, i)
+ ZEND_ARG_INFO(0, j)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spectralnorm_au, 0, 0, 3)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, n)
+#endif
+ ZEND_ARG_OBJ_INFO(0, u, SplFixedArray, 0)
+ ZEND_ARG_OBJ_INFO(0, v, SplFixedArray, 0)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spectralnorm_atu, 0, 0, 3)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, n)
+#endif
+ ZEND_ARG_OBJ_INFO(0, u, SplFixedArray, 0)
+ ZEND_ARG_OBJ_INFO(0, v, SplFixedArray, 0)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spectralnorm_atau, 0, 0, 4)
+ ZEND_ARG_INFO(0, n)
+ ZEND_ARG_INFO(0, u)
+ ZEND_ARG_INFO(0, v)
+ ZEND_ARG_INFO(0, w)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spectralnorm_process, 0, 0, 1)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, n, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, n)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEPHIR_INIT_FUNCS(stub_spectralnorm_method_entry) {
+ PHP_ME(Stub_SpectralNorm, Ax, arginfo_stub_spectralnorm_ax, ZEND_ACC_PRIVATE)
+ PHP_ME(Stub_SpectralNorm, Au, arginfo_stub_spectralnorm_au, ZEND_ACC_PRIVATE)
+ PHP_ME(Stub_SpectralNorm, Atu, arginfo_stub_spectralnorm_atu, ZEND_ACC_PRIVATE)
+ PHP_ME(Stub_SpectralNorm, AtAu, arginfo_stub_spectralnorm_atau, ZEND_ACC_PRIVATE)
+ PHP_ME(Stub_SpectralNorm, process, arginfo_stub_spectralnorm_process, ZEND_ACC_PUBLIC)
+ PHP_FE_END
+};
diff --git a/ext/test/spropertyaccess.zep.c b/ext/stub/spropertyaccess.zep.c
similarity index 69%
rename from ext/test/spropertyaccess.zep.c
rename to ext/stub/spropertyaccess.zep.c
index d87f0e1da0..e4f4723a11 100644
--- a/ext/test/spropertyaccess.zep.c
+++ b/ext/stub/spropertyaccess.zep.c
@@ -23,31 +23,31 @@
/**
* Class with constructor + params
*/
-ZEPHIR_INIT_CLASS(Test_SPropertyAccess) {
+ZEPHIR_INIT_CLASS(Stub_SPropertyAccess) {
- ZEPHIR_REGISTER_CLASS(Test, SPropertyAccess, test, spropertyaccess, test_spropertyaccess_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS(Stub, SPropertyAccess, stub, spropertyaccess, stub_spropertyaccess_method_entry, 0);
- zend_declare_property_null(test_spropertyaccess_ce, SL("a"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
+ zend_declare_property_null(stub_spropertyaccess_ce, SL("a"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
- zend_declare_property_null(test_spropertyaccess_ce, SL("b"), ZEND_ACC_PRIVATE|ZEND_ACC_STATIC);
+ zend_declare_property_null(stub_spropertyaccess_ce, SL("b"), ZEND_ACC_PRIVATE|ZEND_ACC_STATIC);
- zend_declare_property_string(test_spropertyaccess_ce, SL("delimiter"), ".", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
+ zend_declare_property_string(stub_spropertyaccess_ce, SL("delimiter"), ".", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
- zend_declare_property_string(test_spropertyaccess_ce, SL("_delimiterWithUnderscore"), ".", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
+ zend_declare_property_string(stub_spropertyaccess_ce, SL("_delimiterWithUnderscore"), ".", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
- zend_declare_property_string(test_spropertyaccess_ce, SL("stringVar"), "", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
+ zend_declare_property_string(stub_spropertyaccess_ce, SL("stringVar"), "", ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
- zend_declare_property_long(test_spropertyaccess_ce, SL("intVar"), 0, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
+ zend_declare_property_long(stub_spropertyaccess_ce, SL("intVar"), 0, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
- zend_declare_property_double(test_spropertyaccess_ce, SL("doubleVar"), 0.0, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
+ zend_declare_property_double(stub_spropertyaccess_ce, SL("doubleVar"), 0.0, ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
- zend_declare_property_null(test_spropertyaccess_ce, SL("arrayVar"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
+ zend_declare_property_null(stub_spropertyaccess_ce, SL("arrayVar"), ZEND_ACC_PROTECTED|ZEND_ACC_STATIC);
return SUCCESS;
}
-PHP_METHOD(Test_SPropertyAccess, __construct) {
+PHP_METHOD(Stub_SPropertyAccess, __construct) {
zval _0, _1, _2, _3, _4;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -64,24 +64,24 @@ PHP_METHOD(Test_SPropertyAccess, __construct) {
ZEPHIR_INIT_ZVAL_NREF(_0);
ZEPHIR_INIT_VAR(&_0);
ZVAL_STRING(&_0, "abc");
- zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("a"), &_0);
- zephir_read_static_property_ce(&_0, test_spropertyaccess_ce, SL("a"), PH_NOISY_CC | PH_READONLY);
+ zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("a"), &_0);
+ zephir_read_static_property_ce(&_0, stub_spropertyaccess_ce, SL("a"), PH_NOISY_CC | PH_READONLY);
ZVAL_LONG(&_1, 0);
ZVAL_LONG(&_2, 1);
ZEPHIR_INIT_VAR(&_3);
zephir_substr(&_3, &_0, 0 , 1 , 0);
- zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("b"), &_3);
+ zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("b"), &_3);
ZEPHIR_OBS_VAR(&_4);
- zephir_read_static_property_ce(&_4, test_spropertyaccess_ce, SL("b"), PH_NOISY_CC);
- zephir_update_static_property_ce(test_scallexternal_ce, ZEND_STRL("sproperty"), &_4);
+ zephir_read_static_property_ce(&_4, stub_spropertyaccess_ce, SL("b"), PH_NOISY_CC);
+ zephir_update_static_property_ce(stub_scallexternal_ce, ZEND_STRL("sproperty"), &_4);
ZEPHIR_OBS_NVAR(&_4);
- zephir_read_static_property_ce(&_4, test_scallexternal_ce, SL("sproperty"), PH_NOISY_CC);
- zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("b"), &_4);
+ zephir_read_static_property_ce(&_4, stub_scallexternal_ce, SL("sproperty"), PH_NOISY_CC);
+ zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("b"), &_4);
ZEPHIR_MM_RESTORE();
}
-PHP_METHOD(Test_SPropertyAccess, testArgumentWithUnderscore) {
+PHP_METHOD(Stub_SPropertyAccess, testArgumentWithUnderscore) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zval *delimiter = NULL, delimiter_sub, __$null;
@@ -103,14 +103,14 @@ PHP_METHOD(Test_SPropertyAccess, testArgumentWithUnderscore) {
if (ZEPHIR_IS_EMPTY(delimiter)) {
ZEPHIR_OBS_NVAR(delimiter);
- zephir_read_static_property_ce(delimiter, test_spropertyaccess_ce, SL("_delimiterWithUnderscore"), PH_NOISY_CC);
+ zephir_read_static_property_ce(delimiter, stub_spropertyaccess_ce, SL("_delimiterWithUnderscore"), PH_NOISY_CC);
}
RETVAL_ZVAL(delimiter, 1, 0);
RETURN_MM();
}
-PHP_METHOD(Test_SPropertyAccess, testArgument) {
+PHP_METHOD(Stub_SPropertyAccess, testArgument) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zval *delimiter = NULL, delimiter_sub, __$null, _0$$3;
@@ -133,7 +133,7 @@ PHP_METHOD(Test_SPropertyAccess, testArgument) {
if (ZEPHIR_IS_EMPTY(delimiter)) {
ZEPHIR_OBS_VAR(&_0$$3);
- zephir_read_static_property_ce(&_0$$3, test_spropertyaccess_ce, SL("delimiter"), PH_NOISY_CC);
+ zephir_read_static_property_ce(&_0$$3, stub_spropertyaccess_ce, SL("delimiter"), PH_NOISY_CC);
ZEPHIR_CPY_WRT(delimiter, &_0$$3);
}
RETVAL_ZVAL(delimiter, 1, 0);
@@ -141,7 +141,7 @@ PHP_METHOD(Test_SPropertyAccess, testArgument) {
}
-PHP_METHOD(Test_SPropertyAccess, mutateStringVarInsideCycle) {
+PHP_METHOD(Stub_SPropertyAccess, mutateStringVarInsideCycle) {
zend_long _1, _2;
zend_bool _0;
@@ -173,13 +173,13 @@ PHP_METHOD(Test_SPropertyAccess, mutateStringVarInsideCycle) {
ZEPHIR_INIT_NVAR(&i);
ZVAL_STRING(&i, " + ");
ZEPHIR_OBS_NVAR(&_3$$3);
- zephir_read_static_property_ce(&_3$$3, test_spropertyaccess_ce, SL("stringVar"), PH_NOISY_CC);
+ zephir_read_static_property_ce(&_3$$3, stub_spropertyaccess_ce, SL("stringVar"), PH_NOISY_CC);
ZEPHIR_INIT_NVAR(&_4$$3);
ZEPHIR_CONCAT_VV(&_4$$3, &_3$$3, &i);
- zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("stringVar"), &_4$$3);
+ zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("stringVar"), &_4$$3);
}
}
- zephir_read_static_property_ce(&_5, test_spropertyaccess_ce, SL("stringVar"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_static_property_ce(&_5, stub_spropertyaccess_ce, SL("stringVar"), PH_NOISY_CC | PH_READONLY);
RETURN_CTOR(&_5);
}
@@ -187,7 +187,7 @@ PHP_METHOD(Test_SPropertyAccess, mutateStringVarInsideCycle) {
/**
* @see https://github.com/phalcon/zephir/issues/1494
*/
-PHP_METHOD(Test_SPropertyAccess, mutateIntVarInsideCycle) {
+PHP_METHOD(Stub_SPropertyAccess, mutateIntVarInsideCycle) {
zval _4, _3$$3;
zend_bool _0;
@@ -215,10 +215,10 @@ PHP_METHOD(Test_SPropertyAccess, mutateIntVarInsideCycle) {
i = 42;
ZEPHIR_INIT_ZVAL_NREF(_3$$3);
ZVAL_LONG(&_3$$3, i);
- zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("intVar"), &_3$$3);
+ zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("intVar"), &_3$$3);
}
}
- zephir_read_static_property_ce(&_4, test_spropertyaccess_ce, SL("intVar"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_static_property_ce(&_4, stub_spropertyaccess_ce, SL("intVar"), PH_NOISY_CC | PH_READONLY);
RETURN_CTORW(&_4);
}
@@ -226,7 +226,7 @@ PHP_METHOD(Test_SPropertyAccess, mutateIntVarInsideCycle) {
/**
* @see https://github.com/phalcon/zephir/issues/1494
*/
-PHP_METHOD(Test_SPropertyAccess, mutateDoubleVarInsideCycle) {
+PHP_METHOD(Stub_SPropertyAccess, mutateDoubleVarInsideCycle) {
zval _4, _3$$3;
zend_long _1, _2;
@@ -255,15 +255,15 @@ PHP_METHOD(Test_SPropertyAccess, mutateDoubleVarInsideCycle) {
i = 3.14;
ZEPHIR_INIT_ZVAL_NREF(_3$$3);
ZVAL_DOUBLE(&_3$$3, i);
- zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("doubleVar"), &_3$$3);
+ zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("doubleVar"), &_3$$3);
}
}
- zephir_read_static_property_ce(&_4, test_spropertyaccess_ce, SL("doubleVar"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_static_property_ce(&_4, stub_spropertyaccess_ce, SL("doubleVar"), PH_NOISY_CC | PH_READONLY);
RETURN_CTORW(&_4);
}
-PHP_METHOD(Test_SPropertyAccess, mutateArrayVarInsideCycle) {
+PHP_METHOD(Stub_SPropertyAccess, mutateArrayVarInsideCycle) {
zend_long _1, _2;
zend_bool _0;
@@ -297,18 +297,18 @@ PHP_METHOD(Test_SPropertyAccess, mutateArrayVarInsideCycle) {
ZEPHIR_INIT_NVAR(&j);
zephir_create_array(&j, 1, 0);
zephir_array_update_zval(&j, &i, &i, PH_COPY);
- zephir_read_static_property_ce(&_3$$3, test_spropertyaccess_ce, SL("arrayVar"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_static_property_ce(&_3$$3, stub_spropertyaccess_ce, SL("arrayVar"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_INIT_NVAR(&_4$$3);
zephir_add_function(&_4$$3, &_3$$3, &j);
- zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("arrayVar"), &_4$$3);
+ zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("arrayVar"), &_4$$3);
}
}
- zephir_read_static_property_ce(&_5, test_spropertyaccess_ce, SL("arrayVar"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_static_property_ce(&_5, stub_spropertyaccess_ce, SL("arrayVar"), PH_NOISY_CC | PH_READONLY);
RETURN_CTOR(&_5);
}
-void zephir_init_static_properties_Test_SPropertyAccess(TSRMLS_D) {
+void zephir_init_static_properties_Stub_SPropertyAccess(TSRMLS_D) {
zval _0;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -318,7 +318,7 @@ void zephir_init_static_properties_Test_SPropertyAccess(TSRMLS_D) {
ZEPHIR_INIT_VAR(&_0);
array_init(&_0);
- zephir_update_static_property_ce(test_spropertyaccess_ce, ZEND_STRL("arrayVar"), &_0);
+ zephir_update_static_property_ce(stub_spropertyaccess_ce, ZEND_STRL("arrayVar"), &_0);
ZEPHIR_MM_RESTORE();
}
diff --git a/ext/stub/spropertyaccess.zep.h b/ext/stub/spropertyaccess.zep.h
new file mode 100644
index 0000000000..f5b4088d89
--- /dev/null
+++ b/ext/stub/spropertyaccess.zep.h
@@ -0,0 +1,60 @@
+
+extern zend_class_entry *stub_spropertyaccess_ce;
+
+ZEPHIR_INIT_CLASS(Stub_SPropertyAccess);
+
+PHP_METHOD(Stub_SPropertyAccess, __construct);
+PHP_METHOD(Stub_SPropertyAccess, testArgumentWithUnderscore);
+PHP_METHOD(Stub_SPropertyAccess, testArgument);
+PHP_METHOD(Stub_SPropertyAccess, mutateStringVarInsideCycle);
+PHP_METHOD(Stub_SPropertyAccess, mutateIntVarInsideCycle);
+PHP_METHOD(Stub_SPropertyAccess, mutateDoubleVarInsideCycle);
+PHP_METHOD(Stub_SPropertyAccess, mutateArrayVarInsideCycle);
+void zephir_init_static_properties_Stub_SPropertyAccess(TSRMLS_D);
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spropertyaccess_testargumentwithunderscore, 0, 0, 0)
+ ZEND_ARG_INFO(0, delimiter)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_spropertyaccess_testargument, 0, 0, 0)
+ ZEND_ARG_INFO(0, delimiter)
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutatestringvarinsidecycle, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutatestringvarinsidecycle, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutateintvarinsidecycle, 0, 0, IS_LONG, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutateintvarinsidecycle, 0, 0, IS_LONG, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutatedoublevarinsidecycle, 0, 0, IS_DOUBLE, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutatedoublevarinsidecycle, 0, 0, IS_DOUBLE, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutatearrayvarinsidecycle, 0, 0, IS_ARRAY, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_spropertyaccess_mutatearrayvarinsidecycle, 0, 0, IS_ARRAY, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEPHIR_INIT_FUNCS(stub_spropertyaccess_method_entry) {
+ PHP_ME(Stub_SPropertyAccess, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR)
+ PHP_ME(Stub_SPropertyAccess, testArgumentWithUnderscore, arginfo_stub_spropertyaccess_testargumentwithunderscore, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_SPropertyAccess, testArgument, arginfo_stub_spropertyaccess_testargument, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_SPropertyAccess, mutateStringVarInsideCycle, arginfo_stub_spropertyaccess_mutatestringvarinsidecycle, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+ PHP_ME(Stub_SPropertyAccess, mutateIntVarInsideCycle, arginfo_stub_spropertyaccess_mutateintvarinsidecycle, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+ PHP_ME(Stub_SPropertyAccess, mutateDoubleVarInsideCycle, arginfo_stub_spropertyaccess_mutatedoublevarinsidecycle, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+ PHP_ME(Stub_SPropertyAccess, mutateArrayVarInsideCycle, arginfo_stub_spropertyaccess_mutatearrayvarinsidecycle, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
+ PHP_FE_END
+};
diff --git a/ext/test/statements.zep.c b/ext/stub/statements.zep.c
similarity index 64%
rename from ext/test/statements.zep.c
rename to ext/stub/statements.zep.c
index 869286cfb0..8cb20cec73 100644
--- a/ext/test/statements.zep.c
+++ b/ext/stub/statements.zep.c
@@ -22,32 +22,32 @@
#include "kernel/exception.h"
-ZEPHIR_INIT_CLASS(Test_Statements) {
+ZEPHIR_INIT_CLASS(Stub_Statements) {
- ZEPHIR_REGISTER_CLASS(Test, Statements, test, statements, test_statements_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS(Stub, Statements, stub, statements, stub_statements_method_entry, 0);
- zend_declare_property_string(test_statements_ce, SL("tmp1"), "test", ZEND_ACC_PUBLIC);
+ zend_declare_property_string(stub_statements_ce, SL("tmp1"), "test", ZEND_ACC_PUBLIC);
- zend_declare_property_string(test_statements_ce, SL("tmp2"), "test string", ZEND_ACC_PUBLIC);
+ zend_declare_property_string(stub_statements_ce, SL("tmp2"), "test string", ZEND_ACC_PUBLIC);
/**
* @issue https://github.com/phalcon/zephir/issues/544
*/
- zend_declare_property_long(test_statements_ce, SL("totalSteps"), 100, ZEND_ACC_PRIVATE);
+ zend_declare_property_long(stub_statements_ce, SL("totalSteps"), 100, ZEND_ACC_PRIVATE);
- zend_declare_property_long(test_statements_ce, SL("width"), 100, ZEND_ACC_PRIVATE);
+ zend_declare_property_long(stub_statements_ce, SL("width"), 100, ZEND_ACC_PRIVATE);
- zend_declare_property_string(test_statements_ce, SL("filledChar"), "=", ZEND_ACC_PRIVATE);
+ zend_declare_property_string(stub_statements_ce, SL("filledChar"), "=", ZEND_ACC_PRIVATE);
- zend_declare_property_string(test_statements_ce, SL("unfilledChar"), ".", ZEND_ACC_PRIVATE);
+ zend_declare_property_string(stub_statements_ce, SL("unfilledChar"), ".", ZEND_ACC_PRIVATE);
- zend_declare_property_string(test_statements_ce, SL("arrow"), ">", ZEND_ACC_PRIVATE);
+ zend_declare_property_string(stub_statements_ce, SL("arrow"), ">", ZEND_ACC_PRIVATE);
return SUCCESS;
}
-PHP_METHOD(Test_Statements, testPropertyAcccessAvoidTmpReuse) {
+PHP_METHOD(Stub_Statements, testPropertyAcccessAvoidTmpReuse) {
zval result1, result2, result3, result4, _0, _1, _2, _3, _4, _5, _6, _7;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -68,27 +68,27 @@ PHP_METHOD(Test_Statements, testPropertyAcccessAvoidTmpReuse) {
ZEPHIR_MM_GROW();
- zephir_read_property(&_0, this_ptr, SL("tmp2"), PH_NOISY_CC | PH_READONLY);
- zephir_read_property(&_1, this_ptr, SL("tmp1"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_0, this_ptr, ZEND_STRL("tmp2"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_1, this_ptr, ZEND_STRL("tmp1"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_INIT_VAR(&result1);
zephir_fast_strpos(&result1, &_0, &_1, 0 );
- zephir_read_property(&_2, this_ptr, SL("tmp2"), PH_NOISY_CC | PH_READONLY);
- zephir_read_property(&_3, this_ptr, SL("tmp1"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_2, this_ptr, ZEND_STRL("tmp2"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_3, this_ptr, ZEND_STRL("tmp1"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_INIT_VAR(&result2);
zephir_fast_strpos(&result2, &_2, &_3, 0 );
- zephir_read_property(&_4, this_ptr, SL("tmp2"), PH_NOISY_CC | PH_READONLY);
- zephir_read_property(&_5, this_ptr, SL("tmp1"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_4, this_ptr, ZEND_STRL("tmp2"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_5, this_ptr, ZEND_STRL("tmp1"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_INIT_VAR(&result3);
zephir_fast_strpos(&result3, &_4, &_5, 0 );
- zephir_read_property(&_6, this_ptr, SL("tmp2"), PH_NOISY_CC | PH_READONLY);
- zephir_read_property(&_7, this_ptr, SL("tmp1"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_6, this_ptr, ZEND_STRL("tmp2"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_7, this_ptr, ZEND_STRL("tmp1"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_INIT_VAR(&result4);
zephir_fast_strpos(&result4, &_6, &_7, 0 );
ZEPHIR_MM_RESTORE();
}
-PHP_METHOD(Test_Statements, testElseIf) {
+PHP_METHOD(Stub_Statements, testElseIf) {
zval *num_param = NULL;
zend_long num;
@@ -112,7 +112,7 @@ PHP_METHOD(Test_Statements, testElseIf) {
}
-PHP_METHOD(Test_Statements, testElseIf1) {
+PHP_METHOD(Stub_Statements, testElseIf1) {
zval *num_param = NULL;
zend_long num, total;
@@ -135,7 +135,7 @@ PHP_METHOD(Test_Statements, testElseIf1) {
}
-PHP_METHOD(Test_Statements, testElseIf2) {
+PHP_METHOD(Stub_Statements, testElseIf2) {
zval *num_param = NULL, *total, total_sub;
zend_long num;
@@ -158,7 +158,7 @@ PHP_METHOD(Test_Statements, testElseIf2) {
}
-PHP_METHOD(Test_Statements, test544Issue) {
+PHP_METHOD(Stub_Statements, test544Issue) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zephir_fcall_cache_entry *_8 = NULL;
@@ -192,34 +192,34 @@ PHP_METHOD(Test_Statements, test544Issue) {
step = Z_LVAL_P(step_param);
- zephir_read_property(&_0, this_ptr, SL("totalSteps"), PH_NOISY_CC | PH_READONLY);
- zephir_read_property(&_1, this_ptr, SL("totalSteps"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_0, this_ptr, ZEND_STRL("totalSteps"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_1, this_ptr, ZEND_STRL("totalSteps"), PH_NOISY_CC | PH_READONLY);
if (ZEPHIR_GT_LONG(&_0, step)) {
- zephir_read_property(&_2$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY);
- zephir_read_property(&_3$$3, this_ptr, SL("totalSteps"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_2$$3, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_3$$3, this_ptr, ZEND_STRL("totalSteps"), PH_NOISY_CC | PH_READONLY);
filledWidth = (long) ((zephir_safe_div_long_zval(((zephir_get_numberval(&_2$$3) - 1)), &_3$$3) * step));
- zephir_read_property(&_4$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_4$$3, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY);
unfilledWidth = (((zephir_get_numberval(&_4$$3) - 1)) - filledWidth);
- zephir_read_property(&_5$$3, this_ptr, SL("filledChar"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_5$$3, this_ptr, ZEND_STRL("filledChar"), PH_NOISY_CC | PH_READONLY);
ZVAL_LONG(&_6$$3, filledWidth);
ZEPHIR_CALL_FUNCTION(&_7$$3, "str_repeat", &_8, 21, &_5$$3, &_6$$3);
zephir_check_call_status();
- zephir_read_property(&_6$$3, this_ptr, SL("arrow"), PH_NOISY_CC | PH_READONLY);
- zephir_read_property(&_9$$3, this_ptr, SL("unfilledChar"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_6$$3, this_ptr, ZEND_STRL("arrow"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_9$$3, this_ptr, ZEND_STRL("unfilledChar"), PH_NOISY_CC | PH_READONLY);
ZVAL_LONG(&_10$$3, unfilledWidth);
ZEPHIR_CALL_FUNCTION(&_11$$3, "str_repeat", &_8, 21, &_9$$3, &_10$$3);
zephir_check_call_status();
ZEPHIR_CONCAT_VVV(return_value, &_7$$3, &_6$$3, &_11$$3);
RETURN_MM();
} else if (ZEPHIR_IS_LONG_IDENTICAL(&_1, step)) {
- zephir_read_property(&_12$$4, this_ptr, SL("filledChar"), PH_NOISY_CC | PH_READONLY);
- zephir_read_property(&_13$$4, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_12$$4, this_ptr, ZEND_STRL("filledChar"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_13$$4, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_RETURN_CALL_FUNCTION("str_repeat", &_8, 21, &_12$$4, &_13$$4);
zephir_check_call_status();
RETURN_MM();
} else {
- zephir_read_property(&_14$$5, this_ptr, SL("unfilledChar"), PH_NOISY_CC | PH_READONLY);
- zephir_read_property(&_15$$5, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_14$$5, this_ptr, ZEND_STRL("unfilledChar"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_15$$5, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_RETURN_CALL_FUNCTION("str_repeat", &_8, 21, &_14$$5, &_15$$5);
zephir_check_call_status();
RETURN_MM();
@@ -227,7 +227,7 @@ PHP_METHOD(Test_Statements, test544Issue) {
}
-PHP_METHOD(Test_Statements, test544IssueWithVariable) {
+PHP_METHOD(Stub_Statements, test544IssueWithVariable) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zephir_fcall_cache_entry *_6 = NULL;
@@ -259,33 +259,33 @@ PHP_METHOD(Test_Statements, test544IssueWithVariable) {
step = Z_LVAL_P(step_param);
- zephir_read_property(&_0, this_ptr, SL("totalSteps"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_0, this_ptr, ZEND_STRL("totalSteps"), PH_NOISY_CC | PH_READONLY);
totalSteps = zephir_get_numberval(&_0);
if (step < totalSteps) {
- zephir_read_property(&_1$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_1$$3, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY);
filledWidth = (long) ((zephir_safe_div_long_long(((zephir_get_numberval(&_1$$3) - 1)), totalSteps) * step));
- zephir_read_property(&_2$$3, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_2$$3, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY);
unfilledWidth = (((zephir_get_numberval(&_2$$3) - 1)) - filledWidth);
- zephir_read_property(&_3$$3, this_ptr, SL("filledChar"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_3$$3, this_ptr, ZEND_STRL("filledChar"), PH_NOISY_CC | PH_READONLY);
ZVAL_LONG(&_4$$3, filledWidth);
ZEPHIR_CALL_FUNCTION(&_5$$3, "str_repeat", &_6, 21, &_3$$3, &_4$$3);
zephir_check_call_status();
- zephir_read_property(&_4$$3, this_ptr, SL("arrow"), PH_NOISY_CC | PH_READONLY);
- zephir_read_property(&_7$$3, this_ptr, SL("unfilledChar"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_4$$3, this_ptr, ZEND_STRL("arrow"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_7$$3, this_ptr, ZEND_STRL("unfilledChar"), PH_NOISY_CC | PH_READONLY);
ZVAL_LONG(&_8$$3, unfilledWidth);
ZEPHIR_CALL_FUNCTION(&_9$$3, "str_repeat", &_6, 21, &_7$$3, &_8$$3);
zephir_check_call_status();
ZEPHIR_CONCAT_VVV(return_value, &_5$$3, &_4$$3, &_9$$3);
RETURN_MM();
} else if (step == totalSteps) {
- zephir_read_property(&_10$$4, this_ptr, SL("filledChar"), PH_NOISY_CC | PH_READONLY);
- zephir_read_property(&_11$$4, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_10$$4, this_ptr, ZEND_STRL("filledChar"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_11$$4, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_RETURN_CALL_FUNCTION("str_repeat", &_6, 21, &_10$$4, &_11$$4);
zephir_check_call_status();
RETURN_MM();
} else {
- zephir_read_property(&_12$$5, this_ptr, SL("unfilledChar"), PH_NOISY_CC | PH_READONLY);
- zephir_read_property(&_13$$5, this_ptr, SL("width"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_12$$5, this_ptr, ZEND_STRL("unfilledChar"), PH_NOISY_CC | PH_READONLY);
+ zephir_read_property(&_13$$5, this_ptr, ZEND_STRL("width"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_RETURN_CALL_FUNCTION("str_repeat", &_6, 21, &_12$$5, &_13$$5);
zephir_check_call_status();
RETURN_MM();
diff --git a/ext/stub/statements.zep.h b/ext/stub/statements.zep.h
new file mode 100644
index 0000000000..4d04291d24
--- /dev/null
+++ b/ext/stub/statements.zep.h
@@ -0,0 +1,62 @@
+
+extern zend_class_entry *stub_statements_ce;
+
+ZEPHIR_INIT_CLASS(Stub_Statements);
+
+PHP_METHOD(Stub_Statements, testPropertyAcccessAvoidTmpReuse);
+PHP_METHOD(Stub_Statements, testElseIf);
+PHP_METHOD(Stub_Statements, testElseIf1);
+PHP_METHOD(Stub_Statements, testElseIf2);
+PHP_METHOD(Stub_Statements, test544Issue);
+PHP_METHOD(Stub_Statements, test544IssueWithVariable);
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_statements_testelseif, 0, 0, 1)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, num)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_statements_testelseif1, 0, 0, 1)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, num)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_statements_testelseif2, 0, 0, 2)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, num, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, num)
+#endif
+ ZEND_ARG_INFO(0, total)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_statements_test544issue, 0, 0, 1)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, step, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, step)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_statements_test544issuewithvariable, 0, 0, 1)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, step, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, step)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEPHIR_INIT_FUNCS(stub_statements_method_entry) {
+ PHP_ME(Stub_Statements, testPropertyAcccessAvoidTmpReuse, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Statements, testElseIf, arginfo_stub_statements_testelseif, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Statements, testElseIf1, arginfo_stub_statements_testelseif1, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Statements, testElseIf2, arginfo_stub_statements_testelseif2, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Statements, test544Issue, arginfo_stub_statements_test544issue, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Statements, test544IssueWithVariable, arginfo_stub_statements_test544issuewithvariable, ZEND_ACC_PUBLIC)
+ PHP_FE_END
+};
diff --git a/ext/test/strings.zep.c b/ext/stub/strings.zep.c
similarity index 88%
rename from ext/test/strings.zep.c
rename to ext/stub/strings.zep.c
index 12b01fa19c..d62ac1c451 100644
--- a/ext/test/strings.zep.c
+++ b/ext/stub/strings.zep.c
@@ -20,15 +20,15 @@
#include "kernel/array.h"
-ZEPHIR_INIT_CLASS(Test_Strings) {
+ZEPHIR_INIT_CLASS(Stub_Strings) {
- ZEPHIR_REGISTER_CLASS(Test, Strings, test, strings, test_strings_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS(Stub, Strings, stub, strings, stub_strings_method_entry, 0);
return SUCCESS;
}
-PHP_METHOD(Test_Strings, camelize) {
+PHP_METHOD(Stub_Strings, camelize) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zval *str_param = NULL, *delimiter = NULL, delimiter_sub, __$null;
@@ -54,7 +54,7 @@ PHP_METHOD(Test_Strings, camelize) {
}
-PHP_METHOD(Test_Strings, uncamelize) {
+PHP_METHOD(Stub_Strings, uncamelize) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zval *str_param = NULL, *delimiter = NULL, delimiter_sub, __$null;
@@ -80,7 +80,7 @@ PHP_METHOD(Test_Strings, uncamelize) {
}
-PHP_METHOD(Test_Strings, testTrim) {
+PHP_METHOD(Stub_Strings, testTrim) {
zval *str, str_sub;
zval *this_ptr = getThis();
@@ -96,7 +96,7 @@ PHP_METHOD(Test_Strings, testTrim) {
}
-PHP_METHOD(Test_Strings, testRtrim) {
+PHP_METHOD(Stub_Strings, testRtrim) {
zval *str, str_sub;
zval *this_ptr = getThis();
@@ -112,7 +112,7 @@ PHP_METHOD(Test_Strings, testRtrim) {
}
-PHP_METHOD(Test_Strings, testLtrim) {
+PHP_METHOD(Stub_Strings, testLtrim) {
zval *str, str_sub;
zval *this_ptr = getThis();
@@ -128,7 +128,7 @@ PHP_METHOD(Test_Strings, testLtrim) {
}
-PHP_METHOD(Test_Strings, testTrim2Params) {
+PHP_METHOD(Stub_Strings, testTrim2Params) {
zval *str, str_sub, *charlist, charlist_sub;
zval *this_ptr = getThis();
@@ -145,7 +145,7 @@ PHP_METHOD(Test_Strings, testTrim2Params) {
}
-PHP_METHOD(Test_Strings, testRtrim2Params) {
+PHP_METHOD(Stub_Strings, testRtrim2Params) {
zval *str, str_sub, *charlist, charlist_sub;
zval *this_ptr = getThis();
@@ -162,7 +162,7 @@ PHP_METHOD(Test_Strings, testRtrim2Params) {
}
-PHP_METHOD(Test_Strings, testLtrim2Params) {
+PHP_METHOD(Stub_Strings, testLtrim2Params) {
zval *str, str_sub, *charlist, charlist_sub;
zval *this_ptr = getThis();
@@ -179,7 +179,7 @@ PHP_METHOD(Test_Strings, testLtrim2Params) {
}
-PHP_METHOD(Test_Strings, testImplode) {
+PHP_METHOD(Stub_Strings, testImplode) {
zval *glue, glue_sub, *pieces, pieces_sub;
zval *this_ptr = getThis();
@@ -196,7 +196,7 @@ PHP_METHOD(Test_Strings, testImplode) {
}
-PHP_METHOD(Test_Strings, testStrpos) {
+PHP_METHOD(Stub_Strings, testStrpos) {
zval *haystack, haystack_sub, *needle, needle_sub;
zval *this_ptr = getThis();
@@ -213,7 +213,7 @@ PHP_METHOD(Test_Strings, testStrpos) {
}
-PHP_METHOD(Test_Strings, testStrposOffset) {
+PHP_METHOD(Stub_Strings, testStrposOffset) {
zend_long offset;
zval *haystack, haystack_sub, *needle, needle_sub, *offset_param = NULL, _0;
@@ -234,7 +234,7 @@ PHP_METHOD(Test_Strings, testStrposOffset) {
}
-PHP_METHOD(Test_Strings, testExplode) {
+PHP_METHOD(Stub_Strings, testExplode) {
zval *delimiter, delimiter_sub, *str, str_sub;
zval *this_ptr = getThis();
@@ -251,7 +251,7 @@ PHP_METHOD(Test_Strings, testExplode) {
}
-PHP_METHOD(Test_Strings, testExplodeStr) {
+PHP_METHOD(Stub_Strings, testExplodeStr) {
zval *str, str_sub;
zval *this_ptr = getThis();
@@ -267,7 +267,7 @@ PHP_METHOD(Test_Strings, testExplodeStr) {
}
-PHP_METHOD(Test_Strings, testExplodeLimit) {
+PHP_METHOD(Stub_Strings, testExplodeLimit) {
zend_long limit;
zval *str, str_sub, *limit_param = NULL, _0;
@@ -287,7 +287,7 @@ PHP_METHOD(Test_Strings, testExplodeLimit) {
}
-PHP_METHOD(Test_Strings, testSubstr) {
+PHP_METHOD(Stub_Strings, testSubstr) {
zend_long from, len;
zval *str, str_sub, *from_param = NULL, *len_param = NULL, _0, _1;
@@ -310,7 +310,7 @@ PHP_METHOD(Test_Strings, testSubstr) {
}
-PHP_METHOD(Test_Strings, testSubstr2) {
+PHP_METHOD(Stub_Strings, testSubstr2) {
zend_long from;
zval *str, str_sub, *from_param = NULL, _0;
@@ -330,7 +330,7 @@ PHP_METHOD(Test_Strings, testSubstr2) {
}
-PHP_METHOD(Test_Strings, testSubstr3) {
+PHP_METHOD(Stub_Strings, testSubstr3) {
zval *str, str_sub, _0;
zval *this_ptr = getThis();
@@ -348,7 +348,7 @@ PHP_METHOD(Test_Strings, testSubstr3) {
}
-PHP_METHOD(Test_Strings, testSubstr4) {
+PHP_METHOD(Stub_Strings, testSubstr4) {
zval *str, str_sub, _0, _1;
zval *this_ptr = getThis();
@@ -368,7 +368,7 @@ PHP_METHOD(Test_Strings, testSubstr4) {
}
-PHP_METHOD(Test_Strings, testAddslashes) {
+PHP_METHOD(Stub_Strings, testAddslashes) {
zval *str, str_sub;
zval *this_ptr = getThis();
@@ -384,7 +384,7 @@ PHP_METHOD(Test_Strings, testAddslashes) {
}
-PHP_METHOD(Test_Strings, testStripslashes) {
+PHP_METHOD(Stub_Strings, testStripslashes) {
zval *str, str_sub;
zval *this_ptr = getThis();
@@ -400,7 +400,7 @@ PHP_METHOD(Test_Strings, testStripslashes) {
}
-PHP_METHOD(Test_Strings, testStripcslashes) {
+PHP_METHOD(Stub_Strings, testStripcslashes) {
zval *str, str_sub;
zval *this_ptr = getThis();
@@ -416,7 +416,7 @@ PHP_METHOD(Test_Strings, testStripcslashes) {
}
-PHP_METHOD(Test_Strings, testHashEquals) {
+PHP_METHOD(Stub_Strings, testHashEquals) {
zval *str1, str1_sub, *str2, str2_sub;
zval *this_ptr = getThis();
@@ -432,7 +432,7 @@ PHP_METHOD(Test_Strings, testHashEquals) {
}
-PHP_METHOD(Test_Strings, testHardcodedMultilineString) {
+PHP_METHOD(Stub_Strings, testHardcodedMultilineString) {
zval *this_ptr = getThis();
@@ -441,7 +441,7 @@ PHP_METHOD(Test_Strings, testHardcodedMultilineString) {
}
-PHP_METHOD(Test_Strings, testEchoMultilineString) {
+PHP_METHOD(Stub_Strings, testEchoMultilineString) {
zval *this_ptr = getThis();
@@ -450,7 +450,7 @@ PHP_METHOD(Test_Strings, testEchoMultilineString) {
}
-PHP_METHOD(Test_Strings, testTrimMultilineString) {
+PHP_METHOD(Stub_Strings, testTrimMultilineString) {
zval _0;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -467,7 +467,7 @@ PHP_METHOD(Test_Strings, testTrimMultilineString) {
}
-PHP_METHOD(Test_Strings, testWellEscapedMultilineString) {
+PHP_METHOD(Stub_Strings, testWellEscapedMultilineString) {
zval _0;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -484,7 +484,7 @@ PHP_METHOD(Test_Strings, testWellEscapedMultilineString) {
}
-PHP_METHOD(Test_Strings, testInternedString1) {
+PHP_METHOD(Stub_Strings, testInternedString1) {
zval *this_ptr = getThis();
@@ -493,7 +493,7 @@ PHP_METHOD(Test_Strings, testInternedString1) {
}
-PHP_METHOD(Test_Strings, testInternedString2) {
+PHP_METHOD(Stub_Strings, testInternedString2) {
zval _0, _1;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -512,7 +512,7 @@ PHP_METHOD(Test_Strings, testInternedString2) {
}
-PHP_METHOD(Test_Strings, strToHex) {
+PHP_METHOD(Stub_Strings, strToHex) {
unsigned char _1$$3;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -556,7 +556,7 @@ PHP_METHOD(Test_Strings, strToHex) {
}
-PHP_METHOD(Test_Strings, issue1267) {
+PHP_METHOD(Stub_Strings, issue1267) {
zval _1;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
diff --git a/ext/stub/strings.zep.h b/ext/stub/strings.zep.h
new file mode 100644
index 0000000000..d71b62840d
--- /dev/null
+++ b/ext/stub/strings.zep.h
@@ -0,0 +1,224 @@
+
+extern zend_class_entry *stub_strings_ce;
+
+ZEPHIR_INIT_CLASS(Stub_Strings);
+
+PHP_METHOD(Stub_Strings, camelize);
+PHP_METHOD(Stub_Strings, uncamelize);
+PHP_METHOD(Stub_Strings, testTrim);
+PHP_METHOD(Stub_Strings, testRtrim);
+PHP_METHOD(Stub_Strings, testLtrim);
+PHP_METHOD(Stub_Strings, testTrim2Params);
+PHP_METHOD(Stub_Strings, testRtrim2Params);
+PHP_METHOD(Stub_Strings, testLtrim2Params);
+PHP_METHOD(Stub_Strings, testImplode);
+PHP_METHOD(Stub_Strings, testStrpos);
+PHP_METHOD(Stub_Strings, testStrposOffset);
+PHP_METHOD(Stub_Strings, testExplode);
+PHP_METHOD(Stub_Strings, testExplodeStr);
+PHP_METHOD(Stub_Strings, testExplodeLimit);
+PHP_METHOD(Stub_Strings, testSubstr);
+PHP_METHOD(Stub_Strings, testSubstr2);
+PHP_METHOD(Stub_Strings, testSubstr3);
+PHP_METHOD(Stub_Strings, testSubstr4);
+PHP_METHOD(Stub_Strings, testAddslashes);
+PHP_METHOD(Stub_Strings, testStripslashes);
+PHP_METHOD(Stub_Strings, testStripcslashes);
+PHP_METHOD(Stub_Strings, testHashEquals);
+PHP_METHOD(Stub_Strings, testHardcodedMultilineString);
+PHP_METHOD(Stub_Strings, testEchoMultilineString);
+PHP_METHOD(Stub_Strings, testTrimMultilineString);
+PHP_METHOD(Stub_Strings, testWellEscapedMultilineString);
+PHP_METHOD(Stub_Strings, testInternedString1);
+PHP_METHOD(Stub_Strings, testInternedString2);
+PHP_METHOD(Stub_Strings, strToHex);
+PHP_METHOD(Stub_Strings, issue1267);
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_camelize, 0, 0, 1)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
+#else
+ ZEND_ARG_INFO(0, str)
+#endif
+ ZEND_ARG_INFO(0, delimiter)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_uncamelize, 0, 0, 1)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
+#else
+ ZEND_ARG_INFO(0, str)
+#endif
+ ZEND_ARG_INFO(0, delimiter)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testtrim, 0, 0, 1)
+ ZEND_ARG_INFO(0, str)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testrtrim, 0, 0, 1)
+ ZEND_ARG_INFO(0, str)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testltrim, 0, 0, 1)
+ ZEND_ARG_INFO(0, str)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testtrim2params, 0, 0, 2)
+ ZEND_ARG_INFO(0, str)
+ ZEND_ARG_INFO(0, charlist)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testrtrim2params, 0, 0, 2)
+ ZEND_ARG_INFO(0, str)
+ ZEND_ARG_INFO(0, charlist)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testltrim2params, 0, 0, 2)
+ ZEND_ARG_INFO(0, str)
+ ZEND_ARG_INFO(0, charlist)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testimplode, 0, 0, 2)
+ ZEND_ARG_INFO(0, glue)
+ ZEND_ARG_INFO(0, pieces)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_teststrpos, 0, 0, 2)
+ ZEND_ARG_INFO(0, haystack)
+ ZEND_ARG_INFO(0, needle)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_teststrposoffset, 0, 0, 3)
+ ZEND_ARG_INFO(0, haystack)
+ ZEND_ARG_INFO(0, needle)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, offset)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testexplode, 0, 0, 2)
+ ZEND_ARG_INFO(0, delimiter)
+ ZEND_ARG_INFO(0, str)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testexplodestr, 0, 0, 1)
+ ZEND_ARG_INFO(0, str)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testexplodelimit, 0, 0, 2)
+ ZEND_ARG_INFO(0, str)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, limit)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testsubstr, 0, 0, 3)
+ ZEND_ARG_INFO(0, str)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, from, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, from)
+#endif
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, len, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, len)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testsubstr2, 0, 0, 2)
+ ZEND_ARG_INFO(0, str)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, from, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, from)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testsubstr3, 0, 0, 1)
+ ZEND_ARG_INFO(0, str)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testsubstr4, 0, 0, 1)
+ ZEND_ARG_INFO(0, str)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_testaddslashes, 0, 0, 1)
+ ZEND_ARG_INFO(0, str)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_teststripslashes, 0, 0, 1)
+ ZEND_ARG_INFO(0, str)
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_strings_teststripcslashes, 0, 1, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_strings_teststripcslashes, 0, 1, IS_STRING, NULL, 0)
+#endif
+ ZEND_ARG_INFO(0, str)
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_strings_testhashequals, 0, 2, _IS_BOOL, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_strings_testhashequals, 0, 2, _IS_BOOL, NULL, 0)
+#endif
+ ZEND_ARG_INFO(0, str1)
+ ZEND_ARG_INFO(0, str2)
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_strings_strtohex, 0, 1, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_strings_strtohex, 0, 1, IS_STRING, NULL, 0)
+#endif
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0)
+#else
+ ZEND_ARG_INFO(0, value)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_strings_issue1267, 0, 0, 1)
+ ZEND_ARG_INFO(0, value)
+ZEND_END_ARG_INFO()
+
+ZEPHIR_INIT_FUNCS(stub_strings_method_entry) {
+ PHP_ME(Stub_Strings, camelize, arginfo_stub_strings_camelize, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, uncamelize, arginfo_stub_strings_uncamelize, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testTrim, arginfo_stub_strings_testtrim, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testRtrim, arginfo_stub_strings_testrtrim, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testLtrim, arginfo_stub_strings_testltrim, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testTrim2Params, arginfo_stub_strings_testtrim2params, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testRtrim2Params, arginfo_stub_strings_testrtrim2params, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testLtrim2Params, arginfo_stub_strings_testltrim2params, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testImplode, arginfo_stub_strings_testimplode, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testStrpos, arginfo_stub_strings_teststrpos, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testStrposOffset, arginfo_stub_strings_teststrposoffset, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testExplode, arginfo_stub_strings_testexplode, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testExplodeStr, arginfo_stub_strings_testexplodestr, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testExplodeLimit, arginfo_stub_strings_testexplodelimit, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testSubstr, arginfo_stub_strings_testsubstr, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testSubstr2, arginfo_stub_strings_testsubstr2, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testSubstr3, arginfo_stub_strings_testsubstr3, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testSubstr4, arginfo_stub_strings_testsubstr4, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testAddslashes, arginfo_stub_strings_testaddslashes, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testStripslashes, arginfo_stub_strings_teststripslashes, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testStripcslashes, arginfo_stub_strings_teststripcslashes, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testHashEquals, arginfo_stub_strings_testhashequals, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testHardcodedMultilineString, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testEchoMultilineString, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testTrimMultilineString, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testWellEscapedMultilineString, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testInternedString1, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, testInternedString2, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, strToHex, arginfo_stub_strings_strtohex, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Strings, issue1267, arginfo_stub_strings_issue1267, ZEND_ACC_PUBLIC)
+ PHP_FE_END
+};
diff --git a/ext/test/stubs.zep.c b/ext/stub/stubs.zep.c
similarity index 74%
rename from ext/test/stubs.zep.c
rename to ext/stub/stubs.zep.c
index bade9b159b..5c82194756 100644
--- a/ext/test/stubs.zep.c
+++ b/ext/stub/stubs.zep.c
@@ -23,24 +23,24 @@
/**
* Sample Class Description
*/
-ZEPHIR_INIT_CLASS(Test_Stubs) {
+ZEPHIR_INIT_CLASS(Stub_Stubs) {
- ZEPHIR_REGISTER_CLASS(Test, Stubs, test, stubs, test_stubs_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS(Stub, Stubs, stub, stubs, stub_stubs_method_entry, 0);
- zend_declare_property_string(test_stubs_ce, SL("propString"), "Zephir public", ZEND_ACC_PUBLIC);
+ zend_declare_property_string(stub_stubs_ce, SL("propString"), "Zephir public", ZEND_ACC_PUBLIC);
/** @var integer - declared in Zephir DocBlock */
- zend_declare_property_long(test_stubs_ce, SL("propIntDeclared"), 100, ZEND_ACC_PUBLIC);
+ zend_declare_property_long(stub_stubs_ce, SL("propIntDeclared"), 100, ZEND_ACC_PUBLIC);
- zend_declare_property_string(test_stubs_ce, SL("propStringProtected"), "Zephir protected", ZEND_ACC_PROTECTED);
+ zend_declare_property_string(stub_stubs_ce, SL("propStringProtected"), "Zephir protected", ZEND_ACC_PROTECTED);
- zend_declare_property_string(test_stubs_ce, SL("propStringPrivate"), "Zephir private", ZEND_ACC_PRIVATE);
+ zend_declare_property_string(stub_stubs_ce, SL("propStringPrivate"), "Zephir private", ZEND_ACC_PRIVATE);
- zephir_declare_class_constant_long(test_stubs_ce, SL("INTEGER_CONST"), 1);
+ zephir_declare_class_constant_long(stub_stubs_ce, SL("INTEGER_CONST"), 1);
- zephir_declare_class_constant_double(test_stubs_ce, SL("DOUBLE_CONST"), 10.24);
+ zephir_declare_class_constant_double(stub_stubs_ce, SL("DOUBLE_CONST"), 10.24);
- zephir_declare_class_constant_string(test_stubs_ce, SL("STRING_CONST"), "Zephir");
+ zephir_declare_class_constant_string(stub_stubs_ce, SL("STRING_CONST"), "Zephir");
return SUCCESS;
@@ -49,7 +49,7 @@ ZEPHIR_INIT_CLASS(Test_Stubs) {
/**
* Sample Method Description with Return type -> string
*/
-PHP_METHOD(Test_Stubs, testDockBlockAndReturnType) {
+PHP_METHOD(Stub_Stubs, testDockBlockAndReturnType) {
zval *this_ptr = getThis();
@@ -63,7 +63,7 @@ PHP_METHOD(Test_Stubs, testDockBlockAndReturnType) {
*
* @return string - declared in Zephir DocBlock
*/
-PHP_METHOD(Test_Stubs, testDocBlockAndReturnTypeDeclared) {
+PHP_METHOD(Stub_Stubs, testDocBlockAndReturnTypeDeclared) {
zval *this_ptr = getThis();
@@ -80,7 +80,7 @@ PHP_METHOD(Test_Stubs, testDocBlockAndReturnTypeDeclared) {
* @param int|string $intOrString - declared in Zephir DocBlock
* @return int|null - declared in Zephir DocBlock
*/
-PHP_METHOD(Test_Stubs, testMixedInputParamsDocBlock) {
+PHP_METHOD(Stub_Stubs, testMixedInputParamsDocBlock) {
zend_long number;
zval *intOrString, intOrString_sub, *number_param = NULL;
@@ -110,7 +110,7 @@ PHP_METHOD(Test_Stubs, testMixedInputParamsDocBlock) {
* @param int $number - declared in Zephir DocBlock
* @return int|null - declared in Zephir DocBlock
*/
-PHP_METHOD(Test_Stubs, testMixedInputParamsDocBlockDeclared) {
+PHP_METHOD(Stub_Stubs, testMixedInputParamsDocBlockDeclared) {
zend_long number;
zval *intOrString, intOrString_sub, *number_param = NULL;
diff --git a/ext/stub/stubs.zep.h b/ext/stub/stubs.zep.h
new file mode 100644
index 0000000000..098d1a7bbb
--- /dev/null
+++ b/ext/stub/stubs.zep.h
@@ -0,0 +1,57 @@
+
+extern zend_class_entry *stub_stubs_ce;
+
+ZEPHIR_INIT_CLASS(Stub_Stubs);
+
+PHP_METHOD(Stub_Stubs, testDockBlockAndReturnType);
+PHP_METHOD(Stub_Stubs, testDocBlockAndReturnTypeDeclared);
+PHP_METHOD(Stub_Stubs, testMixedInputParamsDocBlock);
+PHP_METHOD(Stub_Stubs, testMixedInputParamsDocBlockDeclared);
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testdockblockandreturntype, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testdockblockandreturntype, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testdocblockandreturntypedeclared, 0, 0, IS_STRING, 0)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testdocblockandreturntypedeclared, 0, 0, IS_STRING, NULL, 0)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testmixedinputparamsdocblock, 0, 1, IS_LONG, 1)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testmixedinputparamsdocblock, 0, 1, IS_LONG, NULL, 1)
+#endif
+ ZEND_ARG_INFO(0, intOrString)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, number, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, number)
+#endif
+ZEND_END_ARG_INFO()
+
+#if PHP_VERSION_ID >= 70200
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testmixedinputparamsdocblockdeclared, 0, 1, IS_LONG, 1)
+#else
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_stub_stubs_testmixedinputparamsdocblockdeclared, 0, 1, IS_LONG, NULL, 1)
+#endif
+ ZEND_ARG_INFO(0, intOrString)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, number, IS_LONG, 0)
+#else
+ ZEND_ARG_INFO(0, number)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEPHIR_INIT_FUNCS(stub_stubs_method_entry) {
+ PHP_ME(Stub_Stubs, testDockBlockAndReturnType, arginfo_stub_stubs_testdockblockandreturntype, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Stubs, testDocBlockAndReturnTypeDeclared, arginfo_stub_stubs_testdocblockandreturntypedeclared, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Stubs, testMixedInputParamsDocBlock, arginfo_stub_stubs_testmixedinputparamsdocblock, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Stubs, testMixedInputParamsDocBlockDeclared, arginfo_stub_stubs_testmixedinputparamsdocblockdeclared, ZEND_ACC_PUBLIC)
+ PHP_FE_END
+};
diff --git a/ext/test/ternary.zep.c b/ext/stub/ternary.zep.c
similarity index 88%
rename from ext/test/ternary.zep.c
rename to ext/stub/ternary.zep.c
index e4c94031cc..8b1d6301bd 100644
--- a/ext/test/ternary.zep.c
+++ b/ext/stub/ternary.zep.c
@@ -23,15 +23,15 @@
/**
* Arithmetic operations
*/
-ZEPHIR_INIT_CLASS(Test_Ternary) {
+ZEPHIR_INIT_CLASS(Stub_Ternary) {
- ZEPHIR_REGISTER_CLASS(Test, Ternary, test, ternary, test_ternary_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS(Stub, Ternary, stub, ternary, stub_ternary_method_entry, 0);
return SUCCESS;
}
-PHP_METHOD(Test_Ternary, testTernary1) {
+PHP_METHOD(Stub_Ternary, testTernary1) {
zval _0;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -51,7 +51,7 @@ PHP_METHOD(Test_Ternary, testTernary1) {
}
-PHP_METHOD(Test_Ternary, testTernary2) {
+PHP_METHOD(Stub_Ternary, testTernary2) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zval *b_param = NULL, _0;
@@ -76,7 +76,7 @@ PHP_METHOD(Test_Ternary, testTernary2) {
}
-PHP_METHOD(Test_Ternary, testTernaryComplex1) {
+PHP_METHOD(Stub_Ternary, testTernaryComplex1) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -111,7 +111,7 @@ PHP_METHOD(Test_Ternary, testTernaryComplex1) {
}
-PHP_METHOD(Test_Ternary, testTernaryComplex2) {
+PHP_METHOD(Stub_Ternary, testTernaryComplex2) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zend_long ZEPHIR_LAST_CALL_STATUS;
@@ -147,7 +147,7 @@ PHP_METHOD(Test_Ternary, testTernaryComplex2) {
}
-PHP_METHOD(Test_Ternary, testTernaryComplex3) {
+PHP_METHOD(Stub_Ternary, testTernaryComplex3) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zval *a, a_sub, _0;
@@ -177,7 +177,7 @@ PHP_METHOD(Test_Ternary, testTernaryComplex3) {
/**
* @link https://github.com/phalcon/zephir/issues/665
*/
-PHP_METHOD(Test_Ternary, testTernaryWithPromotedTemporaryVariable) {
+PHP_METHOD(Stub_Ternary, testTernaryWithPromotedTemporaryVariable) {
zval var2, var3, _0, _1;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -201,7 +201,7 @@ PHP_METHOD(Test_Ternary, testTernaryWithPromotedTemporaryVariable) {
ZEPHIR_INIT_VAR(&_1);
if (zephir_array_isset_long(&var2, 1)) {
ZEPHIR_OBS_NVAR(&_1);
- zephir_array_fetch_long(&_1, &var2, 1, PH_NOISY, "test/ternary.zep", 44);
+ zephir_array_fetch_long(&_1, &var2, 1, PH_NOISY, "stub/ternary.zep", 44);
} else {
ZEPHIR_INIT_NVAR(&_1);
ZVAL_STRING(&_1, "");
@@ -215,7 +215,7 @@ PHP_METHOD(Test_Ternary, testTernaryWithPromotedTemporaryVariable) {
/**
* @link https://github.com/phalcon/zephir/issues/297
*/
-PHP_METHOD(Test_Ternary, testTernaryAfterLetVariable) {
+PHP_METHOD(Stub_Ternary, testTernaryAfterLetVariable) {
zval s;
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
@@ -238,7 +238,7 @@ PHP_METHOD(Test_Ternary, testTernaryAfterLetVariable) {
}
-PHP_METHOD(Test_Ternary, testShortTernary) {
+PHP_METHOD(Stub_Ternary, testShortTernary) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zval *a, a_sub, _0;
@@ -262,7 +262,7 @@ PHP_METHOD(Test_Ternary, testShortTernary) {
}
-PHP_METHOD(Test_Ternary, testShortTernaryComplex) {
+PHP_METHOD(Stub_Ternary, testShortTernaryComplex) {
zephir_method_globals *ZEPHIR_METHOD_GLOBALS_PTR = NULL;
zval *left, left_sub, *value, value_sub, _0;
diff --git a/ext/stub/ternary.zep.h b/ext/stub/ternary.zep.h
new file mode 100644
index 0000000000..438624ced9
--- /dev/null
+++ b/ext/stub/ternary.zep.h
@@ -0,0 +1,58 @@
+
+extern zend_class_entry *stub_ternary_ce;
+
+ZEPHIR_INIT_CLASS(Stub_Ternary);
+
+PHP_METHOD(Stub_Ternary, testTernary1);
+PHP_METHOD(Stub_Ternary, testTernary2);
+PHP_METHOD(Stub_Ternary, testTernaryComplex1);
+PHP_METHOD(Stub_Ternary, testTernaryComplex2);
+PHP_METHOD(Stub_Ternary, testTernaryComplex3);
+PHP_METHOD(Stub_Ternary, testTernaryWithPromotedTemporaryVariable);
+PHP_METHOD(Stub_Ternary, testTernaryAfterLetVariable);
+PHP_METHOD(Stub_Ternary, testShortTernary);
+PHP_METHOD(Stub_Ternary, testShortTernaryComplex);
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_ternary_testternary2, 0, 0, 1)
+#if PHP_VERSION_ID >= 70200
+ ZEND_ARG_TYPE_INFO(0, b, _IS_BOOL, 0)
+#else
+ ZEND_ARG_INFO(0, b)
+#endif
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_ternary_testternarycomplex1, 0, 0, 2)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, y)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_ternary_testternarycomplex2, 0, 0, 2)
+ ZEND_ARG_INFO(0, a)
+ ZEND_ARG_INFO(0, y)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_ternary_testternarycomplex3, 0, 0, 1)
+ ZEND_ARG_INFO(0, a)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_ternary_testshortternary, 0, 0, 1)
+ ZEND_ARG_INFO(0, a)
+ZEND_END_ARG_INFO()
+
+ZEND_BEGIN_ARG_INFO_EX(arginfo_stub_ternary_testshortternarycomplex, 0, 0, 2)
+ ZEND_ARG_INFO(0, left)
+ ZEND_ARG_INFO(0, value)
+ZEND_END_ARG_INFO()
+
+ZEPHIR_INIT_FUNCS(stub_ternary_method_entry) {
+ PHP_ME(Stub_Ternary, testTernary1, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Ternary, testTernary2, arginfo_stub_ternary_testternary2, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Ternary, testTernaryComplex1, arginfo_stub_ternary_testternarycomplex1, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Ternary, testTernaryComplex2, arginfo_stub_ternary_testternarycomplex2, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Ternary, testTernaryComplex3, arginfo_stub_ternary_testternarycomplex3, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Ternary, testTernaryWithPromotedTemporaryVariable, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Ternary, testTernaryAfterLetVariable, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Ternary, testShortTernary, arginfo_stub_ternary_testshortternary, ZEND_ACC_PUBLIC)
+ PHP_ME(Stub_Ternary, testShortTernaryComplex, arginfo_stub_ternary_testshortternarycomplex, ZEND_ACC_PUBLIC)
+ PHP_FE_END
+};
diff --git a/ext/stub/testinterface.zep.c b/ext/stub/testinterface.zep.c
new file mode 100644
index 0000000000..63bbdaad9b
--- /dev/null
+++ b/ext/stub/testinterface.zep.c
@@ -0,0 +1,37 @@
+
+#ifdef HAVE_CONFIG_H
+#include "../ext_config.h"
+#endif
+
+#include Test\Router is the standard framework router. Routing is the + *
Stub\Router is the standard framework router. Routing is the * process of taking a URI endpoint (that part of the URI which comes after the base URL) and * decomposing it into parameters to determine which module, controller, and * action of that controller should receive the request
* *
*
- * $router = new Test\Router();
+ * $router = new Stub\Router();
*
* $router->add(
* "/documentation/{chapter}/{name}.{type:[a-z]+}",
@@ -70,7 +70,7 @@ class Router
const URI_SOURCE_SERVER_REQUEST_URI = 1;
/**
- * Test\Router constructor
+ * Stub\Router constructor
*
* @param boolean defaultRoutes
*/
@@ -102,7 +102,7 @@ class Router
/**
* Sets the dependency injector
*
- * @param Test\DiInterface dependencyInjector
+ * @param Stub\DiInterface dependencyInjector
*/
public function setDI( dependencyInjector)
{
@@ -112,7 +112,7 @@ class Router
/**
* Returns the internal dependency injector
*
- * @return Test\DiInterface
+ * @return Stub\DiInterface
*/
public function getDI()
{
@@ -156,7 +156,7 @@ class Router
*
*
* @param string uriSource
- * @return Test\Router
+ * @return Stub\Router
*/
public function setUriSource(var uriSource)
{
@@ -168,7 +168,7 @@ class Router
* Set whether router must remove the extra slashes in the handled routes
*
* @param boolean remove
- * @return Test\Router
+ * @return Stub\Router
*/
public function removeExtraSlashes(var remove)
{
@@ -180,7 +180,7 @@ class Router
* Sets the name of the default namespace
*
* @param string namespaceName
- * @return Test\Router
+ * @return Stub\Router
*/
public function setDefaultNamespace(var namespaceName)
{
@@ -192,7 +192,7 @@ class Router
* Sets the name of the default module
*
* @param string moduleName
- * @return Test\Router
+ * @return Stub\Router
*/
public function setDefaultModule(var moduleName)
{
@@ -204,7 +204,7 @@ class Router
* Sets the default controller name
*
* @param string controllerName
- * @return Test\Router
+ * @return Stub\Router
*/
public function setDefaultController(controllerName)
{
@@ -216,7 +216,7 @@ class Router
* Sets the default action name
*
* @param string actionName
- * @return Test\Router
+ * @return Stub\Router
*/
public function setDefaultAction(actionName)
{
@@ -236,7 +236,7 @@ class Router
*
*
* @param array defaults
- * @return Test\Router
+ * @return Stub\Router
*/
public function setDefaults(defaults)
{
@@ -566,13 +566,13 @@ class Router
* @param string pattern
* @param string/array paths
* @param string httpMethods
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function add(pattern, paths=null, httpMethods=null)
{
var route;
- // Every route is internally stored as a Test\Router\Route
+ // Every route is internally stored as a Stub\Router\Route
let route = new Router\Route(pattern, paths, httpMethods),
this->_routes[] = route;
return route;
@@ -583,7 +583,7 @@ class Router
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function addGet(pattern, paths=null)
{
@@ -595,7 +595,7 @@ class Router
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function addPost(pattern, paths=null)
{
@@ -607,7 +607,7 @@ class Router
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function addPut(pattern, paths=null)
{
@@ -619,7 +619,7 @@ class Router
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function addPatch(pattern, paths=null)
{
@@ -631,7 +631,7 @@ class Router
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function addDelete(pattern, paths=null)
{
@@ -643,7 +643,7 @@ class Router
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function addOptions(pattern, paths=null)
{
@@ -655,7 +655,7 @@ class Router
*
* @param string pattern
* @param string/array paths
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function addHead(pattern, paths=null)
{
@@ -665,8 +665,8 @@ class Router
/**
* Mounts a group of routes in the router
*
- * @param Test\Router\Group route
- * @return Test\Router
+ * @param Stub\Router\Group route
+ * @return Stub\Router
*/
public function mount(group)
{
@@ -715,7 +715,7 @@ class Router
* Set a group of paths to be returned when none of the defined routes are matched
*
* @param array paths
- * @return Test\Router
+ * @return Stub\Router
*/
public function notFound(paths)
{
@@ -789,7 +789,7 @@ class Router
/**
* Returns the route that matchs the handled URI
*
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function getMatchedRoute()
{
@@ -819,7 +819,7 @@ class Router
/**
* Returns all the routes defined in the router
*
- * @return Test\Router\Route[]
+ * @return Stub\Router\Route[]
*/
public function getRoutes()
{
@@ -830,7 +830,7 @@ class Router
* Returns a route object by its id
*
* @param string id
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function getRouteById(var id)
{
@@ -848,7 +848,7 @@ class Router
* Returns a route object by its name
*
* @param string name
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function getRouteByName(var name)
{
diff --git a/test/router/exception.zep b/stub/router/exception.zep
similarity index 64%
rename from test/router/exception.zep
rename to stub/router/exception.zep
index 937f4cf4ab..e23f337da2 100644
--- a/test/router/exception.zep
+++ b/stub/router/exception.zep
@@ -1,13 +1,13 @@
/**
- * Test\Router\Exception
+ * Stub\Router\Exception
*
* Exceptions generated by the router
*/
-namespace Test\Router;
+namespace Stub\Router;
class Exception extends \Exception
{
-}
\ No newline at end of file
+}
diff --git a/test/router/route.zep b/stub/router/route.zep
similarity index 97%
rename from test/router/route.zep
rename to stub/router/route.zep
index 191ba85241..ae201873ca 100644
--- a/test/router/route.zep
+++ b/stub/router/route.zep
@@ -1,8 +1,8 @@
-namespace Test\Router;
+namespace Stub\Router;
/**
- * Test\Router\Route
+ * Stub\Router\Route
*
* This class represents every route added to the router
*/
@@ -27,7 +27,7 @@ class Route
protected _beforeMatch;
/**
- * Test\Router\Route constructor
+ * Stub\Router\Route constructor
*
* @param string pattern
* @param array paths
@@ -111,7 +111,7 @@ class Route
*
*
* @param string|array httpMethods
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function via(httpMethods)
{
@@ -404,7 +404,7 @@ class Route
* If the callback returns false the route is treaded as not matched
*
* @param callback callback
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function beforeMatch(callback)
{
@@ -487,7 +487,7 @@ class Route
*
*
* @param string|array httpMethods
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function setHttpMethods(httpMethods)
{
@@ -513,7 +513,7 @@ class Route
*
*
* @param string|array httpMethods
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function setHostname(hostname)
{
@@ -536,7 +536,7 @@ class Route
*
* @param string name
* @param callable converter
- * @return Test\Router\Route
+ * @return Stub\Router\Route
*/
public function convert(name, converter)
{
diff --git a/test/scall.zep b/stub/scall.zep
similarity index 94%
rename from test/scall.zep
rename to stub/scall.zep
index 83aa46dacb..3c7141adcb 100644
--- a/test/scall.zep
+++ b/stub/scall.zep
@@ -2,7 +2,7 @@
* Static Function calls
*/
-namespace Test;
+namespace Stub;
class Scall extends ScallParent
{
@@ -126,7 +126,7 @@ class Scall extends ScallParent
{
long i, j = 0;
for i in range(1, k) {
- let j += \Test\ScallExternal::testMethod3(p, p);
+ let j += \Stub\ScallExternal::testMethod3(p, p);
}
return j;
}
@@ -147,7 +147,7 @@ class Scall extends ScallParent
public function interpolatedStaticReturn() -> string
{
- string className = "Test\\Scall";
+ string className = "Stub\\Scall";
string methodName = "testMethodStatic";
return {className}::{methodName}();
@@ -155,7 +155,7 @@ class Scall extends ScallParent
public function interpolatedStaticEcho() -> void
{
- string className = "Test\\Scall";
+ string className = "Stub\\Scall";
string methodName = "testMethodStatic";
echo {className}::{methodName}();
diff --git a/test/scalldynamic.zep b/stub/scalldynamic.zep
similarity index 96%
rename from test/scalldynamic.zep
rename to stub/scalldynamic.zep
index 38cf90ba74..3b2176ff7f 100644
--- a/test/scalldynamic.zep
+++ b/stub/scalldynamic.zep
@@ -2,7 +2,7 @@
* Static Function calls
*/
-namespace Test;
+namespace Stub;
class ScallDynamic extends ScallParent
{
diff --git a/test/scallexternal.zep b/stub/scallexternal.zep
similarity index 95%
rename from test/scallexternal.zep
rename to stub/scallexternal.zep
index c45019978a..54a2978936 100644
--- a/test/scallexternal.zep
+++ b/stub/scallexternal.zep
@@ -2,7 +2,7 @@
* Call external static functions
*/
-namespace Test;
+namespace Stub;
class ScallExternal
{
diff --git a/test/scallparent.zep b/stub/scallparent.zep
similarity index 96%
rename from test/scallparent.zep
rename to stub/scallparent.zep
index d10af53768..25c612e2e4 100644
--- a/test/scallparent.zep
+++ b/stub/scallparent.zep
@@ -3,7 +3,7 @@
* Static Function calls
*/
-namespace Test;
+namespace Stub;
class ScallParent
{
diff --git a/test/scope.zep b/stub/scope.zep
similarity index 98%
rename from test/scope.zep
rename to stub/scope.zep
index 9c56698553..10f5c54b96 100644
--- a/test/scope.zep
+++ b/stub/scope.zep
@@ -1,5 +1,5 @@
-namespace Test;
+namespace Stub;
class Scope
{
diff --git a/test/sort.zep b/stub/sort.zep
similarity index 96%
rename from test/sort.zep
rename to stub/sort.zep
index 9550116c0d..a2b2ed11fd 100644
--- a/test/sort.zep
+++ b/stub/sort.zep
@@ -1,5 +1,5 @@
-namespace Test;
+namespace Stub;
class Sort
{
@@ -35,4 +35,4 @@ class Sort
this->quick(right)
);
}
-}
\ No newline at end of file
+}
diff --git a/test/spectralnorm.zep b/stub/spectralnorm.zep
similarity index 98%
rename from test/spectralnorm.zep
rename to stub/spectralnorm.zep
index fdc33e6545..90b482df6f 100644
--- a/test/spectralnorm.zep
+++ b/stub/spectralnorm.zep
@@ -1,5 +1,5 @@
-namespace Test;
+namespace Stub;
/**
* SpectralNorm
diff --git a/test/spropertyaccess.zep b/stub/spropertyaccess.zep
similarity index 99%
rename from test/spropertyaccess.zep
rename to stub/spropertyaccess.zep
index 52469e5994..cef94f8500 100644
--- a/test/spropertyaccess.zep
+++ b/stub/spropertyaccess.zep
@@ -2,7 +2,7 @@
* Class with constructor + params
*/
-namespace Test;
+namespace Stub;
class SPropertyAccess
{
diff --git a/test/statements.zep b/stub/statements.zep
similarity index 99%
rename from test/statements.zep
rename to stub/statements.zep
index dc8da1f904..9dd5aaf791 100644
--- a/test/statements.zep
+++ b/stub/statements.zep
@@ -1,4 +1,4 @@
-namespace Test;
+namespace Stub;
class Statements
{
diff --git a/test/strings.zep b/stub/strings.zep
similarity index 99%
rename from test/strings.zep
rename to stub/strings.zep
index 48562e3212..a43648209c 100644
--- a/test/strings.zep
+++ b/stub/strings.zep
@@ -1,4 +1,4 @@
-namespace Test;
+namespace Stub;
class Strings
{
diff --git a/test/stubs.zep b/stub/stubs.zep
similarity index 99%
rename from test/stubs.zep
rename to stub/stubs.zep
index c26a6f9534..b1d5ed8dc1 100644
--- a/test/stubs.zep
+++ b/stub/stubs.zep
@@ -1,7 +1,7 @@
/**
* Tests for IDE Stubs Generation
*/
-namespace Test;
+namespace Stub;
/**
* Sample Class Description
diff --git a/test/ternary.zep b/stub/ternary.zep
similarity index 98%
rename from test/ternary.zep
rename to stub/ternary.zep
index bccdac555d..409ec22111 100644
--- a/test/ternary.zep
+++ b/stub/ternary.zep
@@ -3,7 +3,7 @@
* Arithmetic operations
*/
-namespace Test;
+namespace Stub;
class Ternary
{
diff --git a/test/testinterface.zep b/stub/testinterface.zep
similarity index 91%
rename from test/testinterface.zep
rename to stub/testinterface.zep
index 691f9cbbc0..8e5331b168 100644
--- a/test/testinterface.zep
+++ b/stub/testinterface.zep
@@ -1,5 +1,5 @@
-namespace Test;
+namespace Stub;
/**
* Sample exception class
diff --git a/test/trytest.zep b/stub/trytest.zep
similarity index 99%
rename from test/trytest.zep
rename to stub/trytest.zep
index f0fd9743b6..c4bf155a2e 100644
--- a/test/trytest.zep
+++ b/stub/trytest.zep
@@ -1,5 +1,5 @@
-namespace Test;
+namespace Stub;
use Exception, RuntimeException, DomainException;
diff --git a/test/typehinting/testabstract.zep b/stub/typehinting/testabstract.zep
similarity index 95%
rename from test/typehinting/testabstract.zep
rename to stub/typehinting/testabstract.zep
index 2afef76a6c..4b388077db 100644
--- a/test/typehinting/testabstract.zep
+++ b/stub/typehinting/testabstract.zep
@@ -1,4 +1,4 @@
-namespace Test\TypeHinting;
+namespace Stub\TypeHinting;
abstract class TestAbstract
{
diff --git a/test/typeinstances.zep b/stub/typeinstances.zep
similarity index 94%
rename from test/typeinstances.zep
rename to stub/typeinstances.zep
index 0f48220ef5..5699197c72 100644
--- a/test/typeinstances.zep
+++ b/stub/typeinstances.zep
@@ -3,7 +3,7 @@
* Cast tests
*/
-namespace Test;
+namespace Stub;
class TypeInstances
{
diff --git a/test/typeoff.zep b/stub/typeoff.zep
similarity index 99%
rename from test/typeoff.zep
rename to stub/typeoff.zep
index 1d26f6a748..775262eb0d 100644
--- a/test/typeoff.zep
+++ b/stub/typeoff.zep
@@ -3,7 +3,7 @@
* OO operations
*/
-namespace Test;
+namespace Stub;
class Typeoff
{
diff --git a/test/unknownclass.zep b/stub/unknownclass.zep
similarity index 56%
rename from test/unknownclass.zep
rename to stub/unknownclass.zep
index 92037e825d..74e8199c34 100644
--- a/test/unknownclass.zep
+++ b/stub/unknownclass.zep
@@ -1,6 +1,6 @@
-namespace Test;
+namespace Stub;
class UnknownClass
{
-}
\ No newline at end of file
+}
diff --git a/test/unsettest.zep b/stub/unsettest.zep
similarity index 93%
rename from test/unsettest.zep
rename to stub/unsettest.zep
index 8f4bc60cec..441add51f8 100644
--- a/test/unsettest.zep
+++ b/stub/unsettest.zep
@@ -1,63 +1,63 @@
-
-/**
- * Unset statement tests
- */
-
-namespace Test;
-
-class Unsettest
-{
- protected property {get};
-
- public function has(var key)
- {
- return isset this->property[key];
- }
-
- public function addValueToProperty(var key, var value)
- {
- let this->property[key] = value;
- }
-
- public function testUnsetValueFromProperty(var key)
- {
- unset(this->property[key]);
- }
-
- public function testUnsetFromArray(var arrayParameter)
- {
- unset(arrayParameter[0]);
- return arrayParameter;
- }
-
- public function testUnsetFromArrayByIndexVar(var arrayParameter, var index)
- {
- unset(arrayParameter[index]);
- return arrayParameter;
- }
-
- public function testUnsetProperty()
- {
- unset(this->property);
- return this->property;
- }
-
- public function testStdClassUnset()
- {
- var simpleObject;
- let simpleObject = new \StdClass();
-
- let simpleObject->property1 = 12345;
- let simpleObject->property2 = "test";
- let simpleObject->property3 = 12345;
-
- unset(simpleObject->property2);
- return simpleObject;
- }
-
- public function testUnsetTypedArray(array arr, string key)
- {
- unset(arr[key]);
- return arr;
- }
-}
+
+/**
+ * Unset statement tests
+ */
+
+namespace Stub;
+
+class Unsettest
+{
+ protected property {get};
+
+ public function has(var key)
+ {
+ return isset this->property[key];
+ }
+
+ public function addValueToProperty(var key, var value)
+ {
+ let this->property[key] = value;
+ }
+
+ public function testUnsetValueFromProperty(var key)
+ {
+ unset(this->property[key]);
+ }
+
+ public function testUnsetFromArray(var arrayParameter)
+ {
+ unset(arrayParameter[0]);
+ return arrayParameter;
+ }
+
+ public function testUnsetFromArrayByIndexVar(var arrayParameter, var index)
+ {
+ unset(arrayParameter[index]);
+ return arrayParameter;
+ }
+
+ public function testUnsetProperty()
+ {
+ unset(this->property);
+ return this->property;
+ }
+
+ public function testStdClassUnset()
+ {
+ var simpleObject;
+ let simpleObject = new \StdClass();
+
+ let simpleObject->property1 = 12345;
+ let simpleObject->property2 = "test";
+ let simpleObject->property3 = 12345;
+
+ unset(simpleObject->property2);
+ return simpleObject;
+ }
+
+ public function testUnsetTypedArray(array arr, string key)
+ {
+ unset(arr[key]);
+ return arr;
+ }
+}
diff --git a/test/usetest.zep b/stub/usetest.zep
similarity index 82%
rename from test/usetest.zep
rename to stub/usetest.zep
index d86ae0305b..6cc7841ca4 100644
--- a/test/usetest.zep
+++ b/stub/usetest.zep
@@ -1,13 +1,13 @@
-namespace Test;
+namespace Stub;
-use \stdClass as StandardClass;
-use \Countable;
+use stdClass as StandardClass;
+use Countable;
use Oo\OoConstruct;
use Oo as NsAlias;
use Strings as TestStrings;
-use \Test\Echoes as Echoes;
+use Stub\Echoes as Echoes;
class UseTest implements Countable
{
diff --git a/test/vars.zep b/stub/vars.zep
similarity index 99%
rename from test/vars.zep
rename to stub/vars.zep
index 5256a807b5..7af71ff6d1 100644
--- a/test/vars.zep
+++ b/stub/vars.zep
@@ -1,4 +1,4 @@
-namespace Test;
+namespace Stub;
class Vars
{
diff --git a/templates/Api/themes/api-base/static/jquery.min.js b/templates/Api/themes/api-base/static/jquery.min.js
index 2717e5efc1..9fd22ca70b 100644
--- a/templates/Api/themes/api-base/static/jquery.min.js
+++ b/templates/Api/themes/api-base/static/jquery.min.js
@@ -1,4 +1,2 @@
-/*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
-!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.2",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b=a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=hb(),z=hb(),A=hb(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ab=/[+~]/,bb=/'|\\/g,cb=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),db=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},eb=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fb){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function gb(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(bb,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+rb(o[l]);w=ab.test(a)&&pb(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function hb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ib(a){return a[u]=!0,a}function jb(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function kb(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function lb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function nb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function ob(a){return ib(function(b){return b=+b,ib(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pb(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=gb.support={},f=gb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=gb.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",eb,!1):e.attachEvent&&e.attachEvent("onunload",eb)),p=!f(g),c.attributes=jb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=jb(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=jb(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(cb,db);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(jb(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),jb(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&jb(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return lb(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?lb(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},gb.matches=function(a,b){return gb(a,null,null,b)},gb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return gb(b,n,null,[a]).length>0},gb.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},gb.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},gb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},gb.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=gb.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=gb.selectors={cacheLength:50,createPseudo:ib,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(cb,db),a[3]=(a[3]||a[4]||a[5]||"").replace(cb,db),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||gb.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&gb.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(cb,db).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=gb.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||gb.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ib(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ib(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ib(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ib(function(a){return function(b){return gb(a,b).length>0}}),contains:ib(function(a){return a=a.replace(cb,db),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ib(function(a){return W.test(a||"")||gb.error("unsupported lang: "+a),a=a.replace(cb,db).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:ob(function(){return[0]}),last:ob(function(a,b){return[b-1]}),eq:ob(function(a,b,c){return[0>c?c+b:c]}),even:ob(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:ob(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:ob(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:ob(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function sb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function tb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ub(a,b,c){for(var d=0,e=b.length;e>d;d++)gb(a,b[d],c);return c}function vb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wb(a,b,c,d,e,f){return d&&!d[u]&&(d=wb(d)),e&&!e[u]&&(e=wb(e,f)),ib(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ub(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:vb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=vb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=vb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xb(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sb(function(a){return a===b},h,!0),l=sb(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sb(tb(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wb(i>1&&tb(m),i>1&&rb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xb(a.slice(i,e)),f>e&&xb(a=a.slice(e)),f>e&&rb(a))}m.push(c)}return tb(m)}function yb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=vb(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&gb.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ib(f):f}return h=gb.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xb(b[c]),f[u]?d.push(f):e.push(f);f=A(a,yb(e,d)),f.selector=a}return f},i=gb.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(cb,db),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(cb,db),ab.test(j[0].type)&&pb(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&rb(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,ab.test(a)&&pb(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=jb(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),jb(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||kb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&jb(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||kb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),jb(function(a){return null==a.getAttribute("disabled")})||kb(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),gb}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;
- return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengtht |