Skip to content

Commit

Permalink
Fixing double pointer in Router::getDefaults, fixing build [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgutierrez committed Aug 15, 2013
1 parent 1d739ef commit 2a49c4f
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 52 deletions.
4 changes: 3 additions & 1 deletion build/32bits/phalcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ PHP includes the Zend Engine, freely available at
#include "ext/standard/url.h"
#include "ext/spl/spl_heap.h"
#include "ext/spl/spl_exceptions.h"
#include "ext/spl/spl_directory.h"
#include "ext/date/php_date.h"

#ifdef PHALCON_USE_PHP_PCRE
Expand Down Expand Up @@ -83673,8 +83674,9 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaults){
}

static PHP_METHOD(Phalcon_Mvc_Router, getDefaults){

zval *namespace_name, *module_name;
zval *controller_name, *action_name, **params;
zval *controller_name, *action_name, *params;

namespace_name = phalcon_fetch_nproperty_this(this_ptr, SL("_defaultNamespace"), PH_NOISY_CC);
module_name = phalcon_fetch_nproperty_this(this_ptr, SL("_defaultModule"), PH_NOISY_CC);
Expand Down
12 changes: 0 additions & 12 deletions build/32bits/phalcon.h
Original file line number Diff line number Diff line change
Expand Up @@ -5136,8 +5136,6 @@ PHALCON_INIT_FUNCS(phalcon_translate_adapter_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_DATA_H
#define PHALCON_CACHE_FRONTEND_DATA_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_data_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Data);
Expand Down Expand Up @@ -6250,8 +6248,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_backend_libmemcached_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_JSON_H
#define PHALCON_CACHE_FRONTEND_JSON_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_json_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Json);
Expand All @@ -6271,8 +6267,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_json_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_OUTPUT_H
#define PHALCON_CACHE_FRONTEND_OUTPUT_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_output_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Output);
Expand Down Expand Up @@ -6308,8 +6302,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_output_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_NONE_H
#define PHALCON_CACHE_FRONTEND_NONE_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_none_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_None);
Expand All @@ -6331,8 +6323,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_none_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_BASE64_H
#define PHALCON_CACHE_FRONTEND_BASE64_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_base64_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Base64);
Expand All @@ -6352,8 +6342,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_base64_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_IGBINARY_H
#define PHALCON_CACHE_FRONTEND_IGBINARY_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_igbinary_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Igbinary);
Expand Down
4 changes: 3 additions & 1 deletion build/64bits/phalcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ PHP includes the Zend Engine, freely available at
#include "ext/standard/url.h"
#include "ext/spl/spl_heap.h"
#include "ext/spl/spl_exceptions.h"
#include "ext/spl/spl_directory.h"
#include "ext/date/php_date.h"

#ifdef PHALCON_USE_PHP_PCRE
Expand Down Expand Up @@ -83673,8 +83674,9 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaults){
}

static PHP_METHOD(Phalcon_Mvc_Router, getDefaults){

zval *namespace_name, *module_name;
zval *controller_name, *action_name, **params;
zval *controller_name, *action_name, *params;

namespace_name = phalcon_fetch_nproperty_this(this_ptr, SL("_defaultNamespace"), PH_NOISY_CC);
module_name = phalcon_fetch_nproperty_this(this_ptr, SL("_defaultModule"), PH_NOISY_CC);
Expand Down
12 changes: 0 additions & 12 deletions build/64bits/phalcon.h
Original file line number Diff line number Diff line change
Expand Up @@ -5136,8 +5136,6 @@ PHALCON_INIT_FUNCS(phalcon_translate_adapter_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_DATA_H
#define PHALCON_CACHE_FRONTEND_DATA_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_data_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Data);
Expand Down Expand Up @@ -6250,8 +6248,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_backend_libmemcached_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_JSON_H
#define PHALCON_CACHE_FRONTEND_JSON_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_json_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Json);
Expand All @@ -6271,8 +6267,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_json_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_OUTPUT_H
#define PHALCON_CACHE_FRONTEND_OUTPUT_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_output_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Output);
Expand Down Expand Up @@ -6308,8 +6302,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_output_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_NONE_H
#define PHALCON_CACHE_FRONTEND_NONE_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_none_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_None);
Expand All @@ -6331,8 +6323,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_none_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_BASE64_H
#define PHALCON_CACHE_FRONTEND_BASE64_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_base64_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Base64);
Expand All @@ -6352,8 +6342,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_base64_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_IGBINARY_H
#define PHALCON_CACHE_FRONTEND_IGBINARY_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_igbinary_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Igbinary);
Expand Down
4 changes: 3 additions & 1 deletion build/safe/phalcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ PHP includes the Zend Engine, freely available at
#include "ext/standard/url.h"
#include "ext/spl/spl_heap.h"
#include "ext/spl/spl_exceptions.h"
#include "ext/spl/spl_directory.h"
#include "ext/date/php_date.h"

#ifdef PHALCON_USE_PHP_PCRE
Expand Down Expand Up @@ -83673,8 +83674,9 @@ static PHP_METHOD(Phalcon_Mvc_Router, setDefaults){
}

static PHP_METHOD(Phalcon_Mvc_Router, getDefaults){

zval *namespace_name, *module_name;
zval *controller_name, *action_name, **params;
zval *controller_name, *action_name, *params;

namespace_name = phalcon_fetch_nproperty_this(this_ptr, SL("_defaultNamespace"), PH_NOISY_CC);
module_name = phalcon_fetch_nproperty_this(this_ptr, SL("_defaultModule"), PH_NOISY_CC);
Expand Down
12 changes: 0 additions & 12 deletions build/safe/phalcon.h
Original file line number Diff line number Diff line change
Expand Up @@ -5136,8 +5136,6 @@ PHALCON_INIT_FUNCS(phalcon_translate_adapter_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_DATA_H
#define PHALCON_CACHE_FRONTEND_DATA_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_data_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Data);
Expand Down Expand Up @@ -6250,8 +6248,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_backend_libmemcached_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_JSON_H
#define PHALCON_CACHE_FRONTEND_JSON_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_json_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Json);
Expand All @@ -6271,8 +6267,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_json_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_OUTPUT_H
#define PHALCON_CACHE_FRONTEND_OUTPUT_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_output_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Output);
Expand Down Expand Up @@ -6308,8 +6302,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_output_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_NONE_H
#define PHALCON_CACHE_FRONTEND_NONE_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_none_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_None);
Expand All @@ -6331,8 +6323,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_none_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_BASE64_H
#define PHALCON_CACHE_FRONTEND_BASE64_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_base64_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Base64);
Expand All @@ -6352,8 +6342,6 @@ PHALCON_INIT_FUNCS(phalcon_cache_frontend_base64_method_entry){
#ifndef PHALCON_CACHE_FRONTEND_IGBINARY_H
#define PHALCON_CACHE_FRONTEND_IGBINARY_H

#include "cache/frontendinterface.h"

zend_class_entry *phalcon_cache_frontend_igbinary_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Igbinary);
Expand Down
2 changes: 0 additions & 2 deletions ext/cache/frontend/base64.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef PHALCON_CACHE_FRONTEND_BASE64_H
#define PHALCON_CACHE_FRONTEND_BASE64_H

#include "cache/frontendinterface.h"

extern zend_class_entry *phalcon_cache_frontend_base64_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Base64);
Expand Down
2 changes: 0 additions & 2 deletions ext/cache/frontend/data.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef PHALCON_CACHE_FRONTEND_DATA_H
#define PHALCON_CACHE_FRONTEND_DATA_H

#include "cache/frontendinterface.h"

extern zend_class_entry *phalcon_cache_frontend_data_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Data);
Expand Down
2 changes: 0 additions & 2 deletions ext/cache/frontend/igbinary.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#ifndef PHALCON_CACHE_FRONTEND_IGBINARY_H
#define PHALCON_CACHE_FRONTEND_IGBINARY_H

#include "cache/frontendinterface.h"

extern zend_class_entry *phalcon_cache_frontend_igbinary_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Igbinary);
Expand Down
2 changes: 0 additions & 2 deletions ext/cache/frontend/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef PHALCON_CACHE_FRONTEND_JSON_H
#define PHALCON_CACHE_FRONTEND_JSON_H

#include "cache/frontendinterface.h"

extern zend_class_entry *phalcon_cache_frontend_json_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Json);
Expand Down
2 changes: 0 additions & 2 deletions ext/cache/frontend/none.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef PHALCON_CACHE_FRONTEND_NONE_H
#define PHALCON_CACHE_FRONTEND_NONE_H

#include "cache/frontendinterface.h"

extern zend_class_entry *phalcon_cache_frontend_none_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_None);
Expand Down
2 changes: 0 additions & 2 deletions ext/cache/frontend/output.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#ifndef PHALCON_CACHE_FRONTEND_OUTPUT_H
#define PHALCON_CACHE_FRONTEND_OUTPUT_H

