Skip to content

Commit

Permalink
Loader, fix php7 refcount zephir/issues/1140
Browse files Browse the repository at this point in the history
  • Loading branch information
mruz committed Apr 25, 2016
1 parent 1c92fa8 commit 426e0cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ice/loader.zep
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ class Loader

// initialize the namespace prefix array
if !isset this->prefixes[prefix] {
let this->prefixes[prefix] = [];
// Refcount of the new array zephir/issues/1140
let this->prefixes[prefix] = [utf8_encode(baseDir)];
return this;
}

// retain the base directory for the namespace prefix
Expand Down

0 comments on commit 426e0cc

Please sign in to comment.