Skip to content

Commit a42f466

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 a42f466

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+
; Ignore Deprecated: Using null as an array offset is deprecated...
7+
error_reporting = E_ALL & ~E_DEPRECATED
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+
; Ignore Deprecated: Using null as an array offset is deprecated...
7+
error_reporting = E_ALL & ~E_DEPRECATED
58
--FILE--
69
<?php
710
var_dump(yaml_parse('

0 commit comments

Comments
 (0)