#include "cache/frontendinterface.h"

extern zend_class_entry *phalcon_cache_frontend_output_ce;

PHALCON_INIT_CLASS(Phalcon_Cache_Frontend_Output);
Expand Down
3 changes: 2 additions & 1 deletion ext/mvc/router.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,9 @@ PHP_METHOD(Phalcon_Mvc_Router, setDefaults){
* @return array
*/
PHP_METHOD(Phalcon_Mvc_Router, getDefaults){

zval *namespace_name, *module_name;
zval *controller_name, *action_name, **params;
zval *controller_name, *action_name, *params;

namespace_name = phalcon_fetch_nproperty_this(this_ptr, SL("_defaultNamespace"), PH_NOISY_CC);
module_name = phalcon_fetch_nproperty_this(this_ptr, SL("_defaultModule"), PH_NOISY_CC);
Expand Down
1 change: 1 addition & 0 deletions scripts/gen-build.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public function generate($path, $destination='build/', $calculateHashKeys=false,
#include "ext/standard/url.h"
#include "ext/spl/spl_heap.h"
#include "ext/spl/spl_exceptions.h"
#include "ext/spl/spl_directory.h"
#include "ext/date/php_date.h"

#ifdef PHALCON_USE_PHP_PCRE
Expand Down

0 comments on commit 2a49c4f

Please sign in to comment.