Skip to content

Commit

Permalink
Merge branch 'master' of github.com:laruence/php-yaf
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Dec 10, 2013
2 parents 31cb055 + 585dccc commit f8b49a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion travis/compile.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
phpize && ./configure && make
phpize && ./configure && make clean && make
4 changes: 2 additions & 2 deletions yaf_dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ zend_class_entry * yaf_dispatcher_get_controller(char *app_dir, char *module, ch

class_lowercase = zend_str_tolower_dup(class, class_len);

if (zend_hash_find(EG(class_table), class_lowercase, class_len + 1, (void *)&ce) != SUCCESS) {
if (zend_hash_find(EG(class_table), class_lowercase, class_len + 1, (void **)&ce) != SUCCESS) {

if (!yaf_internal_autoload(controller, len, &directory TSRMLS_CC)) {
yaf_trigger_error(YAF_ERR_NOTFOUND_CONTROLLER TSRMLS_CC, "Failed opening controller script %s: %s", directory, strerror(errno));
Expand Down Expand Up @@ -475,7 +475,7 @@ zend_class_entry * yaf_dispatcher_get_action(char *app_dir, yaf_controller_t *co

class_lowercase = zend_str_tolower_dup(class, class_len);

if (zend_hash_find(EG(class_table), class_lowercase, class_len + 1, (void *)&ce) != SUCCESS) {
if (zend_hash_find(EG(class_table), class_lowercase, class_len + 1, (void **)&ce) != SUCCESS) {
if (!yaf_internal_autoload(action_upper, len, &directory TSRMLS_CC)) {
yaf_trigger_error(YAF_ERR_NOTFOUND_ACTION TSRMLS_CC, "Failed opening action script %s: %s", directory, strerror(errno));

Expand Down

0 comments on commit f8b49a7

Please sign in to comment.