com php-src: Fix non-/Zend tests too: NEWS ext/standard/tests/file/fscanf.phpt tests/lang/030.phpt

From: Date: Sat, 16 Apr 2016 18:57:28 +0000
Subject: com php-src: Fix non-/Zend tests too: NEWS ext/standard/tests/file/fscanf.phpt tests/lang/030.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91749@lists.php.net to get a copy of this message
Commit: 6bb81d2c5fb15c7506d0d7293727ab7463243afb Author: Bob Weinand <bobwei9@hotmail.com> Sat, 16 Apr 2016 20:57:28 +0200 Parents: 15d1d4f45bea8c7f9eedf0534ffee804640baaf1 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6bb81d2c5fb15c7506d0d7293727ab7463243afb Log: Fix non-/Zend tests too Changed paths: M NEWS M ext/standard/tests/file/fscanf.phpt M tests/lang/030.phpt Diff: diff --git a/NEWS b/NEWS index 723b6b9..97b192c 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 c37bdeb..003dd53 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 9ee40ea..7f94b2e 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();

« previous php.cvs (#91749) next »