Skip to content

Commit

Permalink
Fix image bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamsxin committed Jul 31, 2013
1 parent eca2718 commit 510d781
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions ext/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,11 @@ mvc/model/query/scanner.c \
mvc/view/engine/volt/parser.c \
mvc/view/engine/volt/scanner.c \
annotations/parser.c \
annotations/scanner.c \
image.c"
annotations/scanner.c
image.c \
image/adapterinterface.c \
image/exception.c \
image/adapter/gd.c"

PHP_NEW_EXTENSION(phalcon, $phalcon_sources, $ext_shared)
PHP_ADD_EXTENSION_DEP([phalcon], [spl])
Expand Down
2 changes: 1 addition & 1 deletion ext/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
*/
PHALCON_INIT_CLASS(Phalcon_Image){

PHALCON_REGISTER_CLASS(Phalcon, Logger, logger, NULL, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS);
PHALCON_REGISTER_CLASS(Phalcon, Image, image, NULL, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS);

// Resizing constraints
zend_declare_class_constant_long(phalcon_image_ce, SL("NONE"), 1 TSRMLS_CC);
Expand Down
2 changes: 2 additions & 0 deletions ext/phalcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,8 @@ static PHP_MINIT_FUNCTION(phalcon){
PHALCON_INIT(Phalcon_Events_Manager);
PHALCON_INIT(Phalcon_Events_Exception);
PHALCON_INIT(Phalcon_Image);
PHALCON_INIT(Phalcon_Image_AdapterInterface);
PHALCON_INIT(Phalcon_Image_Adapter_GD);

old_error_cb = zend_error_cb;
zend_error_cb = phalcon_error_cb;
Expand Down
2 changes: 1 addition & 1 deletion ext/phalcon.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,5 +326,5 @@
#include "events/exception.h"
#include "image.h"
#include "image/adapterinterface.h"
#include "image/adapter/gd.h"
#include "image/exception.h"
#include "image/adapter/gd.h"

0 comments on commit 510d781

Please sign in to comment.