Re: com php-src: Fix non-/Zend tests too: NEWS ext/standard/tests/file/fscanf.phpt tests/lang/030.phpt
| From: | Bob Weinand | Date: | Mon, 18 Apr 2016 10:16:43 +0000 |
| Subject: | Re: com php-src: Fix non-/Zend tests too: NEWS ext/standard/tests/file/fscanf.phpt tests/lang/030.phpt | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-91773@lists.php.net to get a copy of this message | ||
> Am 18.04.2016 um 09:44 schrieb Ferenc Kovacs <tyra3l@gmail.com>:
>
>
>
> On Sat, Apr 16, 2016 at 8:57 PM, Bob Weinand <bwoebi@php.net
> <mailto:bwoebi@php.net>> wrote:
> Commit: 6bb81d2c5fb15c7506d0d7293727ab7463243afb
> Author: Bob Weinand <bobwei9@hotmail.com <!
> ®u\Þy¨�á|3;îmailto: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
> <http://git.php.net/?p=php-src.git;a=commitdiff;h=6bb81d2c5fb15c7506d0d7293727ab7463243afb
> ‰×ªH‹Í_“@©�R>
>
> 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();
>
>
> --
> PHP CVS Mailing List (http://www.php.net/
> <http://www.php.net/>)
> To unsubscribe, visit: http://www.php.net/unsub.php <fÓü¹N
> ŸÏ 7‡q’http://www.php.net/unsub.php>
>
>
> it seems the fix for 72038 also landed in PHP-7.0 but this commit fixing these tests was only
> pushed to master.
> not sure what was the mistake (72038 landing in PHP-7.0 or this commit not being backported to
> PHP-7.0) as the original bugreport was targetting master.
>
> --
> Ferenc Kovács
> @Tyr43l - http://tyrael.hu
> <http://tyrael.hu/>
Hey Ferenc and Anatol,
Sorry, forgot to git push the commit from the PHP-7.0 branch.
Should be fine now.
Bob