tests: skip ~E_DEPRECATED
authorMichael Wallner <mike@php.net>
Mon, 2 Aug 2021 14:42:58 +0000 (16:42 +0200)
committerMichael Wallner <mike@php.net>
Tue, 3 Aug 2021 10:56:23 +0000 (12:56 +0200)
tests/client024.phpt

index ac29865cca76dca99d4709b398b51a0ac6bde334..4e8fe2f9bf8d695e810ca41fa859c8b321d22b01 100644 (file)
@@ -4,6 +4,8 @@ client deprecated methods
 <?php
 include "skipif.inc";
 skip_client_test();
+if (!(error_reporting() & E_DEPRECATED))
+       die("skip error_reporting() & ~E_DEPRECATED\n");
 ?>
 --FILE--
 <?php