Skip to content

Commit 2947a3d

Browse files
committed
Ignore null array offset warnings in explicit null tests
Ignore warnings while running tests involving explicit null handling. This avoids false test failures triggered by PHP 8.5 deprecation warnings. Bug: #97
1 parent 24d9283 commit 2947a3d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/bug_64019.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Test PECL bug #64019
33
--SKIPIF--
44
<?php if(!extension_loaded('yaml')) die('skip yaml n/a'); ?>
5+
--INI--
6+
; E_ALL - E_DEPRECATED to hide Deprecated: Using null as an array offset is deprecated...
7+
error_reporting=24575
58
--FILE--
69
<?php
710
$yaml_code = <<<YAML

tests/yaml_parse_spec_null.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Yaml 1.1 Spec - null
33
--SKIPIF--
44
<?php if(!extension_loaded('yaml')) die('skip yaml n/a'); ?>
5+
--INI--
6+
; E_ALL - E_DEPRECATED to hide Deprecated: Using null as an array offset is deprecated...
7+
error_reporting=24575
58
--FILE--
69
<?php
710
var_dump(yaml_parse('

0 commit comments

Comments
 (0)