Skip to content

Commit

Permalink
rename version&&remove buession_instance_find_ex test code
Browse files Browse the repository at this point in the history
Change-Id: Ib021eb70758f739787f8a9b3649116bdec2e39e7
  • Loading branch information
yong.teng committed Nov 25, 2013
1 parent 487ef41 commit 7d6fb0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions buession.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ BUESSION_API zval *buession_instance_find_ex(const char *classname, uint classna
char *lclassname = zend_str_tolower_dup(classname, classname_length);
zval **instance;

return NULL;

if(zend_hash_find(&(BUESSION_G(registry).instances), lclassname, classname_length + 1, (void **) &instance) == SUCCESS&&Z_TYPE_PP(instance) == IS_OBJECT){
Z_ADDREF_PP(instance);
buession_free(lclassname);
Expand Down Expand Up @@ -463,7 +461,7 @@ ZEND_MINFO_FUNCTION(buession){
php_info_print_table_start();
php_info_print_table_header(2, "buession support", "enabled");
php_info_print_table_row(2, "Name", BUESSION);
php_info_print_table_row(2, "Version", BUESSION_VERSION);
php_info_print_table_row(2, "Version", BUESSION_VERSION" "BUESSION_EXTRA_VERSION);
if(BUESSION_BUILD[0] != '\0'){
php_info_print_table_row(2, "Build", BUESSION_BUILD);
}
Expand Down
8 changes: 4 additions & 4 deletions buession.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ extern zend_class_entry *buession_ce;
#define BUESSION_MAJOR_VERSION 0
#define BUESSION_MINOR_VERSION 0
#define BUESSION_RELEASE_VERSION 1
#define BUESSION_EXTRA_VERSION "Beta"
#define BUESSION_VERSION "0.0.1 "BUESSION_EXTRA_VERSION
#define BUESSION_EXTRA_VERSION "Release"
#define BUESSION_VERSION "0.0.1"
#define BUESSION_BUILD ""
#define BUESSION_API_VERSION ZEND_TOSTR(PHP_API_VERSION)" "BUESSION_EXTRA_VERSION
#define BUESSION_REVISION_ID "$Revision: "ZEND_TOSTR(PHP_API_VERSION)" $"
#define BUESSION_API_VERSION ZEND_TOSTR(PHP_API_VERSION)
#define BUESSION_REVISION_ID "$Revision: "BUESSION_API_VERSION" $"
#define BUESSION_SUPPORT_URL "http://www.buession.com/"
#define BUESSION_SUPPORT_EMAIL "webmaster@buession.com"

Expand Down

0 comments on commit 7d6fb0f

Please sign in to comment.