Skip to content

Commit

Permalink
Merge pull request #7 from klaussilveira/master
Browse files Browse the repository at this point in the history
Phalcon_Logger_Adapter_File::getFormat was an exact copy of setFormat
  • Loading branch information
Phalcon committed May 9, 2012
2 parents bb24857 + 6571123 commit c6df8a4
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions dev/logger/adapter/file.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*
+------------------------------------------------------------------------+
| Phalcon Framework |
Expand Down Expand Up @@ -143,16 +142,9 @@ PHP_METHOD(Phalcon_Logger_Adapter_File, getFormat){
zval *v0 = NULL;

PHALCON_MM_GROW();

if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &v0) == FAILURE) {
PHALCON_MM_RESTORE();
RETURN_NULL();
}


phalcon_update_property_zval(this_ptr, "_format", strlen("_format"), v0 TSRMLS_CC);
PHALCON_MM_RESTORE();
RETURN_NULL();
PHALCON_ALLOC_ZVAL_MM(v0);
phalcon_read_property(&v0, this_ptr, "_format", strlen("_format"), v0 TSRMLS_CC);
PHALCON_RETURN_CHECK_CTOR(v0);
}

/**
Expand Down

0 comments on commit c6df8a4

Please sign in to comment.