diff options
| -rw-r--r-- | ext/standard/string.c | 3 | ||||
| -rw-r--r-- | main/main.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 1f69c7feea..c224e60739 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -697,7 +697,8 @@ PHP_FUNCTION(basename) } /* }}} */ -PHPAPI void php_dirname(char *str, int len) { +PHPAPI void php_dirname(char *str, int len) +{ register char *c; c = str + len - 1; diff --git a/main/main.c b/main/main.c index c7f9ff0943..992e4a1f5f 100644 --- a/main/main.c +++ b/main/main.c @@ -44,6 +44,7 @@ #include <locale.h> #endif #include "zend.h" +#include "zend_extensions.h" #include "php_ini.h" #include "php_globals.h" #include "php_main.h" |
