af9dc8
From 1291d6bbee93b6109eb07e8f7916ff1b7fcc13e1 Mon Sep 17 00:00:00 2001
af9dc8
From: Stanislav Malyshev <stas@php.net>
af9dc8
Date: Tue, 17 Mar 2015 12:47:58 -0700
af9dc8
Subject: [PATCH] Fix bug #69207 - move_uploaded_file allows nulls in path
af9dc8
af9dc8
---
af9dc8
 NEWS                           | 3 +++
af9dc8
 ext/standard/basic_functions.c | 2 +-
af9dc8
 2 files changed, 4 insertions(+), 1 deletion(-)
af9dc8
af9dc8
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
af9dc8
index 9a9df30..c3e2230 100644
af9dc8
--- a/ext/standard/basic_functions.c
af9dc8
+++ b/ext/standard/basic_functions.c
af9dc8
@@ -5771,7 +5771,7 @@ PHP_FUNCTION(move_uploaded_file)
af9dc8
 		RETURN_FALSE;
af9dc8
 	}
af9dc8
 
af9dc8
-	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &path, &path_len, &new_path, &new_path_len) == FAILURE) {
af9dc8
+	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sp", &path, &path_len, &new_path, &new_path_len) == FAILURE) {
af9dc8
 		return;
af9dc8
 	}
af9dc8
 
af9dc8
-- 
af9dc8
2.1.4
af9dc8