]> granicus.if.org Git - php/commitdiff
Remove some references to E_STRICT in tests
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 3 Feb 2018 17:17:12 +0000 (18:17 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 3 Feb 2018 17:17:12 +0000 (18:17 +0100)
run-tests.php enforces error_reporting=E_ALL (including E_STRICT),
setting this explicitly in not necessary. Conversely, after the
removal of some E_STRICT errors, explicitly excluding it is no
longer necessary in some places.

46 files changed:
Zend/tests/bug27669.phpt
Zend/tests/bug40809.phpt
Zend/tests/bug43450.phpt
Zend/tests/bug45805.phpt
Zend/tests/bug60536_002.phpt
Zend/tests/bug60536_003.phpt
Zend/tests/bug60536_004.phpt
Zend/tests/bug60536_005.phpt
Zend/tests/bug67436/bug67436_nohandler.phpt
Zend/tests/bug69388.phpt
Zend/tests/bug69388_2.phpt
Zend/tests/bug72101.phpt
Zend/tests/bug74408.phpt
Zend/tests/clone_004.phpt
Zend/tests/traits/property001.phpt
Zend/tests/traits/property002.phpt
Zend/tests/traits/property003.phpt
Zend/tests/traits/property004.phpt
Zend/tests/traits/property005.phpt
Zend/tests/traits/property006.phpt
Zend/tests/traits/property007.phpt
Zend/tests/traits/property008.phpt
Zend/tests/traits/property009.phpt
ext/date/tests/date_sunrise_and_sunset_basic.phpt
ext/date/tests/mktime_basic1.phpt
ext/date/tests/mktime_error.phpt
ext/date/tests/timezone_name_from_abbr_error.phpt
ext/standard/tests/class_object/is_a_error_001.phpt
ext/standard/tests/class_object/is_a_variation_001.phpt
ext/standard/tests/class_object/is_a_variation_002.phpt
ext/standard/tests/class_object/is_a_variation_003.phpt
ext/standard/tests/file/bug37158.phpt
ext/standard/tests/general_functions/is_callable_basic1.phpt
ext/standard/tests/general_functions/is_callable_basic2.phpt
ext/standard/tests/general_functions/is_callable_error.phpt
ext/standard/tests/general_functions/is_callable_variation1.phpt
ext/standard/tests/general_functions/is_callable_variation2.phpt
ext/standard/tests/serialize/serialization_objects_013.phpt
ext/standard/tests/serialize/serialization_objects_014.phpt
ext/standard/tests/serialize/serialization_objects_015.phpt
tests/lang/engine_assignExecutionOrder_008.phpt
tests/lang/foreachLoop.016.phpt
tests/lang/passByReference_012.phpt
tests/lang/returnByReference.006.phpt
tests/lang/returnByReference.007.phpt
tests/lang/returnByReference.008.phpt

index 43591a938614a58efe69924084110119be1e9e0b..97b15590e2e1f907605fbb8066c786c58e89baa6 100644 (file)
@@ -2,8 +2,6 @@
 Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dynamically)
 --FILE--
 <?php
