From 855034b95510c407f0e2c05ba26a32789fa104d4 Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Thu, 23 Jul 2009 14:42:46 +0000 Subject: [PATCH] - Fixed bug #49032 (SplFileObject::fscanf() variables passed by reference) --- NEWS | 2 ++ ext/spl/spl_directory.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index b18f7661b7..32e44d80b3 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,8 @@ PHP NEWS - Fixed open_basedir circumvention for mail.log. (Maksymilian Arciemowicz, Stas) +- Fixed bug #49032 (SplFileObject::fscanf() variables passed by reference). + (Jani) - Fixed bug #49012 (phar tar signature algorithm reports as Unknown (0) in getSignature() call). (Greg) - Fixed bug #49020 (phar misinterprets ustar long filename standard). diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index c4ab0ed51d..f6b072b3dc 100755 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -2567,8 +2567,9 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_file_object_fgetss, 0, 0, 0) ZEND_ARG_INFO(0, allowable_tags) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_file_object_fscanf, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_file_object_fscanf, 1, 0, 1) ZEND_ARG_INFO(0, format) + ZEND_ARG_INFO(1, ...) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_file_object_fwrite, 0, 0, 1) -- 2.50.0