[PECL-CVS] [pecl-file_formats-yaml] php7: Use symbols for error_reporting ini setting
[email protected] (Bryan Davis)
| Newsgroups | php.pecl.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Bryan Davis (bd808)
Date: 2025-11-11T18:24:06-07:00
Commit: https://github.com/php/pecl-file_formats-yaml/commit/23287eaaebec5930a29b8595d5be324a8b451c9f
Raw diff: https://github.com/php/pecl-file_formats-yaml/commit/23287eaaebec5930a29b8595d5be324a8b451c9f.diff
Use symbols for error_reporting ini setting
Replace magic numbers with symbols in error_reporting ini setting to
improve clarity of intent.
Changed paths:
M tests/yaml_parse_file_002.phpt
Diff:
diff --git a/tests/yaml_parse_file_002.phpt b/tests/yaml_parse_file_002.phpt
index 050c43f..2e8d795 100644
--- a/tests/yaml_parse_file_002.phpt
+++ b/tests/yaml_parse_file_002.phpt
@@ -5,8 +5,8 @@ yaml_parse_file - error cases
--INI--
yaml.decode_timestamp=1
date.timezone=GMT
-; E_ALL - E_DEPRECATED to hide Deprecated: yaml_parse_file(): Passing null to parameter #1...
-error_reporting=24575
+; Ignore Deprecated: yaml_parse_file(): Passing null to parameter #1...
+error_reporting = E_ALL & ~E_DEPRECATED
--FILE--
<?php
try {