Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增yaf_db模块 #428

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
839 changes: 839 additions & 0 deletions YAF_DB.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ if test "$PHP_YAF" != "no"; then
yaf_loader.c \
yaf_registry.c \
yaf_plugin.c \
yaf_session.c,
yaf_session.c \
yaf_db.c,
$ext_shared)
PHP_ADD_BUILD_DIR([$ext_builddir/configs])
PHP_ADD_BUILD_DIR([$ext_builddir/requests])
Expand Down
2 changes: 1 addition & 1 deletion config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG_ENABLE("yaf", "enable yaf support", "no");

if (PHP_YAF == "yes") {

EXTENSION("yaf", "yaf.c yaf_application.c yaf_bootstrap.c yaf_dispatcher.c yaf_exception.c yaf_config.c yaf_request.c yaf_response.c yaf_view.c yaf_controller.c yaf_action.c yaf_router.c yaf_loader.c yaf_registry.c yaf_plugin.c yaf_session.c");
EXTENSION("yaf", "yaf.c yaf_application.c yaf_bootstrap.c yaf_dispatcher.c yaf_exception.c yaf_config.c yaf_request.c yaf_response.c yaf_view.c yaf_controller.c yaf_action.c yaf_router.c yaf_loader.c yaf_registry.c yaf_plugin.c yaf_session.c yaf_db.c");

ADD_FLAG("CFLAGS_YAF", "/I " + configure_module_dirname);

Expand Down
2 changes: 2 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
<file name="yaf_session.h" role="src" />
<file name="yaf_view.c" role="src" />
<file name="yaf_view.h" role="src" />
<file name="yaf_db.c" role="src" />
<file name="yaf_db.h" role="src" />
<dir name="configs">
<file name="yaf_config_ini.c" role="src" />
<file name="yaf_config_ini.h" role="src" />
Expand Down
4 changes: 2 additions & 2 deletions php_yaf.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ extern zend_module_entry yaf_module_entry;

#define YAF_ME(c, m, a, f) {m, PHP_MN(c), a, (uint) (sizeof(a)/sizeof(struct _zend_arg_info)-1), f},

extern PHPAPI void php_var_dump(zval **struc, int level);
extern PHPAPI void php_debug_zval_dump(zval **struc, int level);
//extern PHPAPI void php_var_dump(zval **struc, int level);
//extern PHPAPI void php_debug_zval_dump(zval **struc, int level);

ZEND_BEGIN_MODULE_GLOBALS(yaf)
zend_string *ext;
Expand Down
2 changes: 2 additions & 0 deletions yaf.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include "yaf_plugin.h"
#include "yaf_registry.h"
#include "yaf_session.h"
#include "yaf_db.h"

ZEND_DECLARE_MODULE_GLOBALS(yaf);

Expand Down Expand Up @@ -141,6 +142,7 @@ PHP_MINIT_FUNCTION(yaf)
YAF_STARTUP(registry);
YAF_STARTUP(session);
YAF_STARTUP(exception);
YAF_STARTUP(db);

return SUCCESS;
}
Expand Down
Loading