From 6bb81d2c5fb15c7506d0d7293727ab7463243afb Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Sat, 16 Apr 2016 20:57:28 +0200 Subject: [PATCH] Fix non-/Zend tests too --- NEWS | 2 +- ext/standard/tests/file/fscanf.phpt | 2 +- tests/lang/030.phpt | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 723b6b9ca98..97b192c5f37 100644 --- a/NEWS +++ b/NEWS @@ -3,7 +3,7 @@ PHP NEWS ?? ??? 2016 PHP 7.0.7 - Core: - . Fixed Bug #72038 (Function calls with values to a by-ref parameter don't + . Fixed bug #72038 (Function calls with values to a by-ref parameter don't always throw a notice). (Bob) - OCI8: diff --git a/ext/standard/tests/file/fscanf.phpt b/ext/standard/tests/file/fscanf.phpt index c37bdeb20af..003dd53dfa0 100644 --- a/ext/standard/tests/file/fscanf.phpt +++ b/ext/standard/tests/file/fscanf.phpt @@ -7,7 +7,7 @@ $filename = dirname(__FILE__)."/fscanf.dat"; var_dump(fscanf()); var_dump(fscanf(array())); -var_dump(fscanf(array(), array(), new stdclass)); +var_dump(fscanf(array(), array())); file_put_contents($filename, "data"); diff --git a/tests/lang/030.phpt b/tests/lang/030.phpt index 9ee40ea5aab..7f94b2eb748 100644 --- a/tests/lang/030.phpt +++ b/tests/lang/030.phpt @@ -24,7 +24,8 @@ $bar1->Name = 'outside'; $bar1->echoName(); $List->echoName(); -$bar1 =& foo2(new foo('constructor')); +$foo = new foo('constructor'); +$bar1 =& foo2($foo); $bar1->Name = 'outside'; $bar1->echoName();