Skip to content

Commit

Permalink
Merge pull request #1047 from sjinks/rvo
Browse files Browse the repository at this point in the history
Return Value Optimization - PHP 5.5
  • Loading branch information
Phalcon committed Aug 10, 2013
2 parents c07b881 + a3d223e commit 8de4630
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ext/phalcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,12 @@ zend_class_entry *phalcon_image_adapter_imagick_ce;

ZEND_DECLARE_MODULE_GLOBALS(phalcon)

#if PHP_VERSION_ID >= 50500
static void (*orig_execute_internal)(zend_execute_data *, zend_fcall_info *, int TSRMLS_DC) = NULL;
#else
static void (*orig_execute_internal)(zend_execute_data *, int TSRMLS_DC) = NULL;
#endif

static void (*old_error_cb)(int, const char *, const uint, const char *, va_list) = NULL;

static void phalcon_error_cb(int type, const char *error_filename, const uint error_lineno, const char *format, va_list args)
Expand Down Expand Up @@ -682,8 +687,8 @@ static PHP_MINIT_FUNCTION(phalcon){
PHALCON_INIT(Phalcon_Mvc_Controller);
PHALCON_INIT(Phalcon_Mvc_Collection_Exception);
PHALCON_INIT(Phalcon_Mvc_Collection_Document);
PHALCON_INIT(Phalcon_Mvc_Collection_Manager);
PHALCON_INIT(Phalcon_Mvc_Collection_ManagerInterface);
PHALCON_INIT(Phalcon_Mvc_Collection_Manager);
PHALCON_INIT(Phalcon_Mvc_ControllerInterface);
PHALCON_INIT(Phalcon_Mvc_Dispatcher);
PHALCON_INIT(Phalcon_Mvc_Dispatcher_Exception);
Expand Down

0 comments on commit 8de4630

Please sign in to comment.