-       error_reporting(E_ALL & !E_STRICT);
-
        class A {
                function hello() {
                        echo "Hello World\n";
@@ -14,5 +12,6 @@ Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dy
 ?>
 ===DONE===
 --EXPECTF--
+Deprecated: Non-static method A::hello() should not be called statically in %s on line %d
 Hello World
 ===DONE===
index 9ff4e6f1b6c52adf9d0f676790b15b30ed1f2702..f0ba1d9753c9fa9a12d484e38219364218d134e2 100644 (file)
@@ -2,7 +2,6 @@
 Bug #40809 (Poor performance of ".=")
 --FILE--
 <?php
-error_reporting(E_ALL|E_STRICT);
 
 $num_increments = 100;
 $num_repeats = 1000;
index f0cd4f75bcafe01b95b23e7063a696c7e136d1b8..cd76888bbc252e3af49d02783d0b647dbb518809 100644 (file)
@@ -6,7 +6,6 @@ Bug #43450 (Memory leak on some functions with implicit object __toString() call
 opcache.enable_cli=0
 --FILE--
 <?php
-error_reporting(E_ALL|E_STRICT);
 
 class Foo 
 {
index edeca7456ca7a9ef7cc598e8bf846b6b65735e13..d63e658868a5cf91ad93527db34b25062205a655 100644 (file)
@@ -29,7 +29,7 @@ class B {
 }
 
 set_error_handler(
-  array('PHPUnit_Util_ErrorHandler', 'handleError'), E_ALL | E_STRICT
+  array('PHPUnit_Util_ErrorHandler', 'handleError'), E_ALL
 );
 
 $o = new B;
index 1dcba1dbc5f1c2c6195c600fa7d2837a7e037501..eee24ec83f3bd03e4e5bc266cc910f0827fafe3e 100644 (file)
@@ -2,7 +2,6 @@
 The same rules are applied for properties that are defined in the class hierarchy. Thus, if the properties are compatible, a notice is issued, if not a fatal error occures. (relevant with #60536)
 --FILE--
 <?php
-error_reporting(E_ALL | E_STRICT);
 
 class Base {
   private $hello;    
index d944a0a41e8817a9ed1b9a2bc7235bd67d350432..4088f163406a05c9456b0b777b01695eda7da491 100644 (file)
@@ -2,7 +2,6 @@
 Properties should be initialized correctly (relevant to #60536)
 --FILE--
 <?php
-error_reporting(E_ALL | E_STRICT);
 
 class BaseWithPropA {
   private $hello = 0;
index e0c9dc0b4df8af4f87e70c607e9195276728c264..a8f4d8b9d43956fd40584a699b8e88d1f82757a2 100644 (file)
@@ -2,7 +2,6 @@
 Introducing new private variables of the same name in a subclass is ok, and does not lead to any output. That is consitent with normal inheritance handling. (relevant to #60536)
 --FILE--
 <?php
-error_reporting(E_ALL | E_STRICT);
 
 class Base {
   private $hello;    
index a285ed47ab4d75c2971853098a7d8f383cfefba8..1ba22a97526c503ab344e8c40fdf3c8b047b6658 100644 (file)
@@ -2,7 +2,6 @@
 Introducing new private variables of the same name in a subclass is ok, and does not lead to any output. That is consitent with normal inheritance handling. (relevant to #60536)
 --FILE--
 <?php
-error_reporting(E_ALL | E_STRICT);
 
 class Base {
   protected $hello;    
index 482fd87ec52a698216cbe6ab811dbb5b7d648cfb..232110797a606f0d78250c911260fffe1ccf83ce 100644 (file)
@@ -1,9 +1,5 @@
 --TEST--
 bug67436: E_STRICT instead of custom error handler
-
---INI--
-error_reporting=-1
-
 --FILE--
 <?php
 
index ce39eb019737b80899d7f82ce5e3f40e68b9cf17..bf0c0a3c39c79742fc49a7a77a2dad0775b620c8 100644 (file)
@@ -3,7 +3,6 @@ Bug #69388: Use after free on recursive calls to PHP compiler
 --FILE--
 <?php
 
-error_reporting(E_ALL | E_STRICT);
 function handle_error($code, $message, $file, $line, $context) {
        if (!function_exists("bla")) {
                eval('function bla($s) {echo "$s\n";}');
index d597365bc8440929a676bb3675a17c4fb57690de..b55153b492e808f787142e9641e77ca5e12dee81 100644 (file)
@@ -2,7 +2,6 @@
 Bug #69388 - Variation
 --FILE--
 <?php
-error_reporting(E_ALL | E_STRICT);
 function handle_error($code, $message, $file, $line, $context) {
     eval('namespace Foo;');
     echo "$message\n";
index 8782b8e26463efc292f56a775c59477dd2fac35d..808627be3b3aef7b1182eb3e9ea68ec983c656b3 100644 (file)
@@ -62,7 +62,7 @@ class Mock_MethodCallbackByReference_7b180d26 extends MethodCallbackByReference
 set_error_handler(function() {
 //    var_dump(func_get_args());
     DoesNotExists::$nope = true;
-}, E_ALL | E_STRICT);
+}, E_ALL);
 
 $foo = new Mock_MethodCallbackByReference_7b180d26();
 $InvMocker = new PHPUnit_Framework_MockObject_InvocationMocker();
index c0cf2f87ca8af77a655e2c7ca77ee214b0c3f5ec..fea4a775729e4d076b66dcba47f85a5acb69d3a8 100644 (file)
@@ -1,12 +1,8 @@
 --TEST--
 Bug #74408 (Endless loop bypassing execution time limit)
---INI--
-error_reporting = E_ALL | E_DEPRECATED | E_STRICT
 --FILE--
 <?php
 
- //php.ini: error_reporting = E_ALL | E_DEPRECATED | E_STRICT
-
  class ErrorHandling {
 
   public  function error_handler($errno, $errstr, $errfile, $errline) {
index 68ebd9da38570ea0ef442718d515041508a5fa1e..80c21c6ba52a28c651b2b1a727f4729d0c2a8d8f 100644 (file)
@@ -3,8 +3,6 @@ Testing usage of object as array on clone statement
 --FILE--
 <?php 
 
-error_reporting(E_ALL|E_STRICT);
-
 class foo {
        public function __get($a) {
                return new $this;
index 002a252a72bb9dd69c6c46975ebad9edd8a0a1d5..c9c26ad7704bad21a768e714726714181bd1a90a 100644 (file)
@@ -1,5 +1,5 @@
 --TEST--
-Potentially conflicting properties should result in a strict notice. Property use is discorage for traits that are supposed to enable maintainable code reuse. Accessor methods are the language supported idiom for this.
+"Potentially" conflicting trait properties do not result in a strict standards notice anymore
 --FILE--
 <?php
 error_reporting(E_ALL);
@@ -13,15 +13,12 @@ trait THello2 {
 }
 
 echo "PRE-CLASS-GUARD-TraitsTest\n";
-error_reporting(E_ALL & ~E_STRICT); // ensuring that it is only for E_STRICT
 
 class TraitsTest {
        use THello1;
        use THello2;
 }
 
-error_reporting(E_ALL | E_STRICT);
-
 echo "PRE-CLASS-GUARD-TraitsTest2\n";
 
 class TraitsTest2 {
index 27361e04d2016e81b4116a663217208432f61275..f58c2a428e6ca88bd974fa09f936fafbba79ff1a 100644 (file)
@@ -2,7 +2,6 @@
 Non-conflicting properties should work just fine.
 --FILE--
 <?php
-error_reporting(E_ALL);
 
 trait THello1 {
   public $hello = "hello";
@@ -29,4 +28,4 @@ $t->test();
 --EXPECTF--    
 bool(true)
 bool(true)
-hello World!
\ No newline at end of file
+hello World!
index b4f0105d2076fda65fae3ca161ad13dbd51c9400..09686277db893ab8f31be53145bde7193ee24f75 100644 (file)
@@ -2,7 +2,6 @@
 Conflicting properties with different visibility modifiers should result in a fatal error, since this indicates that the code is incompatible.
 --FILE--
 <?php
-error_reporting(E_ALL);
 
 trait THello1 {
   public $hello;
@@ -27,4 +26,4 @@ $t->hello = "foo";
 --EXPECTF--    
 PRE-CLASS-GUARD
 
-Fatal error: THello1 and THello2 define the same property ($hello) in the composition of TraitsTest. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
\ No newline at end of file
+Fatal error: THello1 and THello2 define the same property ($hello) in the composition of TraitsTest. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
index 393b492b7f04cf878460050e52f2a5ad3acc590c..a2a8d413011fc98a335ee41234d120f8207dcb8a 100644 (file)
@@ -2,7 +2,6 @@
 Conflicting properties with different initial values are considered incompatible.
 --FILE--
 <?php
-error_reporting(E_ALL);
 
 trait THello1 {
   public $hello = "foo";
@@ -27,4 +26,4 @@ $t = new TraitsTest;
 --EXPECTF--    
 PRE-CLASS-GUARD
 
-Fatal error: THello1 and THello2 define the same property ($hello) in the composition of TraitsTest. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
\ No newline at end of file
+Fatal error: THello1 and THello2 define the same property ($hello) in the composition of TraitsTest. However, the definition differs and is considered incompatible. Class was composed in %s on line %d
index 3d2d4484f515ae546560f67d41f32c35d211d7a2..2fce84e87822c9e7e743314db7bce6b708ecbf08 100644 (file)
@@ -1,8 +1,7 @@
 --TEST--
-The same rules are applied for properties that are defined in the class hierarchy. Thus, if the properties are compatible, a notice is issued, if not a fatal error occures.
+The same rules are applied for properties that are defined in the class hierarchy. Thus, if the properties are incompatible a fatal error occurs.
 --FILE--
 <?php
-error_reporting(E_ALL | E_STRICT);
 
 class Base {
   private $hello;    
index bfe74543fd14252c7d8be576f70856596e137204..a34f3f217f0515104f87c302fc5cb3f7645df334 100644 (file)
@@ -1,8 +1,7 @@
 --TEST--
-Introducing new private variables of the same name in a subclass is ok, and does not lead to any output. That is consitent with normal inheritance handling.
+Introducing new private variables of the same name in a subclass is ok, and does not lead to any output. That is consistent with normal inheritance handling.
 --FILE--
 <?php
-error_reporting(E_ALL | E_STRICT);
 
 class Base {
   private $hello;    
index fb3c517876f1a4e0c0a5af8ce669c575c5e736f1..80a81958d3f125e7d49e0c101a4027a04e932aa0 100644 (file)
@@ -1,8 +1,7 @@
 --TEST--
-Introducing new private variables of the same name in a subclass is ok, and does not lead to any output. That is consitent with normal inheritance handling.
+Introducing new private variables of the same name in a subclass is ok, and does not lead to any output. That is consistent with normal inheritance handling.
 --FILE--
 <?php
-error_reporting(E_ALL | E_STRICT);
 
 class Base {
   protected $hello;    
index e263692d60ed41878edb96076ba98ced5fedf8c0..41d0e8802b97623309331da405311edcf5bfe52a 100644 (file)
@@ -2,7 +2,6 @@
 Handling of private fields with traits needs to have same semantics as with normal inheritance.
 --FILE--
 <?php
-error_reporting(E_ALL | E_STRICT);
 
 class BaseWithPropA {
   private $hello = 0;
@@ -59,4 +58,4 @@ object(SubclassB)#3 (2) {
   int(0)
   ["hello":"BaseWithTPropB":private]=>
   int(0)
-}
\ No newline at end of file
+}
index 590a5e9b7dea14c27c78b23d6c40b5efe4e409ea..fdd2351023ba24a35a6b56a74bf2e0f19260ac88 100644 (file)
@@ -2,7 +2,6 @@
 Handling of public fields with traits needs to have same semantics as with normal inheritance, however, we do add strict warnings since it is easier to run into something unexpeted with changing traits.
 --FILE--
 <?php
-error_reporting(E_ALL | E_STRICT);
 
 class BaseWithPropA {
   public $hello = 0;
@@ -54,4 +53,4 @@ object(SubclassA)#2 (1) {
 object(SubclassB)#3 (1) {
   ["hello"]=>
   int(0)
-}
\ No newline at end of file
+}
index f89b63fd9334e8bcf25e0a940e6b5693ae66136e..f7eb30a3abf3f0edce4552bc717bbd2aebf2b01f 100644 (file)
@@ -14,9 +14,6 @@ offset: +1 GMT
 
 echo "Basic test for date_sunrise() and date_sunset()\n";
 
-// suppress date() function strict msgs 
-error_reporting(E_ALL & ~E_STRICT);
-
 echo date("D M d Y") . ', sunrise time : ' . date_sunrise(time(), SUNFUNCS_RET_STRING, 38.4, -9, 90, 1) . "\n";
 echo date("D M d Y") . ', sunset time : ' . date_sunset(time(), SUNFUNCS_RET_STRING, 38.4, -9, 90, 1) . "\n";
 
index da1f3d63bfeb0c18bd84b78aea585183a905934f..ad95f138fc0f8cd3ed96d75a9dae43f437b9f1d4 100644 (file)
@@ -7,7 +7,6 @@ Test mktime() function : basic functionality
  * Source code: ext/date/php_date.c
  * Alias to functions: 
  */
-error_reporting(E_ALL | E_STRICT);
 
 //Set the default time zone 
 date_default_timezone_set("Europe/London");
index 9e3e872cb5e4b91a90520886bc01bcaca68d579a..c08eefe9d7d4073a2949dcd7276d58f3b1ca08b7 100644 (file)
@@ -7,7 +7,6 @@ Test mktime() function : error conditions
  * Source code: ext/date/php_date.c
  * Alias to functions: 
  */
-error_reporting(E_ALL | E_STRICT);
 
 //Set the default time zone 
 date_default_timezone_set("Europe/London");
index 640caaec543b3f8ac6755e4aa6e3d05df00e11fa..866cef5996cac1f708b1b3c0ab5d6c29586b2ebc 100644 (file)
@@ -8,8 +8,6 @@ Test timezone_name_from_abbr() function : error conditions
  * Alias to functions: 
  */
 
-error_reporting(E_ALL | E_STRICT);
-
 //Set the default time zone 
 date_default_timezone_set("Europe/London");
 
@@ -39,4 +37,4 @@ bool(false)
 
 Warning: timezone_name_from_abbr() expects at most 3 parameters, 4 given in %s on line %d
 bool(false)
-===DONE===
\ No newline at end of file
+===DONE===
index 6518a03c0f909bce09a80dd974ebb840cd521c06..57cedaf81ab90f93c611eec81c0e3e023b800650 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Test is_a() function : error conditions - wrong number of args
---INI--
-error_reporting=E_ALL | E_STRICT | E_DEPRECATED
 --FILE--
 <?php
 /* Prototype  : proto bool is_a(object object, string class_name, bool allow_string)
@@ -51,4 +49,4 @@ NULL
 
 Warning: is_a() expects at least 2 parameters, 1 given in %s on line 27
 NULL
-Done
\ No newline at end of file
+Done
index d449fd3797b8f1b8e75fb98f14c7f2e47e75cb66..228141a8defa145d9f1f91e9e009bd1acdfc1891 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Test is_a() function : usage variations  - wrong type for arg 1
---INI--
-error_reporting=E_ALL | E_STRICT | E_DEPRECATED 
 --FILE--
 <?php
 /* Prototype  : proto bool is_a(object object, string class_name)
index a34c325d871d9eac90c3188cbb4bee5a58efe0d8..00a7e3e3ca217169fba379d2fea3d434fa890d30 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Test is_a() function : usage variations  - wrong type for arg 2
---INI--
-error_reporting=E_ALL | E_STRICT | E_DEPRECATED 
 --FILE--
 <?php
 /* Prototype  : proto bool is_a(object object, string class_name)
index 1258647bc1235be2fbcd239715dad4c38578d770..16ec1a6622fe73d0ca695c3ef84242ed1b314b83 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Test is_a() function : usage variations  - case sensitivity
---INI--
-error_reporting=E_ALL | E_STRICT | E_DEPRECATED
 --FILE--
 <?php
 /* Prototype  : proto bool is_a(object object, string class_name)
index 48df46cc6393bc3ca6446c17a2cfd666dab9f802..783bf2227c23acda85b154832070bcde16d72e41 100644 (file)
@@ -13,7 +13,6 @@ class VariableStream {
 
 stream_wrapper_register("var", "VariableStream");
 
-error_reporting(E_ALL | E_STRICT);
 $file = dirname(__FILE__) . '/footest.txt';
 $x = str_repeat(1, 8192);
 $fp = fopen($file, 'w');
index fe4d6e26e31c2a01f72a42140b4dec2b05c396a8..aa4c9aee236afa11981e8525906326b98470ee04 100644 (file)
@@ -1,8 +1,5 @@
 --TEST--
 Test is_callable() function : usage variations - defined functions
---INI--
-precision=14
-error_reporting = E_ALL & ~E_NOTICE | E_STRICT
 --FILE--
 <?php
 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] );
index d842534124bb0f888c35265757c8430995f8e517..1e6b2a97ccd48c7395bb1a7102ecc438c1a9700e 100644 (file)
@@ -1,8 +1,5 @@
 --TEST--
 Test is_callable() function : usage variations - on objects 
---INI--
-precision=14
-error_reporting = E_ALL & ~E_NOTICE | E_STRICT
 --FILE--
 <?php
 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] );
index ac23b8a939d8be3ea4cdaf5e61d69031dab91a03..1e9e3b7fde85d049845524f63ef7a4efe605f86f 100644 (file)
@@ -1,8 +1,5 @@
 --TEST--
 Test is_callable() function
---INI--
-precision=14
-error_reporting = E_ALL & ~E_NOTICE | E_STRICT
 --FILE--
 <?php
 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] );
@@ -32,4 +29,4 @@ NULL
 
 Warning: is_callable() expects at most 3 parameters, 4 given in %s on line %d
 NULL
-===DONE===
\ No newline at end of file
+===DONE===
index 1fea87180377f894ddf79d8a4a8f945141f856b0..cd76f161edc8c773108c7e15b3bad137f80d2a30 100644 (file)
@@ -4,9 +4,6 @@ Test is_callable() function : usage variations - undefined functions
 <?php
 if (!extension_loaded('json')) die("skip requires ext/json");
 ?>
---INI--
-precision=14
-error_reporting = E_ALL & ~E_NOTICE | E_STRICT
 --FILE--
 <?php
 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] );
index b94a446dcf4c53574f441a6681c4efcd239f2940..5bfd4be3216ec9fefeab13ea82b89ace6865ff6d 100644 (file)
@@ -1,8 +1,5 @@
 --TEST--
 Test is_callable() function : usage variations - on invalid function names  
---INI--
-precision=14
-error_reporting = E_ALL & ~E_NOTICE | E_STRICT
 --FILE--
 <?php
 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] );
@@ -151,4 +148,4 @@ Resource id #%d
 bool(false)
 bool(false)
 Resource id #%d
-===DONE===
\ No newline at end of file
+===DONE===
index 403f9de08cdda33fad0ca694cb30cfd74789c755..c48be9ea798fd9890c5855bb8af55f78282d306a 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Object serialization / unserialization: references amongst properties 
---INI--
-error_reporting = E_ALL & ~E_STRICT
 --FILE--
 <?php
 /* Prototype  : proto string serialize(mixed variable)
index 234f5e084c24f61b0a635f9181ceb2bdfe97bc0e..0b60413d2537f7bc3e9bfd4f9abdde202ae7a127 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Object serialization / unserialization: references to external values 
---INI--
-error_reporting = E_ALL & ~E_STRICT
 --FILE--
 <?php
 /* Prototype  : proto string serialize(mixed variable)
@@ -292,4 +290,4 @@ object(stdClass)#%d (3) {
   ["c"]=>
   &string(14) "obj->c.changed"
 }
-Done
\ No newline at end of file
+Done
index 2265caba93f1a33147b3182572e4e4427bed1720..b47920e879fefb052a7a710a28cca6783c12364f 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Object serialization / unserialization: properties reference containing object 
---INI--
-error_reporting = E_ALL & ~E_STRICT
 --FILE--
 <?php
 
index 1333bcda8af366b57fda954770f7dddb77a240d8..be9b3423c8031d1e97a7ca37ae3ed69bd92b5f82 100644 (file)
@@ -2,7 +2,6 @@
 Ensure by value assignments leave temporaries on the stack, for all sorts of assignees.
 --FILE--
 <?php
-error_reporting(E_ALL & ~E_STRICT);
 
 function f() { return 0; }
 $a[0][1] = 'good';
index 91c96f694d7a2bc1865c0732847abbfe84709c89..60af4015805f1fe6a20eec14132f5f932942e16b 100644 (file)
@@ -2,7 +2,6 @@
 Ensure foreach splits the iterated entity from its cow reference set, for all sorts of iterated entities.
 --FILE--
 <?php
-  error_reporting(E_ALL & ~E_STRICT);
 
   echo "\n" . '$a' . "\n";
   $b = $a = array('original');
index 3ed17539b61040ef555bbb5e4e93faf0ae771f93..69d53ca261eb211caa84779cb5ce582baae88e99 100644 (file)
@@ -2,8 +2,6 @@
 Test pass by reference semantics
 --FILE--
 <?php
-error_reporting(E_ALL | E_STRICT | E_NOTICE);
-
 // Simplified array_shift_variation5.phpt
 // Showing warning:
 // "Only variables should be passed by reference in %s on line %d"
index d2c7041be8047ddc2b7e1efce93496ed797ed0db..d7a6c580a0240d4762566a284485bfe7d8b78054 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Returning a reference from a function via another function
---INI--
-error_reporting = E_ALL & ~E_STRICT
 --FILE--
 <?php
 function returnConstantByValue() {
index 45fa0ddc880088a982ecfd00eb7223d051013cdf..e2ae4e6cd3e3fce26b6872c3d88ddcbab1719807 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Returning a reference from a static method via another static method
---INI--
-error_reporting = E_ALL & ~E_STRICT
 --FILE--
 <?php
 class C {
index 3774a917c5c6a52886d4be094cf02f6f07df4ecb..6492342cb51b323887e976f39fa1f7ce26b875d2 100644 (file)
@@ -1,7 +1,5 @@
 --TEST--
 Returning a reference from a non-static method via another non-static method
---INI--
-error_reporting = E_ALL & ~E_STRICT
 --FILE--
 <?php
 class C {