From: Dmitry Stogov Date: Mon, 18 Nov 2019 08:29:38 +0000 (+0300) Subject: Merge branch 'PHP-7.4' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bf663d3b2e9ff0400c1207acfdc81a7740476c5;p=php Merge branch 'PHP-7.4' * PHP-7.4: Fix $x = (bool)$x; for undefined with opcache --- 8bf663d3b2e9ff0400c1207acfdc81a7740476c5 diff --cc ext/opcache/tests/bool_not_cv.phpt index 0000000000,ed3cf83514..cc28edcc01 mode 000000,100644..100644 --- a/ext/opcache/tests/bool_not_cv.phpt +++ b/ext/opcache/tests/bool_not_cv.phpt @@@ -1,0 -1,34 +1,34 @@@ + --TEST-- + $v = !$v/(bool)$v checks for undefined variables + --INI-- + opcache.enable=1 + opcache.enable_cli=1 + opcache.file_cache_only=0 + --SKIPIF-- + + --FILE-- + + --EXPECTF-- + In undef_negation + -Notice: Undefined variable: v in %s on line 4 ++Warning: Undefined variable: v in %s on line 4 + true + In undef_bool_cast + -Notice: Undefined variable: v in %s on line 10 ++Warning: Undefined variable: v in %s on line 10 + false