summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xext/spl/php_spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c
index aa8b9e0a38..d0eda76689 100755
--- a/ext/spl/php_spl.c
+++ b/ext/spl/php_spl.c
@@ -596,7 +596,7 @@ PHP_MINIT_FUNCTION(spl)
PHP_RINIT_FUNCTION(spl) /* {{{ */
{
- SPL_G(autoload_extensions) = estrdup(".inc,.php");
+ SPL_G(autoload_extensions) = estrndup(".inc,.php", sizeof(".inc,.php")-1);
return SUCCESS;
} /* }}} */