Skip to content

Commit

Permalink
restore the length var and fix the com_dotnet ini
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Sep 1, 2014
1 parent 88d7ca4 commit 481bf25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ext/com_dotnet/com_extension.c
Expand Up @@ -272,7 +272,7 @@ static PHP_INI_MH(OnTypeLibFileUpdate)
char *strtok_buf = NULL;
int cached;

if (!new_value || !new_value[0] || (typelib_file = VCWD_FOPEN(new_value, "r"))==NULL) {
if (NULL == new_value || !new_value->val[0] || (typelib_file = VCWD_FOPEN(new_value->val, "r"))==NULL) {
return FAILURE;
}

Expand Down
1 change: 1 addition & 0 deletions main/php_ini.c
Expand Up @@ -355,6 +355,7 @@ static void php_load_php_extension_cb(void *arg TSRMLS_DC)
static void php_load_zend_extension_cb(void *arg TSRMLS_DC)
{
char *filename = *((char **) arg);
const int length = strlen(filename);

if (IS_ABSOLUTE_PATH(filename, length)) {
zend_load_extension(filename TSRMLS_CC);
Expand Down

0 comments on commit 481bf25

Please sign in to comment.