com php-langspec: Adjust constant warning message for PHP 7.3: tests/constants/constants.phpt
[email protected] (Nikita Popov) Sat, 22 Dec 2018 12:29:45 +0000
| Newsgroups | php.standards.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit: 313688242e8cefdd99349f592a81a67a157c0fb6=0AAuthor: Nikita Pop= ov <[email protected]> Sat, 22 Dec 2018 13:29:45 +0100=0AParents= : 197a397cf84bdcd3f896aebf15a73b5fd45a174d=0ABranches: master=0A=0ALink:= http://git.php.net/?p=3Dphp-langspec.git;a=3Dcommitdiff;h=3D31368824= 2e8cefdd99349f592a81a67a157c0fb6=0A=0ALog:=0AAdjust constant warning messag= e for PHP 7.3=0A=0AThe spec already correctly mentions that resources are a= llowed.=0AThe warning was clarified in PHP 7.3.=0A=0AChanged paths:=0A M = tests/constants/constants.phpt=0A=0A=0ADiff:=0Adiff --git a/tests/constants= /constants.phpt b/tests/constants/constants.phpt=0Aindex b1fe1c4..5e6b66f 1= 00644=0A--- a/tests/constants/constants.phpt=0A+++ b/tests/constants/consta= nts.phpt=0A@@ -214,7 +214,7 @@ define COLORS succeeded=0A Notice: Array to = string conversion in %s/constants/constants.php on line 16=0A ; value is >A= rray<=0A =0A-Warning: Constants may only evaluate to scalar values or array= s in %s/constants/constants.php on line 13=0A+Warning: Constants may only e= valuate to scalar values, arrays or resources in %s/constants/constants.php= on line 13=0A define MY_OBJECT failed; not defined=0A =0A Warning: fopen(T= estfile.txt): failed to open stream: No such file or directory in %s/consta= nts/constants.php on line 90=0A