From: Bob Weinand Date: Sat, 16 Apr 2016 18:57:28 +0000 (+0200) Subject: Fix non-/Zend tests too X-Git-Tag: php-7.0.7RC1~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bb81d2c5fb15c7506d0d7293727ab7463243afb;p=php Fix non-/Zend tests too --- diff --git a/NEWS b/NEWS index 723b6b9ca9..97b192c5f3 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 c37bdeb20a..003dd53dfa 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 9ee40ea5aa..7f94b2eb74 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();