Skip to content

Commit

Permalink
Preparing 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Apr 18, 2020
1 parent ecd4e9e commit 1e92775
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 7 deletions.
41 changes: 36 additions & 5 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@
<email>[email protected]</email>
<active>yes</active>
</lead>
<date>2020-04-??</date>
<time>12:00:00</time>
<date>2020-04-18</date>
<time>21:40:00</time>
<version>
<release>3.2.0</release>
<api>3.2.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.php.net/license">PHP</license>
<notes>
- Refactor core data structs for performance, 20% speed up according to demo created by tool/cg/yaf_cg
- Implemented PSR-4 autoloading, user now can specific a path for a namespace by Yaf_Loader::registerNamespace(name, path)
- Added Yaf_Loader::registerNamespace(), Yaf_Loader::getNamespaces(), Yaf_Loader::getNamespacePath()
- Added Yaf_Request::clearParams()
Expand Down Expand Up @@ -263,6 +264,37 @@
<providesextension>yaf</providesextension>
<extsrcrelease />
<changelog>
<release>
<date>2020-04-18</date>
<version>
<release>3.2.0</release>
<api>3.2.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- Refactor core data structs for performance, according to demo created by tool/cg/yaf_cg, 20% performance improved
- Implemented PSR-4 autoloading, user now can specific a path for a namespace by Yaf_Loader::registerNamespace(name, path)
- Added Yaf_Loader::registerNamespace(), Yaf_Loader::getNamespaces(), Yaf_Loader::getNamespacePath()
- Added Yaf_Request::clearParams()
- Added Yaf_Controller::getName(), Yaf_Action::getControllerName()
- Added Yaf_Dispatcher::getDefaultModule(), Yaf_Dispatcher::getDefaultController() and Yaf_Dispatcher::getDefaultAction()
- Added Yaf_Application::getInstance(), which is alias of Yaf_Application:app()
- Added optional $format_name argument to Yaf_Request::setModule/Controller/actionName
if it set to false, Yaf will set original input as name,
default it true, which means Yaf will format the name(camel/lowercase) before set it to Request
- Yaf_Controller::__construct now accpet no parameters, it now requires Yaf_Application is initialized.
- Rmoved all lead underline for fake protected property name(examing by var_dump)
- Fixed bug that protected method of Bootstrap get executed
- Yaf_View_Simple is final class now, custom view engin should implements Yaf_View_Interface
- Yaf_Route_* now routes valid Module/Controller/action name directly
- Yaf_Controller action's arguments will be set even if there are gaps now (see test/issue420.phpt)
</notes>
</release>

<release>
<date>2020-04-01</date>
<version>
Expand All @@ -280,7 +312,6 @@
- minor optimization to avoding memory allocations
</notes>
</release>

<release>
<date>2020-03-20</date>
<version>
Expand Down
2 changes: 1 addition & 1 deletion php_yaf.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ extern zend_module_entry yaf_module_entry;
# define ZEND_ACC_DTOR 0x0
#endif

#define PHP_YAF_VERSION "3.2.0-dev"
#define PHP_YAF_VERSION "3.2.0"

#define YAF_STARTUP_FUNCTION(module) ZEND_MINIT_FUNCTION(yaf_##module)
#define YAF_RINIT_FUNCTION(module) ZEND_RINIT_FUNCTION(yaf_##module)
Expand Down
2 changes: 1 addition & 1 deletion yaf_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ yaf_loader_t *yaf_loader_instance(zend_string *library_path) /* {{{ */ {
return instance;
}

loader = emalloc(128/*sizeof(yaf_loader_object)*/);
loader = emalloc(sizeof(yaf_loader_object));
zend_object_std_init(&loader->std, yaf_loader_ce);
loader->std.handlers = &yaf_loader_obj_handlers;

Expand Down

0 comments on commit 1e92775

Please sign in to comment.