From 9cfc49a40233f0e2d3d21cc04410bb5fe13a72ff Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 16 Dec 2021 08:45:28 +0100 Subject: update to 3.3.4 drop patch merged upstream --- PHPINFO | 2 +- REFLECTION | 869 ++++++++++++++++++++++++++++++++++++------------------ php-pecl-yaf.spec | 25 +- yaf-php81.patch | 559 ----------------------------------- 4 files changed, 584 insertions(+), 871 deletions(-) delete mode 100644 yaf-php81.patch diff --git a/PHPINFO b/PHPINFO index fe57f36..ef065c8 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,7 +2,7 @@ yaf yaf support => enabled -Version => 3.3.3 +Version => 3.3.4 Supports => http://pecl.php.net/package/yaf Directive => Local Value => Master Value diff --git a/REFLECTION b/REFLECTION index 0d8a3f4..d8cd5cd 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #120 yaf version 3.3.3 ] { +Extension [ extension #120 yaf version 3.3.4 ] { - Dependencies { Dependency [ spl (Required) ] @@ -37,7 +37,7 @@ Extension [ extension #120 yaf version 3.3.3 ] { } - Constants [13] { - Constant [ string YAF_VERSION ] { 3.3.3 } + Constant [ string YAF_VERSION ] { 3.3.4 } Constant [ string YAF_ENVIRON ] { product } Constant [ int YAF_ERR_STARTUP_FAILED ] { 512 } Constant [ int YAF_ERR_ROUTE_FAILED ] { 513 } @@ -66,6 +66,7 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [0] { } + - Return [ ?object ] } } @@ -76,8 +77,8 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method __construct ] { - Parameters [2] { - Parameter #0 [ $config ] - Parameter #1 [ $environ = ] + Parameter #0 [ array|string $config ] + Parameter #1 [ string $environ = NULL ] } } @@ -85,82 +86,93 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [0] { } + - Return [ object|false ] } Method [ public method execute ] { - - Parameters [2] { - Parameter #0 [ $entry ] - Parameter #1 [ $... ] + - Parameters [1] { + Parameter #0 [ mixed $callback ] } + - Return [ mixed ] } Method [ public method environ ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method bootstrap ] { - - Parameters [1] { - Parameter #0 [ $bootstrap = ] + - Parameters [0] { } + - Return [ object|false|null ] } Method [ public method getConfig ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getModules ] { - Parameters [0] { } + - Return [ ?array ] } Method [ public method getDispatcher ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method setAppDirectory ] { - Parameters [1] { - Parameter #0 [ $directory ] + Parameter #0 [ string $directory ] } + - Return [ object|false|null ] } Method [ public method getAppDirectory ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getLastErrorNo ] { - Parameters [0] { } + - Return [ ?int ] } Method [ public method getLastErrorMsg ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method clearLastError ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getInstance ] { - Parameters [0] { } + - Return [ ?object ] } } } @@ -196,6 +208,7 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [0] { } + - Return [ ?object ] } } @@ -213,161 +226,185 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method disableView ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method initView ] { - Parameters [2] { - Parameter #0 [ $templates_dir ] - Parameter #1 [ ?array $options = ] + Parameter #0 [ string $templates_dir ] + Parameter #1 [ array $options = NULL ] } + - Return [ object|false|null ] } Method [ public method setView ] { - Parameters [1] { - Parameter #0 [ $view ] + Parameter #0 [ object $view ] } + - Return [ ?object ] } Method [ public method setRequest ] { - Parameters [1] { - Parameter #0 [ $request ] + Parameter #0 [ object $request ] } + - Return [ ?object ] } Method [ public method setResponse ] { - Parameters [1] { - Parameter #0 [ $response ] + Parameter #0 [ object $response ] } + - Return [ ?object ] } Method [ public method getApplication ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getRouter ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getResponse ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getRequest ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getDefaultModule ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getDefaultController ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getDefaultAction ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method setErrorHandler ] { - Parameters [2] { - Parameter #0 [ $callback ] - Parameter #1 [ $error_types = ] + Parameter #0 [ mixed $callback ] + Parameter #1 [ int $error_types = 0 ] } + - Return [ object|false|null ] } Method [ public method setDefaultModule ] { - Parameters [1] { - Parameter #0 [ $module ] + Parameter #0 [ string $module ] } + - Return [ object|false|null ] } Method [ public method setDefaultController ] { - Parameters [1] { - Parameter #0 [ $controller ] + Parameter #0 [ string $controller ] } + - Return [ object|false|null ] } Method [ public method setDefaultAction ] { - Parameters [1] { - Parameter #0 [ $action ] + Parameter #0 [ string $action ] } + - Return [ object|false|null ] } Method [ public method returnResponse ] { - Parameters [1] { - Parameter #0 [ $flag ] + Parameter #0 [ bool $flag = false ] } + - Return [ object|false|null ] } Method [ public method autoRender ] { - Parameters [1] { - Parameter #0 [ $flag = ] + Parameter #0 [ ?bool $flag = NULL ] } + - Return [ object|bool|null ] } Method [ public method flushInstantly ] { - Parameters [1] { - Parameter #0 [ $flag = ] + Parameter #0 [ ?bool $flag = NULL ] } + - Return [ object|bool|null ] } Method [ public method dispatch ] { - Parameters [1] { - Parameter #0 [ $request ] + Parameter #0 [ object $request ] } + - Return [ object|false|null ] } Method [ public method throwException ] { - Parameters [1] { - Parameter #0 [ $flag = ] + Parameter #0 [ ?bool $flag = NULL ] } + - Return [ object|bool|null ] } Method [ public method catchException ] { - Parameters [1] { - Parameter #0 [ $flag = ] + Parameter #0 [ ?bool $flag = NULL ] } + - Return [ object|bool|null ] } Method [ public method registerPlugin ] { - Parameters [1] { - Parameter #0 [ $plugin ] + Parameter #0 [ object $plugin ] } + - Return [ object|false|null ] } } } @@ -500,264 +537,303 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isPost ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isDelete ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isPatch ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isPut ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isHead ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isOptions ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isCli ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isXmlHttpRequest ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method getQuery ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getRequest ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getPost ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getCookie ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getRaw ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getFiles ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method get ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getServer ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getEnv ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method setParam ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value = ] + Parameter #0 [ mixed $name ] + Parameter #1 [ mixed $value = NULL ] } + - Return [ object|bool|null ] } Method [ public method getParam ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getParams ] { - Parameters [0] { } + - Return [ ?array ] } Method [ public method clearParams ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getException ] { - Parameters [0] { } + - Return [ ?Exception ] } Method [ public method getModuleName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getControllerName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getActionName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method setModuleName ] { - Parameters [2] { - Parameter #0 [ $module ] - Parameter #1 [ $format_name = ] + Parameter #0 [ string $module ] + Parameter #1 [ bool $format_name = true ] } + - Return [ ?object ] } Method [ public method setControllerName ] { - Parameters [2] { - Parameter #0 [ $controller ] - Parameter #1 [ $format_name = ] + Parameter #0 [ string $controller ] + Parameter #1 [ bool $format_name = true ] } + - Return [ ?object ] } Method [ public method setActionName ] { - Parameters [2] { - Parameter #0 [ $action ] - Parameter #1 [ $format_name = ] + Parameter #0 [ string $action ] + Parameter #1 [ bool $format_name = true ] } + - Return [ ?object ] } Method [ public method getMethod ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getLanguage ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method setBaseUri ] { - Parameters [1] { - Parameter #0 [ $uri ] + Parameter #0 [ string $uir ] } + - Return [ object|false ] } Method [ public method getBaseUri ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getRequestUri ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method setRequestUri ] { - Parameters [1] { - Parameter #0 [ $uri ] + Parameter #0 [ string $uir ] } + - Return [ ?object ] } Method [ final public method isDispatched ] { - Parameters [0] { } + - Return [ bool ] } Method [ final public method setDispatched ] { - Parameters [1] { - Parameter #0 [ $dispatched ] + Parameter #0 [ bool $flag = true ] } + - Return [ ?object ] } Method [ final public method isRouted ] { - Parameters [0] { } + - Return [ bool ] } Method [ final public method setRouted ] { - Parameters [1] { - Parameter #0 [ $flag ] + Parameter #0 [ bool $flag = true ] } + - Return [ ?object ] } } } @@ -780,8 +856,8 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method __construct ] { - Parameters [2] { - Parameter #0 [ $request_uri = ] - Parameter #1 [ $base_uri = ] + Parameter #0 [ ?string $requestUri = NULL ] + Parameter #1 [ ?string $baseUri = NULL ] } } @@ -789,264 +865,303 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isPost ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isDelete ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isPatch ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isPut ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isHead ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isOptions ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isCli ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isXmlHttpRequest ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method getQuery ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getRequest ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getPost ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getCookie ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getRaw ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getFiles ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method get ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getServer ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getEnv ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method setParam ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value = ] + Parameter #0 [ mixed $name ] + Parameter #1 [ mixed $value = NULL ] } + - Return [ object|bool|null ] } Method [ public method getParam ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getParams ] { - Parameters [0] { } + - Return [ ?array ] } Method [ public method clearParams ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getException ] { - Parameters [0] { } + - Return [ ?Exception ] } Method [ public method getModuleName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getControllerName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getActionName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method setModuleName ] { - Parameters [2] { - Parameter #0 [ $module ] - Parameter #1 [ $format_name = ] + Parameter #0 [ string $module ] + Parameter #1 [ bool $format_name = true ] } + - Return [ ?object ] } Method [ public method setControllerName ] { - Parameters [2] { - Parameter #0 [ $controller ] - Parameter #1 [ $format_name = ] + Parameter #0 [ string $controller ] + Parameter #1 [ bool $format_name = true ] } + - Return [ ?object ] } Method [ public method setActionName ] { - Parameters [2] { - Parameter #0 [ $action ] - Parameter #1 [ $format_name = ] + Parameter #0 [ string $action ] + Parameter #1 [ bool $format_name = true ] } + - Return [ ?object ] } Method [ public method getMethod ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getLanguage ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method setBaseUri ] { - Parameters [1] { - Parameter #0 [ $uri ] + Parameter #0 [ string $uir ] } + - Return [ object|false ] } Method [ public method getBaseUri ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getRequestUri ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method setRequestUri ] { - Parameters [1] { - Parameter #0 [ $uri ] + Parameter #0 [ string $uir ] } + - Return [ ?object ] } Method [ final public method isDispatched ] { - Parameters [0] { } + - Return [ bool ] } Method [ final public method setDispatched ] { - Parameters [1] { - Parameter #0 [ $dispatched ] + Parameter #0 [ bool $flag = true ] } + - Return [ ?object ] } Method [ final public method isRouted ] { - Parameters [0] { } + - Return [ bool ] } Method [ final public method setRouted ] { - Parameters [1] { - Parameter #0 [ $flag ] + Parameter #0 [ bool $flag = true ] } + - Return [ ?object ] } } } @@ -1071,11 +1186,11 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method __construct ] { - Parameters [5] { - Parameter #0 [ $method = ] - Parameter #1 [ $module = ] - Parameter #2 [ $controller = ] - Parameter #3 [ $action = ] - Parameter #4 [ $params = ] + Parameter #0 [ ?string $method = NULL ] + Parameter #1 [ ?string $module = NULL ] + Parameter #2 [ ?string $controller = NULL ] + Parameter #3 [ ?string $action = NULL ] + Parameter #4 [ ?array $params = NULL ] } } @@ -1083,264 +1198,303 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isGet ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isPost ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isDelete ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isPatch ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isPut ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isHead ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isOptions ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isCli ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method getQuery ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getRequest ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getPost ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getCookie ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getRaw ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getFiles ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method get ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getServer ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getEnv ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method setParam ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value = ] + Parameter #0 [ mixed $name ] + Parameter #1 [ mixed $value = NULL ] } + - Return [ object|bool|null ] } Method [ public method getParam ] { - Parameters [2] { - Parameter #0 [ $name = ] - Parameter #1 [ $default = ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ mixed ] } Method [ public method getParams ] { - Parameters [0] { } + - Return [ ?array ] } Method [ public method clearParams ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getException ] { - Parameters [0] { } + - Return [ ?Exception ] } Method [ public method getModuleName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getControllerName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getActionName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method setModuleName ] { - Parameters [2] { - Parameter #0 [ $module ] - Parameter #1 [ $format_name = ] + Parameter #0 [ string $module ] + Parameter #1 [ bool $format_name = true ] } + - Return [ ?object ] } Method [ public method setControllerName ] { - Parameters [2] { - Parameter #0 [ $controller ] - Parameter #1 [ $format_name = ] + Parameter #0 [ string $controller ] + Parameter #1 [ bool $format_name = true ] } + - Return [ ?object ] } Method [ public method setActionName ] { - Parameters [2] { - Parameter #0 [ $action ] - Parameter #1 [ $format_name = ] + Parameter #0 [ string $action ] + Parameter #1 [ bool $format_name = true ] } + - Return [ ?object ] } Method [ public method getMethod ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getLanguage ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method setBaseUri ] { - Parameters [1] { - Parameter #0 [ $uri ] + Parameter #0 [ string $uir ] } + - Return [ object|false ] } Method [ public method getBaseUri ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getRequestUri ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method setRequestUri ] { - Parameters [1] { - Parameter #0 [ $uri ] + Parameter #0 [ string $uir ] } + - Return [ ?object ] } Method [ final public method isDispatched ] { - Parameters [0] { } + - Return [ bool ] } Method [ final public method setDispatched ] { - Parameters [1] { - Parameter #0 [ $dispatched ] + Parameter #0 [ bool $flag = true ] } + - Return [ ?object ] } Method [ final public method isRouted ] { - Parameters [0] { } + - Return [ bool ] } Method [ final public method setRouted ] { - Parameters [1] { - Parameter #0 [ $flag ] + Parameter #0 [ bool $flag = true ] } + - Return [ ?object ] } } } @@ -1378,7 +1532,7 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ $body ] - Parameter #1 [ $name = ] + Parameter #1 [ $name = NULL ] } } @@ -1386,7 +1540,7 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ $body ] - Parameter #1 [ $name = ] + Parameter #1 [ $name = NULL ] } } @@ -1394,22 +1548,23 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ $body ] - Parameter #1 [ $name = ] + Parameter #1 [ $name = NULL ] } } Method [ public method clearBody ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ $name = NULL ] } } Method [ public method getBody ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ string $name = NULL ] } + - Return [ mixed ] } Method [ public method response ] { @@ -1439,44 +1594,50 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method setHeader ] { - Parameters [4] { - Parameter #0 [ $name ] - Parameter #1 [ $value ] - Parameter #2 [ $rep = ] - Parameter #3 [ $response_code = ] + Parameter #0 [ string $name ] + Parameter #1 [ string $value ] + Parameter #2 [ bool $replace = 0 ] + Parameter #3 [ int $response_code = 0 ] } + - Return [ ?bool ] } Method [ public method setAllHeaders ] { - Parameters [1] { - Parameter #0 [ $headers ] + Parameter #0 [ array $headers ] } + - Return [ ?bool ] } Method [ public method getHeader ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ string $name = NULL ] } + - Return [ mixed ] } Method [ public method clearHeaders ] { - Parameters [0] { } + - Return [ object|false|null ] } Method [ public method setRedirect ] { - Parameters [1] { - Parameter #0 [ $url ] + Parameter #0 [ string $url ] } + - Return [ ?bool ] } Method [ public method response ] { - Parameters [0] { } + - Return [ ?bool ] } Method [ public method __construct ] { @@ -1496,7 +1657,7 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ $body ] - Parameter #1 [ $name = ] + Parameter #1 [ $name = NULL ] } } @@ -1504,7 +1665,7 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ $body ] - Parameter #1 [ $name = ] + Parameter #1 [ $name = NULL ] } } @@ -1512,22 +1673,23 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ $body ] - Parameter #1 [ $name = ] + Parameter #1 [ $name = NULL ] } } Method [ public method clearBody ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ $name = NULL ] } } Method [ public method getBody ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ string $name = NULL ] } + - Return [ mixed ] } } } @@ -1565,7 +1727,7 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ $body ] - Parameter #1 [ $name = ] + Parameter #1 [ $name = NULL ] } } @@ -1573,7 +1735,7 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ $body ] - Parameter #1 [ $name = ] + Parameter #1 [ $name = NULL ] } } @@ -1581,22 +1743,23 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ $body ] - Parameter #1 [ $name = ] + Parameter #1 [ $name = NULL ] } } Method [ public method clearBody ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ $name = NULL ] } } Method [ public method getBody ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ string $name = NULL ] } + - Return [ mixed ] } Method [ public method response ] { @@ -1624,108 +1787,118 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Methods [15] { Method [ public method __construct ] { - - Parameters [4] { - Parameter #0 [ $request ] - Parameter #1 [ $response ] - Parameter #2 [ $view ] - Parameter #3 [ ?array $args = ] + - Parameters [0] { } } Method [ protected method render ] { - Parameters [2] { - Parameter #0 [ $tpl ] - Parameter #1 [ ?array $parameters = ] + Parameter #0 [ string $tpl ] + Parameter #1 [ array $parameters = NULL ] } + - Return [ string|bool|null ] } Method [ protected method display ] { - Parameters [2] { - Parameter #0 [ $tpl ] - Parameter #1 [ ?array $parameters = ] + Parameter #0 [ string $tpl ] + Parameter #1 [ array $parameters = NULL ] } + - Return [ ?bool ] } Method [ public method getRequest ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getResponse ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getView ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getModuleName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method initView ] { - Parameters [1] { - Parameter #0 [ ?array $options = ] + Parameter #0 [ array $options = NULL ] } + - Return [ ?object ] } Method [ public method setViewpath ] { - Parameters [1] { - Parameter #0 [ $view_directory ] + Parameter #0 [ string $view_directory ] } + - Return [ ?bool ] } Method [ public method getViewpath ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method forward ] { - Parameters [4] { - Parameter #0 [ $module ] - Parameter #1 [ $controller = ] - Parameter #2 [ $action = ] - Parameter #3 [ ?array $parameters = ] + Parameter #0 [ mixed $args1 ] + Parameter #1 [ mixed $args2 = NULL ] + Parameter #2 [ mixed $args3 = NULL ] + Parameter #3 [ mixed $args4 = NULL ] } + - Return [ ?bool ] } Method [ public method redirect ] { - Parameters [1] { - Parameter #0 [ $url ] + Parameter #0 [ string $url ] } + - Return [ ?bool ] } Method [ public method getInvokeArgs ] { - Parameters [0] { } + - Return [ ?array ] } Method [ public method getInvokeArg ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ ?string ] } } } @@ -1756,118 +1929,130 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getControllerName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method __construct ] { - - Parameters [4] { - Parameter #0 [ $request ] - Parameter #1 [ $response ] - Parameter #2 [ $view ] - Parameter #3 [ ?array $args = ] + - Parameters [0] { } } Method [ protected method render ] { - Parameters [2] { - Parameter #0 [ $tpl ] - Parameter #1 [ ?array $parameters = ] + Parameter #0 [ string $tpl ] + Parameter #1 [ array $parameters = NULL ] } + - Return [ string|bool|null ] } Method [ protected method display ] { - Parameters [2] { - Parameter #0 [ $tpl ] - Parameter #1 [ ?array $parameters = ] + Parameter #0 [ string $tpl ] + Parameter #1 [ array $parameters = NULL ] } + - Return [ ?bool ] } Method [ public method getRequest ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getResponse ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getView ] { - Parameters [0] { } + - Return [ ?object ] } Method [ public method getName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method getModuleName ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method initView ] { - Parameters [1] { - Parameter #0 [ ?array $options = ] + Parameter #0 [ array $options = NULL ] } + - Return [ ?object ] } Method [ public method setViewpath ] { - Parameters [1] { - Parameter #0 [ $view_directory ] + Parameter #0 [ string $view_directory ] } + - Return [ ?bool ] } Method [ public method getViewpath ] { - Parameters [0] { } + - Return [ ?string ] } Method [ public method forward ] { - Parameters [4] { - Parameter #0 [ $module ] - Parameter #1 [ $controller = ] - Parameter #2 [ $action = ] - Parameter #3 [ ?array $parameters = ] + Parameter #0 [ mixed $args1 ] + Parameter #1 [ mixed $args2 = NULL ] + Parameter #2 [ mixed $args3 = NULL ] + Parameter #3 [ mixed $args4 = NULL ] } + - Return [ ?bool ] } Method [ public method redirect ] { - Parameters [1] { - Parameter #0 [ $url ] + Parameter #0 [ string $url ] } + - Return [ ?bool ] } Method [ public method getInvokeArgs ] { - Parameters [0] { } + - Return [ ?array ] } Method [ public method getInvokeArg ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ ?string ] } } } @@ -1890,107 +2075,123 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method get ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ ?string $name = NULL ] } + - Return [ mixed ] } Method [ public method count ] { - Parameters [0] { } + - Return [ int ] } Method [ public method toArray ] { - Parameters [0] { } + - Return [ array ] } Method [ public method offsetUnset ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ mixed $name ] } + - Return [ void ] } Method [ public method rewind ] { - Parameters [0] { } + - Return [ void ] } Method [ public method current ] { - Parameters [0] { } + - Return [ mixed ] } Method [ public method key ] { - Parameters [0] { } + - Return [ string|int|bool|null ] } Method [ public method next ] { - Parameters [0] { } + - Return [ void ] } Method [ public method valid ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method __isset ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ bool ] } Method [ public method __get ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ string $name ] } + - Return [ mixed ] } Method [ public method offsetGet ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ mixed $name ] } + - Return [ mixed ] } Method [ public method offsetExists ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ mixed $name ] } + - Return [ bool ] } Method [ abstract public method offsetSet ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value ] + Parameter #0 [ mixed $name ] + Parameter #1 [ mixed $value ] } + - Return [ void ] } Method [ abstract public method set ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $value ] } + - Return [ bool ] } Method [ abstract public method readonly ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -2013,123 +2214,140 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method __construct ] { - Parameters [2] { - Parameter #0 [ $config_file ] - Parameter #1 [ $section = ] + Parameter #0 [ array|string $config_file ] + Parameter #1 [ ?string $section = NULL ] } } Method [ public method get ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ ?string $name = NULL ] } + - Return [ mixed ] } Method [ public method set ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $value ] } + - Return [ bool ] } Method [ public method readonly ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method offsetGet ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ mixed $name ] } + - Return [ mixed ] } Method [ public method offsetSet ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value ] + Parameter #0 [ mixed $name ] + Parameter #1 [ mixed $value ] } + - Return [ void ] } Method [ public method __set ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value ] + Parameter #0 [ mixed $name ] + Parameter #1 [ mixed $value ] } + - Return [ void ] } Method [ public method count ] { - Parameters [0] { } + - Return [ int ] } Method [ public method toArray ] { - Parameters [0] { } + - Return [ array ] } Method [ public method offsetUnset ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ mixed $name ] } + - Return [ void ] } Method [ public method rewind ] { - Parameters [0] { } + - Return [ void ] } Method [ public method current ] { - Parameters [0] { } + - Return [ mixed ] } Method [ public method key ] { - Parameters [0] { } + - Return [ string|int|bool|null ] } Method [ public method next ] { - Parameters [0] { } + - Return [ void ] } Method [ public method valid ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method __isset ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ bool ] } Method [ public method __get ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ string $name ] } + - Return [ mixed ] } Method [ public method offsetExists ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ mixed $name ] } + - Return [ bool ] } } } @@ -2152,123 +2370,140 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method __construct ] { - Parameters [2] { - Parameter #0 [ $config ] - Parameter #1 [ $readonly = ] + Parameter #0 [ array|string $config_file ] + Parameter #1 [ ?string $section = NULL ] } } Method [ public method set ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $value ] } + - Return [ bool ] } Method [ public method readonly ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method offsetUnset ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ mixed $name ] } + - Return [ void ] } Method [ public method __set ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $value ] } + - Return [ void ] } Method [ public method offsetSet ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value ] + Parameter #0 [ mixed $name ] + Parameter #1 [ mixed $value ] } + - Return [ void ] } Method [ public method get ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ ?string $name = NULL ] } + - Return [ mixed ] } Method [ public method count ] { - Parameters [0] { } + - Return [ int ] } Method [ public method toArray ] { - Parameters [0] { } + - Return [ array ] } Method [ public method rewind ] { - Parameters [0] { } + - Return [ void ] } Method [ public method current ] { - Parameters [0] { } + - Return [ mixed ] } Method [ public method key ] { - Parameters [0] { } + - Return [ string|int|bool|null ] } Method [ public method next ] { - Parameters [0] { } + - Return [ void ] } Method [ public method valid ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method __isset ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ bool ] } Method [ public method __get ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ string $name ] } + - Return [ mixed ] } Method [ public method offsetGet ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ mixed $name ] } + - Return [ mixed ] } Method [ public method offsetExists ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ mixed $name ] } + - Return [ bool ] } } } @@ -2291,38 +2526,37 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ abstract public method assign ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value = ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $value = NULL ] } } Method [ abstract public method display ] { - Parameters [2] { - Parameter #0 [ $tpl ] - Parameter #1 [ $tpl_vars = ] + Parameter #0 [ string $tpl ] + Parameter #1 [ array $tpl_vars = NULL ] } } Method [ abstract public method render ] { - Parameters [2] { - Parameter #0 [ $tpl ] - Parameter #1 [ $tpl_vars = ] + Parameter #0 [ string $tpl ] + Parameter #1 [ array $tpl_vars = NULL ] } } Method [ abstract public method setScriptPath ] { - Parameters [1] { - Parameter #0 [ $template_dir ] + Parameter #0 [ string $template_dir ] } } Method [ abstract public method getScriptPath ] { - - Parameters [1] { - Parameter #0 [ $request = ] + - Parameters [0] { } } } @@ -2346,92 +2580,102 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ final public method __construct ] { - Parameters [2] { - Parameter #0 [ $template_dir ] - Parameter #1 [ ?array $options = ] + Parameter #0 [ string $tempalte_dir ] + Parameter #1 [ array $options = NULL ] } } Method [ public method get ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ string $name = NULL ] } + - Return [ mixed ] } Method [ public method assign ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value = ] + Parameter #0 [ mixed $name = NULL ] + Parameter #1 [ mixed $default = NULL ] } + - Return [ object|false|null ] } Method [ public method render ] { - Parameters [2] { - Parameter #0 [ $tpl ] - Parameter #1 [ $tpl_vars = ] + Parameter #0 [ string $tpl ] + Parameter #1 [ ?array $tpl_vars = NULL ] } + - Return [ string|false|null ] } Method [ public method eval ] { - Parameters [2] { - Parameter #0 [ $tpl_str ] - Parameter #1 [ $vars = ] + Parameter #0 [ string $tpl_str ] + Parameter #1 [ ?array $vars = NULL ] } + - Return [ string|false|null ] } Method [ public method display ] { - Parameters [2] { - Parameter #0 [ $tpl ] - Parameter #1 [ $tpl_vars = ] + Parameter #0 [ string $tpl ] + Parameter #1 [ ?array $tpl_vars = NULL ] } + - Return [ ?bool ] } Method [ public method assignRef ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ &$value ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed &$value ] } + - Return [ ?object ] } Method [ public method clear ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ string $name = NULL ] } + - Return [ ?object ] } Method [ public method setScriptPath ] { - Parameters [1] { - Parameter #0 [ $template_dir ] + Parameter #0 [ string $template_dir ] } + - Return [ object|bool|null ] } Method [ public method getScriptPath ] { - - Parameters [1] { - Parameter #0 [ $request = ] + - Parameters [0] { } + - Return [ ?string ] } Method [ public method __get ] { - Parameters [1] { - Parameter #0 [ $name = ] + Parameter #0 [ string $name = NULL ] } + - Return [ mixed ] } Method [ public method __set ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value = ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $value ] } + - Return [ void ] } } } @@ -2460,42 +2704,48 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method addRoute ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $route ] + Parameter #0 [ string $name ] + Parameter #1 [ object $route ] } + - Return [ ?object ] } Method [ public method addConfig ] { - Parameters [1] { - Parameter #0 [ $config ] + Parameter #0 [ object|array $config ] } + - Return [ object|false|null ] } Method [ public method route ] { - Parameters [1] { - Parameter #0 [ $request ] + Parameter #0 [ object $request ] } + - Return [ ?bool ] } Method [ public method getRoute ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ object|false|null ] } Method [ public method getRoutes ] { - Parameters [0] { } + - Return [ ?array ] } Method [ public method getCurrentRoute ] { - Parameters [0] { } + - Return [ string|int|null ] } } } @@ -2526,7 +2776,7 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ array $info ] - Parameter #1 [ ?array $query = ] + Parameter #1 [ array $query = NULL ] } } } @@ -2550,8 +2800,9 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method match ] { - Parameters [1] { - Parameter #0 [ $uri ] + Parameter #0 [ string $uri ] } + - Return [ bool ] } Method [ public method route ] { @@ -2565,8 +2816,9 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ array $info ] - Parameter #1 [ ?array $query = ] + Parameter #1 [ array $query = NULL ] } + - Return [ string|false|null ] } } } @@ -2589,9 +2841,9 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $module_name ] - Parameter #1 [ $controller_name ] - Parameter #2 [ $action_name ] + Parameter #0 [ string $module_name ] + Parameter #1 [ string $controller_name ] + Parameter #2 [ string $action_name ] } } @@ -2606,8 +2858,9 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ array $info ] - Parameter #1 [ ?array $query = ] + Parameter #1 [ array $query = NULL ] } + - Return [ string|false|null ] } } } @@ -2630,7 +2883,7 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method __construct ] { - Parameters [1] { - Parameter #0 [ $supervar_name ] + Parameter #0 [ string $supervar_name ] } } @@ -2645,8 +2898,9 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ array $info ] - Parameter #1 [ ?array $query = ] + Parameter #1 [ array $query = NULL ] } + - Return [ string|false|null ] } } } @@ -2669,17 +2923,18 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $match ] + Parameter #0 [ string $match ] Parameter #1 [ array $route ] - Parameter #2 [ ?array $verify = ] + Parameter #2 [ array $verify = NULL ] } } Method [ public method match ] { - Parameters [1] { - Parameter #0 [ $uri ] + Parameter #0 [ string $uri ] } + - Return [ ?bool ] } Method [ public method route ] { @@ -2693,8 +2948,9 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ array $info ] - Parameter #1 [ ?array $query = ] + Parameter #1 [ array $query = NULL ] } + - Return [ string|false|null ] } } } @@ -2717,19 +2973,20 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method __construct ] { - Parameters [5] { - Parameter #0 [ $match ] + Parameter #0 [ string $match ] Parameter #1 [ array $route ] - Parameter #2 [ ?array $map = ] - Parameter #3 [ ?array $verify = ] - Parameter #4 [ $reverse = ] + Parameter #2 [ array $map = NULL ] + Parameter #3 [ array $verify = NULL ] + Parameter #4 [ string $reverse = NULL ] } } Method [ public method match ] { - Parameters [1] { - Parameter #0 [ $uri ] + Parameter #0 [ string $uri ] } + - Return [ ?bool ] } Method [ public method route ] { @@ -2743,8 +3000,9 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ array $info ] - Parameter #1 [ ?array $query = ] + Parameter #1 [ array $query = NULL ] } + - Return [ string|false|null ] } } } @@ -2767,8 +3025,8 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ public method __construct ] { - Parameters [2] { - Parameter #0 [ $controller_prefer = ] - Parameter #1 [ $delimiter = ] + Parameter #0 [ bool $controller_prefer = 1 ] + Parameter #1 [ string $delimiter = "" ] } } @@ -2783,8 +3041,9 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [2] { Parameter #0 [ array $info ] - Parameter #1 [ ?array $query = ] + Parameter #1 [ array $query = NULL ] } + - Return [ string|false|null ] } } } @@ -2874,30 +3133,34 @@ Extension [ extension #120 yaf version 3.3.3 ] { Method [ static public method get ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ mixed ] } Method [ static public method has ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ ?bool ] } Method [ static public method set ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $value ] } + - Return [ ?bool ] } Method [ static public method del ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ ?bool ] } } @@ -2926,6 +3189,7 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [0] { } + - Return [ ?object ] } } @@ -2943,105 +3207,120 @@ Extension [ extension #120 yaf version 3.3.3 ] { - Parameters [0] { } + - Return [ object ] } Method [ public method get ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name = NULL ] } + - Return [ mixed ] } Method [ public method has ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ ?bool ] } Method [ public method set ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $value ] } + - Return [ ?bool ] } Method [ public method del ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ ?bool ] } Method [ public method count ] { - Parameters [0] { } + - Return [ int ] } Method [ public method clear ] { - Parameters [0] { } + - Return [ object|false|null ] } Method [ public method offsetGet ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ mixed $name ] } + - Return [ mixed ] } Method [ public method offsetSet ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value ] + Parameter #0 [ mixed $name ] + Parameter #1 [ mixed $value ] } + - Return [ void ] } Method [ public method offsetExists ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ mixed $name ] } + - Return [ bool ] } - Method [ public method offsetUnset ] { + Method [ public method offsetUnSet ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ mixed $name ] } + - Return [ void ] } Method [ public method __get ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ mixed ] } Method [ public method __isset ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ bool ] } Method [ public method __set ] { - Parameters [2] { - Parameter #0 [ $name ] - Parameter #1 [ $value ] + Parameter #0 [ string $name ] + Parameter #1 [ mixed $value ] } + - Return [ void ] } Method [ public method __unset ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } + - Return [ void ] } Method [ abstract public method current ] { diff --git a/php-pecl-yaf.spec b/php-pecl-yaf.spec index 73adad2..9ae4bc9 100644 --- a/php-pecl-yaf.spec +++ b/php-pecl-yaf.spec @@ -11,7 +11,6 @@ %undefine _strict_symbol_defs_build %if 0%{?scl:1} -%global sub_prefix %{scl_prefix} %scl_package php-pecl-yaf %endif @@ -25,21 +24,19 @@ %global ini_name 40-%{pecl_name}.ini Summary: Yet Another Framework -Name: %{?sub_prefix}php-pecl-yaf -Version: 3.3.3 +Name: %{?scl_prefix}php-pecl-yaf +Version: 3.3.4 %if 0%{?gh_date:1} Release: 0.13.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz %else -Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Source: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz %endif License: PHP URL: https://pecl.php.net/package/yaf Source1: %{pecl_name}.ini -Patch0: %{pecl_name}-php81.patch - BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.0 @@ -56,10 +53,6 @@ Provides: %{?scl_prefix}php-%{pecl_name} = %{version} Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} -%if "%{?scl_prefix}" != "%{?sub_prefix}" -Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} -Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} -%endif %if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} # Other third party repo stuff @@ -100,8 +93,6 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS -%patch0 -p1 -b .pr548 - # Sanity check, really often broken extver=$(sed -n '/#define PHP_YAF_VERSION/{s/.*\t"//;s/".*$//;p}' php_yaf.h ) if test "x${extver}" != "x%{version}%{?gh_date:-dev}"; then @@ -167,9 +158,8 @@ cd NTS : Upstream test suite for NTS extension TEST_PHP_EXECUTABLE=%{__php} \ TEST_PHP_ARGS="$OPTS -d extension=$PWD/modules/%{pecl_name}.so" \ -NO_INTERACTION=1 \ REPORT_EXIT_STATUS=1 \ -%{__php} -n run-tests.php --show-diff +%{__php} -n run-tests.php -q --show-diff %if %{with_zts} cd ../ZTS @@ -182,9 +172,8 @@ cd ../ZTS : Upstream test suite for NTS extension TEST_PHP_EXECUTABLE=%{__ztsphp} \ TEST_PHP_ARGS="$OPTS -d extension=$PWD/modules/%{pecl_name}.so" \ -NO_INTERACTION=1 \ REPORT_EXIT_STATUS=1 \ -%{__ztsphp} -n run-tests.php --show-diff +%{__ztsphp} -n run-tests.php -q --show-diff %endif @@ -223,6 +212,10 @@ fi %changelog +* Thu Dec 16 2021 Remi Collet - 3.3.4-1 +- update to 3.3.4 +- drop patch merged upstream + * Wed Sep 01 2021 Remi Collet - 3.3.3-3 - rebuild for 8.1.0RC1 diff --git a/yaf-php81.patch b/yaf-php81.patch deleted file mode 100644 index 8f15974..0000000 --- a/yaf-php81.patch +++ /dev/null @@ -1,559 +0,0 @@ -From 36bbd32afac5c2a38ec409b33505352262acefd7 Mon Sep 17 00:00:00 2001 -From: Remi Collet -Date: Wed, 21 Jul 2021 08:08:39 +0200 -Subject: [PATCH] fix for 8.1.0beta1 - use ZEND_ACC_NOT_SERIALIZABLE instead of - zend_class_serialize_deny - add return type for Iterators - ---- - configs/yaf_config_ini.c | 18 ++++++++- - configs/yaf_config_simple.c | 18 ++++++++- - routes/yaf_route_map.c | 4 ++ - routes/yaf_route_regex.c | 4 ++ - routes/yaf_route_rewrite.c | 6 ++- - routes/yaf_route_simple.c | 4 ++ - routes/yaf_route_supervar.c | 7 +++- - views/yaf_view_simple.c | 5 ++- - yaf_application.c | 6 ++- - yaf_config.c | 73 ++++++++++++++++++++++++++++++------- - yaf_controller.c | 7 +++- - yaf_dispatcher.c | 5 ++- - yaf_loader.c | 4 ++ - yaf_registry.c | 4 ++ - yaf_request.c | 7 +++- - yaf_response.c | 7 +++- - yaf_router.c | 6 ++- - yaf_session.c | 45 +++++++++++++++++++---- - 18 files changed, 193 insertions(+), 37 deletions(-) - -diff --git a/configs/yaf_config_ini.c b/configs/yaf_config_ini.c -index c94f85a8..8ede29c0 100644 ---- a/configs/yaf_config_ini.c -+++ b/configs/yaf_config_ini.c -@@ -53,6 +53,20 @@ ZEND_BEGIN_ARG_INFO_EX(yaf_config_ini_set_arginfo, 0, 0, 2) - ZEND_ARG_INFO(0, name) - ZEND_ARG_INFO(0, value) - ZEND_END_ARG_INFO() -+ -+#if PHP_VERSION_ID < 80100 -+#define yaf_config_ini_oget_arginfo yaf_config_ini_get_arginfo -+#define yaf_config_ini_oset_arginfo yaf_config_ini_set_arginfo -+#else -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_config_ini_oget_arginfo, 0, 1, IS_MIXED, 0) -+ ZEND_ARG_INFO(0, name) -+ZEND_END_ARG_INFO() -+ -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_config_ini_oset_arginfo, 0, 2, IS_VOID, 0) -+ ZEND_ARG_INFO(0, name) -+ ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0) -+ZEND_END_ARG_INFO() -+#endif - /* }}} */ - - static inline void yaf_deep_copy_section(zval *dst, zval *src) /* {{{ */ { -@@ -508,8 +522,8 @@ zend_function_entry yaf_config_ini_methods[] = { - PHP_ME(yaf_config_ini, get, yaf_config_ini_get_arginfo, ZEND_ACC_PUBLIC) - PHP_ME(yaf_config_ini, set, yaf_config_ini_set_arginfo, ZEND_ACC_PUBLIC) - PHP_ME(yaf_config_ini, readonly, yaf_config_ini_void_arginfo, ZEND_ACC_PUBLIC) -- PHP_MALIAS(yaf_config_ini, offsetGet, get, yaf_config_ini_get_arginfo, ZEND_ACC_PUBLIC) -- PHP_MALIAS(yaf_config_ini, offsetSet, set, yaf_config_ini_set_arginfo, ZEND_ACC_PUBLIC) -+ PHP_MALIAS(yaf_config_ini, offsetGet, get, yaf_config_ini_oget_arginfo, ZEND_ACC_PUBLIC) -+ PHP_MALIAS(yaf_config_ini, offsetSet, set, yaf_config_ini_oset_arginfo, ZEND_ACC_PUBLIC) - PHP_MALIAS(yaf_config_ini, __set, set, yaf_config_ini_set_arginfo, ZEND_ACC_PUBLIC) - {NULL, NULL, NULL} - }; -diff --git a/configs/yaf_config_simple.c b/configs/yaf_config_simple.c -index 191f356e..a6d26834 100644 ---- a/configs/yaf_config_simple.c -+++ b/configs/yaf_config_simple.c -@@ -47,6 +47,20 @@ ZEND_END_ARG_INFO() - ZEND_BEGIN_ARG_INFO_EX(yaf_config_simple_unset_arginfo, 0, 0, 1) - ZEND_ARG_INFO(0, name) - ZEND_END_ARG_INFO() -+ -+#if PHP_VERSION_ID < 80100 -+#define yaf_config_simple_oset_arginfo yaf_config_simple_set_arginfo -+#define yaf_config_simple_ounset_arginfo yaf_config_simple_unset_arginfo -+#else -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_config_simple_oset_arginfo, 0, 2, IS_VOID, 0) -+ ZEND_ARG_INFO(0, name) -+ ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0) -+ZEND_END_ARG_INFO() -+ -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_config_simple_ounset_arginfo, 0, 1, IS_VOID, 0) -+ ZEND_ARG_INFO(0, name) -+ZEND_END_ARG_INFO() -+#endif - /* }}} */ - - void yaf_config_simple_init(yaf_config_object *conf, zval *val, int readonly) /* {{{ */ { -@@ -158,9 +172,9 @@ zend_function_entry yaf_config_simple_methods[] = { - PHP_ME(yaf_config_simple, __construct, yaf_config_simple_construct_arginfo, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) - PHP_ME(yaf_config_simple, set, yaf_config_simple_set_arginfo, ZEND_ACC_PUBLIC) - PHP_ME(yaf_config_simple, readonly, yaf_config_simple_void_arginfo, ZEND_ACC_PUBLIC) -- PHP_ME(yaf_config_simple, offsetUnset, yaf_config_simple_unset_arginfo, ZEND_ACC_PUBLIC) -+ PHP_ME(yaf_config_simple, offsetUnset, yaf_config_simple_ounset_arginfo, ZEND_ACC_PUBLIC) - PHP_MALIAS(yaf_config_simple, __set, set, yaf_config_simple_set_arginfo, ZEND_ACC_PUBLIC) -- PHP_MALIAS(yaf_config_simple, offsetSet, set, yaf_config_simple_set_arginfo, ZEND_ACC_PUBLIC) -+ PHP_MALIAS(yaf_config_simple, offsetSet, set, yaf_config_simple_oset_arginfo, ZEND_ACC_PUBLIC) - {NULL, NULL, NULL} - }; - /* }}} */ -diff --git a/routes/yaf_route_map.c b/routes/yaf_route_map.c -index 85ec4602..41a7439b 100644 ---- a/routes/yaf_route_map.c -+++ b/routes/yaf_route_map.c -@@ -363,9 +363,13 @@ YAF_STARTUP_FUNCTION(route_map) { - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Route_Map", "Yaf\\Route\\Map", yaf_route_map_methods); - yaf_route_map_ce = zend_register_internal_class(&ce); - yaf_route_map_ce->create_object = yaf_route_map_new; -+#if PHP_VERSION_ID < 80100 - yaf_route_map_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_route_map_ce->serialize = zend_class_serialize_deny; - yaf_route_map_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_route_map_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - zend_class_implements(yaf_route_map_ce, 1, yaf_route_ce); - -diff --git a/routes/yaf_route_regex.c b/routes/yaf_route_regex.c -index 7e2647e6..fb63a78e 100644 ---- a/routes/yaf_route_regex.c -+++ b/routes/yaf_route_regex.c -@@ -466,9 +466,13 @@ YAF_STARTUP_FUNCTION(route_regex) { - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Route_Regex", "Yaf\\Route\\Regex", yaf_route_regex_methods); - yaf_route_regex_ce = zend_register_internal_class(&ce); - yaf_route_regex_ce->create_object = yaf_route_regex_new; -+#if PHP_VERSION_ID < 80100 - yaf_route_regex_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_route_regex_ce->serialize = zend_class_serialize_deny; - yaf_route_regex_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_route_regex_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - zend_class_implements(yaf_route_regex_ce, 1, yaf_route_ce); - -diff --git a/routes/yaf_route_rewrite.c b/routes/yaf_route_rewrite.c -index 624e4f1b..2bac1b0b 100644 ---- a/routes/yaf_route_rewrite.c -+++ b/routes/yaf_route_rewrite.c -@@ -489,10 +489,14 @@ YAF_STARTUP_FUNCTION(route_rewrite) { - zend_class_entry ce; - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Route_Rewrite", "Yaf\\Route\\Rewrite", yaf_route_rewrite_methods); - yaf_route_rewrite_ce = zend_register_internal_class_ex(&ce, NULL); -- yaf_route_rewrite_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_route_rewrite_ce->create_object = yaf_route_rewrite_new; -+#if PHP_VERSION_ID < 80100 -+ yaf_route_rewrite_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_route_rewrite_ce->serialize = zend_class_serialize_deny; - yaf_route_rewrite_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_route_rewrite_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - zend_class_implements(yaf_route_rewrite_ce, 1, yaf_route_ce); - -diff --git a/routes/yaf_route_simple.c b/routes/yaf_route_simple.c -index da5498f1..f042d895 100644 ---- a/routes/yaf_route_simple.c -+++ b/routes/yaf_route_simple.c -@@ -275,9 +275,13 @@ YAF_STARTUP_FUNCTION(route_simple) { - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Route_Simple", "Yaf\\Route\\Simple", yaf_route_simple_methods); - yaf_route_simple_ce = zend_register_internal_class(&ce); - yaf_route_simple_ce->create_object = yaf_route_simple_new; -+#if PHP_VERSION_ID < 80100 - yaf_route_simple_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_route_simple_ce->serialize = zend_class_serialize_deny; - yaf_route_simple_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_route_simple_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - zend_class_implements(yaf_route_simple_ce, 1, yaf_route_ce); - -diff --git a/routes/yaf_route_supervar.c b/routes/yaf_route_supervar.c -index 21bff266..946a7a65 100644 ---- a/routes/yaf_route_supervar.c -+++ b/routes/yaf_route_supervar.c -@@ -234,11 +234,14 @@ YAF_STARTUP_FUNCTION(route_supervar) { - zend_class_entry ce; - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Route_Supervar", "Yaf\\Route\\Supervar", yaf_route_supervar_methods); - yaf_route_supervar_ce = zend_register_internal_class(&ce); -- yaf_route_supervar_ce->ce_flags |= ZEND_ACC_FINAL; -- - yaf_route_supervar_ce->create_object = yaf_route_supervar_new; -+#if PHP_VERSION_ID < 80100 -+ yaf_route_supervar_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_route_supervar_ce->serialize = zend_class_serialize_deny; - yaf_route_supervar_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_route_supervar_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - zend_class_implements(yaf_route_supervar_ce, 1, yaf_route_ce); - -diff --git a/views/yaf_view_simple.c b/views/yaf_view_simple.c -index 12419883..4abc383a 100755 ---- a/views/yaf_view_simple.c -+++ b/views/yaf_view_simple.c -@@ -673,9 +673,12 @@ YAF_STARTUP_FUNCTION(view_simple) { - YAF_INIT_CLASS_ENTRY(ce, "Yaf_View_Simple", "Yaf\\View\\Simple", yaf_view_simple_methods); - yaf_view_simple_ce = zend_register_internal_class_ex(&ce, NULL); - yaf_view_simple_ce->create_object = yaf_view_simple_new; -+#if PHP_VERSION_ID < 80100 - yaf_view_simple_ce->serialize = zend_class_serialize_deny; - yaf_view_simple_ce->unserialize = zend_class_unserialize_deny; -- -+#else -+ yaf_view_simple_ce->ce_flags |= ZEND_ACC_NOT_SERIALIZABLE; -+#endif - zend_class_implements(yaf_view_simple_ce, 1, yaf_view_interface_ce); - - memcpy(&yaf_view_simple_obj_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); -diff --git a/yaf_application.c b/yaf_application.c -index f3e52114..e3233267 100644 ---- a/yaf_application.c -+++ b/yaf_application.c -@@ -1084,10 +1084,14 @@ YAF_STARTUP_FUNCTION(application) { - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Application", "Yaf\\Application", yaf_application_methods); - - yaf_application_ce = zend_register_internal_class_ex(&ce, NULL); -- yaf_application_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_application_ce->create_object = yaf_application_new; -+#if PHP_VERSION_ID < 80100 -+ yaf_application_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_application_ce->serialize = zend_class_serialize_deny; - yaf_application_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_application_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - memcpy(&yaf_application_obj_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); - yaf_application_obj_handlers.offset = XtOffsetOf(yaf_application_object, std); -diff --git a/yaf_config.c b/yaf_config.c -index 8668734e..a02334b8 100644 ---- a/yaf_config.c -+++ b/yaf_config.c -@@ -47,18 +47,61 @@ ZEND_BEGIN_ARG_INFO_EX(yaf_config_get_arginfo, 0, 0, 0) - ZEND_ARG_INFO(0, name) - ZEND_END_ARG_INFO() - -+ZEND_BEGIN_ARG_INFO_EX(yaf_config_set_arginfo, 0, 0, 2) -+ ZEND_ARG_INFO(0, name) -+ ZEND_ARG_INFO(0, value) -+ZEND_END_ARG_INFO() -+ -+ZEND_BEGIN_ARG_INFO_EX(yaf_config_isset_arginfo, 0, 0, 1) -+ ZEND_ARG_INFO(0, name) -+ZEND_END_ARG_INFO() -+ -+#if PHP_VERSION_ID < 80100 - ZEND_BEGIN_ARG_INFO_EX(yaf_config_unset_arginfo, 0, 0, 1) - ZEND_ARG_INFO(0, name) - ZEND_END_ARG_INFO() - --ZEND_BEGIN_ARG_INFO_EX(yaf_config_set_arginfo, 0, 0, 2) -+#define yaf_config_current_arginfo yaf_config_void_arginfo -+#define yaf_config_next_arginfo yaf_config_void_arginfo -+#define yaf_config_valid_arginfo yaf_config_void_arginfo -+#define yaf_config_key_arginfo yaf_config_current_arginfo -+#define yaf_config_rewind_arginfo yaf_config_void_arginfo -+#define yaf_config_exists_arginfo yaf_config_isset_arginfo -+#define yaf_config_oget_arginfo yaf_config_get_arginfo -+#define yaf_config_oset_arginfo yaf_config_set_arginfo -+#define yaf_config_count_arginfo yaf_config_void_arginfo -+#else -+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(yaf_config_current_arginfo, 0, 0, IS_MIXED, 0) -+ZEND_END_ARG_INFO() -+ -+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(yaf_config_next_arginfo, 0, 0, IS_VOID, 0) -+ZEND_END_ARG_INFO() -+ -+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(yaf_config_valid_arginfo, 0, 0, _IS_BOOL, 0) -+ZEND_END_ARG_INFO() -+ -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_config_exists_arginfo, 0, 1, _IS_BOOL, 0) - ZEND_ARG_INFO(0, name) -- ZEND_ARG_INFO(0, value) - ZEND_END_ARG_INFO() - --ZEND_BEGIN_ARG_INFO_EX(yaf_config_isset_arginfo, 0, 0, 1) -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_config_oget_arginfo, 0, 1, IS_MIXED, 0) -+ ZEND_ARG_INFO(0, name) -+ZEND_END_ARG_INFO() -+ -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_config_oset_arginfo, 0, 2, IS_VOID, 0) -+ ZEND_ARG_INFO(0, name) -+ ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0) -+ZEND_END_ARG_INFO() -+ -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_config_unset_arginfo, 0, 1, IS_VOID, 0) - ZEND_ARG_INFO(0, name) - ZEND_END_ARG_INFO() -+ -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_config_count_arginfo, 0, 0, IS_LONG, 0) -+ZEND_END_ARG_INFO() -+#define yaf_config_key_arginfo yaf_config_current_arginfo -+#define yaf_config_rewind_arginfo yaf_config_next_arginfo -+#endif - /* }}} */ - - static HashTable *yaf_config_get_gc(yaf_object *obj, zval **table, int *n) /* {{{ */ { -@@ -387,19 +430,19 @@ PHP_METHOD(yaf_config, valid) { - */ - zend_function_entry yaf_config_methods[] = { - PHP_ME(yaf_config, get, yaf_config_get_arginfo, ZEND_ACC_PUBLIC) -- PHP_ME(yaf_config, count, yaf_config_void_arginfo, ZEND_ACC_PUBLIC) -+ PHP_ME(yaf_config, count, yaf_config_count_arginfo, ZEND_ACC_PUBLIC) - PHP_ME(yaf_config, toArray, yaf_config_void_arginfo, ZEND_ACC_PUBLIC) - PHP_ME(yaf_config, offsetUnset, yaf_config_unset_arginfo, ZEND_ACC_PUBLIC) -- PHP_ME(yaf_config, rewind, yaf_config_void_arginfo, ZEND_ACC_PUBLIC) -- PHP_ME(yaf_config, current, yaf_config_void_arginfo, ZEND_ACC_PUBLIC) -- PHP_ME(yaf_config, key, yaf_config_void_arginfo, ZEND_ACC_PUBLIC) -- PHP_ME(yaf_config, next, yaf_config_void_arginfo, ZEND_ACC_PUBLIC) -- PHP_ME(yaf_config, valid, yaf_config_void_arginfo, ZEND_ACC_PUBLIC) -+ PHP_ME(yaf_config, rewind, yaf_config_rewind_arginfo, ZEND_ACC_PUBLIC) -+ PHP_ME(yaf_config, current, yaf_config_current_arginfo, ZEND_ACC_PUBLIC) -+ PHP_ME(yaf_config, key, yaf_config_key_arginfo, ZEND_ACC_PUBLIC) -+ PHP_ME(yaf_config, next, yaf_config_next_arginfo, ZEND_ACC_PUBLIC) -+ PHP_ME(yaf_config, valid, yaf_config_valid_arginfo, ZEND_ACC_PUBLIC) - PHP_ME(yaf_config, __isset, yaf_config_isset_arginfo, ZEND_ACC_PUBLIC) - PHP_MALIAS(yaf_config, __get, get, yaf_config_get_arginfo, ZEND_ACC_PUBLIC) -- PHP_MALIAS(yaf_config, offsetGet, get, yaf_config_get_arginfo, ZEND_ACC_PUBLIC) -- PHP_MALIAS(yaf_config, offsetExists, __isset, yaf_config_isset_arginfo, ZEND_ACC_PUBLIC) -- PHP_ABSTRACT_ME(yaf_config, offsetSet, yaf_config_set_arginfo) -+ PHP_MALIAS(yaf_config, offsetGet, get, yaf_config_oget_arginfo, ZEND_ACC_PUBLIC) -+ PHP_MALIAS(yaf_config, offsetExists, __isset, yaf_config_exists_arginfo, ZEND_ACC_PUBLIC) -+ PHP_ABSTRACT_ME(yaf_config, offsetSet, yaf_config_oset_arginfo) - PHP_ABSTRACT_ME(yaf_config, set, yaf_config_set_arginfo) - PHP_ABSTRACT_ME(yaf_config, readonly, yaf_config_void_arginfo) - {NULL, NULL, NULL} -@@ -413,10 +456,14 @@ YAF_STARTUP_FUNCTION(config) { - - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Config_Abstract", "Yaf\\Config_Abstract", yaf_config_methods); - yaf_config_ce = zend_register_internal_class_ex(&ce, NULL); -- yaf_config_ce->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; - yaf_config_ce->create_object = yaf_config_new; -+#if PHP_VERSION_ID < 80100 -+ yaf_config_ce->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; - yaf_config_ce->serialize = zend_class_serialize_deny; - yaf_config_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_config_ce->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - memcpy(&yaf_config_obj_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); - yaf_config_obj_handlers.offset = XtOffsetOf(yaf_config_object, std); -diff --git a/yaf_controller.c b/yaf_controller.c -index 1f7e2303..248965f7 100644 ---- a/yaf_controller.c -+++ b/yaf_controller.c -@@ -845,11 +845,14 @@ YAF_STARTUP_FUNCTION(controller) { - zend_class_entry ce; - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Controller_Abstract", "Yaf\\Controller_Abstract", yaf_controller_methods); - yaf_controller_ce = zend_register_internal_class_ex(&ce, NULL); -- yaf_controller_ce->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; -- - yaf_controller_ce->create_object = yaf_controller_new; -+#if PHP_VERSION_ID < 80100 -+ yaf_controller_ce->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; - yaf_controller_ce->serialize = zend_class_serialize_deny; - yaf_controller_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_controller_ce->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - memcpy(&yaf_controller_obj_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); - yaf_controller_obj_handlers.offset = XtOffsetOf(yaf_controller_object, std); -diff --git a/yaf_dispatcher.c b/yaf_dispatcher.c -index 8183de42..20a4887a 100644 ---- a/yaf_dispatcher.c -+++ b/yaf_dispatcher.c -@@ -1340,10 +1340,13 @@ YAF_STARTUP_FUNCTION(dispatcher) { - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Dispatcher", "Yaf\\Dispatcher", yaf_dispatcher_methods); - - yaf_dispatcher_ce = zend_register_internal_class_ex(&ce, NULL); -+#if PHP_VERSION_ID < 80100 - yaf_dispatcher_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_dispatcher_ce->serialize = zend_class_serialize_deny; - yaf_dispatcher_ce->unserialize = zend_class_unserialize_deny; -- -+#else -+ yaf_dispatcher_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - memcpy(&yaf_dispatcher_obj_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); - yaf_dispatcher_obj_handlers.offset = XtOffsetOf(yaf_dispatcher_object, std); - yaf_dispatcher_obj_handlers.free_obj = yaf_dispatcher_obj_free; -diff --git a/yaf_loader.c b/yaf_loader.c -index 67a5cb69..e0faefeb 100644 ---- a/yaf_loader.c -+++ b/yaf_loader.c -@@ -994,9 +994,13 @@ YAF_STARTUP_FUNCTION(loader) { - - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Loader", "Yaf\\Loader", yaf_loader_methods); - yaf_loader_ce = zend_register_internal_class_ex(&ce, NULL); -+#if PHP_VERSION_ID < 80100 - yaf_loader_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_loader_ce->serialize = zend_class_serialize_deny; - yaf_loader_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_loader_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - memcpy(&yaf_loader_obj_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); - yaf_loader_obj_handlers.clone_obj = NULL; -diff --git a/yaf_registry.c b/yaf_registry.c -index ac9030ac..36c3a50e 100644 ---- a/yaf_registry.c -+++ b/yaf_registry.c -@@ -233,9 +233,13 @@ YAF_STARTUP_FUNCTION(registry) { - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Registry", "Yaf\\Registry", yaf_registry_methods); - - yaf_registry_ce = zend_register_internal_class_ex(&ce, NULL); -+#if PHP_VERSION_ID < 80100 - yaf_registry_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_registry_ce->serialize = zend_class_serialize_deny; - yaf_registry_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_registry_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - memcpy(&yaf_registry_obj_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); - yaf_registry_obj_handlers.offset = XtOffsetOf(yaf_registry_object, std); -diff --git a/yaf_request.c b/yaf_request.c -index 3a4aca50..6e758848 100644 ---- a/yaf_request.c -+++ b/yaf_request.c -@@ -1437,11 +1437,14 @@ YAF_STARTUP_FUNCTION(request){ - - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Request_Abstract", "Yaf\\Request_Abstract", yaf_request_methods); - yaf_request_ce = zend_register_internal_class_ex(&ce, NULL); -- yaf_request_ce->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; -- - yaf_request_ce->create_object = yaf_request_new; -+#if PHP_VERSION_ID < 80100 -+ yaf_request_ce->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; - yaf_request_ce->serialize = zend_class_serialize_deny; - yaf_request_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_request_ce->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - memcpy(&yaf_request_obj_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); - yaf_request_obj_handlers.offset = XtOffsetOf(yaf_request_object, std); -diff --git a/yaf_response.c b/yaf_response.c -index dc521584..0aea6775 100755 ---- a/yaf_response.c -+++ b/yaf_response.c -@@ -577,11 +577,14 @@ YAF_STARTUP_FUNCTION(response) { - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Response_Abstract", "Yaf\\Response_Abstract", yaf_response_methods); - - yaf_response_ce = zend_register_internal_class_ex(&ce, NULL); -- yaf_response_ce->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; -- - yaf_response_ce->create_object = yaf_response_new; -+#if PHP_VERSION_ID < 80100 -+ yaf_response_ce->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS; - yaf_response_ce->serialize = zend_class_serialize_deny; - yaf_response_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_response_ce->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - memcpy(&yaf_response_obj_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); - yaf_response_obj_handlers.offset = XtOffsetOf(yaf_response_object, std); -diff --git a/yaf_router.c b/yaf_router.c -index 4d3e9d91..3cf6deda 100644 ---- a/yaf_router.c -+++ b/yaf_router.c -@@ -424,10 +424,14 @@ YAF_STARTUP_FUNCTION(router) { - - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Router", "Yaf\\Router", yaf_router_methods); - yaf_router_ce = zend_register_internal_class_ex(&ce, NULL); -- yaf_router_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_router_ce->create_object = yaf_router_new; -+#if PHP_VERSION_ID < 80100 -+ yaf_router_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_router_ce->serialize = zend_class_serialize_deny; - yaf_router_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_router_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - memcpy(&yaf_router_obj_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); - yaf_router_obj_handlers.offset = XtOffsetOf(yaf_router_object, std); -diff --git a/yaf_session.c b/yaf_session.c -index 3dd7c9e5..4e04def4 100644 ---- a/yaf_session.c -+++ b/yaf_session.c -@@ -54,6 +54,34 @@ ZEND_BEGIN_ARG_INFO_EX(yaf_session_set_arginfo, 0, 0, 2) - ZEND_ARG_INFO(0, name) - ZEND_ARG_INFO(0, value) - ZEND_END_ARG_INFO() -+ -+#if PHP_VERSION_ID < 80100 -+#define yaf_session_oexists_arginfo yaf_session_has_arginfo -+#define yaf_session_oget_arginfo yaf_session_get_arginfo -+#define yaf_session_oset_arginfo yaf_session_set_arginfo -+#define yaf_session_ounset_arginfo yaf_session_del_arginfo -+#define yaf_session_count_arginfo yaf_session_void_arginfo -+#else -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_session_oexists_arginfo, 0, 1, _IS_BOOL, 0) -+ ZEND_ARG_INFO(0, name) -+ZEND_END_ARG_INFO() -+ -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_session_oget_arginfo, 0, 1, IS_MIXED, 0) -+ ZEND_ARG_INFO(0, name) -+ZEND_END_ARG_INFO() -+ -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_session_oset_arginfo, 0, 2, IS_VOID, 0) -+ ZEND_ARG_INFO(0, name) -+ ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0) -+ZEND_END_ARG_INFO() -+ -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_session_ounset_arginfo, 0, 1, IS_VOID, 0) -+ ZEND_ARG_INFO(0, name) -+ZEND_END_ARG_INFO() -+ -+ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(yaf_session_count_arginfo, 0, 0, IS_LONG, 0) -+ZEND_END_ARG_INFO() -+#endif - /* }}} */ - - static inline void yaf_session_start(yaf_session_object *session) /* {{{ */ { -@@ -318,12 +346,12 @@ zend_function_entry yaf_session_methods[] = { - PHP_ME(yaf_session, has, yaf_session_has_arginfo, ZEND_ACC_PUBLIC) - PHP_ME(yaf_session, set, yaf_session_set_arginfo, ZEND_ACC_PUBLIC) - PHP_ME(yaf_session, del, yaf_session_del_arginfo, ZEND_ACC_PUBLIC) -- PHP_ME(yaf_session, count, yaf_session_void_arginfo, ZEND_ACC_PUBLIC) -+ PHP_ME(yaf_session, count, yaf_session_count_arginfo, ZEND_ACC_PUBLIC) - PHP_ME(yaf_session, clear, yaf_session_void_arginfo, ZEND_ACC_PUBLIC) -- PHP_MALIAS(yaf_session, offsetGet, get, yaf_session_get_arginfo, ZEND_ACC_PUBLIC) -- PHP_MALIAS(yaf_session, offsetSet, set, yaf_session_set_arginfo, ZEND_ACC_PUBLIC) -- PHP_MALIAS(yaf_session, offsetExists, has, yaf_session_has_arginfo, ZEND_ACC_PUBLIC) -- PHP_MALIAS(yaf_session, offsetUnset, del, yaf_session_del_arginfo, ZEND_ACC_PUBLIC) -+ PHP_MALIAS(yaf_session, offsetGet, get, yaf_session_oget_arginfo, ZEND_ACC_PUBLIC) -+ PHP_MALIAS(yaf_session, offsetSet, set, yaf_session_oset_arginfo, ZEND_ACC_PUBLIC) -+ PHP_MALIAS(yaf_session, offsetExists, has, yaf_session_oexists_arginfo, ZEND_ACC_PUBLIC) -+ PHP_MALIAS(yaf_session, offsetUnset, del, yaf_session_ounset_arginfo, ZEND_ACC_PUBLIC) - PHP_MALIAS(yaf_session, __get, get, yaf_session_get_arginfo, ZEND_ACC_PUBLIC) - PHP_MALIAS(yaf_session, __isset, has, yaf_session_has_arginfo, ZEND_ACC_PUBLIC) - PHP_MALIAS(yaf_session, __set, set, yaf_session_set_arginfo, ZEND_ACC_PUBLIC) -@@ -340,11 +368,14 @@ YAF_STARTUP_FUNCTION(session) { - YAF_INIT_CLASS_ENTRY(ce, "Yaf_Session", "Yaf\\Session", yaf_session_methods); - - yaf_session_ce = zend_register_internal_class_ex(&ce, NULL); -- yaf_session_ce->ce_flags |= ZEND_ACC_FINAL; -- - yaf_session_ce->get_iterator = yaf_session_get_iterator; -+#if PHP_VERSION_ID < 80100 -+ yaf_session_ce->ce_flags |= ZEND_ACC_FINAL; - yaf_session_ce->serialize = zend_class_serialize_deny; - yaf_session_ce->unserialize = zend_class_unserialize_deny; -+#else -+ yaf_session_ce->ce_flags |= ZEND_ACC_FINAL | ZEND_ACC_NOT_SERIALIZABLE; -+#endif - - memcpy(&yaf_session_obj_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); - yaf_session_obj_handlers.offset = XtOffsetOf(yaf_session_object, std); -- cgit